-
Notifications
You must be signed in to change notification settings - Fork 9.4k
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
core(config): add new PWA category groups #6396
Changes from 4 commits
54a9248
2b65d5e
5d42c27
0787f2c
ee999ca
a57facf
37ee91d
e6efeed
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -116,7 +116,6 @@ const defaultConfig = { | |
'webapp-install-banner', | ||
'splash-screen', | ||
'themed-omnibox', | ||
'manifest-short-name-length', | ||
'content-width', | ||
'image-aspect-ratio', | ||
'deprecations', | ||
|
@@ -225,6 +224,15 @@ const defaultConfig = { | |
title: str_(UIStrings.diagnosticsGroupTitle), | ||
description: str_(UIStrings.diagnosticsGroupDescription), | ||
}, | ||
'pwa-fast-reliable': { | ||
title: 'Fast and reliable', | ||
}, | ||
'pwa-installable': { | ||
title: 'Installable', | ||
}, | ||
'pwa-engaging': { | ||
title: 'Engaging', | ||
}, | ||
'a11y-color-contrast': { | ||
title: 'Color Contrast Is Satisfactory', | ||
description: 'These are opportunities to improve the legibility of your content.', | ||
|
@@ -317,22 +325,23 @@ const defaultConfig = { | |
'[PWA Checklist](https://developers.google.com/web/progressive-web-apps/checklist) but are ' + | ||
'not automatically checked by Lighthouse. They do not affect your score but it\'s important that you verify them manually.', | ||
auditRefs: [ | ||
// Most difficult and critical for good UX | ||
{id: 'load-fast-enough-for-pwa', weight: 7}, // can't be green in the category without being fast | ||
{id: 'works-offline', weight: 5}, | ||
// Encompasses most of the other checks | ||
{id: 'webapp-install-banner', weight: 3}, | ||
// Important but not too difficult | ||
{id: 'is-on-https', weight: 2}, | ||
{id: 'redirects-http', weight: 2}, | ||
{id: 'viewport', weight: 2}, | ||
// Relatively easy checkboxes to tick with minimal value on their own | ||
{id: 'service-worker', weight: 1}, | ||
{id: 'without-javascript', weight: 1}, | ||
{id: 'splash-screen', weight: 1}, | ||
{id: 'themed-omnibox', weight: 1}, | ||
{id: 'content-width', weight: 1}, | ||
{id: 'manifest-short-name-length', weight: 0}, | ||
// Fast and Reliable | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. hey this lines up exactly with "most difficult and critical for good UX" :D do we need to re-order the lines? it lined up with "fast" and then "reliable" already ;) There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
We don't need to, but since this will end up being a pretty big change in the html report, it seems better to have them in the same order There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. oh, ha, nm, I see what you mean. SGTM :) |
||
{id: 'works-offline', weight: 5, group: 'pwa-fast-reliable'}, | ||
{id: 'load-fast-enough-for-pwa', weight: 7, group: 'pwa-fast-reliable'}, | ||
|
||
// Installable | ||
{id: 'is-on-https', weight: 2, group: 'pwa-installable'}, | ||
{id: 'service-worker', weight: 1, group: 'pwa-installable'}, | ||
{id: 'webapp-install-banner', weight: 3, group: 'pwa-installable'}, | ||
|
||
// Engaging | ||
{id: 'redirects-http', weight: 2, group: 'pwa-engaging'}, // Arguably not engaging | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. with the new in-yo-face red X insecure I think it works, I'm always a bit taken aback on surge.sh URLs these days on mobile canary! There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
ha, fair point. I've removed the comment and anyone who objects can bring it up in the tracking bug :) |
||
{id: 'splash-screen', weight: 1, group: 'pwa-engaging'}, | ||
{id: 'themed-omnibox', weight: 1, group: 'pwa-engaging'}, | ||
{id: 'viewport', weight: 2, group: 'pwa-engaging'}, | ||
{id: 'content-width', weight: 1, group: 'pwa-engaging'}, | ||
{id: 'without-javascript', weight: 1, group: 'pwa-engaging'}, | ||
|
||
// Manual audits | ||
{id: 'pwa-cross-browser', weight: 0}, | ||
{id: 'pwa-page-transitions', weight: 0}, | ||
|
This file was deleted.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
could we start with these being
str_
? :)There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
good call, done