This repository has been archived on 2026-04-03. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
core/src/css/admin-surfaces.css
Jeffrey Smith c470037fb5
Some checks failed
CI/CD / detect-changes (push) Successful in 23s
CI/CD / test-sqlite (push) Failing after 20s
CI/CD / test-frontend (push) Failing after 21s
CI/CD / test-go-pg (push) Failing after 38s
CI/CD / build-and-deploy (push) Has been skipped
rebrand + purge orphaned frontend: Chat Switchboard → Switchboard Core
Branding: bulk rename across 50+ files (Go, JS, CSS, HTML, YAML, JSON,
shell scripts). Fix Helm chart description and git repo URLs.
Fix test helper taglines.

Admin surface: strip 14 gutted tabs (providers, models, personas,
roles, knowledge, memory, tasks, health, routing, capabilities,
channels, dashboard, usage, stats). Collapse to 4 categories:
People, Workflows, System, Monitoring.

Settings surface: strip 11 gutted tabs (models, personas, providers,
roles, knowledge, memory, usage, workflows, tasks, data, gitkeys).
Keep: general, appearance, profile, teams, connections, notifications.

Team-admin surface: strip 5 gutted tabs (personas, providers,
knowledge, tasks, usage). Keep: members, groups, connections,
workflows, settings, activity.

Components: delete chat-pane/ (13 files, 1938 lines) and
notes-pane/ (10 files, 2381 lines).

main.go: remove stale Health.Prune maintenance goroutine.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-26 10:28:09 +00:00

202 lines
4.2 KiB
CSS

/* ==========================================
Switchboard Core — Admin Surfaces
==========================================
v0.25.0: Surface lifecycle management UI.
========================================== */
.admin-surface-list {
display: flex;
flex-direction: column;
gap: 1px;
background: var(--border, #2a2a2e);
border: 1px solid var(--border, #2a2a2e);
border-radius: 8px;
overflow: hidden;
}
.admin-surface-row {
display: flex;
align-items: center;
justify-content: space-between;
gap: 12px;
padding: 14px 16px;
background: var(--bg-secondary, #151517);
}
.admin-surface-row:hover {
background: var(--bg-hover);
}
.admin-surface-info {
flex: 1;
min-width: 0;
}
.admin-surface-title {
display: flex;
align-items: center;
gap: 8px;
margin-bottom: 4px;
}
.admin-surface-name {
font-size: 14px;
font-weight: 600;
color: var(--text, #eee);
}
.admin-surface-badge {
font-size: 10px;
font-weight: 600;
padding: 2px 6px;
border-radius: 4px;
text-transform: uppercase;
letter-spacing: 0.3px;
}
.admin-surface-badge--core {
background: var(--accent-dim, rgba(179, 138, 78, 0.15));
color: var(--accent, #b38a4e);
}
.admin-surface-badge--extension {
background: var(--purple-dim, rgba(160, 120, 255, 0.1));
color: var(--purple, #a078ff);
}
.admin-surface-badge--required {
background: var(--bg-raised, #2a2a2e);
color: var(--text-3, #555);
}
.admin-surface-meta {
display: flex;
align-items: center;
gap: 12px;
font-size: 12px;
color: var(--text-3, #555);
}
.admin-surface-id {
font-family: var(--mono, 'SF Mono', monospace);
font-size: 11px;
}
.admin-surface-route {
font-family: var(--mono, 'SF Mono', monospace);
font-size: 11px;
color: var(--text-3, #555);
}
.admin-surface-actions {
display: flex;
align-items: center;
gap: 12px;
flex-shrink: 0;
}
/* Toggle switch */
.admin-surface-toggle {
display: flex;
align-items: center;
gap: 8px;
cursor: pointer;
user-select: none;
}
.admin-surface-toggle--locked {
opacity: 0.5;
cursor: not-allowed;
}
.admin-surface-toggle input[type="checkbox"] {
width: 36px;
height: 20px;
appearance: none;
-webkit-appearance: none;
background: var(--bg-raised, #2a2a2e);
border-radius: 10px;
position: relative;
cursor: pointer;
transition: background 0.2s;
flex-shrink: 0;
}
.admin-surface-toggle input[type="checkbox"]:checked {
background: var(--accent, #b38a4e);
}
.admin-surface-toggle input[type="checkbox"]::after {
content: '';
position: absolute;
top: 2px;
left: 2px;
width: 16px;
height: 16px;
background: #fff;
border-radius: 50%;
transition: transform 0.2s;
}
.admin-surface-toggle input[type="checkbox"]:checked::after {
transform: translateX(16px);
}
.admin-surface-toggle input[type="checkbox"]:disabled {
cursor: not-allowed;
}
.admin-surface-toggle-label {
font-size: 12px;
color: var(--text-2, #999);
min-width: 56px;
}
/* ── Admin Dashboard (v0.33.0) ───────────── */
.dashboard-provider-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
gap: 12px;
}
.dashboard-provider-card {
background: var(--bg-surface, #1a1a1d);
border: 1px solid var(--border, #2a2a2e);
border-radius: 8px;
padding: 12px 14px;
}
.dashboard-db-pool {
background: var(--bg-surface, #1a1a1d);
border: 1px solid var(--border, #2a2a2e);
border-radius: 8px;
padding: 14px;
}
.dashboard-pool-bar {
height: 8px;
background: var(--bg-raised, #2a2a2e);
border-radius: 4px;
overflow: hidden;
}
.dashboard-pool-fill {
height: 100%;
background: var(--accent, #b38a4e);
border-radius: 4px;
transition: width 0.3s ease;
}
.dashboard-errors {
display: flex;
flex-direction: column;
gap: 1px;
background: var(--border, #2a2a2e);
border: 1px solid var(--border, #2a2a2e);
border-radius: 8px;
overflow: hidden;
}
.dashboard-error-row {
display: flex;
align-items: center;
gap: 12px;
padding: 8px 12px;
background: var(--bg-secondary, #151517);
font-size: 12px;
}