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

Timer value #2313

Merged
merged 2 commits into from
Sep 6, 2024
Merged

Timer value #2313

merged 2 commits into from
Sep 6, 2024

Conversation

Alex-Tideman
Copy link
Contributor

@Alex-Tideman Alex-Tideman commented Sep 6, 2024

Description & motivation 💭

Timer values get super long when including milliseconds. We show values like 1 month, 3 days, 18 hours, 28 minutes, 3 seconds, 829.3312342 milliseconds. That is too much accuracy for a large duration.

This PR changes the behavior to the following:

  • full milliseconds including decimals if duration is under one second (871.123138 milliseconds)
  • Whole milliseconds if duration is under one minute (18 seconds, 392 milliseconds)
  • No milliseconds if duration is over one minute (8 minutes, 38 seconds)

Unit tests are updated and added to

Screenshots (if applicable) 📸

Screenshot 2024-09-06 at 10 10 45 AM

Design Considerations 🎨

Testing 🧪

How was this tested 👻

  • Manual testing
  • E2E tests added
  • Unit tests added

Steps for others to test: 🚶🏽‍♂️🚶🏽‍♀️

Checklists

Draft Checklist

Merge Checklist

Issue(s) closed

Docs

Any docs updates needed?

Copy link

vercel bot commented Sep 6, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
holocene ✅ Ready (Inspect) Visit Preview 💬 Add feedback Sep 6, 2024 3:18pm

@Alex-Tideman Alex-Tideman merged commit 6f842c2 into main Sep 6, 2024
14 checks passed
@Alex-Tideman Alex-Tideman deleted the timer-value branch September 6, 2024 15:55
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