gsxdsm
|
f20c37471d
|
FN-5881: guard project status badges against unknown states
Prevent Projects view status rendering from crashing on unknown or missing project states.
- add fallback status config helpers to ProjectCard, ProjectHealthBadge, and ProjectSelector
- format unknown status strings into readable labels and default missing values to Unknown
- add regression tests for unknown and missing statuses across project dashboard components
- document graceful degradation for transient registry or health status mismatches
Files changed:
docs/multi-project.md | 1 +
packages/dashboard/app/components/ProjectCard.tsx | 36 ++++++++++++++++-
.../app/components/ProjectHealthBadge.tsx | 36 ++++++++++++++++-
.../dashboard/app/components/ProjectSelector.tsx | 15 ++++++-
.../app/components/__tests__/ProjectCard.test.tsx | 31 +++++++++++++-
.../__tests__/ProjectHealthBadge.test.tsx | 47 ++++++++++++++++++++++
.../components/__tests__/ProjectSelector.test.tsx | 24 ++++++++++-
7 files changed, 182 insertions(+), 8 deletions(-)
Fusion-Task-Id: FN-5881
Fusion-Task-Lineage: 55a9df6f-3fcb-46e8-9e83-3494312b4c24
|
2026-06-02 08:49:25 -07:00 |
|