Repository navigation
fix(ui): shorten completed work duration label - #190256
Merged
Merged
Conversation
Co-authored-by: vyctorbrzezowski <[email protected]>
Worked on by: - @vyctorbrzezowski Co-authored-by: vyctorbrzezowski <[email protected]> OpenClaw-Publication: d04a20b3-a8b4-4520-a3e3-bae05d91e344
Contributor
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
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.
Problem
The collapsed completed-work heading in Control UI chat spells out durations in full, e.g. Worked for 4 minutes, 9 seconds. On phones it takes up a lot of the line, and it's harder to scan than the other compact metadata around it. Vyctor asked for a shorter label.
Solution
WorkGroupSummarynow formats its duration with the existingformatDurationCompacthelper instead offormatDurationLong. That changes the label to Worked for 4m 9s, which was also the format before #164430. The locale-aware narrow units still come fromIntl.NumberFormat, and the Worked fallback with no duration is unchanged.Scope is limited to the "Worked for …" disclosure. The separate turn recap row (Done in …) still uses the long format; it can follow in a separate change if wanted.
Before / after
Synthetic session, 390px-wide viewport, run duration 249 s:
Evidence
chat-activity-disclosure,chat-transcript-duration,chat-transcript-render,chat-pane-session-events,browser-tab-card. 5 files, 129 tests passed.chat-cold-load-anchor,chat-run-lifecycle. 2 files, 17 tests passed.main.docs/web/control-ui.mdexamples updated to the compact format.git diff --checkclean.Worked on by