-
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(psi): remove redundant varience disclaimer #6110
Conversation
estValuesEl.textContent = Util.UIStrings.varianceDisclaimer; | ||
|
||
// 'Values are estimated and may vary' is used as the category description for PSI | ||
if (environment !== 'PSI') { |
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 being covered by tsc right now? :)
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.
@patrickhulce whatcha mean
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.
meaning is the magic string 'PSI'
being checked to make sure we're using it correctly vs. psi
, typo PS1
etc
Would it make more sense to have it removed from the category descriptor so that it is more consistent across environments? |
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.
cool beans 👍
though I'd also wonder why not hide it with CSS on PSI side since we've got a clear classname for it :)
@exterkamp perhaps. but in this case it's a little different. for LS, we have field data at the top and this disclaimer doesnt apply. and then we have the category description that says "hi all this lab data is from lighthouse. it's different data so here's the disclaimer." whereas in typical LH, we dont have a category description right now. but when we add one, it could make sense to move this disclaimer there. @patrickhulce sure yeah. we could but so far we've avoided hiding with CSS and building the DOM how we want to use it. |
Right now, "Values are estimated and may vary" is shown twice in the PSI case.