Skip to content
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

feat: Add milliseconds and fractional second support to humanFriendlyDuration #25313

Merged
merged 1 commit into from
Oct 1, 2024

Conversation

robbie-c
Copy link
Collaborator

@robbie-c robbie-c commented Oct 1, 2024

Note: I need to merge the other PR first and rebase this

Problem

I wanted to be able to show 1.5s or 300ms for the LCP scores. This shouldn't change existing behaviour

Changes

If seconds are <60, optionally show decimal places with either fixed or precision

If seconds are <1, show the rounded number of ms

Does this work well for both Cloud and self-hosted?

Yes

How did you test this code?

Added some tests :)

@robbie-c robbie-c changed the base branch from master to feature/add-web-vitals-to-overview October 1, 2024 16:10
@robbie-c robbie-c changed the title WIP add P90 web vitals lcp feat: Add milliseconds and fractional second support to humanFriendlyDuration Oct 1, 2024
Copy link
Contributor

github-actions bot commented Oct 1, 2024

Size Change: 0 B

Total Size: 9.21 MB

ℹ️ View Unchanged
Filename Size
frontend/dist/toolbar.js 9.21 MB

compressed-size-action

Copy link
Member

@pauldambra pauldambra left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@robbie-c robbie-c force-pushed the feature/add-web-vitals-to-overview branch from 89b50af to 339c279 Compare October 1, 2024 17:09
Base automatically changed from feature/add-web-vitals-to-overview to master October 1, 2024 18:30
@robbie-c robbie-c force-pushed the feature/add-ms-to-human-friendly-duration branch from 845fc8d to 74552c6 Compare October 1, 2024 19:03
@robbie-c robbie-c marked this pull request as ready for review October 1, 2024 19:03
@robbie-c robbie-c enabled auto-merge (squash) October 1, 2024 19:03
@robbie-c robbie-c merged commit 38bbb90 into master Oct 1, 2024
97 checks passed
@robbie-c robbie-c deleted the feature/add-ms-to-human-friendly-duration branch October 1, 2024 19:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants