Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

report(redesign): score icons, audit group headers, colors #8222

Merged
merged 44 commits into from
Apr 19, 2019

Conversation

connorjclark
Copy link
Collaborator

@connorjclark connorjclark commented Apr 12, 2019

Design reference: https://yuinchien.github.io/sandbox/lighthouse/

Some questions that came up:

  • PWA badge icons (the ones in the audit group headers) - do we still want the grayed version when incomplete, and the new green versions when completed? Also, am missing the green icon for PWA Optimized
  • want to confirm that we are removing the clump icons (check mark/mangnifying glass/dash-in-circle)

Will fix tests after comments on design.

#8185

@connorjclark
Copy link
Collaborator Author

(just noticed I need to add back the description for clumps when expanded, ex: "Run these additional validators on your site to check additional SEO best practices.")

@connorjclark connorjclark changed the base branch from master to report-ui-gauges April 12, 2019 17:29
@patrickhulce
Copy link
Collaborator

looks good! haven't taken an deep look yet but the text color jumped out, is the split between icon and text colors for color contrast purposes in an upcoming PR?

Copy link
Member

@brendankenny brendankenny left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

last comments, otherwise LGTM

const expectedDescription = Util.UIStrings.lsPerformanceCategoryDescription
// Replacing markdown because ".textContent" will be post-markdown.
.replace('[Lighthouse](https://developers.google.com/web/tools/lighthouse/)', 'Lighthouse');

// Assume using default locale.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this comment should be above expectedDescription too

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done


// Group header DOM roughly matches the clump header DOM, and that's OK.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should remove this comment. See reasoning in earlier thread, but, more importantly, this wouldn't be the place to put the comment anyways :)

This group header is using group class names, nothing weird about that or worth commenting on; it's the clump header using group class names that's the aberration.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

@@ -113,11 +110,21 @@
--score-title-line-height-big: 36px;
--score-title-line-height: 26px;
--section-padding: 40px;
--shape-margin: 7px 12px 0 4px;
--shape-size: 12px;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this would probably be a little more helpful with an additional qualifier in the variable name. Which shape? (same with circle and square?)

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it's used for both metric icons and audit score icons so I went with --icon-shape-size...

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it's used for both metric icons and audit score icons so I went with --icon-shape-size...

"icon" and "shape" mean basically the same thing :)

what about --score-shape-size, etc?

@codecov
Copy link

codecov bot commented Apr 19, 2019

Codecov Report

Merging #8222 into master will decrease coverage by 0.02%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #8222      +/-   ##
==========================================
- Coverage   90.82%   90.79%   -0.03%     
==========================================
  Files         283      283              
  Lines        9534     9529       -5     
==========================================
- Hits         8659     8652       -7     
- Misses        875      877       +2
Flag Coverage Δ
#smoke 83.63% <ø> (-0.02%) ⬇️
#unit 88.96% <100%> (-0.02%) ⬇️
Impacted Files Coverage Δ
...use-core/report/html/renderer/category-renderer.js 93.92% <100%> (-0.14%) ⬇️
...ort/html/renderer/performance-category-renderer.js 93.45% <100%> (-0.07%) ⬇️
lighthouse-core/audits/user-timings.js 96% <0%> (-4%) ⬇️
lighthouse-core/gather/driver.js 92.84% <0%> (-0.21%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update f33d559...357292f. Read the comment docs.

2 similar comments
@codecov
Copy link

codecov bot commented Apr 19, 2019

Codecov Report

Merging #8222 into master will decrease coverage by 0.02%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #8222      +/-   ##
==========================================
- Coverage   90.82%   90.79%   -0.03%     
==========================================
  Files         283      283              
  Lines        9534     9529       -5     
==========================================
- Hits         8659     8652       -7     
- Misses        875      877       +2
Flag Coverage Δ
#smoke 83.63% <ø> (-0.02%) ⬇️
#unit 88.96% <100%> (-0.02%) ⬇️
Impacted Files Coverage Δ
...use-core/report/html/renderer/category-renderer.js 93.92% <100%> (-0.14%) ⬇️
...ort/html/renderer/performance-category-renderer.js 93.45% <100%> (-0.07%) ⬇️
lighthouse-core/audits/user-timings.js 96% <0%> (-4%) ⬇️
lighthouse-core/gather/driver.js 92.84% <0%> (-0.21%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update f33d559...357292f. Read the comment docs.

@codecov
Copy link

codecov bot commented Apr 19, 2019

Codecov Report

Merging #8222 into master will decrease coverage by 0.02%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #8222      +/-   ##
==========================================
- Coverage   90.82%   90.79%   -0.03%     
==========================================
  Files         283      283              
  Lines        9534     9529       -5     
==========================================
- Hits         8659     8652       -7     
- Misses        875      877       +2
Flag Coverage Δ
#smoke 83.63% <ø> (-0.02%) ⬇️
#unit 88.96% <100%> (-0.02%) ⬇️
Impacted Files Coverage Δ
...use-core/report/html/renderer/category-renderer.js 93.92% <100%> (-0.14%) ⬇️
...ort/html/renderer/performance-category-renderer.js 93.45% <100%> (-0.07%) ⬇️
lighthouse-core/audits/user-timings.js 96% <0%> (-4%) ⬇️
lighthouse-core/gather/driver.js 92.84% <0%> (-0.21%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update f33d559...357292f. Read the comment docs.

@codecov
Copy link

codecov bot commented Apr 19, 2019

Codecov Report

Merging #8222 into master will decrease coverage by 0.02%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #8222      +/-   ##
==========================================
- Coverage   90.82%   90.79%   -0.03%     
==========================================
  Files         283      283              
  Lines        9534     9529       -5     
==========================================
- Hits         8659     8652       -7     
- Misses        875      877       +2
Flag Coverage Δ
#smoke 83.63% <ø> (-0.02%) ⬇️
#unit 88.96% <100%> (-0.02%) ⬇️
Impacted Files Coverage Δ
...use-core/report/html/renderer/category-renderer.js 93.92% <100%> (-0.14%) ⬇️
...ort/html/renderer/performance-category-renderer.js 93.45% <100%> (-0.07%) ⬇️
lighthouse-core/audits/user-timings.js 96% <0%> (-4%) ⬇️
lighthouse-core/gather/driver.js 92.84% <0%> (-0.21%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update f33d559...6b563f5. Read the comment docs.

@codecov
Copy link

codecov bot commented Apr 19, 2019

Codecov Report

Merging #8222 into master will decrease coverage by 0.02%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #8222      +/-   ##
==========================================
- Coverage   90.82%   90.79%   -0.03%     
==========================================
  Files         283      283              
  Lines        9534     9529       -5     
==========================================
- Hits         8659     8652       -7     
- Misses        875      877       +2
Flag Coverage Δ
#smoke 83.63% <ø> (-0.02%) ⬇️
#unit 88.96% <100%> (-0.02%) ⬇️
Impacted Files Coverage Δ
...use-core/report/html/renderer/category-renderer.js 93.92% <100%> (-0.14%) ⬇️
...ort/html/renderer/performance-category-renderer.js 93.45% <100%> (-0.07%) ⬇️
lighthouse-core/audits/user-timings.js 96% <0%> (-4%) ⬇️
lighthouse-core/gather/driver.js 92.84% <0%> (-0.21%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update f33d559...6b563f5. Read the comment docs.

@connorjclark
Copy link
Collaborator Author

Let's defer the RTL to a follow up PR. Everything else look swell?

@@ -152,6 +160,7 @@
--score-title-line-height-big: 26px;
--score-title-line-height: 20px;
--section-padding: 24px;
--shape-margin: 5px 12px 0 2px;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

--score-shape-margin here too?

@brendankenny brendankenny merged commit 85be5c6 into master Apr 19, 2019
@brendankenny brendankenny deleted the report-ui-audit-results branch April 19, 2019 23:42
This was referenced Apr 22, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants