Skip to content

Show relative timestamps in trade history - #12

Open
john-a-zoidburg wants to merge 1 commit into
XCP:mainfrom
john-a-zoidburg:feat/trade-activity-times
Open

Show relative timestamps in trade history#12
john-a-zoidburg wants to merge 1 commit into
XCP:mainfrom
john-a-zoidburg:feat/trade-activity-times

Conversation

@john-a-zoidburg

@john-a-zoidburg john-a-zoidburg commented Aug 20, 2026

Copy link
Copy Markdown

Summary

  • Show a relative age for every trade (5m ago, 3h ago, 2d ago) instead of exposing the less immediately useful block number.
  • Keep each venue/time label linked to the existing xcp.io transaction page, with the exact UTC time and block available on hover.
  • Refresh relative ages once per minute while the Trades tab is open.
  • Remove the slight desktop horizontal overflow without changing the section width or the intentional mobile scrolling behavior.

Why

Trade timestamps answer the question most visitors have—“when did this happen?”—without requiring them to interpret a block height. The Counterparty match data and launch-room payload already carry each trade's block timestamp, so this is a presentation-only change with no additional requests or backend work.

The table also had a 43rem minimum width inside a 42rem section, which guaranteed a small horizontal scrollbar on desktop. Lowering the table's minimum to 41rem lets w-full match the section while preserving horizontal scrolling on narrow screens.

Screenshots

Before — block numbers and slight horizontal overflow

Screenshot 2026-08-19 at 10 48 37 PM

After — relative trade ages and corrected width

Screenshot 2026-08-19 at 10 48 45 PM

Verification

  • npm run check — 200 tests plus web/API TypeScript, ESLint, and numeric-discipline checks
  • npm run build --workspace apps/web

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant