You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Replace edit system modal with system detail page (#322) (#324)
* feat: replace edit system modal with system detail page (#322)
Add routed system detail page at /systems/:fismasystemid with read-only
and edit modes using card-based layout. System name column in table is
now a clickable link, admin edit icon navigates to detail page. Create
mode remains in existing modal. Upgrade @cmsgov/design-system to v13.
* fix: match read/edit layouts, resolve decommissioned_by name, fix refresh
- Align edit view layout to match read view (System Status card above
Organization, Contacts card standalone)
- Show Active/Decommissioned chip in System Identity header for both views
- Resolve decommissioned_by UUID to human-readable name in both read and
edit modes, not just edit mode
- Fix user API response path (res.data.data.fullname) in both
SystemDetailPage and EditSystemModal
- Set decommissioned_by name immediately from userInfo after decommission
action instead of waiting for separate API roundtrip
- Add retry fetch for individual system on page refresh when system is
decommissioned and not in default active-only list
- Add bottom margin for spacing before footer
* fix: address code review findings from codex reviewer
- Add cancellation cleanup to retry fetch effect to prevent memory leak
on unmount
- Remove stale closure comparison in decommissionedByName effect
- Add NaN guard for invalid systemId URL parameter
- Fix UTC date validation: use setUTCHours for consistent timezone
comparison
- Extract shared getTodayISO, truncateNotes, MAX_NOTES_LENGTH to
src/utils/decommission.ts (DRY)
- Replace magic number 500/100 with named constants
- Standardize error handling in handleSave to match handleDecommission
(add 403, 404 checks)
- Fix breadcrumb underscore replacement to handle all occurrences and
numeric segments
* style: apply prettier formatting
* fix: upgrade axios 1.12.0 to 1.13.5 to fix prototype pollution vulnerability
0 commit comments