Repository navigation
fix(web): carry a rounded-up minute in the web editor's playhead readout - #3864
Merged
richiemcilroy merged 2 commits intoNov 6, 2026
Merged
richiemcilroy merged 2 commits into
richiemcilroy merged 2 commits into
Conversation
formatClockWithHundredths rounded the seconds after splitting off the minutes, so 59.996 s printed as 00:60.00. Round to hundredths first so the carry reaches the minutes and hours. Fixes CapSoftware#3419
Contributor
|
The latest updates on your projects. Learn more about Vercel for GitHub. 1 Skipped Deployment
|
This branch was previously deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #3419.
The web editor's playhead readout (
formatClockWithHundredthsinapps/web/lib/player-time.ts) rounded the seconds after splitting off the minutes, so a playhead within 0.005 s of a whole minute printed:60.00without carrying. It now rounds to hundredths before splitting, as #3420 did for the desktop timing cards.00:60.0001:00.0001:60.0002:00.0059:60.001:00:00.00Tests
clock-hours.test.ts, which is already in the CI test list. It fails onmainand passes with this change.main, 500 of them print a:60field. With this change none do, the output never goes backwards, and it stays within 0.005 s of the input.tscreports no errors in the changed files, and the error count elsewhere inapps/webis the same as onmain. Biome is clean.

Confidence Score: 5/5
This PR appears safe to merge.Summary
Fixes the web editor’s playhead readout by rounding to hundredths before splitting into hours, minutes, and seconds.
Reviews (1) · Last reviewed commit: "fix(web): carry a rounded-up minute in t..." · Reviewed by Greptile