-
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
DBW: Add helpText to report #695
Conversation
IMO we should just change this in report generator. I think this is superior to what the default report has. (Green "Yes", red "No") |
Happy to do that if I have the 👍. Don't want to spend time on it and then be :( |
👍 from me and @brendankenny on changing the default reporter to use check and X |
Handlebars.registerHelper('getItemValue', value => { | ||
if (typeof value === 'boolean') { | ||
return value ? 'Yes' : 'No'; | ||
return value ? '✔' : '✘'; |
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.
whoa, never seen this escape.
don't wanna just pass as a literal?
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.
Gotta love up on those unicodes.
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.
looks great!
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.
The formatter I need for the help text/links:
https://cloud.githubusercontent.com/assets/238208/18770973/b9d882ba-80ef-11e6-82e7-58e0812e8323.png
Handlebars.registerHelper('getItemValue', value => { | ||
if (typeof value === 'boolean') { | ||
return value ? 'Yes' : 'No'; | ||
return value ? '✔' : '✘'; |
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.
Gotta love up on those unicodes.
Or maybe I don't? Is there a formatter that already does that? |
2ec6b5a
to
e5d0416
Compare
I'll take a look at this this morning |
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.
Looks good. Not a fan of yet one more field there, but report needs a good reworking anyways, and this will actually help make clear all the things some future solution will need to support.
sorry, not the morning anymore :) |
This is a great PR. Already loving the new looks. |
R: @paulirish @brendankenny @GoogleChrome/lighthouse
Not worth writing tests at this point. Just need something that's less confusing than the current double negatives for failure results: "Site is not using AppCache: No". This also adds help text for each feature and suggestions (with links) on what to use instead.
Current:
Now:
Eventually we should add a custom report instead of style overrides.