From c455fe4ed5953ac2f86a4ffd6936dcb2769038c0 Mon Sep 17 00:00:00 2001 From: Jason Staack Date: Mon, 16 Mar 2026 19:00:36 -0500 Subject: [PATCH] feat(ui): sweep remaining components for Deep Space consistency Replace old design tokens and hardcoded colors across 29 files: - bg-primary/text-primary-foreground -> bg-accent/text-white - text-muted-foreground -> text-text-muted - text-destructive/bg-destructive -> text-error/bg-error - bg-muted -> bg-elevated (background usage) - Hardcoded green/red/yellow/emerald/amber/slate -> semantic tokens - Remove shadow-md/lg from cards, tooltips, topology nodes - rounded-xl -> rounded-lg on cards/panels - focus:ring-1 focus:ring-ring -> focus:border-accent on inputs Co-Authored-By: Claude Opus 4.6 (1M context) --- .../src/components/alerts/AlertRulesPage.tsx | 6 ++-- .../components/auth/EmergencyKitDialog.tsx | 2 +- .../components/auth/PasswordStrengthMeter.tsx | 12 ++++---- .../certificates/BulkDeployDialog.tsx | 10 +++---- .../components/certificates/CAStatusCard.tsx | 14 +++++----- .../certificates/DeployCertDialog.tsx | 4 +-- .../certificates/DeviceCertTable.tsx | 6 ++-- .../src/components/config/BackupTimeline.tsx | 2 +- .../config/ConfigHistorySection.tsx | 4 +-- frontend/src/components/config/DiffViewer.tsx | 2 +- .../src/components/config/RestorePreview.tsx | 28 +++++++++---------- .../src/components/config/RollbackAlert.tsx | 6 ++-- .../components/fleet/RemoteWinBoxButton.tsx | 16 +++++------ frontend/src/components/fleet/SSHTerminal.tsx | 8 +++--- .../src/components/fleet/WinBoxButton.tsx | 8 +++--- .../src/components/layout/ContextStrip.tsx | 4 +-- frontend/src/components/layout/Sidebar.tsx | 2 +- .../maintenance/MaintenanceForm.tsx | 2 +- .../src/components/monitoring/HealthChart.tsx | 2 +- .../components/monitoring/TrafficChart.tsx | 2 +- .../src/components/network/TopologyMap.tsx | 8 +++--- .../src/components/reports/ReportsPage.tsx | 2 +- .../src/components/settings/ApiKeysPage.tsx | 4 +-- .../src/components/settings/SettingsPage.tsx | 10 +++---- frontend/src/components/setup/SetupWizard.tsx | 2 +- frontend/src/components/vpn/VpnPage.tsx | 18 ++++++------ .../tenants/$tenantId/devices/$deviceId.tsx | 2 +- .../src/routes/_authenticated/traffic.tsx | 18 ++++++------ .../src/routes/_authenticated/wireless.tsx | 10 +++---- 29 files changed, 107 insertions(+), 107 deletions(-) diff --git a/frontend/src/components/alerts/AlertRulesPage.tsx b/frontend/src/components/alerts/AlertRulesPage.tsx index 53759b5..de9ed5d 100644 --- a/frontend/src/components/alerts/AlertRulesPage.tsx +++ b/frontend/src/components/alerts/AlertRulesPage.tsx @@ -461,7 +461,7 @@ function ChannelFormDialog({ setName(e.target.value)} @@ -300,7 +300,7 @@ export function ApiKeysPage({ tenantId }: ApiKeysPageProps) { setExpiresAt(e.target.value)} min={new Date().toISOString().split('T')[0]} diff --git a/frontend/src/components/settings/SettingsPage.tsx b/frontend/src/components/settings/SettingsPage.tsx index 003f83d..bc55a4a 100644 --- a/frontend/src/components/settings/SettingsPage.tsx +++ b/frontend/src/components/settings/SettingsPage.tsx @@ -215,13 +215,13 @@ export function SettingsPage() { {/* Delete Account */}
- Delete Account + Delete Account

Permanently delete your account and all personal data

diff --git a/frontend/src/routes/_authenticated/tenants/$tenantId/devices/$deviceId.tsx b/frontend/src/routes/_authenticated/tenants/$tenantId/devices/$deviceId.tsx index 35cd87e..934762e 100644 --- a/frontend/src/routes/_authenticated/tenants/$tenantId/devices/$deviceId.tsx +++ b/frontend/src/routes/_authenticated/tenants/$tenantId/devices/$deviceId.tsx @@ -672,7 +672,7 @@ function DeviceDetailPage() { {/* Interface Utilization */}
-

Interface Utilization

+

Interface Utilization

diff --git a/frontend/src/routes/_authenticated/traffic.tsx b/frontend/src/routes/_authenticated/traffic.tsx index 5994d72..dfaadba 100644 --- a/frontend/src/routes/_authenticated/traffic.tsx +++ b/frontend/src/routes/_authenticated/traffic.tsx @@ -13,25 +13,25 @@ export const Route = createFileRoute('/_authenticated/traffic')({ function cpuColor(cpu: number | null): string { if (cpu === null) return 'text-text-muted' - if (cpu < 50) return 'text-emerald-400' - if (cpu < 80) return 'text-yellow-400' - return 'text-red-400' + if (cpu < 50) return 'text-success' + if (cpu < 80) return 'text-warning' + return 'text-error' } function memColor(mem: number | null): string { if (mem === null) return 'text-text-muted' - if (mem < 60) return 'text-emerald-400' - if (mem < 85) return 'text-yellow-400' - return 'text-red-400' + if (mem < 60) return 'text-success' + if (mem < 85) return 'text-warning' + return 'text-error' } function statusDot(status: string) { const color = status === 'online' - ? 'bg-emerald-400 shadow-[0_0_6px_rgba(52,211,153,0.6)]' + ? 'bg-success' : status === 'degraded' - ? 'bg-yellow-400 shadow-[0_0_6px_rgba(250,204,21,0.6)]' - : 'bg-red-400 shadow-[0_0_6px_rgba(248,113,113,0.6)]' + ? 'bg-warning' + : 'bg-error' return } diff --git a/frontend/src/routes/_authenticated/wireless.tsx b/frontend/src/routes/_authenticated/wireless.tsx index 6c48d1c..f672a2f 100644 --- a/frontend/src/routes/_authenticated/wireless.tsx +++ b/frontend/src/routes/_authenticated/wireless.tsx @@ -13,9 +13,9 @@ export const Route = createFileRoute('/_authenticated/wireless')({ function signalColor(signal: number | null): string { if (signal === null) return 'text-text-muted' - if (signal > -60) return 'text-emerald-400' - if (signal > -70) return 'text-yellow-400' - return 'text-red-400' + if (signal > -60) return 'text-success' + if (signal > -70) return 'text-warning' + return 'text-error' } function WirelessPage() { @@ -105,7 +105,7 @@ function WirelessPage() { ) : issues.length === 0 ? ( - +

All Clear — no wireless issues detected

@@ -153,7 +153,7 @@ function WirelessPage() { >
- + {issue.hostname}