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: show one music-video status and a short phone header (#10170)
Adam Eivycd79384ceee3
diff --git a/client/src/components/musicVideo/MusicVideoLayout.jsx b/client/src/components/musicVideo/MusicVideoLayout.jsxindex 2800977b65..6ee0179d0a 100644--- a/client/src/components/musicVideo/MusicVideoLayout.jsx+++ b/client/src/components/musicVideo/MusicVideoLayout.jsx@@ -1,4 +1,4 @@-import { useEffect, useRef } from 'react';+import { useEffect, useRef, useState } from 'react';import {AlertTriangle, ArrowRight, CheckCircle2, CircleDot, Clapperboard, Film, Layers, LayoutGrid, Music, Play,Send, SlidersHorizontal, Users,@@ -28,6 +28,44 @@ export const MUSIC_VIDEO_SCROLL_ID = 'mv-scroll';const STATUS_TONES = { warn: 'text-port-warning', ok: 'text-port-success', muted: 'text-port-text-muted' };+function StatusFacts({ status }) {+ return status.facts.map((fact) => (+ <span key={fact.id} className={`flex items-center gap-2 ${STATUS_TONES[fact.tone] || ''}`}>+ <span aria-hidden="true" className="text-port-text-muted">·</span>{fact.label}+ </span>+ ));+}++/** Wide screens show the headline and every fact. A phone shows one tappable line. */+function ProjectStatusLine({ status }) {+ const [open, setOpen] = useState(false);+ const facts = status.facts || [];+ return (+ <>+ <p role="status" aria-label="Project status" className="hidden min-w-0 flex-wrap items-center gap-x-2 gap-y-0.5 text-xs sm:flex">+ <span className={`font-medium ${STATUS_TONES[status.tone] || ''}`}>{status.headline}</span>+ <StatusFacts status={status} />+ </p>+ <div>+ <button+ type="button"+ className="flex min-h-8 w-full min-w-0 items-center gap-1 text-left text-xs sm:hidden"+ aria-expanded={facts.length > 0 ? open : undefined}+ onClick={() => { if (facts.length > 0) setOpen((value) => !value); }}+ >+ <span className={`min-w-0 truncate font-medium ${STATUS_TONES[status.tone] || ''}`}>{status.headline}</span>+ {facts.length > 0 && <span className="shrink-0 text-port-text-muted">· {facts.length}</span>}+ </button>+ {open && facts.length > 0 && (+ <p className="flex min-w-0 flex-wrap items-center gap-x-2 gap-y-0.5 text-xs">+ <StatusFacts status={status} />+ </p>+ )}+ </div>+ </>+ );+}+// Below `lg` the preview is a mini-player pinned above the bottom tab bar (or// the viewport edge once the tab bar is in the header); from `lg` it is a// sticky right column that clears the header (the -0.75rem cancels the@@ -93,7 +131,7 @@ export default function MusicVideoLayout({className="sticky top-[calc(env(safe-area-inset-top)-1rem)] z-30 -mx-4 space-y-2 border-b border-port-border bg-port-bg px-4 pt-2 md:top-[calc(env(safe-area-inset-top)-1.5rem)] md:-mx-6 md:px-6"><div className="flex min-w-0 items-center gap-3">- <h2 className="min-w-0 flex-1 truncate text-lg font-semibold">{project.name}</h2>+ <h2 className="min-w-0 flex-1 truncate text-lg font-semibold" title={project.name}>{project.name}</h2><span className="flex min-w-0 items-center gap-1 text-xs text-port-text-muted max-sm:hidden"><Music size={12} className="shrink-0" aria-hidden="true" /><span className="truncate">{trackLabel}</span>@@ -111,22 +149,16 @@ export default function MusicVideoLayout({onClick={onNextAction}disabled={nextAction.disabled}title={nextAction.reason}- className="flex min-h-[44px] shrink-0 items-center gap-1 rounded bg-port-accent px-3 py-1.5 text-sm text-white disabled:opacity-50 sm:min-h-0"+ aria-label={nextAction.label}+ className="flex h-8 shrink-0 items-center gap-1 rounded bg-port-accent px-2 text-xs text-white disabled:opacity-50 sm:h-auto sm:min-h-0 sm:px-3 sm:py-1.5 sm:text-sm">- <ActionIcon size={14} aria-hidden="true" /> {nextAction.label}+ <ActionIcon size={14} aria-hidden="true" />+ <span className="sm:hidden">{nextAction.shortLabel || nextAction.label}</span>+ <span className="hidden sm:inline">{nextAction.label}</span></button>)}</div>- {status && (- <p role="status" aria-label="Project status" className="flex min-w-0 flex-wrap items-center gap-x-2 gap-y-0.5 text-xs">- <span className={`font-medium ${STATUS_TONES[status.tone] || ''}`}>{status.headline}</span>- {status.facts.map((fact) => (- <span key={fact.id} className={`flex items-center gap-2 ${STATUS_TONES[fact.tone] || ''}`}>- <span aria-hidden="true" className="text-port-text-muted">·</span>{fact.label}- </span>- ))}- </p>- )}+ {status && <ProjectStatusLine status={status} />}{attention}<navaria-label="Stages"diff --git a/client/src/components/musicVideo/MusicVideoLayout.test.jsx b/client/src/components/musicVideo/MusicVideoLayout.test.jsxindex 007856c3d3..74aa96b099 100644--- a/client/src/components/musicVideo/MusicVideoLayout.test.jsx+++ b/client/src/components/musicVideo/MusicVideoLayout.test.jsx@@ -28,6 +28,21 @@ describe('music-video stage navigation', () => {const status = screen.getByRole('status', { name: 'Project status' });expect(status).toHaveTextContent('Stage 2 of 7: Cast & Sets · needs you');expect(status).toHaveTextContent('Nothing rendered yet');+ // Phone collapses the facts behind one line; the wide line stays for sm+.+ expect(screen.getByRole('button', { name: /Stage 2 of 7/ })).toHaveClass('sm:hidden');+ });++ it('keeps the project name from a long next action on a phone (#10170)', () => {+ render(<MusicVideoLayout project={{ id: 'example-project', name: 'Example Project Name' }} stage="board"+ onStageChange={() => {}} progress={{ current: 'board', stages: MUSIC_VIDEO_STAGES.map((stage) => ({ ...stage, state: 'todo' })) }}+ spend={{ spentUsd: 1.2, capUsd: 10 }}+ nextAction={{ id: 'review-production', kind: 'goto', label: 'Review timed storyboard', shortLabel: 'Board' }}+ onNextAction={() => {}} />);+ const name = screen.getByRole('heading', { level: 2, name: 'Example Project Name' });+ expect(name).toHaveClass('min-w-0', 'truncate');+ const action = screen.getByRole('button', { name: 'Review timed storyboard' });+ expect(action).toHaveTextContent('Board');+ expect(action.querySelector('.sm\\:hidden')).toHaveTextContent('Board');});it('keeps every fixed stage in the compact icon row after adding Publish', () => {diff --git a/client/src/components/musicVideo/NeedsAttentionBanner.jsx b/client/src/components/musicVideo/NeedsAttentionBanner.jsxindex d976fcd8d9..4207c91298 100644--- a/client/src/components/musicVideo/NeedsAttentionBanner.jsx+++ b/client/src/components/musicVideo/NeedsAttentionBanner.jsx@@ -1,3 +1,4 @@+import { useState } from 'react';import { AlertTriangle, Link2, Play, X } from 'lucide-react';import { Link } from 'react-router';import { ATTENTION_ANCHOR_ID } from '../../lib/musicVideoAttention.js';@@ -64,42 +65,54 @@ function ItemActions({ item, busy, actions }) {* there is nothing to attend to.*/export default function NeedsAttentionBanner({ items, busy = false, actions = {} }) {+ const [open, setOpen] = useState(false);if (!items?.length) return null;+ const countLabel = items.length === 1 ? '1 needs attention' : `${items.length} need attention`;return (<sectionid={ATTENTION_ANCHOR_ID}aria-label="Needs attention"- className="max-h-[40vh] space-y-1.5 overflow-y-auto rounded border border-port-warning/40 bg-port-warning/5 p-2 text-xs"+ className="text-xs sm:max-h-[40vh] sm:space-y-1.5 sm:overflow-y-auto sm:rounded sm:border sm:border-port-warning/40 sm:bg-port-warning/5 sm:p-2">- <h3 className="flex items-center gap-1 font-medium text-port-warning">- <AlertTriangle size={12} aria-hidden="true" /> Needs attention- </h3>- <ul className="space-y-1.5">- {items.map((item) => (- <li key={item.id} className="flex min-w-0 flex-wrap items-center gap-x-3 gap-y-1">- <span className="min-w-0 flex-1 basis-60">- <span className="font-medium">{item.title}</span>- <span className="block text-port-text-muted">{item.detail}</span>- {item.scenes?.length > 0 && (- <span className="mt-1 flex flex-wrap gap-1.5">- {item.scenes.map((s) => (- <Link- key={s.sceneId}- to={`/music-video/${item.projectId || ''}/board/scene/${s.sceneId}`}- className="rounded bg-port-accent/10 px-1.5 py-0.5 text-[11px] text-port-accent hover:underline"- >- {s.label || `Scene ${(s.order ?? 0) + 1}`}- </Link>- ))}- </span>- )}- </span>- <span className="flex flex-wrap items-center gap-2">- <ItemActions item={item} busy={busy} actions={actions} />- </span>- </li>- ))}- </ul>+ <button+ type="button"+ className="inline-flex h-8 items-center gap-1 rounded border border-port-warning/40 bg-port-warning/5 px-2 font-medium text-port-warning sm:hidden"+ aria-expanded={open}+ onClick={() => setOpen((value) => !value)}+ >+ <AlertTriangle size={12} aria-hidden="true" /> {countLabel}+ </button>+ <div className={open ? 'max-sm:mt-1.5 max-sm:max-h-[40vh] max-sm:space-y-1.5 max-sm:overflow-y-auto max-sm:rounded max-sm:border max-sm:border-port-warning/40 max-sm:bg-port-warning/5 max-sm:p-2' : 'max-sm:hidden'}>+ <h3 className="flex items-center gap-1 font-medium text-port-warning">+ <AlertTriangle size={12} aria-hidden="true" /> Needs attention+ </h3>+ <ul className="space-y-1.5">+ {items.map((item) => (+ <li key={item.id} className="flex min-w-0 flex-wrap items-center gap-x-3 gap-y-1">+ <span className="min-w-0 flex-1 basis-60">+ <span className="font-medium">{item.title}</span>+ <span className="block text-port-text-muted">{item.detail}</span>+ {item.scenes?.length > 0 && (+ <span className="mt-1 flex flex-wrap gap-1.5">+ {item.scenes.map((s) => (+ <Link+ key={s.sceneId}+ to={`/music-video/${item.projectId || ''}/board/scene/${s.sceneId}`}+ className="rounded bg-port-accent/10 px-1.5 py-0.5 text-[11px] text-port-accent hover:underline"+ >+ {s.label || `Scene ${(s.order ?? 0) + 1}`}+ </Link>+ ))}+ </span>+ )}+ </span>+ <span className="flex flex-wrap items-center gap-2">+ <ItemActions item={item} busy={busy} actions={actions} />+ </span>+ </li>+ ))}+ </ul>+ </div></section>);}diff --git a/client/src/components/musicVideo/NeedsAttentionBanner.test.jsx b/client/src/components/musicVideo/NeedsAttentionBanner.test.jsxindex e6bc59d736..5121e01c21 100644--- a/client/src/components/musicVideo/NeedsAttentionBanner.test.jsx+++ b/client/src/components/musicVideo/NeedsAttentionBanner.test.jsx@@ -78,4 +78,15 @@ describe('NeedsAttentionBanner (#9940)', () => {// Both live in the sticky header, so a director never has to hunt for the way out.expect(within(header).getByRole('status', { name: 'Project status' })).toBeInTheDocument();});++ it('collapses to a count chip below sm and expands on tap (#10170)', () => {+ render(<NeedsAttentionBanner items={deriveAttentionItems({ ...stranded, status: 'complete', revisions: [], autoReviews: [] })} actions={actions()} />);+ const chip = screen.getByRole('button', { name: '1 needs attention' });+ expect(chip).toHaveClass('sm:hidden');+ expect(chip).toHaveAttribute('aria-expanded', 'false');+ expect(chip.parentElement.querySelector('.max-sm\\:hidden')).toBeTruthy();+ fireEvent.click(chip);+ expect(chip).toHaveAttribute('aria-expanded', 'true');+ expect(screen.getByRole('region', { name: 'Needs attention' })).toHaveTextContent('Cast & Sets');+ });});diff --git a/client/src/lib/musicVideoStages.js b/client/src/lib/musicVideoStages.jsindex 325a12fcee..805a108285 100644--- a/client/src/lib/musicVideoStages.js+++ b/client/src/lib/musicVideoStages.js@@ -246,9 +246,10 @@ export function deriveStages(project, readiness = project?.productionReadiness)/*** The single primary action the sticky header offers. `kind: 'run'` calls a* handler the page owns (keyed by `id`); `kind: 'goto'` opens a stage (and- * optionally scrolls to `anchor`). `disabled` carries the reason it can't run- * yet. A live production run, a render in flight and a running kickoff win- * over the stage: they own the project until they settle.+ * optionally scrolls to `anchor`). `label` is the full control name; `shortLabel`+ * is what a phone shows so the project name keeps room. `disabled` carries the+ * reason it can't run yet. A live production run, a render in flight and a+ * running kickoff win over the stage: they own the project until they settle.*/export function deriveNextAction(project, {draftActive = false, proofActive = false, renderActive = false, renderProgress = 0, renderPending = false, renderBlockedByOther = false,@@ -261,27 +262,31 @@ export function deriveNextAction(project, {const cast = project.castAndSets || null;const scenes = project.scenes || [];- if (proofActive) return { id: 'proof-progress', kind: 'goto', stage: 'review', anchor: 'mv-review-render', label: 'View review render' };- if (draftActive) return { id: 'draft-progress', kind: 'goto', stage: 'review', anchor: 'mv-draft-excerpts', label: 'View draft render' };+ if (proofActive) return { id: 'proof-progress', kind: 'goto', stage: 'review', anchor: 'mv-review-render', label: 'View review render', shortLabel: 'Review' };+ if (draftActive) return { id: 'draft-progress', kind: 'goto', stage: 'review', anchor: 'mv-draft-excerpts', label: 'View draft render', shortLabel: 'Draft' };if (projectHasAudio(project) && project.audioAnalysis && !CAST_WORKING.has(cast?.status) && !readiness?.readyForProduction && run?.status !== 'running' && !renderActive && !kickoffRunning) {- return { id: 'review-production', kind: 'goto', stage: !readiness?.art.approved ? 'cast-sets' : !readiness?.storyboard.approved ? 'board' : 'review',- anchor: !readiness?.art.approved ? 'mv-review-art' : !readiness?.storyboard.approved ? 'mv-review-storyboard' : 'mv-review-proof', label: !readiness?.art.approved ? 'Review art direction' : !readiness?.storyboard.approved ? 'Review timed storyboard' : 'Review animated proof' };+ const art = !readiness?.art.approved;+ const board = !readiness?.storyboard.approved;+ return { id: 'review-production', kind: 'goto', stage: art ? 'cast-sets' : board ? 'board' : 'review',+ anchor: art ? 'mv-review-art' : board ? 'mv-review-storyboard' : 'mv-review-proof',+ label: art ? 'Review art direction' : board ? 'Review timed storyboard' : 'Review animated proof',+ shortLabel: art ? 'Art' : board ? 'Board' : 'Proof' };}if (run && RESUMABLE_RUN_STATUSES.has(run.status)) {- if (run.status === 'running' && !run.interrupted) return { id: 'stop-production', kind: 'run', label: 'Stop production', runId: run.id };+ if (run.status === 'running' && !run.interrupted) return { id: 'stop-production', kind: 'run', label: 'Stop production', shortLabel: 'Stop', runId: run.id };return {id: 'resume-production', kind: 'run', runId: run.id, acceptBasis: run.status === 'needs-replan',label: run.status === 'needs-replan' ? 'Resume with new setup' : 'Resume production',+ shortLabel: 'Resume',};}if (renderActive) {- return {- id: 'render-progress', kind: 'run', label: renderPending ? 'Preparing…' : `Rendering… ${Math.round(renderProgress)}%`,- disabled: true,- };+ const label = renderPending ? 'Preparing…' : `Rendering… ${Math.round(renderProgress)}%`;+ return { id: 'render-progress', kind: 'run', label, shortLabel: label, disabled: true };}if (kickoffRunning || analyzing || planning) {- return { id: 'busy', kind: 'run', label: kickoffStep || (planning ? 'Planning…' : 'Working…'), disabled: true };+ const label = kickoffStep || (planning ? 'Planning…' : 'Working…');+ return { id: 'busy', kind: 'run', label, shortLabel: label, disabled: true };}const auto = project.autonomousRun;@@ -291,50 +296,51 @@ export function deriveNextAction(project, {const stepText = (auto.stage === 'lyrics' && AUTONOMOUS_LYRICS_STEP_LABELS[step])|| (auto.stage === 'song' && AUTONOMOUS_SONG_STEP_LABELS[step])|| (AUTONOMOUS_CHECKPOINT_LABELS[auto.stage] ? `${AUTONOMOUS_CHECKPOINT_LABELS[auto.stage]}…` : 'Autonomous run running…');- return { id: 'busy', kind: 'run', label: stepText.endsWith('…') ? stepText : `${stepText}…`, disabled: true };+ const busyLabel = stepText.endsWith('…') ? stepText : `${stepText}…`;+ return { id: 'busy', kind: 'run', label: busyLabel, shortLabel: busyLabel, disabled: true };}if (auto.status === 'awaiting-approval') {const target = AUTONOMOUS_CHECKPOINT_LABELS[auto.awaiting] || auto.awaiting || 'checkpoint';- return { id: 'review-autonomous', kind: 'goto', stage: 'setup', anchor: 'mv-auto-edit', label: `Review ${target}` };+ return { id: 'review-autonomous', kind: 'goto', stage: 'setup', anchor: 'mv-auto-edit', label: `Review ${target}`, shortLabel: 'Review' };}if (auto.interrupted || auto.status === 'stopped' || auto.status === 'needs-human') {- return { id: 'resume-autonomous', kind: 'run', label: 'Resume autonomous run' };+ return { id: 'resume-autonomous', kind: 'run', label: 'Resume autonomous run', shortLabel: 'Resume' };}if (auto.status === 'failed') {- return { id: 'retry-autonomous', kind: 'run', label: 'Retry autonomous run' };+ return { id: 'retry-autonomous', kind: 'run', label: 'Retry autonomous run', shortLabel: 'Retry' };}}switch (current) {case 'setup':- if (!projectHasAudio(project)) return { id: 'goto-setup', kind: 'goto', stage: 'setup', anchor: 'mv-track', label: 'Attach a track' };+ if (!projectHasAudio(project)) return { id: 'goto-setup', kind: 'goto', stage: 'setup', anchor: 'mv-track', label: 'Attach a track', shortLabel: 'Track' };if (project.automation && scenes.length === 0) {- return { id: 'kickoff', kind: 'run', label: 'Run autopilot', disabled: !!kickoffBlockedReason, reason: kickoffBlockedReason || undefined };+ return { id: 'kickoff', kind: 'run', label: 'Run autopilot', shortLabel: 'Autopilot', disabled: !!kickoffBlockedReason, reason: kickoffBlockedReason || undefined };}- return { id: 'analyze', kind: 'run', label: 'Analyze song' };+ return { id: 'analyze', kind: 'run', label: 'Analyze song', shortLabel: 'Analyze' };case 'cast-sets':- if (cast?.status === 'review') return { id: 'approve-cast-sets', kind: 'run', label: 'Approve cast & sets' };- if (cast && (cast.interrupted || cast.status === 'failed')) return { id: 'resume-cast-sets', kind: 'run', label: 'Resume cast & sets' };- if (cast && CAST_WORKING.has(cast.status)) return { id: 'busy', kind: 'run', label: 'Building cast & sets…', disabled: true };- return { id: 'kickoff', kind: 'run', label: 'Run autopilot', disabled: !!kickoffBlockedReason, reason: kickoffBlockedReason || undefined };+ if (cast?.status === 'review') return { id: 'approve-cast-sets', kind: 'run', label: 'Approve cast & sets', shortLabel: 'Approve' };+ if (cast && (cast.interrupted || cast.status === 'failed')) return { id: 'resume-cast-sets', kind: 'run', label: 'Resume cast & sets', shortLabel: 'Resume' };+ if (cast && CAST_WORKING.has(cast.status)) return { id: 'busy', kind: 'run', label: 'Building cast & sets…', shortLabel: 'Building…', disabled: true };+ return { id: 'kickoff', kind: 'run', label: 'Run autopilot', shortLabel: 'Autopilot', disabled: !!kickoffBlockedReason, reason: kickoffBlockedReason || undefined };case 'board':- return { id: 'plan', kind: 'run', label: 'Plan the shots', disabled: !project.audioAnalysis, reason: project.audioAnalysis ? undefined : 'Analyze the track first' };+ return { id: 'plan', kind: 'run', label: 'Plan the shots', shortLabel: 'Plan', disabled: !project.audioAnalysis, reason: project.audioAnalysis ? undefined : 'Analyze the track first' };case 'produce':- if (run?.status === 'needs-human') return { id: 'goto-review', kind: 'goto', stage: 'review', label: 'Review the draft' };- return { id: 'goto-produce', kind: 'goto', stage: 'produce', anchor: 'mv-production-start', label: 'Set up production' };- case 'compose':- return {- id: 'goto-compose', kind: 'goto', stage: 'compose',- label: { document: 'Attach a composition', eidoverse: 'Save the Eidoverse scene', code: 'Generate the code video' }[project.composition?.mode] || 'Add typography',- };+ if (run?.status === 'needs-human') return { id: 'goto-review', kind: 'goto', stage: 'review', label: 'Review the draft', shortLabel: 'Review' };+ return { id: 'goto-produce', kind: 'goto', stage: 'produce', anchor: 'mv-production-start', label: 'Set up production', shortLabel: 'Produce' };+ case 'compose': {+ const label = { document: 'Attach a composition', eidoverse: 'Save the Eidoverse scene', code: 'Generate the code video' }[project.composition?.mode] || 'Add typography';+ const shortLabel = { document: 'Attach', eidoverse: 'Save', code: 'Generate' }[project.composition?.mode] || 'Type';+ return { id: 'goto-compose', kind: 'goto', stage: 'compose', label, shortLabel };+ }case 'publish':return project.publishKit?.builtAt- ? { id: 'goto-publish', kind: 'goto', stage: 'publish', label: 'Publish the release' }- : { id: 'goto-publish', kind: 'goto', stage: 'publish', label: 'Build the publishing kit' };+ ? { id: 'goto-publish', kind: 'goto', stage: 'publish', label: 'Publish the release', shortLabel: 'Publish' }+ : { id: 'goto-publish', kind: 'goto', stage: 'publish', label: 'Build the publishing kit', shortLabel: 'Kit' };default:- if (project.renderHistoryId) return { id: 'goto-final', kind: 'goto', stage: 'review', anchor: 'mv-final-video', label: 'Watch final video' };+ if (project.renderHistoryId) return { id: 'goto-final', kind: 'goto', stage: 'review', anchor: 'mv-final-video', label: 'Watch final video', shortLabel: 'Watch' };return {- id: 'render-final', kind: 'run', label: 'Render final video',+ id: 'render-final', kind: 'run', label: 'Render final video', shortLabel: 'Render',disabled: renderBlockedByOther, reason: renderBlockedByOther ? 'Wait for the other project render to finish' : undefined,};}diff --git a/client/src/lib/musicVideoStages.test.js b/client/src/lib/musicVideoStages.test.jsindex b0d901c724..a2a81e8701 100644--- a/client/src/lib/musicVideoStages.test.js+++ b/client/src/lib/musicVideoStages.test.js@@ -43,7 +43,7 @@ describe('deriveStages / deriveNextAction', () => {const waiting = { id: 'p', trackId: 't1', audioAnalysis: ANALYSIS, automation: {}, castAndSets: { status: 'review' }, scenes: [] };expect(deriveStages(waiting).current).toBe('cast-sets');expect(stateOf(waiting)).toMatchObject({ setup: 'done', 'cast-sets': 'active', board: 'todo' });- expect(deriveNextAction(waiting)).toMatchObject({ id: 'review-production', kind: 'goto', stage: 'cast-sets' });+ expect(deriveNextAction(waiting)).toMatchObject({ id: 'review-production', kind: 'goto', stage: 'cast-sets', shortLabel: 'Art' });const interrupted = { ...waiting, castAndSets: { status: 'imaging', interrupted: true } };expect(stateOf(interrupted)['cast-sets']).toBe('blocked');diff --git a/client/src/pages/MusicVideo.jsx b/client/src/pages/MusicVideo.jsxindex 7648ad931c..f0b81d622d 100644--- a/client/src/pages/MusicVideo.jsx+++ b/client/src/pages/MusicVideo.jsx@@ -112,15 +112,6 @@ const autopilotSummary = (run, readiness) => {return run.error ? `${label} — ${guidance?.current || run.error}` : label;};-const STATUS_COLORS = {- draft: 'bg-port-border text-port-text',- analyzed: 'bg-port-accent/30 text-port-accent',- ready: 'bg-port-accent/30 text-port-accent',- rendering: 'bg-port-warning/30 text-port-warning',- complete: 'bg-port-success/30 text-port-success',- failed: 'bg-port-error/30 text-port-error',-};-export default function MusicVideo() {// Deep-linkable project selection: the selected project lives in the URL// (/music-video/:projectId) rather than local state, so a project's@@ -1078,16 +1069,13 @@ export default function MusicVideo() {<option value="">{loading ? 'Loading projects…' : 'Select a project…'}</option>{sortedProjects.map((project) => (<option key={project.id} value={project.id}>- {project.name} · {projectShotSummary(project)} · {project.status}+ {project.name} · {projectShotSummary(project)}</option>))}</select>{selected && (<span className="flex items-center gap-1"><span className="text-[10px] px-1.5 py-0.5 rounded bg-port-border">v{selected.version || 1}</span>- <span className={`text-[10px] px-1.5 py-0.5 rounded ${STATUS_COLORS[selected.status] || 'bg-port-border'}`}>- {selected.status}- </span></span>)}{selected && (