06/16 Phase 6 foundation: admin blueprint, audit log, user management

Adds the admin backend foundation: AuditLog + Setting models/migration,
an admin-only dashboard with KPI cards, and user management (search,
ban/suspend/activate, tier override, trust adjust) with audit logging
on every write action. Smoke suite extended to 64 checks.
This commit is contained in:
2026-06-16 11:45:00 -04:00
parent 62b04803ad
commit 2e9025fe55
18 changed files with 680 additions and 1 deletions
+11
View File
@@ -187,3 +187,14 @@ table.list td{padding:8px 10px;border-bottom:1px solid var(--line)}
.sponsor-card:hover{box-shadow:0 2px 10px rgba(0,0,0,.08);text-decoration:none}
.sponsor-logo{max-width:140px;max-height:80px;object-fit:contain;margin-bottom:8px}
.sponsor-name-only{font-weight:700;font-size:16px;margin-bottom:8px}
/* --- Phase 6: admin --- */
.admin-nav{display:flex;gap:16px;margin-bottom:16px;border-bottom:1px solid var(--line);padding-bottom:10px}
.admin-nav a{color:var(--muted);font-weight:600}
.admin-nav a.on{color:var(--brand)}
.kpi-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:14px;margin-top:14px}
.kpi-card{padding:16px}
.kpi-label{color:var(--muted);font-size:13px;margin-bottom:6px}
.kpi-value{font-size:26px;font-weight:800}
.admin-filter-row{display:flex;gap:12px;align-items:end;margin-bottom:16px;flex-wrap:wrap}
.admin-filter-row .field{margin-bottom:0}