refactor(design): replace status, priority and severity color maps with StatusTag and mono tokens
Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -42,7 +42,7 @@
|
||||
- `app/layout.tsx` — Archivo replaces Geist
|
||||
- `package.json` — `lucide-react`, `check:design` script
|
||||
- `components/ui/modal.tsx`, `components/layout/sidebar.tsx`, `components/notifications/bell.tsx`, `app/(protected)/layout.tsx`
|
||||
- 10 files holding status, priority or severity color maps (listed in Task 6)
|
||||
- 11 files holding status, priority or severity color maps (listed in Task 6)
|
||||
- All remaining TSX files flagged by the gate script (Task 7)
|
||||
- `CLAUDE.md`, plus memory file `ims-design-system.md` and `MEMORY.md` index (Task 8)
|
||||
|
||||
@@ -1401,7 +1401,7 @@ Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>"
|
||||
|
||||
### Task 6: Replace scattered status, priority and severity color maps
|
||||
|
||||
**Files (10), each holds a color map to delete or replace:**
|
||||
**Files (11), each holds a color map to delete or replace:**
|
||||
- `app/(protected)/reporter/page.tsx` (`STATUS_COLORS`, used ~line 113)
|
||||
- `app/(protected)/reporter/incidents/[id]/page.tsx` (`STATUS_COLORS`, ~line 77)
|
||||
- `app/(protected)/supervisor/page.tsx` (`STATUS_COLORS`, ~line 152)
|
||||
@@ -1412,6 +1412,7 @@ Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>"
|
||||
- `components/incidents/incident-header.tsx` (`STATUS_COLORS`, ~line 48)
|
||||
- `components/capa/capa-board.tsx` (`STATUS_COLORS`, `PRIORITY_BADGE`)
|
||||
- `components/dashboard/risk-flags-panel.tsx` (`LEVEL_COLORS`)
|
||||
- `app/(protected)/hse/capa/[id]/page.tsx` (`PRIORITY_BADGE`, found during execution; the CAPA board table view also used `PRIORITY_BADGE`)
|
||||
- Test: `tests/components/incidents/incident-list.test.tsx` (existing, must keep passing)
|
||||
|
||||
**Interfaces:**
|
||||
|
||||
Reference in New Issue
Block a user