-
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
report: more attractive table/URL rendering #4190
Conversation
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.
nice! so good
do you know how this impacts cells that are in the url column but are actually other types like code? i'm thinking of the css usage audit in particular
element.appendChild(this._renderText({ | ||
text: displayedPath, | ||
})); | ||
const hostElem = this._renderText({ |
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.
does this need to be conditional on displayedHost
?
@@ -147,8 +147,15 @@ class Util { | |||
} | |||
|
|||
const MAX_LENGTH = 64; | |||
// Always elide hash | |||
// Always elide git hash |
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.
how about just hex hash
:)
// Also elide long number sequences | ||
name = name.replace(/(\d{3})\d{6,}/g, `$1${ELLIPSIS}`); | ||
// Merge any adjacent ellipses | ||
name = name.replace(/\u2026+/g, '\u2026'); |
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.
\u2026
is ellipsis right, so just pass ELLIPSIS
here like the others? :)
c66a63b
to
c54014a
Compare
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.
lgtm! 🥀 ➡️ 🌹
awaiting CI results. when green, land away. |
geez since when did "Unable to connect to Chrome" start failing 100% of the time?? |
Before and after
partial fix for #3827 but its not totally complete.