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: stop the live-panel budget badge warning on a full 1-call budget, and drop the header buttons' overlapping negative margin (#3567)
[._.]/ Adam Eivye075bdcf5133
diff --git a/.changelog/NEXT.md b/.changelog/NEXT.mdindex 8245d29f1e..a16ee93355 100644--- a/.changelog/NEXT.md+++ b/.changelog/NEXT.md@@ -193,4 +193,4 @@- **[issue-3565] Three Writers Room controls are now big enough to hit on a phone.** The Edit pencil on every Cast/Places/Objects bible row was an 11px icon with no padding around it — an ~11x11px tap target sitting next to the row text, so a thumb aiming for it selected the entry description instead. The snapshot Revert button in the Polish panel was 11px text and a matching icon on a row with no vertical padding of its own (~16px tall), and the World style Clear button in the Storyboard config tab was bare 9px text (~10x22px). All three now clear the 44px floor the rest of the app uses. Each one bleeds into the padding its own row already had rather than adding height on top of it, so the bible list and the snapshot list keep their density and the Clear button stays inside its stack gap instead of overlapping the style dropdown beneath it.- **[issue-3579] Refusing a 3D model install on unsupported hardware now says why in English, and a new reason code can no longer go label-less.** The image-to-3D registry answers "can this host run that target?" with stable codes like `requires-linux-host` and `cuda-probe-failed`; the 3D page turned those into sentences from a hand-written table of its own, and the install endpoint had no table at all — so asking to install a target this machine can't run streamed back "This host cannot run TRELLIS.2 (CUDA) (requires-linux-host)", handing the user the internal code instead of the one thing they could act on. Both sides now render the same shared map, which lives next to the function that returns the codes and is mirrored to the client the way the catalog type registry already is. A parity test asserts the two copies never drift, and — the reason the drift was worth fixing rather than just re-syncing — it also reads the resolver's source and asserts the labelled set still *equals* the codes it can actually return. The previous arrangement failed silently: the CUDA lane added three codes by hand on each side, and a fourth that someone forgot to mirror would have rendered as the generic "Unsupported on this host" with every test still green.- **[issue-3568] The Writers Room prose editor starts above the fold on a phone again.** The work header laid out every control in one wrapping row, so at ~375px the title field, status dropdown, Edit/Read/Review toggle, Save, Snapshot and the Work menu stacked into four or five rows and ate 250-300px of a 667px screen — the textarea you came to write in began below the fold before the keyboard even opened. The header is now two compact rows on a phone: title, Save, Snapshot and the Work menu on the first, and the status dropdown plus the view toggle on a sub-bar of their own beneath it. The view toggle and Snapshot drop their text labels under `sm` so both rows stay single-line at 375px, keeping their names for screen readers. Nothing moved into the overflow menu — every control is still one tap away — and the desktop layout is the same single row in the same left-to-right order, because the sub-bar dissolves back into the header row at `sm` and up rather than being a second copy of the controls: the markup order *is* the desktop order, so the desktop tab order still follows what is on screen. Each control on the phone rows now clears the 44px touch floor.-- **[issue-3567] The Writers Room live panels no longer hide what their buttons do — or how much daily budget is left — behind a mouse hover.** The CD Bridge, Live Director and Live Render headers each printed a bare "12 / 20 left today" whose meaning (which budget? shared with what?) lived only in a `title` tooltip, and the Propose / Suggest / Render / Send actions explained themselves the same way. A touch screen fires no hover, so on a phone none of it existed. The three readouts are now one shared badge that names its budget in visible text — and turns amber, then red with a warning icon and the UTC-midnight reset time, as the allowance runs down, so a spent budget stops looking identical to a full one. Each action carries the sentence as an explicit accessible name, prefixed with the words actually printed on the button so voice control can still reach it, and the two actions whose description had nowhere else to live (Send to Creative Director, Render scene) also print it as visible helper text. The five buttons involved were bare 18px-tall glyph rows; they now clear the same 44px tap-target floor as the rest of the panel, bleeding into the padding their header already had so nothing grew taller, and the headers wrap instead of squeezing at phone widths.+- **[issue-3567] The Writers Room live panels no longer hide what their buttons do — or how much daily budget is left — behind a mouse hover.** The CD Bridge, Live Director and Live Render headers each printed a bare "12 / 20 left today" whose meaning (which budget? shared with what?) lived only in a `title` tooltip, and the Propose / Suggest / Render / Send actions explained themselves the same way. A touch screen fires no hover, so on a phone none of it existed. The three readouts are now one shared badge that names its budget in visible text — and turns amber, then red with a warning icon and the UTC-midnight reset time, as the allowance runs down, so a spent budget stops looking identical to a full one. Each action carries the sentence as an explicit accessible name, prefixed with the words actually printed on the button so voice control can still reach it, and the two actions whose description had nowhere else to live (Send to Creative Director, Render scene) also print it as visible helper text. The five buttons involved were bare 18px-tall glyph rows; they now clear the same 44px tap-target floor as the rest of the app, and the headers wrap onto a second line instead of squeezing at phone widths — so, unlike the list rows in #3565, the header buttons take the extra height rather than clawing it back with a negative margin that would collide with the wrapped line above them.diff --git a/client/src/components/writers-room/CdBridgePanel.jsx b/client/src/components/writers-room/CdBridgePanel.jsxindex 6686316b5a..64db7d9da1 100644--- a/client/src/components/writers-room/CdBridgePanel.jsx+++ b/client/src/components/writers-room/CdBridgePanel.jsx@@ -117,13 +117,14 @@ export default function CdBridgePanel({ workId, liveMode, usage, onUsageChange,</div><div className="flex items-center gap-2 flex-wrap"><LiveBudgetBadge label="Suggestions (shared)" budget={budget} spent={spent} />- {/* 44px tap target; -my-2 bleeds into the panel's own py-2 so the- header doesn't grow taller than it already was. */}+ {/* 44px tap target. No negative margin to claw the height back the+ way a list row can (#3565): this header WRAPS at phone widths, and+ a button pulled 8px up would then overlap the line above it. */}<buttontype="button"onClick={requestProposal}disabled={loading}- className="flex items-center justify-center gap-1 min-h-[44px] px-2 -my-2 text-[10px] rounded bg-port-bg border border-port-border text-gray-300 hover:text-white disabled:opacity-50"+ className="flex items-center justify-center gap-1 min-h-[44px] px-2 text-[10px] rounded bg-port-bg border border-port-border text-gray-300 hover:text-white disabled:opacity-50"title={PROPOSE_LABEL}aria-label={PROPOSE_LABEL}>diff --git a/client/src/components/writers-room/LiveBudgetBadge.jsx b/client/src/components/writers-room/LiveBudgetBadge.jsxindex dd08a7831b..e7dd9fe800 100644--- a/client/src/components/writers-room/LiveBudgetBadge.jsx+++ b/client/src/components/writers-room/LiveBudgetBadge.jsx@@ -18,14 +18,17 @@ import { AlertTriangle } from 'lucide-react';// announced twice).// Warn once a fifth of the daily allowance is left — at least 1 call, so a tiny-// budget still gets a warning before it hits zero.+// budget still gets a warning before it hits zero, but never the whole budget:+// a `dailyCallBudget` of 1 would otherwise render its untouched allowance as a+// warning, because a fifth of 1 rounds back up to 1.const LOW_RATIO = 0.2;+const lowThreshold = (budget) => Math.min(budget - 1, Math.max(1, Math.ceil(budget * LOW_RATIO)));export default function LiveBudgetBadge({ label, budget, spent }) {const limited = budget > 0;const remaining = limited ? Math.max(0, budget - (spent || 0)) : null;const exhausted = limited && remaining === 0;- const low = limited && !exhausted && remaining <= Math.max(1, Math.ceil(budget * LOW_RATIO));+ const low = limited && !exhausted && remaining <= lowThreshold(budget);const tone = exhausted ? 'text-port-error' : low ? 'text-port-warning' : 'text-gray-500';return (diff --git a/client/src/components/writers-room/LiveContinuationPanel.jsx b/client/src/components/writers-room/LiveContinuationPanel.jsxindex d233769c6d..1c62df7f6c 100644--- a/client/src/components/writers-room/LiveContinuationPanel.jsx+++ b/client/src/components/writers-room/LiveContinuationPanel.jsx@@ -140,13 +140,14 @@ export default function LiveContinuationPanel({</div><div className="flex items-center gap-2 flex-wrap"><LiveBudgetBadge label="Suggestions" budget={budget} spent={spent} />- {/* 44px tap target; -my-2 bleeds into the header's own py-2 so the- row keeps the height it already had. */}+ {/* 44px tap target. No negative margin to claw the height back the+ way a list row can (#3565): this header WRAPS at phone widths, and+ a button pulled 8px up would then overlap the line above it. */}<buttontype="button"onClick={requestSuggest}disabled={loading}- className="flex items-center justify-center gap-1 min-h-[44px] px-2 -my-2 text-[10px] rounded bg-port-bg border border-port-border text-gray-300 hover:text-white disabled:opacity-50"+ className="flex items-center justify-center gap-1 min-h-[44px] px-2 text-[10px] rounded bg-port-bg border border-port-border text-gray-300 hover:text-white disabled:opacity-50"title={SUGGEST_LABEL}aria-label={SUGGEST_LABEL}>@@ -178,8 +179,9 @@ export default function LiveContinuationPanel({</span>{(opt.kind === 'prose' || opt.kind === 'dialogue') && (// Every Insert button reads "Insert", so the accessible name- // names WHICH suggestion it inserts; 44px tap target bleeding- // into the card's own p-2.+ // names WHICH suggestion it inserts. 44px tap target; -my-2+ // bleeds into the card's own p-2 to keep the option list dense+ // — safe here (unlike the header) because this row never wraps.<buttontype="button"onClick={() => onInsert?.(opt)}diff --git a/client/src/components/writers-room/LiveRenderPanel.jsx b/client/src/components/writers-room/LiveRenderPanel.jsxindex 28115b8a76..4921d5b23e 100644--- a/client/src/components/writers-room/LiveRenderPanel.jsx+++ b/client/src/components/writers-room/LiveRenderPanel.jsx@@ -256,13 +256,14 @@ export default function LiveRenderPanel({</div><div className="flex items-center gap-2 flex-wrap"><LiveBudgetBadge label="Renders" budget={budget} spent={spent} />- {/* 44px tap target; -my-2 bleeds into the panel's own py-2 so the- header keeps the height it already had. */}+ {/* 44px tap target. No negative margin to claw the height back the+ way a list row can (#3565): this header WRAPS at phone widths, and+ a button pulled 8px up would then overlap the line above it. */}<buttontype="button"onClick={renderCursorScene}disabled={busy}- className="flex items-center justify-center gap-1 min-h-[44px] px-2 -my-2 text-[10px] rounded bg-port-bg border border-port-border text-gray-300 hover:text-white disabled:opacity-50"+ className="flex items-center justify-center gap-1 min-h-[44px] px-2 text-[10px] rounded bg-port-bg border border-port-border text-gray-300 hover:text-white disabled:opacity-50"title={`${renderText}: ${RENDER_HINT}`}aria-label={`${renderText}: ${RENDER_HINT}`}>diff --git a/client/src/components/writers-room/livePanelsA11y.test.jsx b/client/src/components/writers-room/livePanelsA11y.test.jsxindex 888d76b00a..9a4281e588 100644--- a/client/src/components/writers-room/livePanelsA11y.test.jsx+++ b/client/src/components/writers-room/livePanelsA11y.test.jsx@@ -113,6 +113,15 @@ describe('LiveBudgetBadge', () => {expect(badge.className).not.toContain('text-port-error');});+ // A fifth of a 1-call budget rounds back up to 1, so an untouched allowance+ // used to render as a warning.+ it('does not warn on an untouched single-call budget', () => {+ render(<LiveBudgetBadge label="Renders" budget={1} spent={0} />);+ const badge = screen.getByText('Renders: 1 / 1 left today');+ expect(badge.className).toContain('text-gray-500');+ expect(badge.className).not.toContain('text-port-warning');+ });+it('never reports a negative balance when spend has overrun the budget', () => {render(<LiveBudgetBadge label="Suggestions" budget={5} spent={9} />);expect(screen.getByText(/Suggestions: 0 \/ 5 left today/)).toBeInTheDocument();@@ -127,6 +136,9 @@ describe('CdBridgePanel a11y (#3567)', () => {const btn = screen.getByRole('button', { name: 'Propose treatment: Turns the prose at your cursor into a Creative Director treatment' });expectLabelInName(btn);expect(btn.className).toContain('min-h-[44px]');+ // The header wraps at phone widths, so the button must NOT claw its height+ // back with a negative margin — it would overlap the wrapped line above.+ expect(btn.className).not.toContain('-my-');});it('shows the shared suggestion budget without hover', () => {@@ -161,6 +173,9 @@ describe('LiveContinuationPanel a11y (#3567)', () => {const btn = screen.getByRole('button', { name: 'Suggest a continuation from the cursor' });expectLabelInName(btn);expect(btn.className).toContain('min-h-[44px]');+ // The header wraps at phone widths, so the button must NOT claw its height+ // back with a negative margin — it would overlap the wrapped line above.+ expect(btn.className).not.toContain('-my-');});it('shows the suggestion budget without hover', () => {@@ -194,6 +209,9 @@ describe('LiveRenderPanel a11y (#3567)', () => {const btn = screen.getByRole('button', { name: 'Render scene: Renders a quick reference image for the scene at your cursor' });expectLabelInName(btn);expect(btn.className).toContain('min-h-[44px]');+ // The header wraps at phone widths, so the button must NOT claw its height+ // back with a negative margin — it would overlap the wrapped line above.+ expect(btn.className).not.toContain('-my-');});it('shows the render budget and what the action does without hover', () => {