Detail: Standardize date display around Last carrier update and short absolute dates #31
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?
Problem
The Shipment Detail page uses two different date formats simultaneously:
The mix reads as a bug and creates a jarring inconsistency within a single page.
Implementation
File:
frontend/src/pages/ShipmentDetail.tsx—EventRowcomponent around line 127.The
occurred_atfield in events is an ISO date string. Apply the samerelativeTime()utility already used everywhere else, but fall back to absolute for dates older than 7 days:Update
relativeTimeinfrontend/src/lib/utils.ts(or create asmartDatewrapper) to handle this:In
EventRow:Apply
smartDateconsistently to all date fields in the detail page.Acceptance criteria
Brand identity alignment
Date display is part of Trackbox's transparency promise. The UI should distinguish recent operational freshness from older historical events without mixing formats arbitrarily.
Brand-compliant implementation notes
Last carrier update/Last synclabels where relevant.Additional acceptance criteria
Migrated from GitHub issue #10: https://github.com/bullitt186/trackbox/issues/10
Original author: @bullitt186
Original created: 2026-06-27T13:23:29Z
Original labels: ux
Detail: Fix date format inconsistency — Event History uses absolute dates, metadata uses relativeto Detail: Standardize date display around Last carrier update and short absolute datesImplemented in commit
bd6b0e7. AddedsmartDate()utility inlib/utils.ts: dates under 7 days show relative format viarelativeTime(), dates 7+ days old show a short absolute format (e.g. '16 Jun 2026'). Applied in ShipmentDetail's EventRow, metadata fields (First Seen, Last carrier update, Last sync), and scrape log timestamps. Recent events stay operationally fresh; historical events become auditable dates.