M1: implement operational core

Demo auth, seed import/reset, dashboard, vehicle/booking list+detail, audit trail. Backend: 19 tests passing, ruff clean. Frontend: React Router shell, typed API client, responsive pages. Verified end-to-end via curl and browser.
This commit is contained in:
NuklearRabbit
2026-08-01 21:20:53 +02:00
parent 04d26f1f2e
commit 03c5b60235
47 changed files with 2518 additions and 70 deletions
+8
View File
@@ -0,0 +1,8 @@
export function SeverityBadge({ severity }: { severity: "low" | "medium" | "high" }) {
const label = severity === "high" ? "High" : severity === "medium" ? "Medium" : "Low";
return <span className={`badge severity-${severity}`}>{label} severity</span>;
}
export function StatusBadge({ status }: { status: string }) {
return <span className={`badge status-${status}`}>{status.replace(/_/g, " ")}</span>;
}