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
Look step: one Build button, clearer creative direction summary
Claude06f36e96c4f5
diff --git a/client/src/components/musicVideo/CastAndSetsCheckin.test.jsx b/client/src/components/musicVideo/CastAndSetsCheckin.test.jsxindex ef8dce3282..2a2075cc56 100644--- a/client/src/components/musicVideo/CastAndSetsCheckin.test.jsx+++ b/client/src/components/musicVideo/CastAndSetsCheckin.test.jsx@@ -270,13 +270,21 @@ describe('Cast & Sets tab: undo, regenerate and guide import', () => {});describe('Cast & Sets stage before any check-in exists', () => {- it('offers Build and Skip, wired to the start and skip actions', async () => {+ it('leaves Build to the checklist and keeps only Skip, wired to the skip action', async () => {const start = vi.fn();const skip = vi.fn();render(<CastSetsStage board={{ project: { id: 'example-project', audioAnalysis: { sections: [{}] } }, locked: false, castSets: { busy: false, start, skip }, kickoff: { running: false }, devArtifacts: { busy: false }, openArtifact: vi.fn(), ...DRAFTS }} />);- fireEvent.click(screen.getByRole('button', { name: 'Build cast & sets' }));- fireEvent.click(screen.getByRole('button', { name: 'Skip' }));- expect(start).toHaveBeenCalledTimes(1);+ // The step's checklist and header already offer Build; a second copy here only repeated it.+ expect(screen.queryByRole('button', { name: 'Build cast & sets' })).toBeNull();+ fireEvent.click(screen.getByRole('button', { name: 'Skip cast & sets' }));expect(skip).toHaveBeenCalledTimes(1);+ expect(start).not.toHaveBeenCalled();+ });++ it('says which style is empty and counts references and style images apart', () => {+ const project = { id: 'example-project', audioAnalysis: { sections: [{}] }, concept: { prompt: 'p', style: '', songStyle: 'synthwave' },+ visualSpec: { references: [{ id: 'a' }, { id: 'b' }, { id: 'c' }] }, styleReferences: Array.from({ length: 15 }, (_, i) => ({ id: `s${i}` })) };+ render(<CastSetsStage board={{ project, locked: false, castSets: { busy: false, start: vi.fn(), skip: vi.fn() }, kickoff: { running: false }, devArtifacts: { busy: false }, openArtifact: vi.fn(), ...DRAFTS }} />);+ expect(screen.getByText(/No visual style yet · Song style set · 3 references · 15 style images/)).toBeInTheDocument();});});diff --git a/client/src/components/musicVideo/stages/CastSetsStage.jsx b/client/src/components/musicVideo/stages/CastSetsStage.jsxindex 26281ead57..7eb5475e9c 100644--- a/client/src/components/musicVideo/stages/CastSetsStage.jsx+++ b/client/src/components/musicVideo/stages/CastSetsStage.jsx@@ -13,15 +13,20 @@ import { CAST_CHECKIN_ANCHOR, LOOK_GUIDES_ANCHOR } from '../../../lib/musicVideoconst ANCHOR_STYLE = { scrollMarginTop: 'calc(var(--mv-header-h, 9rem) + 1rem)' };const directionSummary = (project) => {- const refs = (project.visualSpec?.references || []).length + (project.styleReferences || []).length;+ const specRefs = (project.visualSpec?.references || []).length;+ const styleImages = (project.styleReferences || []).length;const characterStyle = project.concept?.characterStyleId? (project.concept.characterStyle?.split(':')[0] || project.concept.characterStyleId) : '';return [characterStyle ? `Character style: ${characterStyle}` : 'No character style',project.concept?.prompt?.trim() ? 'Concept written' : 'No concept yet',- project.concept?.style?.trim() ? 'Style set' : 'No style yet',+ // "Visual", so an empty frame style never reads as a missing song style.+ project.concept?.style?.trim() ? 'Visual style set' : 'No visual style yet',...(project.concept?.songStyle?.trim() ? ['Song style set'] : []),- refs ? `${formatCount(refs)} look ${refs === 1 ? 'reference' : 'references'}` : 'No look references',+ // References and uploaded style images are counted apart: they are two lists in the panel.+ ...(specRefs ? [`${formatCount(specRefs)} ${specRefs === 1 ? 'reference' : 'references'}`] : []),+ ...(styleImages ? [`${formatCount(styleImages)} style ${styleImages === 1 ? 'image' : 'images'}`] : []),+ ...(specRefs || styleImages ? [] : ['No look references']),].join(' · ');};@@ -152,20 +157,14 @@ export default function CastSetsStage({ board }) {onSkip={board.skipCastAndSets}/>) : (- <div id={CAST_CHECKIN_ANCHOR} tabIndex={-1} style={ANCHOR_STYLE} className="rounded-lg border border-port-border bg-port-card p-3 space-y-3">- <p className="text-sm text-port-text-muted">Build the cast and sets from your direction, or skip and add your own sheets.</p>- <div className="flex flex-wrap gap-2">- <button type="button" onClick={() => castSets.start()} disabled={locked || castSets.busy || kickoff.running || !project.audioAnalysis}- title={project.audioAnalysis ? undefined : 'Analyze the track first'}- className="min-h-10 rounded-lg bg-port-accent px-3 py-2 text-sm font-medium text-white disabled:opacity-50">- Build cast & sets- </button>- <button type="button" onClick={() => castSets.skip()} disabled={locked || castSets.busy || kickoff.running}- className="min-h-10 rounded-lg border border-port-border px-3 py-2 text-sm text-port-text-muted hover:text-white disabled:opacity-50">- Skip- </button>- </div>- </div>+ // Build lives on the step's checklist (and the header); this keeps only the way out.+ <p id={CAST_CHECKIN_ANCHOR} tabIndex={-1} style={ANCHOR_STYLE} className="px-1 text-xs text-port-text-muted">+ Using your own sheets instead?{' '}+ <button type="button" onClick={() => castSets.skip()} disabled={locked || castSets.busy || kickoff.running}+ className="min-h-[44px] text-port-accent hover:underline disabled:opacity-50 sm:min-h-0">+ Skip cast & sets+ </button>+ </p>)}<DevArtifactsPanelid={LOOK_GUIDES_ANCHOR}