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([warning-banner-migrate-remaining-sites]): address review findings
[._.]/ Adam Eivyd9d20a39381a
diff --git a/PLAN.md b/PLAN.mdindex 81e8653914..30abc4481d 100644--- a/PLAN.md+++ b/PLAN.md@@ -83,6 +83,7 @@ Items here need a research / design pass, an explicit decision, or a preconditio- [ ] [shallow-equal-guard-in-usemediaannotations-socket] **Shallow-equal guard in `useMediaAnnotations` socket handler.** Speculative micro-opt; theoretical until observed.- [ ] [capabilities-cheap-memory-count] **Capabilities route should count active memories without sorting/paginating.** `GET /api/capabilities` calls `getMemories({ status: 'active' })` (server/routes/capabilities.js) only to read `.total`, but `getMemories` loads the full index, filters, sorts, and paginates before returning `{ total, memories }` — the sort + slice is wasted work on a page polled every ~20s. Add a lightweight `countMemories({ status })` (or a `countOnly` option) to `server/services/memory.js` that returns the filtered count without the sort/paginate, and switch the route to it. Micro-opt; the index is cached via `loadIndex`, so low urgency. Surfaced by copilot review of `[codex5-onboarding-capability-map]` 2026-05-25.- [ ] [low-client-extract-shared-usepopoverposition-hook] **[LOW][CLIENT]** Extract shared `usePopoverPosition` hook — **premise eroded; revisit when a 3rd caller lands.** Original PLAN flagged 4 components but `VisualStylePicker` no longer exists and `AddToCollectionMenu` / `BulkTargetPicker` no longer use portal positioning. Today the pattern lives in exactly two components (`client/src/components/ThemeSwitcher.jsx` and `client/src/components/media/CollectionPickerShell.jsx`) — both implement portal-with-fixed-positioning + `useLayoutEffect` measurement + rAF-coalesced scroll/resize listeners. With only 2 callers the abstraction isn't worth the indirection; extract when a third surface needs the same shape.+- [ ] [banner-icon-aria-hidden] **Apply `aria-hidden="true"` to `<Banner>`'s rendered icon.** `client/src/components/ui/Banner.jsx` renders the `icon` prop as a bare `<Icon size={s.iconSize} className="…">` — when the icon is decorative (the body text already conveys the meaning, which is the whole point of the icon-with-text Banner shape), screen readers should skip it. `client/src/components/brain/tabs/ImportTab.jsx` had `aria-hidden="true"` on its inline `<AlertCircle>` before `[warning-banner-migrate-remaining-sites]`; that site was reverted from `<Banner>` because the icon prop doesn't pass through a11y attributes. Either: (a) wrap the icon render in `<span aria-hidden="true">` inside Banner, or (b) thread an `iconAriaHidden` prop. Once landed, re-migrate the ImportTab error row to `<Banner tone="error" size="md" icon={AlertCircle} actions={…}>`.- [ ] [inline-confirm-row-primitive] **Extract `<InlineConfirmRow tone="error">` primitive for inline delete-confirm rows.** Five sites (`client/src/components/brain/tabs/LinksTab.jsx:599`, `client/src/components/brain/tabs/InboxTab.jsx:387, 512, 606, 765`) share the same shape: `flex items-center gap-2 p-2 bg-port-error/10 border border-port-error/30 rounded` + `<span flex-1>{question}</span>` + Delete + Cancel buttons. They didn't migrate to `<Banner>` during `[warning-banner-migrate-remaining-sites]` because `<Banner>` is shaped around "icon + content + actions" alerts, not "question + confirm/cancel" confirm rows (the body is the prompt, both buttons are equal-weight actions, and `confirmText` / `cancelText` are the natural API). Build a tiny primitive at `client/src/components/ui/InlineConfirmRow.jsx` with `{ question, confirmText='Delete', cancelText='Cancel', onConfirm, onCancel, tone='error' }`, then swap the five sites. Pairs naturally with the existing confirmation UX preference (no two-click-arm).- [ ] [pill-component-goaldetailpanel-migration] **Migrate `GoalDetailPanel.jsx`'s badges to the shared `<Pill>`.** The shared `<Pill>` (`client/src/components/ui/Pill.jsx`) shipped with `[shared-pill-chip-component]` and absorbed `WritersRoomGuide.jsx` + `Instances.jsx`'s badge family. `GoalDetailPanel.jsx`'s badges were intentionally left out: their colors are computed from data (`GOAL_TYPE_CONFIG[].bg/color` ~line 384, `CATEGORY_CONFIG`/`urgencyColor()` ~571-581, tag chips ~528/707, `CHECK_IN_STATUS_CONFIG` ~993), so they don't map to a fixed `tone`. They'd migrate via `<Pill tone="bare" bordered={false} className={`${cfg.bg} ${cfg.color}`}>` (the `bare` tone exists for exactly this data-driven case), which only consolidates the structural `rounded px-2 py-0.5 text-xs` shape — not the colors. Marginal benefit + many edits in a 1252-LOC god-component, so deferred. Do it opportunistically when next touching the file (pairs with the `GoalDetailPanel.jsx` god-component split under "Deferred Architecture").- [ ] [setup-data-import-drift-tables-from-migrations] **`setup-data.js` should import drift tables from each migration file.** `SHIPPED_PROMPT_OLD_MD5` + `SHIPPED_PROMPT_NEW_MD5` in `scripts/setup-data.js:139-196` manually mirror the `ACCEPTED_OLD_MD5` + `NEW_SHIPPED_MD5` exports each migration file already maintains. The mirror is hand-edited every time a migration ships and is the most likely place to drift. After `[backport-pre-023-migrations-to-_lib]` lands, every prompt-replace migration will export those constants — `setup-data.js` can build `SHIPPED_PROMPT_OLD_MD5` / `SHIPPED_PROMPT_NEW_MD5` by `import * as m025 from './migrations/025-idea-stage-character-detail.js'`-style sweep (or by glob+dynamic import) and removing the mirror entirely. Single source of truth, no hand sync. Surfaced by /simplify during `[pipeline-idea-stage-character-detail-plumbing]`.diff --git a/client/src/components/brain/tabs/ImportTab.jsx b/client/src/components/brain/tabs/ImportTab.jsxindex 0872cb08f7..352c9f8d64 100644--- a/client/src/components/brain/tabs/ImportTab.jsx+++ b/client/src/components/brain/tabs/ImportTab.jsx@@ -12,7 +12,6 @@ import {Upload,Sparkles} from 'lucide-react';import * as api from '../../../services/api';import toast from '../../ui/Toast';-import Banner from '../../ui/Banner';import BrailleSpinner from '../../BrailleSpinner';import { formatBytes, formatDateShort } from '../../../utils/formatters';@@ -199,19 +198,13 @@ function ChatGPTWizard({ onExit, navigate }) {<Header onExit={onExit} /><Stepper steps={STEPS} activeIdx={stepIdx} />{error && (- <Banner- tone="error"- size="md"- icon={AlertCircle}- className="mb-4"- actions={(- <button className="text-gray-400 hover:text-white" onClick={() => setError(null)} aria-label="Dismiss">- <X size={14} />- </button>- )}- >- {error}- </Banner>+ <div className="mb-4 p-3 rounded border border-port-error/30 bg-port-error/10 text-sm text-port-error flex items-start gap-2">+ <AlertCircle size={16} className="mt-0.5 flex-shrink-0" aria-hidden="true" />+ <span>{error}</span>+ <button className="ml-auto text-gray-400 hover:text-white" onClick={() => setError(null)} aria-label="Dismiss">+ <X size={14} />+ </button>+ </div>)}{step.id === 'instructions' && <StepInstructions onNext={goNext} />}diff --git a/client/src/components/cos/tabs/DigestTab.jsx b/client/src/components/cos/tabs/DigestTab.jsxindex 6745cae631..734d3358e1 100644--- a/client/src/components/cos/tabs/DigestTab.jsx+++ b/client/src/components/cos/tabs/DigestTab.jsx@@ -386,6 +386,7 @@ export default function DigestTab() {key={idx}tone="error"size="md"+ align="center"actions={<span className="text-xs text-gray-500">{issue.count}x</span>}><span className="font-medium">{issue.error}</span>diff --git a/client/src/pages/RunsHistoryPage.jsx b/client/src/pages/RunsHistoryPage.jsxindex 9994897294..abbd479c15 100644--- a/client/src/pages/RunsHistoryPage.jsx+++ b/client/src/pages/RunsHistoryPage.jsx@@ -412,8 +412,9 @@ export function RunsHistoryPage() {)}{/* Show suggested fix if available, or fallback to exit code info */}{(run.suggestedFix || (!run.error && exitInfo.description)) && (- <Banner tone="warning" size="md" className="mt-2" title="Suggested Fix">- <div className="text-sm text-gray-300 mt-1">+ <Banner tone="warning" size="md" className="mt-2">+ <div className="text-xs font-medium mb-1">Suggested Fix</div>+ <div className="text-sm text-gray-300">{run.suggestedFix || 'Check the output above for specific error details. If the output is empty, the process may have been terminated before producing output.'}</div></Banner>