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: reset music-video stage drafts on project navigation
[._.]/ Adam Eivy9bef8f6f0632
diff --git a/client/src/pages/MusicVideo.jsx b/client/src/pages/MusicVideo.jsxindex 0a908549e0..a27431b1a1 100644--- a/client/src/pages/MusicVideo.jsx+++ b/client/src/pages/MusicVideo.jsx@@ -1012,7 +1012,7 @@ export default function MusicVideo() {/>) : null}>- <StageView board={board} />+ <StageView key={selected.id} board={board} /></MusicVideoLayout>)}</div>diff --git a/client/src/pages/MusicVideo.test.jsx b/client/src/pages/MusicVideo.test.jsxindex ce61a14b33..6b471551a0 100644--- a/client/src/pages/MusicVideo.test.jsx+++ b/client/src/pages/MusicVideo.test.jsx@@ -228,6 +228,7 @@ import {updateMusicVideoExcerptNote, deleteMusicVideoExcerptNote, getMusicVideoProject,startMusicVideoRevision, resumeMusicVideoRevision, cancelMusicVideoRevision,startMusicVideoCastAndSets, approveMusicVideoCastAndSets, stopMusicVideoProduction,+ getMusicVideoPublishPlatforms, draftMusicVideoPublishCopy,} from '../services/apiMusicVideo.js';import { generateImage, uploadGalleryImage } from '../services/apiSystem.js';import { importTrackFromYoutube, trackImportEventsUrl, listTracks } from '../services/apiTracks.js';@@ -2035,6 +2036,29 @@ describe('MusicVideo stage tabs (#9243)', () => {);const selectedTab = () => screen.getByRole('tab', { selected: true });+ 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' } } };+ listMusicVideoProjects.mockResolvedValue([first, second]);+ getMusicVideoPublishPlatforms.mockResolvedValueOnce({ platforms: { youtube: { enabled: true } } });+ draftMusicVideoPublishCopy.mockResolvedValueOnce({ project: second });+ render(<MemoryRouter initialEntries={['/music-video/mv-1/publish']}>+ <NavTo to="/music-video/mv-other/publish" />+ {MV_ROUTES}+ </MemoryRouter>);+ const notes = await screen.findByLabelText(/Making-of notes/);+ expect(notes).toHaveValue('Example first story');+ fireEvent.change(notes, { target: { value: 'Example unsaved first story' } });+ fireEvent.click(screen.getByRole('button', { name: 'go-/music-video/mv-other/publish' }));+ await screen.findByRole('heading', { level: 2, name: second.name });+ expect(await screen.findByLabelText(/Making-of notes/)).toHaveValue('Example second story');+ expect(screen.getByLabelText(/Full video URL/)).toHaveValue('https://example.com/second');+ fireEvent.click(screen.getByRole('button', { name: 'Draft copy' }));+ await waitFor(() => expect(draftMusicVideoPublishCopy).toHaveBeenCalledWith(second.id, {+ notes: 'Example second story', links: { youtube: 'https://example.com/second' },+ }));+ });+it('opens the stage named in the URL, falls back to the project\'s own stage for an unknown one, and the tabs navigate', async () => {listMusicVideoProjects.mockResolvedValue([PROJECT_WITH_CLIP]);renderAt('/music-video/mv-1/produce');