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(themes): action buttons readable as enabled in day-mode themes

Adam Eivy453634fbc38e
diff --git a/.changelog/NEXT.md b/.changelog/NEXT.md
index 4cc60e2f47..2c9a903b44 100644
--- a/.changelog/NEXT.md
+++ b/.changelog/NEXT.md
@@ -4,6 +4,7 @@
- **World Builder for Media Gen.** A new `Media Gen → World Builder` tab (`/media/world-builder`) takes a one-line starter prompt — e.g. "moebius and scavengers reign meets Prophet inspired sci fi universe" — and asks the LLM of your choice to expand it into a structured prompt set: a positive `stylePrompt` prefix, a `negativePrompt`, and 6–10 variations across five canonical buckets (landscapes, environments, characters, structures, vehicles). You can edit any field, save the world, then kick off a batch render that compiles `stylePrompt + variation.prompt` for every selected bucket and queues them through the existing image-gen pipeline (local mflux or Codex; external SD-API not supported for batches). Each batch lands in an auto-named Media Collection ("World: <name> — <timestamp>") so the renders stay grouped with the template that produced them. Worlds support full CRUD, the LLM provider/model is per-template (falls back to active provider), and runs are logged with deep-links into the resulting collection. Backed by `server/services/worldBuilder.js` (storage + prompt compilation), `server/services/worldBuilderExpand.js` (LLM call), `server/routes/worldBuilder.js` (REST surface), and `server/services/worldBuilderCollectionHook.js` (hooks media-job completion → collection assignment). State persists in `data/world-builder.json`. 20 new tests cover sanitizers, compile-prompts logic, and the route surface.
- **Workflow tab in Chief of Staff with canonical project-maintenance ordering.** A new `/cos/workflow` page (and a `Workflow` tab in the CoS panel) renders the full set of scheduled tasks and autonomous jobs as a left-to-right pipeline grouped into seven canonical stages — Hygiene → Review → Plan → Audit → Build → Report → Ambient — so it's obvious which work happens before which. Each card surfaces its own schedule, last-run time, run count, enabled state, and live "due / waiting / disabled / waiting-on-dependencies" badge, plus inline `runAfter` arrows showing hard prerequisites. Backed by a new `GET /api/cos/workflow` endpoint and `server/services/workflow.js` with stage definitions, gate state for jobs, and dependency edges. Two default `runAfter` wirings ship with this: `do-replan` runs after `pr-reviewer` and `branch-cleanup` (so the plan reflects merged reality), and `feature-ideas` runs after `do-replan` (so new feature work lands on a fresh plan). Both can be overridden per task or per app from the existing Schedule tab.
+- **Clean button on Image Gen lightbox.** Generated images now expose a Clean control with `Light` and `Aggressive` options that runs the dev-tool Image Cleaner (median denoise + C2PA strip + sharp re-encode) over the file in place and writes the result back to the gallery as `<base>_clean-<level>.png` with the source's prompt/seed/model carried forward in a sidecar. New endpoint `POST /api/image-gen/:filename/clean` (refactors the cleaning core out of `imageClean.js` so both the base64 and file paths share `cleanImageBuffer()`) and a `cleanGalleryImage(filename, level)` client API. Idempotent at a level (re-running Light overwrites the previous Light copy) and the new image is spliced to the top of the gallery without a refetch. 10 new tests cover happy path, level differences, idempotency, traversal/PNG-only/missing-source rejections, and sidecar lineage.
- **Dismissible AI Recommendations on the Learning tab.** Each recommendation in the Chief of Staff Learning Analytics panel now has an X to dismiss it. Dismissals persist to `data/cos/dismissed-recommendations.json` and are filtered out of future loads. For count-based alerts (e.g., "unknown errors occurred 74 times"), the dismissal records the count snapshot and only re-surfaces if the count grows materially worse (≥1.5× and at least +20). Rate-based recommendations stay dismissed until restored. A "Show dismissed" expander lets you restore individual entries or clear them all.
## Fixed
@@ -12,6 +13,7 @@
- **Dashboard form input no longer wipes when rotating between portrait and landscape.** `DashboardGrid` was returning two structurally different render trees on either side of the 640px breakpoint — a flat `<div className="space-y-4">` on mobile and a relative-positioned absolute-grid wrapper on desktop. Crossing the breakpoint (which happens any time you rotate an iPhone, since portrait ~390px is below it and landscape ~844px is above) put the widget at a different DOM depth, so React unmounted every widget and remounted a new one — taking any in-progress `useState` value with it. The Quick Capture text field reset to empty mid-typing. The grid now uses a single render tree across both modes, toggling only `className`/`style` between flow and absolute layouts. Widget components keep their state across rotation.
- **Toast notifications and the eye-exam form no longer overflow on mobile.** The agent-feedback toast had a hard `w-[480px]` when expanded that overflowed past the right edge of a 375px viewport, and the global toast container's `max-w-[520px]` could similarly extend past the screen on narrow viewports. Both now cap at `calc(100vw - 2rem)` on mobile and switch to their full width at the `sm:` breakpoint (640px+). The eye-exam editor on MeatSpace → Body was also unusable on mobile — its `grid-cols-7` layout squeezed seven number inputs into ~42px each at 375px wide; it now reflows to two columns on mobile (with the date field full-width), four on tablet, seven on desktop.
- **Image preview lightbox readable in glass-style day themes.** The MediaLightbox panel (used by Image Gen and Video Gen) inherited `--port-card-alpha: 0.6` from glass themes like Lumen Glass Day, rendering as muddy translucent grey over the modal's `bg-black/90` overlay. Combined with the existing tinted action buttons (`bg-port-accent/20 text-port-accent`), the Remix and Send to Video buttons became nearly invisible. The panel now pins `--port-card-alpha` and `--port-border-alpha` to 1 within the lightbox scope so it renders solid in any theme, and the action buttons switched from translucent-tint to solid-fill (`bg-port-accent text-white`, `bg-port-success text-white`) for high contrast across all day and night themes.
+- **Action buttons no longer look disabled in day themes.** Tinted-fill action buttons across the app (e.g. World Builder's "Expand starter → variations", Voice Widget's mode toggles, OpenClaw's status banners) use the dark-mode-friendly `bg-{color}-600/30 text-{color}-200` pattern. In day themes (Lumen Glass Day, Black ICE Day, Blueprint Day) the existing CSS layer remapped `text-{color}-300/400/500` to dark variants for contrast on cream/white surfaces but skipped the lighter `text-{color}-100/200` tints — so a "Light text on a light tinted background" combination ended up looking faded and disabled even when enabled. The day-mode text-color remap in `client/src/index.css` now also covers the 100/200 tones for every hue family (purple, violet, cyan, sky, blue, indigo, pink, rose, red, orange, amber, yellow, lime, green, emerald, teal, fuchsia), so the only remaining visual difference between an enabled and disabled action button is the explicit `disabled:opacity-50` (or similar) — making the standard "tinted bg + saturated dark text in day mode, faded out when disabled" consistent across all day-mode themes.
## Changed
diff --git a/client/src/index.css b/client/src/index.css
index f3ee6b3033..63c39b07a0 100644
--- a/client/src/index.css
+++ b/client/src/index.css
@@ -570,44 +570,85 @@ html[data-port-theme-mode="day"] [class~="text-indigo-400/70"] {
color: rgb(var(--port-accent)) !important;
}
-/* Day-mode chip text colors. The 300/400/500 Tailwind tones are designed
- for dark-mode chips (e.g. `bg-cyan-500/20 text-cyan-400`) — on the cream
- / white day backgrounds they wash out to near-invisible. Remap to the
- 700 (or 800 for yellow, which stays warm at 700) tone in the same hue
- family so each chip keeps its semantic color but reads clearly. */
+/* Day-mode chip + action-button text colors. The 100–500 Tailwind tones are
+ designed for dark-mode surfaces (e.g. `bg-cyan-500/20 text-cyan-400`, or
+ `bg-purple-600/30 text-purple-200`) — on the cream / white day backgrounds
+ they wash out to near-invisible and make enabled action buttons look
+ disabled. Remap to the 700 (or 800 for yellow, which stays warm at 700)
+ tone in the same hue family so each chip / button keeps its semantic color
+ but reads clearly. The 100/200 tints are remapped to the same dark target
+ as 300/400/500 so the only visible difference between an enabled and a
+ disabled button is the explicit `disabled:opacity-50` (or similar). */
+html[data-port-theme-mode="day"] [class~="text-cyan-100"],
+html[data-port-theme-mode="day"] [class~="text-cyan-200"],
html[data-port-theme-mode="day"] [class~="text-cyan-300"],
html[data-port-theme-mode="day"] [class~="text-cyan-400"],
html[data-port-theme-mode="day"] [class~="text-cyan-500"] { color: rgb(14 116 144) !important; }
+html[data-port-theme-mode="day"] [class~="text-sky-100"],
+html[data-port-theme-mode="day"] [class~="text-sky-200"],
+html[data-port-theme-mode="day"] [class~="text-sky-300"],
html[data-port-theme-mode="day"] [class~="text-sky-400"] { color: rgb(3 105 161) !important; }
+html[data-port-theme-mode="day"] [class~="text-blue-100"],
+html[data-port-theme-mode="day"] [class~="text-blue-200"],
html[data-port-theme-mode="day"] [class~="text-blue-300"],
html[data-port-theme-mode="day"] [class~="text-blue-400"] { color: rgb(29 78 216) !important; }
+html[data-port-theme-mode="day"] [class~="text-indigo-100"],
+html[data-port-theme-mode="day"] [class~="text-indigo-200"],
+html[data-port-theme-mode="day"] [class~="text-indigo-300"] { color: rgb(55 48 163) !important; }
+html[data-port-theme-mode="day"] [class~="text-purple-100"],
+html[data-port-theme-mode="day"] [class~="text-purple-200"],
html[data-port-theme-mode="day"] [class~="text-purple-300"],
html[data-port-theme-mode="day"] [class~="text-purple-400"],
html[data-port-theme-mode="day"] [class~="text-purple-500"] { color: rgb(126 34 206) !important; }
+html[data-port-theme-mode="day"] [class~="text-violet-100"],
+html[data-port-theme-mode="day"] [class~="text-violet-200"],
html[data-port-theme-mode="day"] [class~="text-violet-300"],
html[data-port-theme-mode="day"] [class~="text-violet-400"] { color: rgb(109 40 217) !important; }
+html[data-port-theme-mode="day"] [class~="text-fuchsia-200"],
+html[data-port-theme-mode="day"] [class~="text-fuchsia-300"],
html[data-port-theme-mode="day"] [class~="text-fuchsia-400"] { color: rgb(162 28 175) !important; }
+html[data-port-theme-mode="day"] [class~="text-pink-100"],
+html[data-port-theme-mode="day"] [class~="text-pink-200"],
+html[data-port-theme-mode="day"] [class~="text-pink-300"],
html[data-port-theme-mode="day"] [class~="text-pink-400"],
html[data-port-theme-mode="day"] [class~="text-pink-500"] { color: rgb(190 24 93) !important; }
+html[data-port-theme-mode="day"] [class~="text-rose-200"],
+html[data-port-theme-mode="day"] [class~="text-rose-300"],
html[data-port-theme-mode="day"] [class~="text-rose-400"] { color: rgb(190 18 60) !important; }
+html[data-port-theme-mode="day"] [class~="text-red-100"],
+html[data-port-theme-mode="day"] [class~="text-red-200"],
html[data-port-theme-mode="day"] [class~="text-red-300"],
html[data-port-theme-mode="day"] [class~="text-red-400"],
html[data-port-theme-mode="day"] [class~="text-red-500"] { color: rgb(185 28 28) !important; }
+html[data-port-theme-mode="day"] [class~="text-orange-100"],
+html[data-port-theme-mode="day"] [class~="text-orange-200"],
html[data-port-theme-mode="day"] [class~="text-orange-300"],
html[data-port-theme-mode="day"] [class~="text-orange-400"] { color: rgb(194 65 12) !important; }
+html[data-port-theme-mode="day"] [class~="text-amber-100"],
+html[data-port-theme-mode="day"] [class~="text-amber-200"],
html[data-port-theme-mode="day"] [class~="text-amber-300"],
html[data-port-theme-mode="day"] [class~="text-amber-400"],
html[data-port-theme-mode="day"] [class~="text-amber-500"] { color: rgb(180 83 9) !important; }
+html[data-port-theme-mode="day"] [class~="text-yellow-100"],
+html[data-port-theme-mode="day"] [class~="text-yellow-200"],
html[data-port-theme-mode="day"] [class~="text-yellow-300"],
html[data-port-theme-mode="day"] [class~="text-yellow-400"],
html[data-port-theme-mode="day"] [class~="text-yellow-500"] { color: rgb(133 77 14) !important; }
+html[data-port-theme-mode="day"] [class~="text-lime-200"],
+html[data-port-theme-mode="day"] [class~="text-lime-300"],
html[data-port-theme-mode="day"] [class~="text-lime-400"] { color: rgb(77 124 15) !important; }
+html[data-port-theme-mode="day"] [class~="text-green-100"],
+html[data-port-theme-mode="day"] [class~="text-green-200"],
html[data-port-theme-mode="day"] [class~="text-green-300"],
html[data-port-theme-mode="day"] [class~="text-green-400"],
html[data-port-theme-mode="day"] [class~="text-green-500"] { color: rgb(21 128 61) !important; }
+html[data-port-theme-mode="day"] [class~="text-emerald-100"],
+html[data-port-theme-mode="day"] [class~="text-emerald-200"],
html[data-port-theme-mode="day"] [class~="text-emerald-300"],
html[data-port-theme-mode="day"] [class~="text-emerald-400"],
html[data-port-theme-mode="day"] [class~="text-emerald-500"] { color: rgb(4 120 87) !important; }
+html[data-port-theme-mode="day"] [class~="text-teal-200"],
+html[data-port-theme-mode="day"] [class~="text-teal-300"],
html[data-port-theme-mode="day"] [class~="text-teal-400"] { color: rgb(15 118 110) !important; }
/* hover: variants used on chips and buttons */