Skip to content

Self-hosted, Self-Improving, Federated Everything App — dev management, agent orchestration, persistent mind, digital twin, second brain, and creative pipeline from a single dashboard over Tailscale to port the user into the OS

fix(issue-1924-city): remap genuine off-token colors in city/ HUD components

[._.]/ Adam Eivy2281aed5a05a
diff --git a/.changelog/NEXT.md b/.changelog/NEXT.md
index 8f522ddb92..ce5dfc3254 100644
--- a/.changelog/NEXT.md
+++ b/.changelog/NEXT.md
@@ -69,6 +69,7 @@
- **[issue-1924-ui] Shared UI primitives theme consistency** — remapped off-token colors in `client/src/components/ui/`: the diff renderers (`diffRuns.jsx`, `InlineDiff.jsx`, `SideBySideDiff.jsx`, `HunkDiff.jsx`) now highlight removed/added text with `--port-error`/`--port-success` instead of fixed red/green, and the shared `Toast.jsx` success/error/warning toast colors move onto `--port-success`/`--port-error`/`--port-warning`. Every site in this slice was a binary or tri-state semantic (removed vs. added, success vs. error vs. warning) rather than a category-color enum, so nothing needed to be left alone. Refs #1924.
- **[issue-1924-goals] Goals theme consistency** — remapped off-token colors across the Goals UI (todo/milestone checkboxes, the plan section's decompose/schedule actions, the list view's urgency dot, the detail panel's urgency text and complete button, and the progress slider's trend icon) onto the existing `--port-*` theme tokens, so completed-state and secondary-action colors now follow the active theme instead of staying a fixed green/purple. The category, goal-type, and check-in-status color enums in `goalConstants.js`, and `GoalsTreeView.jsx`'s apex/sub-apex/edge-type 3D-scene legend, intentionally differentiate categories rather than express theme drift and were left as-is. Refs #1924.
- **[issue-1924-brain] Brain UI theme consistency** — remapped off-token colors across the Brain memory, digest, config, links, and inbox tabs onto the existing `--port-*` theme tokens: the GitHub-repo clone lifecycle badges now follow `port-warning`/`port-accent`/`port-success`/`port-error`, and the recurring "secondary AI feature" purple (Send-to-Catalog actions, the Weekly Review section, and Creative capture mode) now follows `port-accent-2`, so these surfaces stay theme-consistent instead of a fixed yellow/blue/green/red/purple. The category-color enums in `constants.js` (destination, project/idea/admin status, and confidence-tier palettes) and `links/bucketColors.js` (bucket color presets) intentionally differentiate unrelated categories and were left as-is, along with the link-type badge palette and the "corrected" inbox-status blue that already carries a distinct meaning from success/warning/error. Refs #1924.
+- **[issue-1924-city] CyberCity HUD theme consistency (minimal, lower-priority slice)** — `city/` is mostly already covered by the `.cybercity-themed` CSS safety net (`client/src/index.css`), which neutralizes off-token cyan/gray/black classes app-wide and was intentionally left alone as CyberCity's cyberpunk visual identity. The few genuine gaps fixed here: `CityIntelPane.jsx`'s severity/log-level color maps (`SEVERITY_COLORS`, `LEVEL_COLORS`, `LEVEL_INDICATORS`, `DENSITY_BAR_COLORS`, the "ALL CLEAR" message, and the critical-count badge) and `CityHud.jsx`'s `getHealthSentinel`/`metricColor` threshold functions and connection-status dot duplicated the exact same system-health data `SystemHealthWidget.jsx` already renders with `port-error`/`port-warning`/`port-success` — these now match. `CitySettingsPanel.jsx`'s "RESET DEFAULTS" button now uses `port-error` like other destructive actions app-wide (was raw red). Two amber notice messages in `CityPlaybackOverlay.jsx` (load-failure and "live data" notices) now use `port-warning`. Left alone as intentional CyberCity identity: the pervasive cyan HUD glow (already safety-netted), per-category stat colors (NODES=violet, TASKS=purple, STREAK=orange), `HolographicPanel.jsx`'s 5-state building-status glow (cyan/red/violet/gray — a deliberate 3D holographic palette distinct from the flat `StatusBadge` convention), and `CityXpBadge.jsx`'s amber level-up celebration flash and red/rose HP gradient (game-aesthetic, not a success/warning/error semantic). Refs #1924.
## UX & Accessibility
diff --git a/client/src/components/city/CityHud.jsx b/client/src/components/city/CityHud.jsx
index 44384bc18a..4b1737fbf9 100644
--- a/client/src/components/city/CityHud.jsx
+++ b/client/src/components/city/CityHud.jsx
@@ -60,18 +60,18 @@ const formatUptime = (seconds) => {
};
const getHealthSentinel = (systemHealth, onlineRatio) => {
- if (systemHealth?.overallHealth === 'critical') return { dot: 'bg-red-400', text: 'text-red-400', label: 'CRITICAL' };
- if (systemHealth?.overallHealth === 'warning') return { dot: 'bg-amber-400', text: 'text-amber-400', label: 'WARN' };
- if (systemHealth?.overallHealth === 'healthy') return { dot: 'bg-emerald-400', text: 'text-emerald-400', label: 'OK' };
+ if (systemHealth?.overallHealth === 'critical') return { dot: 'bg-port-error', text: 'text-port-error', label: 'CRITICAL' };
+ if (systemHealth?.overallHealth === 'warning') return { dot: 'bg-port-warning', text: 'text-port-warning', label: 'WARN' };
+ if (systemHealth?.overallHealth === 'healthy') return { dot: 'bg-port-success', text: 'text-port-success', label: 'OK' };
if (onlineRatio >= 0.8) return { dot: 'bg-cyan-400', text: 'text-cyan-400', label: 'OK' };
- if (onlineRatio >= 0.5) return { dot: 'bg-amber-400', text: 'text-amber-400', label: 'WARN' };
- return { dot: 'bg-red-400', text: 'text-red-400', label: 'CRIT' };
+ if (onlineRatio >= 0.5) return { dot: 'bg-port-warning', text: 'text-port-warning', label: 'WARN' };
+ return { dot: 'bg-port-error', text: 'text-port-error', label: 'CRIT' };
};
const metricColor = (pct) => {
if (pct == null) return 'text-gray-500';
- if (pct >= 90) return 'text-red-400';
- if (pct >= 75) return 'text-amber-400';
+ if (pct >= 90) return 'text-port-error';
+ if (pct >= 75) return 'text-port-warning';
return 'text-cyan-400';
};
@@ -349,8 +349,8 @@ export default function CityHud({ cosStatus, cosAgents, agentMap, eventLogs, con
<HudCorner position="br" />
<div className="flex items-center gap-2">
- <span className={`w-2.5 h-2.5 rounded-full ${connected ? 'bg-emerald-400 shadow-[0_0_8px_rgba(34,197,94,0.6)]' : 'bg-red-400 shadow-[0_0_8px_rgba(239,68,68,0.6)] animate-pulse'}`} />
- <span className={`font-pixel text-[11px] tracking-wide ${connected ? 'text-gray-300' : 'text-red-400'}`}>
+ <span className={`w-2.5 h-2.5 rounded-full ${connected ? 'bg-port-success shadow-[0_0_8px_rgba(34,197,94,0.6)]' : 'bg-port-error shadow-[0_0_8px_rgba(239,68,68,0.6)] animate-pulse'}`} />
+ <span className={`font-pixel text-[11px] tracking-wide ${connected ? 'text-gray-300' : 'text-port-error'}`}>
{connected ? 'LINK' : 'OFFLINE'}
</span>
</div>
diff --git a/client/src/components/city/CityIntelPane.jsx b/client/src/components/city/CityIntelPane.jsx
index e4a18a765b..05b5c38993 100644
--- a/client/src/components/city/CityIntelPane.jsx
+++ b/client/src/components/city/CityIntelPane.jsx
@@ -5,8 +5,8 @@ import { computeActivityDensity, buildTimelineBuckets } from '../../utils/cityTi
const SEVERITY_RANK = { critical: 0, warning: 1, info: 2 };
const SEVERITY_COLORS = {
- critical: { dot: 'bg-red-400', text: 'text-red-300', border: 'border-red-500/40' },
- warning: { dot: 'bg-amber-400', text: 'text-amber-300', border: 'border-amber-500/30' },
+ critical: { dot: 'bg-port-error', text: 'text-port-error', border: 'border-port-error/40' },
+ warning: { dot: 'bg-port-warning', text: 'text-port-warning', border: 'border-port-warning/30' },
info: { dot: 'bg-cyan-400', text: 'text-cyan-300', border: 'border-cyan-500/25' },
};
@@ -124,7 +124,7 @@ function AttentionList({ items }) {
return (
<div className="flex-1 flex items-center justify-center px-3 py-6">
<div className="text-center">
- <div className="font-pixel text-[10px] text-emerald-400/70 tracking-wider mb-1">ALL CLEAR</div>
+ <div className="font-pixel text-[10px] text-port-success/70 tracking-wider mb-1">ALL CLEAR</div>
<div className="font-pixel text-[8px] text-cyan-500/30 tracking-wide">No items need attention</div>
</div>
</div>
@@ -162,17 +162,17 @@ function AttentionList({ items }) {
const LEVEL_COLORS = {
info: 'text-cyan-400',
- warn: 'text-amber-400',
- error: 'text-red-400',
- success: 'text-emerald-400',
+ warn: 'text-port-warning',
+ error: 'text-port-error',
+ success: 'text-port-success',
debug: 'text-gray-500',
};
const LEVEL_INDICATORS = {
info: 'bg-cyan-400',
- warn: 'bg-amber-400',
- error: 'bg-red-400',
- success: 'bg-emerald-400',
+ warn: 'bg-port-warning',
+ error: 'bg-port-error',
+ success: 'bg-port-success',
debug: 'bg-gray-600',
};
@@ -224,9 +224,9 @@ function ActivityLogList({ logs }) {
}
const DENSITY_BAR_COLORS = {
- error: 'bg-red-400',
- warn: 'bg-amber-400',
- success: 'bg-emerald-400',
+ error: 'bg-port-error',
+ warn: 'bg-port-warning',
+ success: 'bg-port-success',
info: 'bg-cyan-400',
debug: 'bg-gray-600',
};
@@ -361,7 +361,7 @@ export default function CityIntelPane({ apps, cosAgents, reviewCounts, instances
<span className="font-pixel text-[10px] tracking-wider font-bold">ATTENTION</span>
{items.length > 0 && (
<span className={`font-pixel text-[9px] px-1 rounded ${
- criticalCount > 0 ? 'bg-red-500/30 text-red-300' : 'bg-cyan-500/20 text-cyan-300'
+ criticalCount > 0 ? 'bg-port-error/30 text-port-error' : 'bg-cyan-500/20 text-cyan-300'
}`}>
{items.length}
</span>
diff --git a/client/src/components/city/CityPlaybackOverlay.jsx b/client/src/components/city/CityPlaybackOverlay.jsx
index 04a2f8c415..816a74f74c 100644
--- a/client/src/components/city/CityPlaybackOverlay.jsx
+++ b/client/src/components/city/CityPlaybackOverlay.jsx
@@ -64,7 +64,7 @@ export default function CityPlaybackOverlay({
)}
{!loading && error && (
- <div className="font-pixel text-[10px] text-amber-400/80 tracking-wider text-center pb-2">
+ <div className="font-pixel text-[10px] text-port-warning/80 tracking-wider text-center pb-2">
COULDN'T LOAD HISTORY — the snapshot service didn't respond. Try again later.
</div>
)}
@@ -80,7 +80,7 @@ export default function CityPlaybackOverlay({
{/* Timestamp + live-data note */}
<div className="flex items-center justify-between font-pixel text-[10px] text-cyan-300/90 tracking-wider">
<span title={ts ? formatDateTime(ts) : ''}>{ts ? formatDateTime(ts) : '—'}</span>
- <span className="text-amber-400/80" title="Buildings, agents, health, backup, tasks & counts are historical. Memory, goals, Jira & activity show current live data.">
+ <span className="text-port-warning/80" title="Buildings, agents, health, backup, tasks & counts are historical. Memory, goals, Jira & activity show current live data.">
⚠ some districts show LIVE data
</span>
<span className="text-cyan-500/60">{ts ? timeAgo(ts) : ''}</span>
diff --git a/client/src/components/city/CitySettingsPanel.jsx b/client/src/components/city/CitySettingsPanel.jsx
index b8acf15247..df735a1d76 100644
--- a/client/src/components/city/CitySettingsPanel.jsx
+++ b/client/src/components/city/CitySettingsPanel.jsx
@@ -287,7 +287,7 @@ export default function CitySettingsPanel() {
{/* Reset */}
<button
onClick={resetSettings}
- className="w-full font-pixel text-[10px] py-2 rounded border border-red-500/30 text-red-400/60 hover:bg-red-500/10 hover:text-red-400 transition-all tracking-wider"
+ className="w-full font-pixel text-[10px] py-2 rounded border border-port-error/30 text-port-error/60 hover:bg-port-error/10 hover:text-port-error transition-all tracking-wider"
>
RESET DEFAULTS
</button>