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: reveal music video stages above shared review panels
[._.]/ Adam Eivyfaf40860c704
diff --git a/client/src/components/musicVideo/MusicVideoLayout.jsx b/client/src/components/musicVideo/MusicVideoLayout.jsxindex 561f90706d..ff171a6eae 100644--- a/client/src/components/musicVideo/MusicVideoLayout.jsx+++ b/client/src/components/musicVideo/MusicVideoLayout.jsx@@ -42,7 +42,7 @@ const DOCK_CLASSES = 'max-lg:fixed max-lg:inset-x-0 max-lg:bottom-0 max-lg:z-30*/export default function MusicVideoLayout({project, trackLabel, stage, onStageChange, progress, nextAction, onNextAction, spend,- dock, children,+ dock, projectPanels, children,}) {const headerRef = useRef(null);const rootRef = useRef(null);@@ -79,6 +79,7 @@ export default function MusicVideoLayout({trailing: STAGE_TRAILING[entry.state] || null,}));const showSpend = spend.spentUsd > 0 || spend.capUsd != null;+ const stageEntry = progress.stages.find((entry) => entry.id === stage);const ActionIcon = nextAction?.kind === 'goto' ? ArrowRight : Play;return (@@ -137,10 +138,14 @@ export default function MusicVideoLayout({aria-labelledby={`tab-${stage}`}className="min-w-0 space-y-3">+ <h3 className="text-base font-semibold">{stageEntry?.title || stageEntry?.label}</h3>{children}</div>{dockMounted && dock ? <div className={dockVisible ? DOCK_CLASSES : 'hidden'}>{dock}</div> : null}</div>+ {/* Shared run/review forms stay mounted, but never obscure the stage+ selected from the phone's bottom navigation. */}+ {projectPanels}</div>);}diff --git a/client/src/pages/MusicVideo.jsx b/client/src/pages/MusicVideo.jsxindex c274cc4a90..3baa6355d5 100644--- a/client/src/pages/MusicVideo.jsx+++ b/client/src/pages/MusicVideo.jsx@@ -1129,12 +1129,12 @@ export default function MusicVideo() {onToggleCollapsed={() => setDockCollapsed((c) => !c)}/>) : null}- >- <div className="space-y-3 min-w-0">+ projectPanels={<div className="space-y-3 min-w-0"><AutonomousRunPanel key={`autonomous-${selected.id}`} project={selected} auto={autonomous} selectedStage={runStage} onSelectStage={setRunStage} /><ProductionReviewPanel key={`production-review-${selected.id}`} project={selected} review={productionReview} onOpenArtifact={openArtifact} />- <StageView key={selected.id} board={board} />- </div>+ </div>}+ >+ <StageView key={selected.id} board={board} /></MusicVideoLayout>)}</div>diff --git a/client/src/pages/MusicVideo.test.jsx b/client/src/pages/MusicVideo.test.jsxindex e03c8a71d4..e00659090f 100644--- a/client/src/pages/MusicVideo.test.jsx+++ b/client/src/pages/MusicVideo.test.jsx@@ -2086,6 +2086,29 @@ describe('MusicVideo stage tabs (#9243)', () => {);const selectedTab = () => screen.getByRole('tab', { selected: true });+ it('puts the selected stage before shared run/review panels and preserves review drafts when tabs change', async () => {+ listMusicVideoProjects.mockResolvedValue([{ ...PROJECT_WITH_CLIP,+ autonomousRun: { status: 'needs-human', stage: 'video', output: {}, brief: {} },+ }]);+ renderAt('/music-video/mv-1/cast-sets');+ await screen.findByRole('heading', { level: 2, name: PROJECT_WITH_CLIP.name });+ const review = screen.getByRole('region', { name: 'Production review' });+ fireEvent.click(within(review).getByText('Edit visual guide and storyboard'));+ const castDraft = within(review).getByLabelText('Cast guide');+ fireEvent.change(castDraft, { target: { value: 'Example unsaved cast direction' } });++ for (const stage of ['board', 'produce', 'cast-sets']) {+ await openStage(stage);+ const panel = screen.getByRole('tabpanel');+ expect(within(panel).getByRole('heading', { level: 3, name: selectedTab().textContent })).toBeInTheDocument();+ for (const shared of [screen.getByRole('region', { name: 'Autonomous run' }), review]) {+ expect(panel.contains(shared)).toBe(false);+ expect(panel.compareDocumentPosition(shared) & Node.DOCUMENT_POSITION_FOLLOWING).toBeTruthy();+ }+ expect(within(review).getByLabelText('Cast guide')).toHaveValue('Example unsaved cast direction');+ }+ });+it('uses the newly selected project making-of notes and links when drafting publication copy', async () => {const first = { ...PROJECT_WITH_CLIP, publishKit: { notes: 'Example first story', links: { youtube: 'https://example.com/first' } } };const second = { ...PROJECT_WITH_CLIP, id: 'mv-other', name: 'Example Other Project', publishKit: { notes: 'Example second story', links: { youtube: 'https://example.com/second' } } };