Skip to content

feat: add last-updated relative timestamp to TreasuryOverview Header [fj4WqyCCw3C5ShR1RfB7MoBPTpkRrBFYP1uT35g3MvT] - #1352

Open
waterWang wants to merge 1 commit into
Fluxora-Org:mainfrom
waterWang:feat/treasury-header-last-updated-1274
Open

feat: add last-updated relative timestamp to TreasuryOverview Header [fj4WqyCCw3C5ShR1RfB7MoBPTpkRrBFYP1uT35g3MvT]#1352
waterWang wants to merge 1 commit into
Fluxora-Org:mainfrom
waterWang:feat/treasury-header-last-updated-1274

Conversation

@waterWang

Copy link
Copy Markdown

Closes #1274

Changes

  • Added lastUpdatedAt prop to Header component
  • Displays relative timestamp (e.g. "Last updated 2m ago") next to the subtitle
  • Updates every 60 seconds to keep the display fresh between polls
  • Falls back to "Never updated" before the first successful poll
  • Uses --color-text-muted design token for styling
  • aria-live="polite" for accessibility

Tests

  • 10 tests for the Header component (7 new for last-updated feature)
  • Covers: never updated, just now, seconds, minutes, hours, and aria-live

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.

Add a "Last updated Xs ago" relative timestamp caption to src/components/treasuryOverviewPage/Header.tsx that refreshes on each metrics poll

1 participant