-
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
Lighthouse Report Style Refresh #926
Merged
Merged
Changes from all commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
7206622
Refresh Lighthouse report
chowse 3b84bbe
Fixed bug: technology sections visible by default
chowse 22d1646
Fixed eslint errors
chowse b24908e
* Added debug string field to report
chowse c226478
* eslint fixes
chowse 9cbb0e3
Rewrote 'and' Handlebar helper to remove spread operator
chowse 08bdd0d
Fixed speedline spacing
chowse 7aae333
eslint fix
chowse ab2088b
Removed stylesheet comment from report.html
chowse ad53532
Removed feature/technology toggle
chowse File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,15 @@ | ||
<style> | ||
.axe-violation { | ||
color: #D0021B; | ||
} | ||
|
||
.axe-violation__help { | ||
color: #76B530; | ||
} | ||
|
||
.axe-violation__help-minor, | ||
.axe-violation__help-moderate { | ||
color: #F5A623; | ||
} | ||
|
||
.axe-violation__help-serious, | ||
.axe-violation__help--critical { | ||
color: #D0021B; | ||
} | ||
</style> | ||
<div class="axe-violation"> | ||
<details> | ||
<summary> | ||
<a class="axe-violation__help--{{ this.impact }}" href="{{ this.helpUrl }}" target="_blank">{{ this.help }}</a> | ||
</summary> | ||
<ul> | ||
{{#each this.nodes}} | ||
<li><code>{{ this.target }}</code></li> | ||
{{/each}} | ||
</ul> | ||
</details> | ||
</div> | ||
<details class="subitem__details"> | ||
<summary class="subitem__detail"> | ||
{{#if (gt this.nodes.length 1)}} | ||
{{this.nodes.length}} elements fail this test | ||
{{else}} | ||
{{this.nodes.length}} element fails this test | ||
{{/if}} | ||
<a href="{{ this.helpUrl }}" target="_blank"><small>learn more</small></a> | ||
</summary> | ||
<ul class="subitem__details"> | ||
{{#each this.nodes}} | ||
<li class="subitem__detail"><code>{{ this.target }}</code></li> | ||
{{/each}} | ||
</ul> | ||
</details> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1,27 @@ | ||
<style> | ||
.http-resources { | ||
font-size: 14px; | ||
} | ||
.http-resource__url { | ||
margin-right: 8px; | ||
} | ||
.http-resource__protocol, | ||
.http-resource__code { | ||
color: #999; | ||
color: var(--secondary-text-color); | ||
} | ||
.http-resource__code { | ||
text-overflow: ellipsis; | ||
overflow: hidden; | ||
} | ||
</style> | ||
|
||
<div> | ||
<details class="http-resources"> | ||
<summary>URLs</summary> | ||
{{#each this}} | ||
<div class="http-resource"> | ||
<span class="http-resource__url">{{this.url}}</span> | ||
{{#if this.label}} | ||
<span class="http-resource__protocol">({{this.label}})</span> | ||
{{/if}} | ||
{{#if this.code}} | ||
<pre class="http-resource__code">{{this.code}}</pre> | ||
{{/if}} | ||
</div> | ||
{{/each}} | ||
</details> | ||
</div> | ||
<details class="subitem__details"> | ||
<summary class="subitem__detail">URLs</summary> | ||
<ul class="subitem__details"> | ||
{{#each this}} | ||
<li class="subitem__detail http-resource"> | ||
<span class="http-resource__url">{{this.url}}</span> | ||
{{#if this.label}} | ||
<span class="http-resource__protocol">({{this.label}})</span> | ||
{{/if}} | ||
{{#if this.code}} | ||
<pre class="http-resource__code">{{this.code}}</pre> | ||
{{/if}} | ||
</li> | ||
{{/each}} | ||
</ul> | ||
</details> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,17 @@ | ||
<style> | ||
.ut-measures { | ||
font-size: 14px | ||
} | ||
|
||
.ut-measure_listing-duration { | ||
font-weight: bold | ||
} | ||
</style> | ||
|
||
<div> | ||
<div class="ut-measures"> | ||
{{#each this}} | ||
<div> | ||
{{#if this.isMark}} | ||
<span class="ut-measure_listing-duration">Mark: {{ decimal this.startTime }}ms</span> - {{ this.name }} | ||
{{else}} | ||
<span class="ut-measure_listing-duration">Measure {{ decimal this.duration }}ms</span> - {{ this.name }} | ||
{{/if}} | ||
</div> | ||
{{/each}} | ||
</div> | ||
</div> | ||
<ul class="subitem__details"> | ||
{{#each this}} | ||
<li class="subitem__detail"> | ||
{{#if this.isMark}} | ||
<strong class="ut-measure_listing-duration">Mark: {{ decimal this.startTime }}ms</strong> - {{ this.name }} | ||
{{else}} | ||
<strong class="ut-measure_listing-duration">Measure {{ decimal this.duration }}ms</strong> - {{ this.name }} | ||
{{/if}} | ||
</li> | ||
{{/each}} | ||
</ul> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
something is up with the indentation of code snippets:
before:
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.
I need a test case to reproduce this. Where can I see some examples with the old flexbox?
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.
Start a server in
lighthouse/lighthouse-cli/test/fixtures/dobetterweb
and run: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.
I suppose you could also use a jsbin: http://jsbin.com/ruzanisodu
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.
Can reproduce, but can't identify the cause. The extra leading space is within the string (extendedInfo.value.code). That extra space doesn't appear in the original page, though. I tracked it through StyleHelper.getFormattedStyleRule, which doesn't appear to add any extra whitespace. I didn't change the element or the styling applied to that element directly. No Handlebars helpers are being applied to the string. I'm at a loss to what's causing this.
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.
No worries. Thanks for investigating. I can look into this later.
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.
Is this a blocker on the PR? @paulirish
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.
nope not a blocker.
eric can you give this a green check? :)