Repository navigation
fix(desktop-gpui): show hours in times past an hour - #3304
Merged
richiemcilroy merged 2 commits intoOct 26, 2026
Merged
Conversation
… cards The transport clock, timeline ruler and timing cards printed minutes and seconds only, so a point 1 h 5 m 5 s into a recording read 65:05. Print H:MM:SS (H:MM:SS.s on the timing cards) from an hour on; shorter times print as before.
Contributor
|
@patrickballard is attempting to deploy a commit to the Cap Software Inc Team on Vercel. A member of the Team first needs to authorize it. |
The recording controls' timer and the clips sidebar's clip durations also counted minutes past 59, so a recording 1 h 5 m 5 s in read 65:05. Format both with the editor clock's format_time; under an hour they print as before.
richiemcilroy
approved these changes
Oct 26, 2026
richiemcilroy
left a comment
Member
There was a problem hiding this comment.
Thanks, checked the output under and over an hour and the tests pin it.
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.
Closes #3303.
The recording controls' timer and the editor's transport clock, timeline ruler, timing cards and clip durations formatted times as minutes and seconds only, ported from the Tauri app's
formatTimeandformatClipDuration, so anything past the hour mark read as a minute count: an hour-long recording's timer read65:05, the editor showed0:00 / 65:05, and the ruler labelled the hour60:00. The export dialog in the same app already shows hours (format_duration).format_timeineditor_timeline.rs, which the clock and the ruler share, now printsH:MM:SSfrom an hour on, and the recording timer (controls_window.rs) and the clips sidebar's durations (editor_clips.rs, after their existing rounding) use it too. The timing cards'format_timeineditor_panels.rsprintsH:MM:SS.s. Under an hour every one of them prints exactly what it did before.Screenshots
The editor on a synthetic 65-minute recording, seeked to 1:02:05.
The ruler draws each label in a fixed 44 px box;
1:00:30takes about 40 px, so labels below ten hours still fit.The recording controls during a sandboxed recording, from a temporary build whose timer starts 1 h 4 m 55 s ahead:
Tests
the_clock_and_ruler_show_hours_from_an_hour_onandthe_timer_shows_hours_from_an_hour_on, and new cases inthe_timing_cards_print_the_source_clockanddurations_format_like_the_source. The old formatters print60:00and65:05where these expect1:00:00and1:05:05.cargo test --release --bin cap-gpui: 1470 passed.cargo clippy --release --bin cap-gpui: no warnings in the changed files.rustfmtclean.

Confidence Score: 5/5
The PR appears safe to merge.Summary
Adds hour-aware time labels to the desktop editor.
No actionable issues found. Checks were source-only; tests and the native UI were not run.
Reviews (1) · Last reviewed commit: "fix(desktop-gpui): show hours in the edi..." · Reviewed by Greptile