-
-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
fix(replay): CLS score is not in ms #77397
Conversation
description: tct('[value][ms] (Good)', { | ||
value: frame.data.value.toFixed(2), | ||
ms: frame.description === 'cumulative-layout-shift' ? '' : 'ms', | ||
}), |
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.
This could perhaps be [unit]
and have a function that returns a unit based on the frame description, but realistically only CLS will be non-ms
value: frame.data.value.toFixed(2), | ||
ms: frame.description === 'cumulative-layout-shift' ? '' : 'ms', |
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.
small nit: could move this into a constant to avoid having to type this ternary out 3 times
❌ 1 Tests Failed:
View the top 1 failed tests by shortest run time
To view individual test run time comparison to the main branch, go to the Test Analytics Dashboard |
If the web vital is CLS, don't include `ms`. CLS is the only web vital in replays that isn't measured in milliseconds. Relates to #69881
If the web vital is CLS, don't include
ms
. CLS is the only web vital in replays that isn't measured in milliseconds.Relates to #69881