Skip to content

fix(ui): shorten completed work duration label - #190256

Merged
roboclaw-bot merged 2 commits into
mainfrom
openclaw/dawn-crab-4
Nov 1, 2026
Merged

roboclaw-bot merged 2 commits into
mainfrom
openclaw/dawn-crab-4

Conversation

@roboclaw-bot

Copy link
Copy Markdown
Collaborator

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

WorkGroupSummary now formats its duration with the existing formatDurationCompact helper instead of formatDurationLong. That changes the label to Worked for 4m 9s, which was also the format before #164430. The locale-aware narrow units still come from Intl.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:

Before After
Before: Worked for 4 minutes, 9 seconds After: Worked for 4m 9s

Evidence

  • Unit/browser tests: chat-activity-disclosure, chat-transcript-duration, chat-transcript-render, chat-pane-session-events, browser-tab-card. 5 files, 129 tests passed.
  • Control UI e2e: chat-cold-load-anchor, chat-run-lifecycle. 2 files, 17 tests passed.
  • Screenshots came from a throwaway mocked-Gateway e2e. The before image was taken with the label formatter temporarily restored to main.
  • Docs: docs/web/control-ui.md examples updated to the compact format.
  • git diff --check clean.

Worked on by

roboclaw-bot and others added 2 commits November 1, 2026 10:57
Worked on by:
- @vyctorbrzezowski

Co-authored-by: vyctorbrzezowski <[email protected]>
OpenClaw-Publication: d04a20b3-a8b4-4520-a3e3-bae05d91e344
@clawsweeper

clawsweeper Bot commented Nov 1, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation app: web-ui App: web-ui size: XS labels Nov 1, 2026
@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Nov 1, 2026
@roboclaw-bot
roboclaw-bot merged commit d98b307 into main Nov 1, 2026
88 checks passed
@roboclaw-bot
roboclaw-bot deleted the openclaw/dawn-crab-4 branch November 1, 2026 11:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

app: web-ui App: web-ui clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. docs Improvements or additions to documentation size: XS

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant