From b39014ef47b5c2793e4121bb05dbc5889f283916 Mon Sep 17 00:00:00 2001 From: Jason Staack Date: Sat, 21 Mar 2026 11:49:37 -0500 Subject: [PATCH] refactor(ui): migrate all components to Warm Precision token names Co-Authored-By: Claude Opus 4.6 (1M context) --- .../src/components/about/AnsiNfoModal.tsx | 2 +- .../src/components/alerts/AlertRulesPage.tsx | 6 ++--- frontend/src/components/alerts/AlertsPage.tsx | 8 +++---- .../src/components/audit/AuditLogTable.tsx | 14 ++++++------ .../components/auth/EmergencyKitDialog.tsx | 4 ++-- .../src/components/auth/SrpUpgradeDialog.tsx | 2 +- .../certificates/BulkDeployDialog.tsx | 2 +- .../components/certificates/CAStatusCard.tsx | 4 ++-- .../command-palette/CommandPalette.tsx | 4 ++-- .../config-editor/CommandExecutor.tsx | 2 +- .../config-editor/ConfigEditorPage.tsx | 2 +- .../components/config-editor/EntryForm.tsx | 2 +- .../components/config-editor/EntryTable.tsx | 6 ++--- .../src/components/config-editor/MenuTree.tsx | 2 +- .../components/config/AddressListPanel.tsx | 2 +- .../src/components/config/AddressPanel.tsx | 2 +- frontend/src/components/config/ArpPanel.tsx | 6 ++--- .../components/config/BandwidthTestTool.tsx | 8 +++---- .../components/config/BatchConfigPanel.tsx | 12 +++++----- .../src/components/config/BridgePortPanel.tsx | 16 +++++++------- .../src/components/config/BridgeVlanPanel.tsx | 8 +++---- .../components/config/ConfigDiffViewer.tsx | 4 ++-- .../config/ConfigHistorySection.tsx | 2 +- frontend/src/components/config/ConfigTab.tsx | 6 ++--- .../src/components/config/ConnTrackPanel.tsx | 6 ++--- .../src/components/config/DhcpClientPanel.tsx | 2 +- frontend/src/components/config/DhcpPanel.tsx | 12 +++++----- frontend/src/components/config/DiffViewer.tsx | 2 +- frontend/src/components/config/DnsPanel.tsx | 4 ++-- .../src/components/config/FirewallPanel.tsx | 4 ++-- .../src/components/config/InterfacesPanel.tsx | 22 +++++++++---------- frontend/src/components/config/IpsecPanel.tsx | 14 ++++++------ .../src/components/config/ManglePanel.tsx | 4 ++-- frontend/src/components/config/PingTool.tsx | 6 ++--- frontend/src/components/config/PoolPanel.tsx | 2 +- frontend/src/components/config/PppPanel.tsx | 10 ++++----- .../src/components/config/RestorePreview.tsx | 4 ++-- .../src/components/config/RoutesPanel.tsx | 6 ++--- .../src/components/config/ScriptsPanel.tsx | 8 +++---- .../src/components/config/ServicesPanel.tsx | 4 ++-- frontend/src/components/config/SnmpPanel.tsx | 12 +++++----- .../components/config/SwitchPortManager.tsx | 8 +++---- .../src/components/config/SystemPanel.tsx | 14 ++++++------ frontend/src/components/config/TorchTool.tsx | 8 +++---- .../src/components/config/TracerouteTool.tsx | 6 ++--- frontend/src/components/config/UsersPanel.tsx | 4 ++-- .../src/components/dashboard/AlertSummary.tsx | 2 +- .../components/dashboard/BandwidthChart.tsx | 4 ++-- .../components/dashboard/EventsTimeline.tsx | 4 ++-- .../src/components/dashboard/HealthScore.tsx | 2 +- .../src/components/dashboard/QuickActions.tsx | 2 +- .../components/dashboard/WirelessIssues.tsx | 2 +- .../src/components/firmware/FirmwarePage.tsx | 8 +++---- .../firmware/UpgradeProgressModal.tsx | 2 +- .../src/components/fleet/AdoptionWizard.tsx | 16 +++++++------- .../src/components/fleet/FleetDashboard.tsx | 2 +- frontend/src/components/fleet/FleetTable.tsx | 2 +- .../src/components/fleet/ScanResultsList.tsx | 6 ++--- frontend/src/components/layout/Sidebar.tsx | 2 +- .../maintenance/MaintenanceList.tsx | 4 ++-- frontend/src/components/map/MapPage.tsx | 2 +- .../src/components/monitoring/HealthChart.tsx | 2 +- .../src/components/monitoring/HealthTab.tsx | 12 +++++----- .../components/monitoring/InterfacesTab.tsx | 6 ++--- .../monitoring/TimeRangeSelector.tsx | 4 ++-- .../components/monitoring/TrafficChart.tsx | 2 +- .../src/components/monitoring/WirelessTab.tsx | 6 ++--- .../src/components/network/ClientsTab.tsx | 2 +- .../components/network/InterfaceGauges.tsx | 6 ++--- frontend/src/components/network/LogsTab.tsx | 2 +- .../src/components/network/TopologyMap.tsx | 8 +++---- frontend/src/components/network/VpnTab.tsx | 6 ++--- .../operations/BulkCommandWizard.tsx | 12 +++++----- .../src/components/reports/ReportsPage.tsx | 8 +++---- .../src/components/settings/ApiKeysPage.tsx | 6 ++--- .../src/components/settings/SettingsPage.tsx | 16 +++++++------- frontend/src/components/setup/SetupWizard.tsx | 2 +- .../simple-config/SimpleFormSection.tsx | 2 +- .../simple-config/SimpleStatusBanner.tsx | 2 +- .../simple-config/categories/LanDhcpPanel.tsx | 2 +- .../categories/WifiSimplePanel.tsx | 2 +- .../src/components/sites/SiteHealthGrid.tsx | 6 ++--- .../src/components/sites/SiteSectorView.tsx | 4 ++-- .../templates/PushProgressPanel.tsx | 2 +- .../components/templates/TemplateEditor.tsx | 6 ++--- .../templates/TemplatePushWizard.tsx | 8 +++---- .../components/templates/TemplatesPage.tsx | 4 ++-- .../src/components/tenants/TenantList.tsx | 4 ++-- .../transparency/TransparencyLogTable.tsx | 18 +++++++-------- frontend/src/components/ui/button.tsx | 4 ++-- frontend/src/components/ui/card.tsx | 2 +- frontend/src/components/ui/dialog.tsx | 2 +- frontend/src/components/ui/dropdown-menu.tsx | 4 ++-- frontend/src/components/ui/popover.tsx | 2 +- frontend/src/components/ui/select.tsx | 2 +- frontend/src/components/ui/skeleton.tsx | 2 +- frontend/src/components/ui/tabs.tsx | 2 +- frontend/src/components/ui/toast.tsx | 2 +- frontend/src/components/users/UserList.tsx | 4 ++-- frontend/src/components/vpn/VpnPage.tsx | 4 ++-- .../src/components/wireless/RFStatsCard.tsx | 2 +- frontend/src/routes/_authenticated/about.tsx | 8 +++---- frontend/src/routes/_authenticated/audit.tsx | 4 ++-- .../routes/_authenticated/batch-config.tsx | 4 ++-- .../routes/_authenticated/bulk-commands.tsx | 2 +- .../src/routes/_authenticated/maintenance.tsx | 2 +- .../src/routes/_authenticated/reports.tsx | 4 ++-- .../_authenticated/settings.api-keys.tsx | 4 ++-- .../tenants/$tenantId/devices/$deviceId.tsx | 18 +++++++-------- .../tenants/$tenantId/index.tsx | 6 ++--- .../tenants/$tenantId/sites/$siteId.tsx | 10 ++++----- .../src/routes/_authenticated/topology.tsx | 2 +- .../src/routes/_authenticated/traffic.tsx | 14 ++++++------ .../routes/_authenticated/transparency.tsx | 4 ++-- .../src/routes/_authenticated/wireless.tsx | 14 ++++++------ frontend/src/routes/forgot-password.tsx | 2 +- frontend/src/routes/login.tsx | 2 +- frontend/src/routes/reset-password.tsx | 4 ++-- 118 files changed, 322 insertions(+), 322 deletions(-) diff --git a/frontend/src/components/about/AnsiNfoModal.tsx b/frontend/src/components/about/AnsiNfoModal.tsx index 13c2e78..d3e1bd0 100644 --- a/frontend/src/components/about/AnsiNfoModal.tsx +++ b/frontend/src/components/about/AnsiNfoModal.tsx @@ -146,7 +146,7 @@ export function AnsiNfoModal({ open, onOpenChange }: AnsiNfoModalProps) { }} > {/* Retro title bar */} -
+
TOD.NFO — ACiD View v1.0 diff --git a/frontend/src/components/alerts/AlertRulesPage.tsx b/frontend/src/components/alerts/AlertRulesPage.tsx index de9ed5d..39f3a35 100644 --- a/frontend/src/components/alerts/AlertRulesPage.tsx +++ b/frontend/src/components/alerts/AlertRulesPage.tsx @@ -698,7 +698,7 @@ export function AlertRulesPage() { No alert rules configured.

) : ( -
+
{/* Header */}
Name @@ -710,7 +710,7 @@ export function AlertRulesPage() { {rules.map((rule) => (
@@ -809,7 +809,7 @@ export function AlertRulesPage() { {channels.map((ch) => (
diff --git a/frontend/src/components/alerts/AlertsPage.tsx b/frontend/src/components/alerts/AlertsPage.tsx index 657efb5..dece3e7 100644 --- a/frontend/src/components/alerts/AlertsPage.tsx +++ b/frontend/src/components/alerts/AlertsPage.tsx @@ -89,7 +89,7 @@ function AlertRow({ alert.silenced_until && new Date(alert.silenced_until) > new Date() return ( -
+
@@ -271,7 +271,7 @@ export function AlertsPage() { description="All clear! No alerts have been triggered." /> ) : ( -
+
{alerts.map((alert) => ( ) : ( -
+
{/* Table header */}
@@ -315,7 +315,7 @@ export function AlertsPage() { {alerts.map((alert) => (
diff --git a/frontend/src/components/audit/AuditLogTable.tsx b/frontend/src/components/audit/AuditLogTable.tsx index 0a813fc..223b214 100644 --- a/frontend/src/components/audit/AuditLogTable.tsx +++ b/frontend/src/components/audit/AuditLogTable.tsx @@ -143,7 +143,7 @@ export function AuditLogTable({ tenantId }: AuditLogTableProps) { value={actionFilter} onChange={(e) => { setActionFilter(e.target.value); setPage(1) }} aria-label="Filter by action" - className="h-8 rounded-md border border-border bg-surface px-2 text-xs text-text-primary focus:outline-none focus:ring-1 focus:ring-accent" + className="h-8 rounded-md border border-border bg-panel px-2 text-xs text-text-primary focus:outline-none focus:ring-1 focus:ring-accent" > {ACTION_TYPES.map((a) => (
@@ -172,7 +172,7 @@ export function AuditLogTable({ tenantId }: AuditLogTableProps) { value={dateTo} onChange={(e) => { setDateTo(e.target.value); setPage(1) }} aria-label="Filter to date" - className="h-8 rounded-md border border-border bg-surface px-2 text-xs text-text-primary focus:outline-none focus:ring-1 focus:ring-accent" + className="h-8 rounded-md border border-border bg-panel px-2 text-xs text-text-primary focus:outline-none focus:ring-1 focus:ring-accent" />
@@ -185,7 +185,7 @@ export function AuditLogTable({ tenantId }: AuditLogTableProps) { value={userSearch} onChange={(e) => setUserSearch(e.target.value)} aria-label="Filter by user" - className="h-8 rounded-md border border-border bg-surface pl-7 pr-2 text-xs text-text-primary placeholder:text-text-muted focus:outline-none focus:ring-1 focus:ring-accent w-40" + className="h-8 rounded-md border border-border bg-panel pl-7 pr-2 text-xs text-text-primary placeholder:text-text-muted focus:outline-none focus:ring-1 focus:ring-accent w-40" />
@@ -196,7 +196,7 @@ export function AuditLogTable({ tenantId }: AuditLogTableProps) {
{/* Table */} -
+
{isLoading ? (
@@ -278,7 +278,7 @@ export function AuditLogTable({ tenantId }: AuditLogTableProps) { setPage(1) }} aria-label="Rows per page" - className="h-7 rounded border border-border bg-surface px-1.5 text-xs text-text-primary focus:outline-none focus:ring-1 focus:ring-accent" + className="h-7 rounded border border-border bg-panel px-1.5 text-xs text-text-primary focus:outline-none focus:ring-1 focus:ring-accent" > {PER_PAGE_OPTIONS.map((n) => (