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
docs([route-medialightbox-settings-drawer-through]): drop stale PLAN item
[._.]/ Adam Eivy9b3064bd3a97
diff --git a/.changelog/NEXT.md b/.changelog/NEXT.mdindex 8d6cd23be6..55d3688d23 100644--- a/.changelog/NEXT.md+++ b/.changelog/NEXT.md@@ -78,4 +78,6 @@## Removed+- **[route-medialightbox-settings-drawer-through] Dropped as drift — no migration target exists.** The PLAN item asked to "route MediaLightbox settings drawer through `components/Drawer.jsx`," but commit ed0e4859 (May 12 2026) removed the actual settings drawer from the lightbox; the current `SettingsPane` is an inline layout sibling of the image (side-by-side on desktop, stacked on mobile), not a slide-in drawer. The existing "Intentionally NOT migrated to `<ui/Modal>`" comment in `MediaLightbox.jsx` is extended to call out `<components/Drawer>` for the same reasons (flat Esc listener fights the `refineOpen → fullScreen → close` cascade; Drawer is a right-side slide-in over a normal page, not what SettingsPane is) so future `/simplify` passes don't re-propose. PLAN item removed; no code changes other than the comment.+- **`CODEX5.5_REVIEW.md`** at repo root — obsolete now that the concrete bugs are shipped and the strategic items are tracked in PLAN.md.diff --git a/PLAN.md b/PLAN.mdindex 3360d4f56d..c4a60da8cd 100644--- a/PLAN.md+++ b/PLAN.md@@ -12,7 +12,6 @@ _Nothing currently parked — pick the next item from the Backlog._### Code quality / dedup (from `/simplify` passes)-- [ ] [route-medialightbox-settings-drawer-through] **Route `MediaLightbox` settings drawer through `components/Drawer.jsx`.** Reconcile `Drawer`'s flat Esc handler with the lightbox's layered Escape cascade.- [ ] [sweep-provider-type-api-inline-checks-in-client] **Sweep `provider.type === 'api'` inline checks in client.** Sibling of `[sweep-provider-type-tui-inline-checks-in-client]` (shipped 2026-05-20). Add `isApiProvider(provider)` to `client/src/utils/providers.js` and adopt at the saved-provider call sites: `client/src/pages/AIProviders.jsx:265` + `:399` (CONFIG-style chips showing the API endpoint), `client/src/components/goals/GoalsTreeView.jsx:14` (`API_PROVIDER_FILTER = p => p.enabled && p.type === 'api'`), `client/src/components/goals/GoalsListView.jsx:13` (same filter), and the `apiProviders` filter in `client/src/components/digital-twin/tabs/TasteTab.jsx`. Skip `formData.type === 'api'` in the AIProviders edit form (same exclusion convention as the TUI sweep — form-draft state, not saved providers). Low priority — visual / filter predicate consolidation.- [ ] [promote-provider-type-constants-to-shared-module] **Promote `'tui'` / `'cli'` / `'api'` literals to a shared `PROVIDER_TYPES` constant.** `server/lib/aiToolkit/constants.js` already exports a partial `PROVIDER_TYPES = { CLI: 'cli', API: 'api' }` (missing `TUI`); the client helpers in `client/src/utils/providers.js` (`isTuiProvider`, `isCliProvider`, `isProcessProvider`) and the server-side `LIGHT_CONTEXT_PROVIDER_TYPES` set in `agentPromptBuilder.js` all re-encode the same string literals. Add `TUI: 'tui'` to the toolkit constants, mirror to client (or move to a neutral location), and migrate helpers + sets to read from the constant. Surfaced by /simplify quality agent during `[sweep-provider-type-tui-inline-checks-in-client]`; deferred to keep that PR scoped.- [ ] [consolidate-cert-path-constants] **Consolidate `CERT_DIR`/`CERT_PATH`/`KEY_PATH`/`META_PATH` constants.** Re-declared in `scripts/setup-cert.js`, `scripts/open-ui-in-browser.js`, `server/services/certProvisioner.js`, and `server/services/certRenewer.js` (4 sites). Surfaced by `/simplify` during the first-run HTTPS-auto-flip fix (2026-05-19); deferred to keep that PR scoped. Candidate home: `lib/certPaths.js` (alongside `lib/tailscale-https.js` so both runtime + bootstrap can import).diff --git a/client/src/components/media/MediaLightbox.jsx b/client/src/components/media/MediaLightbox.jsxindex a5751341ce..697e3fe9b5 100644--- a/client/src/components/media/MediaLightbox.jsx+++ b/client/src/components/media/MediaLightbox.jsx@@ -9,12 +9,15 @@ import { useScrollLock } from '../../hooks/useScrollLock';import { useSwipeNav } from '../../hooks/useSwipeNav';import { copyToClipboard } from '../../lib/clipboard';-// Intentionally NOT migrated to <ui/Modal>. The prev/next buttons sit as-// viewport-edge siblings of the card (not children of a constrained panel-// box), and the Esc cascade refineOpen → fullScreen → close is layered-// into the window keydown handler below. Modal would wrap children in a-// panel container and add its own Esc listener — both fight this-// lightbox's existing UX.+// Intentionally NOT migrated to <ui/Modal> or <components/Drawer>. The+// prev/next buttons sit as viewport-edge siblings of the card (not children+// of a constrained panel box), and the Esc cascade refineOpen → fullScreen+// → close is layered into the window keydown handler below. Both wrappers+// would add their own flat Esc listener that fights the cascade, and Drawer+// is a right-side slide-in over a normal page — SettingsPane below is an+// inline layout sibling of the image, not a slide-in. (A mobile tap-to-open+// bottom-sheet drawer existed pre-ed0e4859 and was removed because it+// covered the image area in fullscreen.)const NOTE_MAX = 2000;const NOTE_DEBOUNCE_MS = 500;