Skip to content

fix(web): carry a rounded-up minute in the web editor's playhead readout - #3864

Merged
richiemcilroy merged 2 commits into
CapSoftware:mainfrom
patrickballard:fix/web-clock-hundredths-rounding
Nov 6, 2026
Merged

richiemcilroy merged 2 commits into
CapSoftware:mainfrom
patrickballard:fix/web-clock-hundredths-rounding

Conversation

@patrickballard

@patrickballard patrickballard commented Nov 5, 2026 •

Copy link
Copy Markdown
Contributor

Fixes #3419.

The web editor's playhead readout (formatClockWithHundredths in apps/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.00 without carrying. It now rounds to hundredths before splitting, as #3420 did for the desktop timing cards.

Time Before After
59.996 s 00:60.00 01:00.00
119.999 s 01:60.00 02:00.00
3599.999 s 59:60.00 1:00:00.00

Tests

  • New case in clock-hours.test.ts, which is already in the CI test list. It fails on main and passes with this change.
  • Swept every millisecond from 0 to 7,300 s, about 7.3 million values, through the formatter (a local check, not committed). On main, 500 of them print a :60 field. With this change none do, the output never goes backwards, and it stays within 0.005 s of the input.
  • tsc reports no errors in the changed files, and the error count elsewhere in apps/web is the same as on main. Biome is clean.

RetriggerView in GreptileConfidence 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.

  • The editor playhead clock carries rounded seconds into the next minute.

Reviews (1) · Last reviewed commit: "fix(web): carry a rounded-up minute in t..." · Reviewed by Greptile

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
@vercel

vercel Bot commented Nov 5, 2026 •

Copy link
Copy Markdown
Contributor

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
Project Deployment Actions Updated
cap-status Skipped Skipped Nov 5, 2026 11:36pm UTC

@vercel
vercel Bot temporarily deployed to Preview – cap-status November 5, 2026 19:25 Inactive
@vercel
vercel Bot temporarily deployed to Preview – cap-status November 5, 2026 23:36 Inactive
@richiemcilroy
richiemcilroy merged commit 285cb0b into CapSoftware:main Nov 6, 2026
29 of 30 checks passed

This branch was previously deployed

1 inactive deployment
Preview – cap-status — 12bc415c Deployed Nov 5, 2026 by vercel[bot]
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.

Times that round up to the next minute print as :60 (0:60.0, 00:60.00)

2 participants