hub: unified customer page, blocked status, dashboard merge
- Replace separate config detail and report detail pages with unified
/customers/{id} page showing both config info and live report data
- Add "blocked" status for customers (hidden from dashboard, notifications
suppressed, still accepts reports)
- Dashboard now shows config-only customers as "PENDING" status
- Customers list: all rows link to /customers/{id}, show BLOCKED badge
- New actions: block/unblock, push config to controller, auto-create
config from report data
- /configs/{id} now redirects to /customers/{id}
- Add config-badge CSS classes for MANAGED/MANUAL/BLOCKED badges
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -125,6 +125,35 @@ header h1 {
|
||||
.status-badge-warn { background: rgba(250, 204, 21, 0.15); color: var(--yellow); }
|
||||
.status-badge-down, .status-badge-fail { background: rgba(248, 113, 113, 0.15); color: var(--red); }
|
||||
.status-badge-disabled { background: #475569; color: #e2e8f0; }
|
||||
.status-badge-pending { background: rgba(148, 163, 184, 0.15); color: #94a3b8; }
|
||||
.status-badge-blocked { background: rgba(248, 113, 113, 0.15); color: #f87171; }
|
||||
|
||||
/* Config badges */
|
||||
.config-badge {
|
||||
display: inline-block;
|
||||
padding: 0.15em 0.5em;
|
||||
border-radius: 4px;
|
||||
font-size: 0.75rem;
|
||||
font-weight: 600;
|
||||
letter-spacing: 0.03em;
|
||||
}
|
||||
.config-badge-managed { background: rgba(74, 222, 128, 0.15); color: #4ade80; }
|
||||
.config-badge-manual { background: #475569; color: #e2e8f0; }
|
||||
.config-badge-blocked { background: rgba(248, 113, 113, 0.2); color: #f87171; }
|
||||
|
||||
/* Blocked banner */
|
||||
.flash-blocked {
|
||||
background: rgba(248, 113, 113, 0.1);
|
||||
border: 1px solid rgba(248, 113, 113, 0.3);
|
||||
color: #fca5a5;
|
||||
padding: 0.75rem 1rem;
|
||||
border-radius: 6px;
|
||||
margin-bottom: 1rem;
|
||||
font-size: 0.9rem;
|
||||
}
|
||||
|
||||
/* Blocked row in tables */
|
||||
.row-blocked { opacity: 0.5; }
|
||||
|
||||
/* Cards */
|
||||
.card {
|
||||
|
||||
Reference in New Issue
Block a user