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: lingo cleanup, visual cleanup, remove redundant messaging #1598

Merged
merged 9 commits into from Feb 2, 2017

Conversation

ebidel
Copy link
Contributor

@ebidel ebidel commented Feb 1, 2017

R: all

Users get confused when an audit description says "Site does not use x API..." and there's a red "X" for the audit result. "X" means the audit failed, but the double negative is confusing. I've heard the complaint a few times in the last couple of days and decided to fix it.

This PR changes the lingo we use in the report to be consistent throughout:

  • Replace "Site does not use X" -> "Avoids X"
  • Replace "Site uses..." -> "Page uses..." (we're testing a page and not the entire site)
  • Remove redundant debugStrings like this:

screen shot 2017-02-01 at 9 40 06 am

  • Removes categories from the audit names. Reduces visual clutter.

Before:

screen shot 2017-02-01 at 11 16 27 am

Now:

screen shot 2017-02-01 at 11 08 02 am

screen shot 2017-02-01 at 11 07 53 am

@ebidel ebidel requested a review from paulirish February 1, 2017 19:17
@@ -153,9 +153,9 @@ <h2 class="config-section__title">Blocked URL Patterns</h2>
<li class="subitem {{#if subItem.comingSoon}}--coming-soon{{/if}} {{#if (shouldShowHelpText subItem.score)}}--show-help{{/if}}">

<p class="subitem__desc">
{{#unless ../../scored }}
<!--{{#unless ../../scored }}
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I left this in for now in case we want to bring it back some day. Also left the category in each audit.

Copy link
Member

Choose a reason for hiding this comment

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

leaving category in is fine, I'm sure #1463 will have something to say about it anyways, but I'd say just delete this. We definitely don't want.

@ebidel
Copy link
Contributor Author

ebidel commented Feb 1, 2017

cc @kaycebasques

@ebidel ebidel added the report label Feb 1, 2017
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.

Big improvement. I personally find the word choice a lot clearer in correspondence between ✘/✓ and audit description and avoiding double negatives, but it would be good to get everyone else's opinion on the change.

@@ -57,7 +57,7 @@ class ManifestDisplay extends Audit {
rawValue: hasRecommendedValue,
displayValue
};
if (!hasRecommendedValue) {
if (manifest && !hasRecommendedValue) {
Copy link
Member

Choose a reason for hiding this comment

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

I can't see this in your screenshot, but don't we want to keep this check so that if there wasn't a manifest it won't display Manifest display property should be set?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This new check will only show the "Manifest display property should be set" debug string if there is a manifest and the display property is missing. Here's what it looks like when a manifest is missing:

screen shot 2017-02-01 at 12 17 31 pm

Copy link
Member

Choose a reason for hiding this comment

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

oh, my brain is broken. Somehow I thought the diff was the reverse.

@@ -42,8 +42,7 @@ class ManifestIconsMin144 extends Audit {

if (icons.doExist(manifest) === false) {
return ManifestIconsMin144.generateAuditResult({
rawValue: false,
debugString: 'WARNING: No icons found in the manifest'
rawValue: false
Copy link
Member

Choose a reason for hiding this comment

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

maybe remove the giant WARNING from the debugString below while you're fixing these?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done

@@ -45,8 +45,7 @@ class ManifestIconsMin192 extends Audit {

if (icons.doExist(manifest) === false) {
return ManifestIconsMin192.generateAuditResult({
rawValue: false,
debugString: 'WARNING: No icons found in the manifest'
rawValue: false
Copy link
Member

Choose a reason for hiding this comment

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

same thing with WARNING below

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done

helpText: 'Remove unused rules from stylesheets to reduce unnecessary ' +
'bytes consumed by network activity. [Learn more](https://developers.google.com/speed/docs/insights/OptimizeCSSDelivery)',
'bytes consumed by network activity. ' +
Copy link
Member

Choose a reason for hiding this comment

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

why did this line change?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

it was over 100 chars

@@ -27,7 +27,7 @@ class Viewport extends Audit {
return {
category: 'Mobile Friendly',
name: 'viewport',
description: 'HTML has a `<meta name="viewport">` tag containing `width` or `initial-scale`',
description: 'Page contains a `<meta name="viewport">` tag with `width` or `initial-scale`',
Copy link
Member

Choose a reason for hiding this comment

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

if switching from HTML to Page that means tag should become element :)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done

@@ -45,10 +45,6 @@ class Manifest extends Gatherer {
let errorString;
if (response.url) {
errorString = `Unable to retrieve manifest at ${response.url}`;
} else {
// The driver will return an empty string for url and the data if
Copy link
Member

Choose a reason for hiding this comment

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

maybe retain comment above if (response.url) {?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done

@@ -153,9 +153,9 @@ <h2 class="config-section__title">Blocked URL Patterns</h2>
<li class="subitem {{#if subItem.comingSoon}}--coming-soon{{/if}} {{#if (shouldShowHelpText subItem.score)}}--show-help{{/if}}">

<p class="subitem__desc">
{{#unless ../../scored }}
<!--{{#unless ../../scored }}
Copy link
Member

Choose a reason for hiding this comment

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

leaving category in is fine, I'm sure #1463 will have something to say about it anyways, but I'd say just delete this. We definitely don't want.

@kaycebasques
Copy link
Contributor

Well, while we're on the topic, since you removed "site", why not also remove "page"? LH always and only audits the current page, no? So using "page" implies some distinction that does not exist.

Copy link
Member

@paulirish paulirish left a comment

Choose a reason for hiding this comment

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

we're using "Avoids" instead of "Page avoids", so i'm thinking we should drop "Page" as well and go verb-first.

"Has a <viewport> with ..."
"Opens external links with rel..."
"Uses HTTP/2 for its own resources"
"Has optimized images"
"Uses passive listeners..."

wdyt?

@@ -34,7 +34,7 @@ class LinkBlockingFirstPaintAudit extends Audit {
return {
category: 'Performance',
name: 'link-blocking-first-paint',
description: 'Site does not use <link> that delay first paint',
description: 'Avoids `<link>` that delay first paint',
Copy link
Member

Choose a reason for hiding this comment

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

does this description also go through marked now?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

you got it.

@kaycebasques
Copy link
Contributor

Dropping page also cleans up a lot of unnecessary text, so that should be right up errone's alleys

@@ -33,7 +33,7 @@ class Deprecations extends Audit {
return {
category: 'Deprecations',
name: 'deprecations',
description: 'Site does not use deprecated APIs',
description: 'Avoids deprecated APIs',
Copy link
Contributor

Choose a reason for hiding this comment

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

I'm all for nixing Site, but Avoids strikes me as vaguer than Does not use. I suggest s/Avoid/Does not use/ throughout.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The complaint we've been getting (and which this PR tries to address) is that "not" in "X" Does not use.... is confusing. The "X" icon + "not" appear to folks as a double negative.

I also think there could be something better than "avoids" . Any suggestions?

Copy link
Contributor

Choose a reason for hiding this comment

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

Ah, OK. Hm... Well, we could drop the verb... E.g. Deprecated APIs. Else it might require inversing the titles... E.g. Uses Up-To-Date APIs

Copy link
Contributor

Choose a reason for hiding this comment

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

Yeah... given the constraints of the current UI, I don't see a better alternative to avoid! Although something doesn't sit well with me about it.

Rides off grumbling into the sunset

@ebidel
Copy link
Contributor Author

ebidel commented Feb 1, 2017

K. Dropped "page" from the audit's that use positive assertions in their descriptions

@@ -33,7 +33,7 @@ class ScriptBlockingFirstPaint extends Audit {
return {
category: 'Performance',
name: 'script-blocking-first-paint',
description: 'Site does not use <script> in head that delays first paint',
description: 'Avoids `<script>` in head that delay first paint',
Copy link
Collaborator

Choose a reason for hiding this comment

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

Why delay? <script> is singular or referential to the idea of script, no?

"Avoids script in head that delays first paint" or
"Avoids scripts in head that delay first paint"

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I read "Avoids <script> in head... as "Avoids scripts in head....", but I'll change it back to "Avoids <script> in head that delays first paint"

@brendankenny
Copy link
Member

maybe clean up the accessibility audits debugString generator? Could just get rid of the rule.help and the parentheses. Example:

screen shot 2017-02-01 at 16 04 04

@kaycebasques
Copy link
Contributor

The learn more after 1 element fails this test can also be removed now that the a11y audits have links to docs.

@brendankenny
Copy link
Member

Could just get rid of the rule.help and the parentheses

actually maybe the whole debugString since the rule help is contained in the audit description and the "Failed on 1 element` is contained in the extended info header below :)

@googlebot
Copy link

So there's good news and bad news.

👍 The good news is that everyone that needs to sign a CLA (the pull request submitter and all commit authors) have done so. Everything is all good there.

😕 The bad news is that it appears that one or more commits were authored by someone other than the pull request submitter. We need to confirm that they're okay with their commits being contributed to this project. Please have them confirm that here in the pull request.

Note to project maintainer: This is a terminal state, meaning the cla/google commit status will not change from this state. It's up to you to confirm consent of the commit author(s) and merge this pull request when appropriate.

Copy link
Member

@paulirish paulirish left a comment

Choose a reason for hiding this comment

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

these edits are so good. thanks!

@paulirish paulirish merged commit a10f6e0 into master Feb 2, 2017
@paulirish paulirish deleted the lingo branch February 2, 2017 18:26
@ebidel
Copy link
Contributor Author

ebidel commented Feb 2, 2017

I'll do the a11y cleanup in another pr

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants