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
This commit is contained in:
@@ -106,6 +106,7 @@ Central health tracking keeps mutable project metrics, including:
|
||||
- active task counts
|
||||
- in-flight agent counts
|
||||
- project status (`initializing`, `active`, `paused`, `errored`)
|
||||
- dashboard project status badges degrade gracefully if registry or health data briefly carries an unknown or missing status value
|
||||
|
||||
## Global Concurrency Management
|
||||
|
||||
|
||||
Reference in New Issue
Block a user