feat(web): add <TimestampLabel> shared atom to unify timestamp rendering #1161
Labels
No labels
area:agents
area:dashboard
area:database
area:design
area:design-review
area:flows
area:infra
area:meta
area:security
area:sessions
area:webhook
area:workdir
security
type:bug
type:chore
type:meta
type:user-story
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
charles/agent-hooks#1161
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
As a dashboard operator, I want all agent timestamps to display in a consistent format, so that I can compare events across the event log, task list, history drawer, and transcript without mentally converting between formats.
Acceptance criteria
Component
<TimestampLabel ts={number} />inapps/web/src/components/timestamp-label.tsxHH:MM:SS(local time)showRelativeprop appends relative suffix on hover (e.g. "14:23:01 · 3m ago")Adoption
fmtTime()call inevent-log.tsxevent rowstask-list.tsxrowsrun-header-meters.tsxheadersession-scrubber.tsxroster/instance-history-drawer.tsxQuality
fmtTime()inlib/format.tskept (non-React callers); component wraps itjust qapassesOut of scope
fmtTime()format logicReferences