gsxdsm
b95e7f7575
FN-5894: share project data-boundary and status helpers
Centralize project loading and status-state handling across dashboard surfaces.
- add a reusable DataBoundary component for loading, empty, error, and loaded states
- extract shared project status config helpers for labels, colors, icons, and initializing detection
- update project overview, cards, badges, and selector UI to use the shared helpers
- add regression coverage for data-boundary behavior, project overview empty/loading transitions, and status config fallbacks
Files changed:
packages/dashboard/app/components/DataBoundary.tsx | 64 ++++++++++++++++++++++
packages/dashboard/app/components/ProjectCard.tsx | 48 ++--------------
.../app/components/ProjectHealthBadge.tsx | 45 +--------------
.../dashboard/app/components/ProjectOverview.tsx | 4 +-
.../dashboard/app/components/ProjectSelector.tsx | 27 +--------
.../app/components/__tests__/DataBoundary.test.tsx | 62 +++++++++++++++++++++
.../components/__tests__/ProjectOverview.test.tsx | 25 +++++++++
.../__tests__/ProjectThemeTokens.test.tsx | 37 ++++---------
.../utils/__tests__/projectStatusConfig.test.ts | 53 ++++++++++++++++++
.../dashboard/app/utils/projectStatusConfig.ts | 50 +++++++++++++++++
packages/dashboard/vitest.config.ts | 2 +
11 files changed, 282 insertions(+), 135 deletions(-)
Fusion-Task-Id: FN-5894
Fusion-Task-Lineage: 3626a4af-b62b-456d-82d7-cf47bbf55c21
2026-06-02 14:14:24 -07:00
..
2026-06-02 14:14:24 -07:00
2026-05-13 10:00:00 -07:00
2026-05-04 21:21:22 -07:00
2026-04-30 22:55:48 -07:00
2026-05-14 02:23:45 -07:00
2026-05-18 03:10:52 -07:00
2026-05-21 08:43:57 -07:00
2026-05-22 17:24:38 -07:00
2026-05-12 21:55:43 -07:00
2026-05-13 16:29:37 -07:00
2026-04-08 16:14:32 -07:00
2026-04-23 00:06:03 -07:00
2026-04-02 09:58:04 -07:00
2026-05-19 07:36:11 -07:00
2026-05-29 21:03:12 -07:00
2026-04-23 23:02:36 -07:00
2026-04-03 18:33:23 -07:00
2026-05-08 18:44:16 -07:00
2026-04-29 07:10:52 -07:00
2026-04-08 14:38:36 -07:00
2026-06-02 14:14:24 -07:00
2026-05-13 09:06:20 -07:00
2026-05-21 08:43:57 -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 20:27:11 -07:00
2026-05-14 05:55:16 -07:00
2026-05-19 18:56:24 -07:00
2026-05-14 05:35:12 -07:00
2026-05-13 06:29:35 -07:00
2026-04-12 07:00:49 -07:00
2026-05-15 07:50:34 -07:00
2026-04-28 22:43:51 -07:00
2026-05-29 20:05:14 -07:00
2026-04-29 07:10:52 -07:00