fix(audit): harden audit log with summary fixes, design compliance, and test coverage (#561)

* fix(audit): harden audit log with summary fixes, design compliance, and test coverage

Replace stale /compose/* route summaries with current /stacks/* patterns,
add ~30 missing route summaries for container ops, labels, fleet updates,
SSO, templates, and auto-update. Fix X-Forwarded-For extracting full
proxy chain instead of first client IP. Pre-sort pattern table at module
load for O(1) lookup instead of sorting per request.

Add Calendar and DatePicker UI components (react-day-picker v9 + date-fns)
replacing browser-native date inputs. Align AuditLogView with design system:
Combobox instead of Select, design token colors, strokeWidth 1.5, card bevel,
tabular-nums on all numeric cells.

Add diagnostic logging gated behind developer mode for audit middleware,
query, and export endpoints. Extract getAuditSummary to testable utility.
Add 32 tests covering summary resolution, DB round-trips, API permissions,
export formats, and middleware integration.

* fix(audit): use correct Chevron prop types for react-day-picker compatibility
This commit is contained in:
Anso
2026-04-13 15:38:33 -04:00
committed by GitHub
parent 397b684eab
commit 6daa7a135d
11 changed files with 853 additions and 138 deletions
+2
View File
@@ -38,12 +38,14 @@
"clsx": "^2.1.1",
"cmdk": "^1.1.1",
"cronstrue": "^3.14.0",
"date-fns": "^4.1.0",
"geist": "^1.7.0",
"lucide-react": "^1.8.0",
"monaco-editor": "^0.55.1",
"motion": "^12.38.0",
"radix-ui": "^1.4.3",
"react": "^19.2.5",
"react-day-picker": "^9.14.0",
"react-dom": "^19.2.5",
"react-is": "^19.2.5",
"react-use-measure": "^2.1.7",