gsxdsm
ca14a12b94
FN-6601: consolidate relative-time bucket formatting
Consolidate dashboard relative-time calculations behind a shared bucket helper while preserving each surface's display behavior.
- Add getRelativeTimeBucket to centralize parsing, boundary math, and bucket metadata.
- Route ActivityFeed, AgentLogViewer, MissionManager, and PlanningModeModal timestamp labels through the shared helper.
- Extend unit coverage for bucket boundaries plus surface-specific just-now and future timestamp behavior.
Files changed:
packages/dashboard/app/components/ActivityFeed.tsx | 36 ++++++----
.../dashboard/app/components/AgentLogViewer.tsx | 36 ++++++----
.../dashboard/app/components/MissionManager.tsx | 32 +++++----
.../dashboard/app/components/PlanningModeModal.tsx | 35 ++++++----
.../app/components/__tests__/ActivityFeed.test.tsx | 8 +++
.../components/__tests__/AgentLogViewer.test.tsx | 8 +++
.../app/utils/__tests__/relativeTimeAgo.test.ts | 77 +++++++++++++++++++++-
packages/dashboard/app/utils/relativeTimeAgo.ts | 66 +++++++++++++++----
8 files changed, 236 insertions(+), 62 deletions(-)
Fusion-Task-Id: FN-6601
Fusion-Task-Lineage: 3521afa0-f3ce-49a4-8861-efd4f64f9a69
2026-06-17 17:57:19 -07:00
..
2026-05-13 10:00:00 -07:00
2026-05-14 02:23:45 -07:00
2026-05-18 03:10:52 -07:00
2026-05-17 19:11:59 -07:00
2026-05-13 06:29:33 -07:00
2026-05-13 16:29:37 -07:00
2026-04-24 19:39:20 -07:00
2026-04-24 19:39:20 -07:00
2026-06-09 12:51:20 -07:00
2026-06-12 19:22:11 -07:00
2026-04-24 19:39:20 -07:00
2026-04-24 19:39:20 -07:00
2026-05-08 18:44:16 -07:00
2026-06-17 16:53:29 -07:00
2026-04-29 07:35:23 -07:00
2026-06-02 14:14:24 -07:00
2026-06-09 16:02:08 -07:00
2026-06-17 17:57:19 -07:00
2026-05-20 19:58:49 -07:00
2026-05-20 20:27:11 -07:00
2026-05-07 18:35:45 -07:00
2026-05-14 18:35:30 -07:00
2026-05-20 03:19:44 -07:00
2026-05-14 05:55:16 -07:00
2026-05-19 18:56:24 -07:00
2026-05-13 06:29:35 -07:00
2026-04-24 19:39:20 -07:00
2026-05-15 07:50:34 -07:00
2026-06-17 00:06:24 -07:00
2026-04-29 02:23:09 -07:00
2026-05-29 20:05:14 -07:00
2026-04-29 07:35:23 -07:00