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
fix([issue-1924-misc-areas]): remap off-token colors across messages/agents/writers-room/wiki/settings/gsd/voice
[._.]/ Adam Eivyda0e7c4ee559
diff --git a/.changelog/NEXT.md b/.changelog/NEXT.mdindex 8f522ddb92..1f64961da6 100644--- a/.changelog/NEXT.md+++ b/.changelog/NEXT.md@@ -69,6 +69,8 @@- **[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-misc-areas] Theme consistency across Messages, Agents, Local LLM, GSD, and Voice** — remapped the recurring "secondary AI feature" purple (AI-reply/voice-mode toggles and "AI generated" badges in Messages, the "Find Relevant"/"Build"/"Check Posts" secondary CTAs and reply-type badge in Agents, the local-LLM playground "Chat" link, the GSD phase-verify action and Claude Code launcher, and the Voice widget's floating-agent glow + capture button) onto `port-accent-2`, and binary success/warning states (MortalLoom's iCloud file-found/not-found indicator, the Voice widget's "thinking" stage) onto `port-success`/`port-warning`. The `proseTokenizer.jsx`/`ProseTokenPopover.jsx` character/place/object token-highlight colors and the `wiki/constants.jsx` and `wiki/tabs/LogTab.jsx` per-category/per-log-type palettes intentionally differentiate unrelated categories and were left as-is, along with `LocalLlmTab.jsx`'s per-capability badge colors (chat/code/reasoning/vision/embeddings/tools/audio) and GSD's "OpenClaw" cyan tool-launcher button (paired with the now-`port-accent-2` "Claude Code" button purely to visually distinguish the two tool launchers). Refs #1924.+- **[issue-1909] Verified `cos/TerminalCoSPanel.jsx` foreground+background re-theme carried over cleanly** — the coordinated `--port-terminal-bg`/`--port-terminal-text` re-theme from #1909 (commit 8298c5706) was already on `main` before this slice branched; confirmed no light-on-light regression remains and no further changes were needed here. Refs #1909.## UX & Accessibilitydiff --git a/client/src/components/agents/tabs/OverviewTab.jsx b/client/src/components/agents/tabs/OverviewTab.jsxindex 92b4636e4b..6f9aaa6782 100644--- a/client/src/components/agents/tabs/OverviewTab.jsx+++ b/client/src/components/agents/tabs/OverviewTab.jsx@@ -485,7 +485,7 @@ export default function OverviewTab({ agentId, agent, onAgentUpdate }) {<buttononClick={handleBuild}disabled={!quickAccountId}- className="px-3 py-1.5 text-sm bg-purple-600 text-white rounded hover:bg-purple-500 disabled:opacity-50 flex items-center gap-1.5"+ className="px-3 py-1.5 text-sm bg-port-accent-2 text-white rounded hover:bg-port-accent-2/80 disabled:opacity-50 flex items-center gap-1.5"><MessageSquare size={14} />Build@@ -511,7 +511,7 @@ export default function OverviewTab({ agentId, agent, onAgentUpdate }) {<buttononClick={handleCheckPosts}disabled={checking || !quickAccountId}- className="px-3 py-1.5 text-sm bg-purple-600 text-white rounded hover:bg-purple-500 disabled:opacity-50 flex items-center gap-1.5"+ className="px-3 py-1.5 text-sm bg-port-accent-2 text-white rounded hover:bg-port-accent-2/80 disabled:opacity-50 flex items-center gap-1.5"><Eye size={14} />{checking ? 'Checking...' : 'Check Posts'}diff --git a/client/src/components/agents/tabs/PublishedTab.jsx b/client/src/components/agents/tabs/PublishedTab.jsxindex 360ca3f82f..2145f48e55 100644--- a/client/src/components/agents/tabs/PublishedTab.jsx+++ b/client/src/components/agents/tabs/PublishedTab.jsx@@ -200,7 +200,7 @@ export default function PublishedTab({ agentId }) {<td className="py-2 pr-4"><span className={`text-xs px-1.5 py-0.5 rounded ${comment.isReply- ? 'bg-purple-500/20 text-purple-400'+ ? 'bg-port-accent-2/20 text-port-accent-2': 'bg-port-accent/20 text-port-accent'}`}>{comment.isReply ? 'reply' : 'comment'}diff --git a/client/src/components/agents/tabs/ToolsTab.jsx b/client/src/components/agents/tabs/ToolsTab.jsxindex c7e5cbe67f..85e5868c72 100644--- a/client/src/components/agents/tabs/ToolsTab.jsx+++ b/client/src/components/agents/tabs/ToolsTab.jsx@@ -381,7 +381,7 @@ export default function ToolsTab({ agentId, agent }) {<buttononClick={handleFindRelevant}disabled={feedLoading}- className="px-3 py-1 text-sm bg-purple-500/20 text-purple-400 rounded hover:bg-purple-500/30 disabled:opacity-50"+ className="px-3 py-1 text-sm bg-port-accent-2/20 text-port-accent-2 rounded hover:bg-port-accent-2/30 disabled:opacity-50">Find Relevant</button>@@ -415,7 +415,7 @@ export default function ToolsTab({ agentId, agent }) {</div><div className="flex items-center gap-2 ml-2 shrink-0">{post.relevanceScore > 0 && (- <span className="text-xs px-1.5 py-0.5 rounded bg-purple-500/20 text-purple-400">+ <span className="text-xs px-1.5 py-0.5 rounded bg-port-accent-2/20 text-port-accent-2">{post.relevanceScore}</span>)}@@ -494,7 +494,7 @@ export default function ToolsTab({ agentId, agent }) {<buttononClick={handleCheckPosts}disabled={checking}- className="px-4 py-2 bg-purple-600 text-white rounded hover:bg-purple-500 disabled:opacity-50"+ className="px-4 py-2 bg-port-accent-2 text-white rounded hover:bg-port-accent-2/80 disabled:opacity-50">{checking ? 'Checking...' : 'Check Posts'}</button>diff --git a/client/src/components/agents/tabs/WorldTab.jsx b/client/src/components/agents/tabs/WorldTab.jsxindex fe8a98fc10..7223df0e5e 100644--- a/client/src/components/agents/tabs/WorldTab.jsx+++ b/client/src/components/agents/tabs/WorldTab.jsx@@ -843,7 +843,7 @@ export default function WorldTab({ agentId }) {<buttononClick={() => handleExplore(true)}disabled={moving}- className="px-4 py-2 bg-purple-600 text-white rounded hover:bg-purple-500 disabled:opacity-50"+ className="px-4 py-2 bg-port-accent-2 text-white rounded hover:bg-port-accent-2/80 disabled:opacity-50">{moving ? 'Exploring...' : 'Random Explore'}</button>diff --git a/client/src/components/gsd/GsdProjectHeader.jsx b/client/src/components/gsd/GsdProjectHeader.jsxindex 674b370608..ffef6b8cd3 100644--- a/client/src/components/gsd/GsdProjectHeader.jsx+++ b/client/src/components/gsd/GsdProjectHeader.jsx@@ -120,7 +120,7 @@ export default function GsdProjectHeader({ project, appId, repoPath, onRefresh }</button><buttononClick={handleOpenClaude}- className="px-3 py-1.5 bg-purple-600/20 hover:bg-purple-600/30 text-purple-400 rounded-lg text-xs flex items-center gap-1 border border-purple-600/30"+ className="px-3 py-1.5 bg-port-accent-2/20 hover:bg-port-accent-2/30 text-port-accent-2 rounded-lg text-xs flex items-center gap-1 border border-port-accent-2/30"><Terminal size={14} /> Claude Code</button>diff --git a/client/src/components/gsd/PhaseCard.jsx b/client/src/components/gsd/PhaseCard.jsxindex 1a862fd1f1..e7b0cb5e9e 100644--- a/client/src/components/gsd/PhaseCard.jsx+++ b/client/src/components/gsd/PhaseCard.jsx@@ -14,7 +14,7 @@ const STATUS_CONFIG = {const ACTION_CONFIG = {plan: { label: 'Plan', icon: FileText, style: 'bg-port-warning/20 text-port-warning border-port-warning/30 hover:bg-port-warning/30' },execute: { label: 'Execute', icon: Play, style: 'bg-port-accent/20 text-port-accent border-port-accent/30 hover:bg-port-accent/30' },- verify: { label: 'Verify', icon: ShieldCheck, style: 'bg-purple-600/20 text-purple-400 border-purple-600/30 hover:bg-purple-600/30' },+ verify: { label: 'Verify', icon: ShieldCheck, style: 'bg-port-accent-2/20 text-port-accent-2 border-port-accent-2/30 hover:bg-port-accent-2/30' },};function getPhaseStatus(phase, pendingAction) {diff --git a/client/src/components/messages/ConfigTab.jsx b/client/src/components/messages/ConfigTab.jsxindex afc6de3eb8..59eaa89654 100644--- a/client/src/components/messages/ConfigTab.jsx+++ b/client/src/components/messages/ConfigTab.jsx@@ -436,7 +436,7 @@ export default function ConfigTab({ accounts, setAccounts }) {<div className="p-4 bg-port-card rounded-lg border border-port-border"><div className="flex items-center justify-between"><div className="flex items-center gap-3">- <User size={20} className={config?.voiceMode ? 'text-purple-400' : 'text-gray-600'} />+ <User size={20} className={config?.voiceMode ? 'text-port-accent-2' : 'text-gray-600'} /><div><div className="text-sm font-medium text-white">Voice Mode</div><div className="text-xs text-gray-500">@@ -448,7 +448,7 @@ export default function ConfigTab({ accounts, setAccounts }) {onClick={() => { setConfig(prev => ({ ...prev, voiceMode: !prev.voiceMode })); setConfigDirty(true); }}className={`px-3 py-1.5 rounded text-xs font-medium transition-colors ${config?.voiceMode- ? 'bg-purple-500/20 text-purple-400'+ ? 'bg-port-accent-2/20 text-port-accent-2': 'bg-gray-700 text-gray-400'}`}>diff --git a/client/src/components/messages/DraftsTab.jsx b/client/src/components/messages/DraftsTab.jsxindex e1d0c0e897..f1aff2eb4a 100644--- a/client/src/components/messages/DraftsTab.jsx+++ b/client/src/components/messages/DraftsTab.jsx@@ -89,7 +89,7 @@ export default function DraftsTab({ accounts }) {</span><span className="text-xs text-gray-500">{getAccountName(draft.accountId)}</span>{draft.generatedBy === 'ai' && (- <span className="text-xs text-purple-400">AI generated</span>+ <span className="text-xs text-port-accent-2">AI generated</span>)}</div><div className="flex items-center gap-1">diff --git a/client/src/components/messages/InboxTab.jsx b/client/src/components/messages/InboxTab.jsxindex 0b3810df6f..3ec410e000 100644--- a/client/src/components/messages/InboxTab.jsx+++ b/client/src/components/messages/InboxTab.jsx@@ -221,7 +221,7 @@ export default function InboxTab({ accounts }) {<buttononClick={handleEvaluate}disabled={evaluating || syncing}- className="flex items-center gap-1 px-3 py-2 bg-purple-500/10 text-purple-400 rounded-lg text-sm hover:bg-purple-500/20 transition-colors disabled:opacity-50"+ className="flex items-center gap-1 px-3 py-2 bg-port-accent-2/10 text-port-accent-2 rounded-lg text-sm hover:bg-port-accent-2/20 transition-colors disabled:opacity-50"title="AI triage — evaluate messages for recommended actions"><Sparkles size={14} className={evaluating ? 'animate-pulse' : ''} />diff --git a/client/src/components/messages/MessageDetail.jsx b/client/src/components/messages/MessageDetail.jsxindex 068bbbb0ef..cd428599d7 100644--- a/client/src/components/messages/MessageDetail.jsx+++ b/client/src/components/messages/MessageDetail.jsx@@ -190,8 +190,8 @@ export default function MessageDetail({ message, accounts, onBack }) {</div><div className="flex flex-wrap items-center justify-end gap-1"><button onClick={() => setShowReply(!showReply)} className="p-1.5 min-w-[44px] min-h-[44px] inline-flex items-center justify-center text-port-accent hover:bg-port-accent/10 rounded transition-colors" title="Reply"><Reply size={14} /></button>- <button onClick={() => setUseVoice(v => !v)} className={`p-1.5 min-w-[44px] min-h-[44px] inline-flex items-center justify-center rounded transition-colors ${useVoice ? 'text-purple-400 bg-purple-500/10' : 'text-gray-500 hover:text-gray-300'}`} title={useVoice ? 'Voice mode ON — replies use your Digital Twin voice' : 'Voice mode OFF — replies use generic tone'}><User size={14} /></button>- <button onClick={handleGenerateReply} disabled={generating} className="p-1.5 min-w-[44px] min-h-[44px] inline-flex items-center justify-center text-purple-400 hover:bg-purple-500/10 rounded transition-colors disabled:opacity-50" title="AI Reply"><Sparkles size={14} className={generating ? 'animate-pulse' : ''} /></button>+ <button onClick={() => setUseVoice(v => !v)} className={`p-1.5 min-w-[44px] min-h-[44px] inline-flex items-center justify-center rounded transition-colors ${useVoice ? 'text-port-accent-2 bg-port-accent-2/10' : 'text-gray-500 hover:text-gray-300'}`} title={useVoice ? 'Voice mode ON — replies use your Digital Twin voice' : 'Voice mode OFF — replies use generic tone'}><User size={14} /></button>+ <button onClick={handleGenerateReply} disabled={generating} className="p-1.5 min-w-[44px] min-h-[44px] inline-flex items-center justify-center text-port-accent-2 hover:bg-port-accent-2/10 rounded transition-colors disabled:opacity-50" title="AI Reply"><Sparkles size={14} className={generating ? 'animate-pulse' : ''} /></button><button onClick={handleRefresh} disabled={refreshing} className="p-1.5 min-w-[44px] min-h-[44px] inline-flex items-center justify-center text-port-accent hover:bg-port-accent/10 rounded transition-colors disabled:opacity-50" title="Refresh"><RefreshCw size={14} className={refreshing ? 'animate-spin' : ''} /></button><span className="w-px h-4 bg-port-border mx-0.5" /><button onClick={() => handleAction('archive')} disabled={!!actioning} className="p-1.5 min-w-[44px] min-h-[44px] inline-flex items-center justify-center text-port-warning hover:bg-port-warning/10 rounded transition-colors disabled:opacity-50" title="Archive"><Archive size={14} /></button>diff --git a/client/src/components/settings/LocalLlmTab.jsx b/client/src/components/settings/LocalLlmTab.jsxindex 169e98b7fe..980db406ee 100644--- a/client/src/components/settings/LocalLlmTab.jsx+++ b/client/src/components/settings/LocalLlmTab.jsx@@ -986,7 +986,7 @@ export function LocalLlmTab() {{m.size != null && <span className="text-xs text-gray-400 shrink-0">{formatBytes(m.size)}</span>}<Linkto={`/local-llm/playground?backend=${encodeURIComponent(selected)}&model=${encodeURIComponent(m.id)}`}- className="px-2.5 py-1 text-xs bg-emerald-500/15 hover:bg-emerald-500/25 text-emerald-300 rounded flex items-center gap-1 shrink-0 no-underline"+ className="px-2.5 py-1 text-xs bg-port-accent-2/15 hover:bg-port-accent-2/25 text-port-accent-2 rounded flex items-center gap-1 shrink-0 no-underline"title={`Chat with ${m.name || m.id}`}><FlaskConical size={12} />diff --git a/client/src/components/settings/MortalLoomTab.jsx b/client/src/components/settings/MortalLoomTab.jsxindex 215e7243ee..9320a08bda 100644--- a/client/src/components/settings/MortalLoomTab.jsx+++ b/client/src/components/settings/MortalLoomTab.jsx@@ -161,9 +161,9 @@ export function MortalLoomTab() {<div className="text-xs text-gray-400 space-y-1 font-mono"><div className="flex items-start gap-2">{status?.exists ? (- <CheckCircle2 size={14} className="text-green-400 mt-0.5 shrink-0" />+ <CheckCircle2 size={14} className="text-port-success mt-0.5 shrink-0" />) : (- <AlertCircle size={14} className="text-yellow-400 mt-0.5 shrink-0" />+ <AlertCircle size={14} className="text-port-warning mt-0.5 shrink-0" />)}<span className="break-all">{effectivePath || '(no path)'}</span></div>@@ -174,7 +174,7 @@ export function MortalLoomTab() {{lastImport && <div>Last import: {formatDateTime(lastImport)}</div>}</>) : (- <div className="text-yellow-400">File not found. Open MortalLoom on iPhone/Mac to create it, or verify the path.</div>+ <div className="text-port-warning">File not found. Open MortalLoom on iPhone/Mac to create it, or verify the path.</div>)}</div>{status?.summary && (diff --git a/client/src/components/voice/VoiceWidget.jsx b/client/src/components/voice/VoiceWidget.jsxindex afc4629e51..00f2e25b30 100644--- a/client/src/components/voice/VoiceWidget.jsx+++ b/client/src/components/voice/VoiceWidget.jsx@@ -32,7 +32,7 @@ const STAGE = {listening: { icon: MicOff, label: 'Listening… (click to send)', tone: 'text-port-accent' },handsfree: { icon: MicOff, label: 'Hands-free — speak anytime', tone: 'text-port-accent' },capturing: { icon: MicOff, label: 'Capturing your voice…', tone: 'text-port-accent animate-pulse' },- thinking: { icon: Brain, label: 'Thinking…', tone: 'text-yellow-400' },+ thinking: { icon: Brain, label: 'Thinking…', tone: 'text-port-warning' },speaking: { icon: Volume2, label: 'Speaking (talk to interrupt)', tone: 'text-port-success' },};@@ -536,9 +536,9 @@ export default function VoiceWidget() {const { icon: Icon, label, tone } = STAGE[stage] || STAGE.idle;const capturing = ACTIVE_STAGES.has(stage) || isWebSpeechCapturing();- // Distinct violet ring + soft glow so the floating widget reads as+ // Distinct secondary-accent ring + soft glow so the floating widget reads as// "voice agent layer" instead of blending into whatever card it's covering.- const fabSurface = 'border-violet-500/50 shadow-[0_0_24px_-4px_rgba(168,85,247,0.55)]';+ const fabSurface = 'border-port-accent-2/50 shadow-[0_0_24px_-4px_rgba(168,85,247,0.55)]';return (// data-voice-widget marker is used by client/src/services/domIndex.js@@ -560,7 +560,7 @@ export default function VoiceWidget() {onClick={() => { setExpanded(true); toggleCapture(); }}className={`p-3 rounded-full border transition-colors ${fabSurface} ${capturing- ? 'bg-violet-500 text-white animate-pulse'+ ? 'bg-port-accent-2 text-white animate-pulse': 'bg-port-card text-white'}`}title="Open voice controls"@@ -692,8 +692,8 @@ export default function VoiceWidget() {onClick={toggleCapture}className={`p-3 rounded-full transition-colors ${capturing- ? 'bg-violet-500 text-white animate-pulse'- : 'bg-violet-500/20 hover:bg-violet-500/40 text-violet-200'+ ? 'bg-port-accent-2 text-white animate-pulse'+ : 'bg-port-accent-2/20 hover:bg-port-accent-2/40 text-port-accent-2'}`}title={(() => {if (handsFree) {