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
address review: stand the card slot down on a dead runtime too
Adam Eivy72ee696db22e
diff --git a/client/src/components/decks/DeckCardGrid.jsx b/client/src/components/decks/DeckCardGrid.jsxindex 549f2870f3..579cd33813 100644--- a/client/src/components/decks/DeckCardGrid.jsx+++ b/client/src/components/decks/DeckCardGrid.jsx@@ -86,6 +86,13 @@ export default function DeckCardGrid({onPreview={() => onPreview(card)}onComplete={(filename) => onRenderComplete(card.id, filename)}onTerminalStatus={(s, error) => onRenderTerminal(card.id, s, error)}+ // The slot is the bigger of the card's two render+ // affordances, so a dead runtime has to stand it down too+ // or the button below stands down alone and reads broken.+ // A promptless slot is exempt: it opens the editor, which+ // works whatever the runtime is doing.+ canRender={needsPrompt || !runtimeBlocked}+ disabledHint={reRenderHint}emptyIcon={needsPrompt ? PencilLine : undefined}emptyHint={needsPrompt ? `Write a prompt for ${card.name}` : `Render ${card.name}`}alt={card.name}diff --git a/client/src/components/decks/DeckCardGrid.test.jsx b/client/src/components/decks/DeckCardGrid.test.jsxindex 44c0617587..228b58f0cc 100644--- a/client/src/components/decks/DeckCardGrid.test.jsx+++ b/client/src/components/decks/DeckCardGrid.test.jsx@@ -99,12 +99,19 @@ describe('DeckCardGrid', () => {expect(screen.getByRole('button', { name: 'Card c is rendering' })).toBeDisabled();});- it('stands every card button down while the local runtime is unavailable', () => {- renderGrid({ renderTarget: renderTarget({ blocked: true }) });+ it('stands every render affordance down while the local runtime is unavailable', () => {+ const props = renderGrid({ renderTarget: renderTarget({ blocked: true }) });const blocked = screen.getAllByRole('button', { name: /the local image runtime is unavailable/ });- // Every card except the promptless one and the in-flight one, which each- // keep their own more specific reason.- expect(blocked).toHaveLength(3);+ // The three renderable cards' buttons, plus the empty slot of each card+ // that would otherwise offer a one-click render (a and d) — the bigger+ // affordance of the two, so leaving it live would read as broken.+ expect(blocked).toHaveLength(5);blocked.forEach((b) => expect(b).toBeDisabled());+ // The promptless card keeps its way out: that slot opens the editor, which+ // works whatever the runtime is doing.+ const write = screen.getByRole('button', { name: 'Write a prompt for Card e' });+ expect(write).toBeEnabled();+ fireEvent.click(write);+ expect(props.onOpenCard).toHaveBeenCalledWith(expect.objectContaining({ id: 'e' }));});});diff --git a/client/src/components/decks/DeckRenderControls.test.jsx b/client/src/components/decks/DeckRenderControls.test.jsxindex efa796960b..788086aa50 100644--- a/client/src/components/decks/DeckRenderControls.test.jsx+++ b/client/src/components/decks/DeckRenderControls.test.jsx@@ -28,7 +28,6 @@ const completion = (over) => ({ total: 79, prompted: 0, rendered: 0, inFlight: 0// the same object to the bar and the grid, so the bar takes it as a prop.const ready = { readiness: 'ready', modelId: 'flux2-klein-9b', model: 'FLUX.2 Klein 9B', runtimeLabel: 'Shared torch runtime', reason: null, remedy: null };const renderTarget = (runtime = ready, over = {}) => ({- imageCfg: { mode: 'local', modelId: 'flux2-klein-9b' },backends: [{ id: 'local', label: 'Local' }],size: deck.cardSize,summary: 'Local · flux2-klein-9b · 1096×1536',