-
Notifications
You must be signed in to change notification settings - Fork 654
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
User experience for showing failed assertions #100
Comments
We have this problem in the diff UI too when we need to know what the unit is for a particular numeric value, I think we need to develop a shared library in utils that, given an audit result and subproperty, can return the associated unit. We can move the logic that already exists in the diff UI to a shared util and use that in the CLI as well. |
@exterkamp I think that's slightly different because all the units are available for those numbers (we just don't use them responsibly :). I added a note in GoogleChrome/lighthouse#7238 (comment) about solving that using the new |
Yeah agreed that's a slightly different problem with a different solution. Here we're talking about |
I was thinking about it in the context of "we know the context there, but we use it in different ways and bork it up and so standardizing around a different top level prop/library would be good" i.e. with Should the display value be baked into the report in a finalized form? ( I think including |
Gothcha, yeah definitely agree that |
|
In 6.0 we finally have |
Some of the users are running into an issues when failed assertion results for
resource-summary
are not transparent when comparing with budget (for example - treosh/lighthouse-ci-action#13, part of the problem is fixed via #97).E.g. I setup budget for 1KB, but actual value is ~17387 bytes.
What will be seen in console is something like this:
For better UX, I propose something like we have in LH:
Here is comparison of logs before and after the proposal:
We actually need to define:
KB
?resource-summary
, others?The text was updated successfully, but these errors were encountered: