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-brain): remap off-token colors in brain/ tabs to port-* tokens

[._.]/ Adam Eivy30b473a70d9d
diff --git a/.changelog/NEXT.md b/.changelog/NEXT.md
index d30a9567e8..8f522ddb92 100644
--- a/.changelog/NEXT.md
+++ b/.changelog/NEXT.md
@@ -68,6 +68,7 @@
- **[issue-1924-meatspace] MeatSpace health-tracking theme consistency** — remapped off-token colors across the genome tracker and cognitive-training (POST) drills onto the existing `--port-*` theme tokens: genotype beneficial/typical status badges now follow `port-success`/`port-accent`, and ClinVar severity + genetics-flavored icons and the recurring "Training mode" accent across the POST drill runners now follow `port-accent-2`, so these surfaces stay theme-consistent instead of a fixed green/blue/purple. Per-category color palettes that intentionally differentiate unrelated categories (genome-marker-category cards, cognitive-domain badges, periodic-table element groups, life-calendar event types, and the health-overview tile colors) were left as-is. Refs #1924 — the remaining feature areas stay tracked there.
- **[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.
## UX & Accessibility
diff --git a/client/src/components/brain/tabs/ConfigTab.jsx b/client/src/components/brain/tabs/ConfigTab.jsx
index 613b463b63..912a78710d 100644
--- a/client/src/components/brain/tabs/ConfigTab.jsx
+++ b/client/src/components/brain/tabs/ConfigTab.jsx
@@ -512,7 +512,7 @@ export default function ConfigTab({ onRefresh }) {
<span>Daily digest at {dailyDigestTime}</span>
</div>
<div className="flex items-center gap-2">
- <CheckCircle size={14} className="text-purple-400" />
+ <CheckCircle size={14} className="text-port-accent-2" />
<span>Weekly review on {weeklyReviewDay.charAt(0).toUpperCase() + weeklyReviewDay.slice(1)}s at {weeklyReviewTime}</span>
</div>
{settings.lastDailyDigest && (
diff --git a/client/src/components/brain/tabs/DigestTab.jsx b/client/src/components/brain/tabs/DigestTab.jsx
index 039aadf36e..2497eb89aa 100644
--- a/client/src/components/brain/tabs/DigestTab.jsx
+++ b/client/src/components/brain/tabs/DigestTab.jsx
@@ -188,13 +188,13 @@ export default function DigestTab({ onRefresh }) {
<section>
<div className="flex items-center justify-between mb-4">
<div className="flex items-center gap-2">
- <Clock className="w-5 h-5 text-purple-400" />
+ <Clock className="w-5 h-5 text-port-accent-2" />
<h2 className="text-lg font-semibold text-white">Weekly Review</h2>
</div>
<button
onClick={handleRunReview}
disabled={runningReview}
- className="flex items-center gap-2 px-3 py-1.5 bg-purple-500/20 text-purple-400 rounded-lg text-sm hover:bg-purple-500/30 disabled:opacity-50"
+ className="flex items-center gap-2 px-3 py-1.5 bg-port-accent-2/20 text-port-accent-2 rounded-lg text-sm hover:bg-port-accent-2/30 disabled:opacity-50"
>
{runningReview ? (
<BrailleSpinner />
@@ -218,7 +218,7 @@ export default function DigestTab({ onRefresh }) {
<div className="grid grid-cols-1 md:grid-cols-2 gap-3 mb-4">
{/* What Happened */}
<div className="p-3 bg-port-bg rounded-lg">
- <h4 className="text-xs font-medium text-blue-400 mb-2">What Happened</h4>
+ <h4 className="text-xs font-medium text-port-accent mb-2">What Happened</h4>
<ul className="space-y-1">
{latestReview.whatHappened?.map((item, i) => (
<li key={i} className="text-sm text-gray-300">• {item}</li>
@@ -251,8 +251,8 @@ export default function DigestTab({ onRefresh }) {
{/* Recurring Theme */}
{latestReview.recurringTheme && (
- <div className="p-3 bg-purple-500/10 border border-purple-500/30 rounded-lg">
- <h4 className="text-xs font-medium text-purple-400 mb-1">Pattern Noticed</h4>
+ <div className="p-3 bg-port-accent-2/10 border border-port-accent-2/30 rounded-lg">
+ <h4 className="text-xs font-medium text-port-accent-2 mb-1">Pattern Noticed</h4>
<p className="text-sm text-gray-300">{latestReview.recurringTheme}</p>
</div>
)}
diff --git a/client/src/components/brain/tabs/InboxTab.jsx b/client/src/components/brain/tabs/InboxTab.jsx
index c7cedfc7f3..71ff7aba91 100644
--- a/client/src/components/brain/tabs/InboxTab.jsx
+++ b/client/src/components/brain/tabs/InboxTab.jsx
@@ -300,7 +300,7 @@ export default function InboxTab({ onRefresh, settings }) {
aria-pressed={creative}
aria-label="Toggle creative capture mode"
className={`px-3 py-3 rounded-lg border transition-colors flex items-center gap-1.5 text-sm ${creative
- ? 'bg-purple-500/20 text-purple-300 border-purple-500/40'
+ ? 'bg-port-accent-2/20 text-port-accent-2 border-port-accent-2/40'
: 'bg-port-card text-gray-400 border-port-border hover:text-gray-200'}`}
title="Creative mode: flag captures as creative ideas you can send to the Catalog"
>
@@ -318,7 +318,7 @@ export default function InboxTab({ onRefresh, settings }) {
</div>
<p className="mt-2 text-xs text-gray-500">
Capture a thought — type or use the mic. AI will classify and route it automatically.
- {creative && <span className="text-purple-300"> Creative mode on — captures are flagged for the Catalog.</span>}
+ {creative && <span className="text-port-accent-2"> Creative mode on — captures are flagged for the Catalog.</span>}
{settings?.confidenceThreshold && (
<span> Confidence threshold: {Math.round(settings.confidenceThreshold * 100)}%</span>
)}
@@ -328,15 +328,15 @@ export default function InboxTab({ onRefresh, settings }) {
{/* Creative batch action — appears once any captured note is flagged
creative. Sends them all into the catalog ingest review in one hop. */}
{creativeEntries.length > 0 && (
- <div className="xl:col-span-2 flex items-center justify-between gap-3 p-3 bg-purple-500/10 border border-purple-500/30 rounded-lg">
- <span className="text-sm text-purple-200 flex items-center gap-2">
+ <div className="xl:col-span-2 flex items-center justify-between gap-3 p-3 bg-port-accent-2/10 border border-port-accent-2/30 rounded-lg">
+ <span className="text-sm text-port-accent-2 flex items-center gap-2">
<Sparkles className="w-4 h-4 flex-shrink-0" />
{creativeEntries.length} creative {creativeEntries.length === 1 ? 'note' : 'notes'} ready to become catalog ingredients
</span>
<button
type="button"
onClick={handleSendCreativeToCatalog}
- className="px-3 py-1.5 bg-purple-500/20 hover:bg-purple-500/30 text-purple-200 border border-purple-500/40 rounded-lg text-sm transition-colors flex items-center gap-1.5 flex-shrink-0"
+ className="px-3 py-1.5 bg-port-accent-2/20 hover:bg-port-accent-2/30 text-port-accent-2 border border-port-accent-2/40 rounded-lg text-sm transition-colors flex items-center gap-1.5 flex-shrink-0"
>
<Library className="w-4 h-4" /> Send to Catalog
</button>
@@ -669,7 +669,7 @@ export default function InboxTab({ onRefresh, settings }) {
<div className="flex-1">
<p className="text-white">
{entry.creative && (
- <Sparkles className="inline w-3.5 h-3.5 text-purple-300 mr-1.5 -mt-0.5" aria-label="Creative note" />
+ <Sparkles className="inline w-3.5 h-3.5 text-port-accent-2 mr-1.5 -mt-0.5" aria-label="Creative note" />
)}
{entry.capturedText}
</p>
diff --git a/client/src/components/brain/tabs/LinksTab.jsx b/client/src/components/brain/tabs/LinksTab.jsx
index 9916da572e..765b124a05 100644
--- a/client/src/components/brain/tabs/LinksTab.jsx
+++ b/client/src/components/brain/tabs/LinksTab.jsx
@@ -48,10 +48,10 @@ const LINK_TYPE_COLORS = {
const CLONE_STATUS_STYLES = {
none: '',
- pending: 'text-yellow-400',
- cloning: 'text-blue-400 animate-pulse',
- cloned: 'text-green-400',
- failed: 'text-red-400'
+ pending: 'text-port-warning',
+ cloning: 'text-port-accent animate-pulse',
+ cloned: 'text-port-success',
+ failed: 'text-port-error'
};
export default function LinksTab({ onRefresh }) {
diff --git a/client/src/components/brain/tabs/MemoryTab.jsx b/client/src/components/brain/tabs/MemoryTab.jsx
index 4ef2ab8d54..4f77e39a19 100644
--- a/client/src/components/brain/tabs/MemoryTab.jsx
+++ b/client/src/components/brain/tabs/MemoryTab.jsx
@@ -600,7 +600,7 @@ export default function MemoryTab({ onRefresh }) {
)}
<button
onClick={() => handleSendToCatalog(record)}
- className="p-1.5 text-gray-400 hover:text-purple-300 rounded hover:bg-purple-500/20"
+ className="p-1.5 text-gray-400 hover:text-port-accent-2 rounded hover:bg-port-accent-2/20"
title="Send to Catalog"
aria-label="Send to Catalog"
>