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
JavaScript ai-agentsdashboarddeveloper-toolsdigital-twinquantified-selfsecond-brainself-hostedtailscale
feat([issue-1924-goals]): remap goals/ off-token colors onto port-* tokens
[._.]/ Adam Eivy0cfa825b9ad5
diff --git a/.changelog/NEXT.md b/.changelog/NEXT.mdindex 99bd1d096f..74bed25e37 100644--- a/.changelog/NEXT.md+++ b/.changelog/NEXT.md@@ -65,6 +65,7 @@- **[issue-1924] Digital Twin theme consistency** — remapped off-token colors across the Digital Twin UI (overview, identity, enrichment, taste, testing, goals, and the rest of its tabs) onto the existing `--port-*` theme tokens, so status badges, score gradients, and AI-content highlights now follow the active theme instead of staying a fixed hue. Per-platform/per-category color palettes that intentionally differentiate unrelated items (e.g. social-account platform badges, test-category badges) were left as-is. (#1924)- **[issue-1909] `cos/TerminalCoSPanel.jsx` foreground+background re-themed together** — the panel's background had been intentionally left pinned to a fixed dark hex because the inner content hardcoded light text and status colors, so swapping the background alone onto the (lighter, in day themes) `--port-terminal-bg` token would have rendered light-on-light. The background now uses that token and the inner text uses opacity tiers of the paired `--port-terminal-text` token — blending foreground into background keeps contrast correct whether the active theme's terminal surface is dark or light — while the traffic-light dots, status indicators, log levels, and start/stop buttons move onto the existing `port-success`/`port-warning`/`port-error`/`port-accent` tokens. Refs #1909 — the remainder of the ~900-site sweep stays tracked there.- **[issue-1924] Chief of Staff panel theme consistency** — remapped off-token colors across the Chief of Staff dashboard (task list, agent cards, memory/learning/productivity/health/digest tabs, schedule editor, terminal event log) onto the existing `--port-*` theme tokens, so status badges, metric highlights, and AI-content accents now follow the active theme instead of staying a fixed blue/green/cyan/purple. Fixed 7-hue category-color palettes that intentionally differentiate unrelated categories — the per-agent-state mood colors (`AGENT_STATES`), the memory-type badge palette (`MEMORY_TYPE_COLORS`), and the workflow-stage palette (`STAGE_COLORS`) — were deliberately left as raw hues; collapsing them onto the ~4-5 available semantic tokens would make several of those categories render identically. Also documented (not yet fixed) a known contrast gap: the mood-color enum's amber "thinking" state is hard to read against light day themes in the 2 consumers with a theme-aware background; a full per-theme fix is blocked because most consumers feed the color straight into three.js material props, which can't resolve CSS custom properties. Refs #1909, Refs #1924 — remaining feature areas (`meatspace/` remainder, `city/`, `ui/`, `goals/`, `brain/`, `apps/`, `pipeline/`, `messages/`, `agents/`, `writers-room/`, `wiki/`, `settings/`, `gsd/`, `voice/`, and the rest of `client/src/pages/`) stay tracked there.+- **[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.## UX & Accessibilitydiff --git a/client/src/components/goals/GoalDetailPanel.jsx b/client/src/components/goals/GoalDetailPanel.jsxindex 50a4c44b28..ce4f6a7499 100644--- a/client/src/components/goals/GoalDetailPanel.jsx+++ b/client/src/components/goals/GoalDetailPanel.jsx@@ -25,7 +25,7 @@ const urgencyColor = (u) => {if (u == null) return 'text-gray-500';if (u >= 0.7) return 'text-red-400';if (u >= 0.4) return 'text-yellow-400';- return 'text-green-400';+ return 'text-port-success';};// The goal itself is yours — title, horizon, category are all stated outright.@@ -279,7 +279,7 @@ export default function GoalDetailPanel({ goal, allGoals, onClose, onRefresh }){goal.status === 'active' && (<buttononClick={s.handleComplete}- className="flex items-center gap-1 px-3 py-1.5 text-xs rounded bg-green-500/20 text-green-400 hover:bg-green-500/30"+ className="flex items-center gap-1 px-3 py-1.5 text-xs rounded bg-port-success/20 text-port-success hover:bg-port-success/30"><Check className="w-3 h-3" />Completediff --git a/client/src/components/goals/GoalMilestones.jsx b/client/src/components/goals/GoalMilestones.jsxindex 42dee74714..58e9d806cb 100644--- a/client/src/components/goals/GoalMilestones.jsx+++ b/client/src/components/goals/GoalMilestones.jsx@@ -22,7 +22,7 @@ export default function GoalMilestones({onClick={() => !ms.completedAt && handleCompleteMilestone(ms.id)}className={`w-4 h-4 rounded border flex items-center justify-center shrink-0 ${ms.completedAt- ? 'bg-green-500/20 border-green-500 text-green-400'+ ? 'bg-port-success/20 border-port-success text-port-success': 'border-gray-600 hover:border-port-accent'}`}>@@ -48,7 +48,7 @@ export default function GoalMilestones({onClick={() => handleCompleteMilestoneTask?.(ms.id, task.id)}className={`w-3.5 h-3.5 rounded border flex items-center justify-center shrink-0 ${done- ? 'bg-green-500/20 border-green-500 text-green-400'+ ? 'bg-port-success/20 border-port-success text-port-success': 'border-gray-600 hover:border-port-accent'}`}>diff --git a/client/src/components/goals/GoalPlanSection.jsx b/client/src/components/goals/GoalPlanSection.jsxindex 8349dce60a..d9465cbf87 100644--- a/client/src/components/goals/GoalPlanSection.jsx+++ b/client/src/components/goals/GoalPlanSection.jsx@@ -139,7 +139,7 @@ export default function GoalPlanSection({<buttononClick={handleDecompose}disabled={decomposing}- className="w-full px-3 py-1.5 text-xs rounded bg-purple-500/20 text-purple-300 disabled:opacity-50 flex items-center justify-center gap-1"+ className="w-full px-3 py-1.5 text-xs rounded bg-port-accent-2/20 text-port-accent-2 disabled:opacity-50 flex items-center justify-center gap-1"><ListChecks className="w-3 h-3" />{decomposing ? 'Decomposing...' : 'Decompose into Tasks'}@@ -263,7 +263,7 @@ export default function GoalPlanSection({<buttononClick={handleSchedule}disabled={schedulingBusy}- className="w-full px-3 py-1.5 text-xs rounded bg-green-500/20 text-green-400 disabled:opacity-50 flex items-center justify-center gap-1"+ className="w-full px-3 py-1.5 text-xs rounded bg-port-success/20 text-port-success disabled:opacity-50 flex items-center justify-center gap-1"><CalendarPlus className="w-3 h-3" />{schedulingBusy ? 'Scheduling...' : 'Schedule Time Blocks'}diff --git a/client/src/components/goals/GoalTodoList.jsx b/client/src/components/goals/GoalTodoList.jsxindex 34ac7964aa..f1c9005a27 100644--- a/client/src/components/goals/GoalTodoList.jsx+++ b/client/src/components/goals/GoalTodoList.jsx@@ -25,7 +25,7 @@ export default function GoalTodoList({onClick={() => handleToggleTodo(todo)}className={`w-4 h-4 rounded border flex items-center justify-center shrink-0 ${todo.status === 'done'- ? 'bg-green-500/20 border-green-500 text-green-400'+ ? 'bg-port-success/20 border-port-success text-port-success': todo.status === 'in-progress'? 'bg-port-accent/20 border-port-accent text-port-accent': 'border-gray-600 hover:border-port-accent'diff --git a/client/src/components/goals/GoalsListView.jsx b/client/src/components/goals/GoalsListView.jsxindex e8a8b7968c..8049c5c02b 100644--- a/client/src/components/goals/GoalsListView.jsx+++ b/client/src/components/goals/GoalsListView.jsx@@ -14,7 +14,7 @@ import { enabledApiProviderFilter } from '../../utils/providers';function urgencyIndicator(urgency) {if (urgency == null) return null;- const color = urgency >= 0.7 ? 'bg-red-400' : urgency >= 0.4 ? 'bg-yellow-400' : 'bg-green-400';+ const color = urgency >= 0.7 ? 'bg-red-400' : urgency >= 0.4 ? 'bg-yellow-400' : 'bg-port-success';return <div className={`w-2 h-2 rounded-full ${color}`} title={`${Math.round(urgency * 100)}% urgency`} />;}diff --git a/client/src/components/goals/ProgressSlider.jsx b/client/src/components/goals/ProgressSlider.jsxindex 2bf9e5d4dd..d171ef24a5 100644--- a/client/src/components/goals/ProgressSlider.jsx+++ b/client/src/components/goals/ProgressSlider.jsx@@ -35,7 +35,7 @@ export default function ProgressSlider({ goal, onCommit }) {{goal.velocity && (<div className="flex items-center gap-2 mt-1.5 text-xs text-gray-500"><div className="flex items-center gap-1">- {goal.velocity.trend === 'increasing' && <TrendingUp className="w-3 h-3 text-green-400" />}+ {goal.velocity.trend === 'increasing' && <TrendingUp className="w-3 h-3 text-port-success" />}{goal.velocity.trend === 'decreasing' && <TrendingDown className="w-3 h-3 text-red-400" />}{goal.velocity.trend === 'stable' && <Minus className="w-3 h-3 text-gray-400" />}<span>{goal.velocity.percentPerMonth}%/mo</span>