Repository navigation
feat(control-ui): relative commit age + hover-only copy button on About - #111495
Conversation
… on About The About page commit row now embeds the commit's committer timestamp (commitAt, advisory like branch/dirty) and renders it as an always-relative age with the exact localized date-time on hover. The copy button becomes a compact borderless icon revealed on hover/focus only where hover exists; touch keeps it visible.
|
Codex review: needs real behavior proof before merge. Reviewed July 19, 2026, 1:55 PM ET / 17:55 UTC. Summary PR surface: Source +103, Tests +37, Other +1. Total +141 across 12 files. Reproducibility: not applicable. This PR adds a Settings → About enhancement rather than fixing a reported current-main failure. The supplied mock-dev scenario is relevant implementation proof, not bug reproduction. Review metrics: none identified. Merge readiness Overall follows the weaker of proof and patch quality, so missing proof can cap an otherwise strong patch. Rank-up moves:
Proof guidance:
Risk before merge
Maintainer options:
Next step before merge
Maintainer decision needed
Security Review detailsBest possible solution: Land the compact About-page affordance only after confirming the exact-head build preserves the nullable Git-metadata fallback and the submitted before/after/hover evidence visibly matches the resulting UI. Do we have a high-confidence way to reproduce the issue? Not applicable: this PR adds a Settings → About enhancement rather than fixing a reported current-main failure. The supplied mock-dev scenario is relevant implementation proof, not bug reproduction. Is this the best way to solve the issue? Unclear: the nullable field and no-build-failure fallback are a maintainable shape, but the final best-fit judgment depends on the Control UI owner approving the interaction and injected metadata contract. AGENTS.md: unclear because the file could not be read completely. Codex review notes: model internal, reasoning high; reviewed against 8e0c50380c10. Label changesLabel changes:
Label justifications:
Evidence reviewedPR surface: Source +103, Tests +37, Other +1. Total +141 across 12 files. View PR surface stats
What I checked:
Likely related people:
What the crustacean ranks mean
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics. How this review workflow works
|
|
Addressing the Rank-up moves before landing:
Owner approval: this change was requested by @steipete (Control UI owner) with an explicit ask to land it. |
|
Merged via squash.
|
… on About (openclaw#111495) The About page commit row now embeds the commit's committer timestamp (commitAt, advisory like branch/dirty) and renders it as an always-relative age with the exact localized date-time on hover. The copy button becomes a compact borderless icon revealed on hover/focus only where hover exists; touch keeps it visible.
… on About (openclaw#111495) The About page commit row now embeds the commit's committer timestamp (commitAt, advisory like branch/dirty) and renders it as an always-relative age with the exact localized date-time on hover. The copy button becomes a compact borderless icon revealed on hover/focus only where hover exists; touch keeps it visible.
What Problem This Solves
On Settings → About, the commit row's copy button is a full-size bordered icon button that visually dominates the commit hash, and there is no way to tell how old the running artifact's commit is without resolving the hash manually.
Why This Change Was Made
Requested by the maintainer: make the copy affordance small, borderless, and hover-revealed, and show a relative commit date ("1h ago", "3d ago") with the exact timestamp on hover.
commitAt(committer time of the exact embedded commit, read viagit show -s --format=%ct <commit>at build time). It is advisory likebranch/dirty:nullnever blocks a build (e.g.GITHUB_SHA-only builds without a checkout), and the row simply omits the age.formatRelativeTimestamphelper (always relative, matching the rest of Control UI) inside a<time>element whosetitlecarries the exact localized date+time.btn btn--iconfor a compact borderlessabout-commit__copystyle; it is hover/focus-revealed only where hover exists (@media (hover: hover) and (pointer: fine)), so touch devices keep it visible and keyboard users get it via:focus-within.User Impact
The About commit row shows
f8e35afecc67 · 3d agowith a tiny copy icon appearing on hover; hovering the age shows the exact commit timestamp. No config or API surface changes;ControlUiBuildInfogains one nullable field that normalizes tonullfor older injected payloads.Before / after (idle) / after (hover):
Evidence
node scripts/run-vitest.mjs ui/src/pages/about/view.test.ts ui/src/build-info.test.ts ui/src/app/vite-config.node.test.ts ui/src/components/sidebar-build-chip.node.test.ts— 37 tests pass, including new coverage for the age element, missing-commitAtfallback, normalizer rejection of non-UTC timestamps, and the vite resolver wiring.