hyperhive/frontend/packages
Repository files (latest commit first)
Filename Latest commit message Latest commit date
iris a5ef31ed8b swarm-ui: self-updating RelativeTime component
Closes #3445.

New ui/relative-time/RelativeTime — takes a UTC epoch-ms instant, not
a precomputed age, and re-renders itself on a 1s interval so a tab
left open doesn't silently show a frozen 'fresh (5s ago)' hours
later. Pauses while the document is hidden, resyncs immediately on
becoming visible again.

StatusChip's label widened from string to ComponentChildren so a
chip can embed the live ticker (a plain string couldn't carry it).
HivesPage's freshness column now derives the age from last_seen_unix
client-side via RelativeTime instead of rendering the once-computed
age_seconds from the API response.

Verified: tsc clean, build succeeds, screenshotted the components
page (ticking observed advancing within one virtual-time-budget
window) and the hives page (fresh/stale/never-reported all render
correctly).
2026-08-18 22:12:52 +02:00
..
agent agent: drop dead .header-pill-loose CSS 2026-08-12 19:33:07 +02:00
dashboard frontend: shared ApiErrorPanel component, promote readApiError from credentials.js 2026-08-17 23:11:11 +02:00
shared frontend: fix api-error.ts's stale in-transition comment 2026-08-17 23:11:11 +02:00
swarm-ui swarm-ui: self-updating RelativeTime component 2026-08-18 22:12:52 +02:00