Skip to content

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

fix: retire obsolete stills attention for finished music videos (#12223)

[._.]/cf98ca4ded5c
diff --git a/client/src/components/musicVideo/MusicVideoProjectCard.test.jsx b/client/src/components/musicVideo/MusicVideoProjectCard.test.jsx
index 840256d2ba..66f2dfe1e9 100644
--- a/client/src/components/musicVideo/MusicVideoProjectCard.test.jsx
+++ b/client/src/components/musicVideo/MusicVideoProjectCard.test.jsx
@@ -1,6 +1,9 @@
import { describe, it, expect, vi, afterEach } from 'vitest';
import { render, screen, fireEvent, act, waitFor } from '@testing-library/react';
import MusicVideoProjectCard from './MusicVideoProjectCard.jsx';
+import { summarizeMusicVideoProject } from '../../../../server/lib/musicVideoSummary.js';
+import { autopilotStatus, deriveNextAction, deriveStages, describeProjectStatus } from '../../lib/musicVideoStages.js';
+import { deriveAttentionItems } from '../../lib/musicVideoAttention.js';
vi.mock('../../services/apiImageVideo.js', () => ({
getVideoHistoryItem: vi.fn(async (id) => ({ id, filename: `${id}.mp4` })),
@@ -244,3 +247,83 @@ describe('MusicVideoProjectCard run pill and version switcher', () => {
expect(screen.getByLabelText('Newer version').disabled).toBe(true);
});
});
+
+
+describe('completed project with an old stills checkpoint', () => {
+ const finished = () => ({
+ ...BASE_PROJECT, status: 'complete', renderHistoryId: 'example-final',
+ renderDependencyState: { status: 'current' },
+ scenes: [{ sceneId: 's1', referenceImageId: 'example-frame', videoHistoryId: 'example-clip' }],
+ productionReadiness: { art: { approved: true }, storyboard: { approved: true }, proof: { approved: false } },
+ publishKit: { builtAt: '2026-01-01', posts: { example: { url: 'https://example.com/video' } } },
+ autonomousRun: { id: 'auto-example', status: 'awaiting-approval', awaiting: 'stills', stage: 'produce', output: { productionRunId: 'production-example' } },
+ productionRuns: [{ id: 'production-example', status: 'awaiting-video' }],
+ });
+
+ it('keeps the summary card, full card and header past the obsolete checkpoint without changing run history', () => {
+ const project = finished();
+ const original = structuredClone(project);
+ const summary = summarizeMusicVideoProject(project, project.productionReadiness);
+ expect(summary).toMatchObject({ status: 'complete', runStatus: 'awaiting-approval', runAwaiting: false });
+ const { rerender } = render(<MusicVideoProjectCard project={summary} />);
+ expect(screen.getByText('complete')).toBeInTheDocument();
+ expect(screen.queryByText('Needs you')).not.toBeInTheDocument();
+ rerender(<MusicVideoProjectCard project={project} />);
+ expect(screen.getByTestId('mv-run-pill-mv-card-1')).toHaveTextContent('Done');
+ const progress = deriveStages(project);
+ const nextAction = deriveNextAction(project);
+ expect(nextAction.id).toBe('goto-publish');
+ expect(describeProjectStatus(project, { progress, nextAction })).toMatchObject({ headline: 'Published', needsYouStage: null });
+ expect(autopilotStatus(project).short).toBe('Autopilot');
+ expect(deriveAttentionItems(project)).toEqual([]);
+ expect(project).toEqual(original);
+ });
+
+ it.each([
+ ['incomplete project', (p) => { p.status = 'ready'; p.renderHistoryId = null; }],
+ ['stale final', (p) => { p.renderDependencyState.status = 'stale'; }],
+ ['unverified final', (p) => { delete p.renderDependencyState; }],
+ ['unapproved storyboard', (p) => { p.productionReadiness.storyboard.approved = false; }],
+ ['changed art approval', (p) => { p.productionReadiness.art.stale = { changed: [] }; }],
+ ['different checkpoint', (p) => { p.autonomousRun.awaiting = 'song'; }],
+ ['failed child', (p) => { p.productionRuns[0].status = 'failed'; }],
+ ['child needing review', (p) => { p.productionRuns[0].status = 'needs-human'; }],
+ ['unrelated child', (p) => { p.autonomousRun.output.productionRunId = 'different-run'; }],
+ ])('retains actionable attention for %s in both card payloads', (_label, change) => {
+ const project = finished();
+ change(project);
+ const summary = summarizeMusicVideoProject(project, project.productionReadiness);
+ expect(summary.runAwaiting).toBe(true);
+ const { rerender } = render(<MusicVideoProjectCard project={summary} />);
+ expect(screen.getByTestId('mv-run-pill-mv-card-1')).toHaveTextContent('Needs you');
+ rerender(<MusicVideoProjectCard project={project} />);
+ expect(screen.getByTestId('mv-run-pill-mv-card-1')).toHaveTextContent('Needs you');
+ expect(deriveAttentionItems(project).some((item) => item.kind === 'autonomous')).toBe(true);
+ });
+
+ it('preserves failures, live work, interruptions and unrelated revision attention after a final render', () => {
+ const project = finished();
+ const { rerender } = render(<MusicVideoProjectCard project={{ ...project, autonomousRun: { ...project.autonomousRun, status: 'failed' } }} />);
+ expect(screen.getByTestId('mv-run-pill-mv-card-1')).toHaveTextContent('Needs you');
+ rerender(<MusicVideoProjectCard project={{ ...project, productionRuns: [], autonomousRun: { ...project.autonomousRun, status: 'running' } }} />);
+ expect(screen.getByTestId('mv-run-pill-mv-card-1')).toHaveTextContent('Running');
+ for (const target of ['autonomousRun', 'productionRuns']) {
+ const interrupted = structuredClone(project);
+ (target === 'autonomousRun' ? interrupted.autonomousRun : interrupted.productionRuns[0]).interrupted = true;
+ rerender(<MusicVideoProjectCard project={interrupted} />);
+ expect(screen.getByTestId('mv-run-pill-mv-card-1')).toHaveTextContent('Interrupted');
+ expect(summarizeMusicVideoProject(interrupted, interrupted.productionReadiness).runInterrupted).toBe(true);
+ }
+ const revised = { ...project, revisions: [{ id: 'revision-example', status: 'open', sections: [] }] };
+ rerender(<MusicVideoProjectCard project={revised} />);
+ expect(screen.getByTestId('mv-run-pill-mv-card-1')).toHaveTextContent('Needs you');
+ expect(deriveAttentionItems(revised).map((item) => item.kind)).toContain('revision');
+ rerender(<MusicVideoProjectCard project={summarizeMusicVideoProject(revised, revised.productionReadiness)} />);
+ expect(screen.getByTestId('mv-run-pill-mv-card-1')).toHaveTextContent('Needs you');
+ const otherRun = { ...project, productionRuns: [...project.productionRuns, { id: 'other-run', status: 'blocked' }] };
+ rerender(<MusicVideoProjectCard project={otherRun} />);
+ expect(screen.getByTestId('mv-run-pill-mv-card-1')).toHaveTextContent('Needs you');
+ rerender(<MusicVideoProjectCard project={summarizeMusicVideoProject(otherRun, otherRun.productionReadiness)} />);
+ expect(screen.getByTestId('mv-run-pill-mv-card-1')).toHaveTextContent('Needs you');
+ });
+});
diff --git a/client/src/lib/musicVideoAttention.js b/client/src/lib/musicVideoAttention.js
index 77b6a848e4..a8308b0511 100644
--- a/client/src/lib/musicVideoAttention.js
+++ b/client/src/lib/musicVideoAttention.js
@@ -12,6 +12,7 @@
* `NeedsAttentionBanner` renders them and the page wires their actions.
*/
+import { supersededStillsCheckpoint } from '../../../server/lib/musicVideoAutonomous.js';
import { describeAutonomousWait } from './musicVideoAutonomous.js';
import { RESUMABLE_RUN_STATUSES, changedFieldsText, currentProductionRun } from './musicVideoStages.js';
@@ -132,7 +133,7 @@ export function deriveAttentionItems(project, { generatingSceneIds = null, draft
});
}
const stale = staleApprovalItem(project, readiness, stage);
- return [...items, ...parkedRunItems(project, headerAction), ...(stale ? [stale] : [])];
+ return [...items, ...parkedRunItems(project, headerAction, readiness), ...(stale ? [stale] : [])];
}
// Approvals in the order they are given, with the tab (and editor) each is re-given on.
@@ -193,10 +194,11 @@ export const autoReviewNeedsUser = (project) => asList(project?.autoReviews).som
// Rows for runs the server holds that nobody is watching: an autonomous run
// parked on the director, a production run stopped on a limit, an auto-review
// that halted. Each is derived from the saved record, so it survives a reload.
-function parkedRunItems(project, headerAction) {
+function parkedRunItems(project, headerAction, readiness) {
const items = [];
const auto = project.autonomousRun;
- const autoParked = auto && (AUTONOMOUS_PARKED.has(auto.status) || auto.interrupted);
+ const superseded = supersededStillsCheckpoint(project, readiness);
+ const autoParked = !superseded && auto && (AUTONOMOUS_PARKED.has(auto.status) || auto.interrupted);
if (autoParked) {
const interrupted = auto.interrupted && auto.status === 'running';
const awaiting = auto.status === 'awaiting-approval';
@@ -215,7 +217,7 @@ function parkedRunItems(project, headerAction) {
}
const production = currentProductionRun(project);
// An autonomous run parked on this production reports the stop itself.
- const ownedByAuto = autoParked && auto.output?.productionRunId === production?.id;
+ const ownedByAuto = (autoParked || superseded) && auto.output?.productionRunId === production?.id;
if (production && PRODUCTION_PARKED.has(production.status) && !ownedByAuto) {
const reason = production.stopReason || production.error;
items.push({
diff --git a/client/src/lib/musicVideoStages.js b/client/src/lib/musicVideoStages.js
index 1b814a4072..52c40fa904 100644
--- a/client/src/lib/musicVideoStages.js
+++ b/client/src/lib/musicVideoStages.js
@@ -15,6 +15,7 @@ import { falSceneTake } from './musicVideoShotTiming.js';
import { unlockedShots } from './musicVideoSceneAttention.js';
import { getFalVideoModel } from './falVideoModels.js';
import { latestMusicVideoReviewDraft } from '../../../server/lib/musicVideoReviewDraft.js';
+import { supersededStillsCheckpoint } from '../../../server/lib/musicVideoAutonomous.js';
import { FINISHED_OUTSIDE_RERENDER_NOTE, finishedOutside, finishedOutsideCovers } from '../../../server/lib/musicVideoFinishedOutside.js';
/**
@@ -294,7 +295,7 @@ const autonomousChipLabel = (auto, { phase, step }) => {
* `ok`, `warn` or `muted`; `short` is the phone label.
*/
export function autopilotStatus(project, readiness = project?.productionReadiness) {
- const auto = project?.autonomousRun;
+ const auto = supersededStillsCheckpoint(project, readiness) ? null : project?.autonomousRun;
const { phase, step } = autonomousRunPhase(auto);
if (phase !== 'inactive') {
const running = phase === 'running';
@@ -577,7 +578,7 @@ export function deriveNextAction(project, {
return { id: 'busy', kind: 'run', label, shortLabel: label, disabled: true };
}
- const autonomousAction = autonomousNextAction(project.autonomousRun);
+ const autonomousAction = supersededStillsCheckpoint(project, readiness) ? null : autonomousNextAction(project.autonomousRun);
if (autonomousAction) return autonomousAction;
switch (current) {
@@ -941,7 +942,7 @@ export function stageChecklist(stageId, project, readiness = project?.production
switch (stageId) {
case 'setup': {
// An autonomous run that is still going writes the song itself.
- const autoPhase = autonomousRunPhase(project.autonomousRun).phase;
+ const autoPhase = autonomousRunPhase(supersededStillsCheckpoint(project, readiness) ? null : project.autonomousRun).phase;
const autoSong = ['running', 'awaiting', 'paused'].includes(autoPhase);
// A parked run is not writing anything; say so instead of claiming it is.
const autoSongDetail = AUTONOMOUS_SONG_DETAILS[autoPhase];
diff --git a/server/lib/README.md b/server/lib/README.md
index 89e58ac9a0..8ca4caf1d5 100644
--- a/server/lib/README.md
+++ b/server/lib/README.md
@@ -855,7 +855,7 @@ The barrel `server/lib/index.js` is a machine-checkable enumeration of every pub
| `musicVideoCreativeContext.js` | `musicVideoDirectionContext(direction)` bounds the authoritative Cast & Sets bible; `musicVideoCodeDirectionContext(direction)` renders the approved procedural direction (rules + reusable character definitions) for code-authoring requests; `musicVideoCreativeContext(concept)` composes the selected universe style and authored cast/place/object bible for planning and generation; `musicVideoSongStyleContext(concept)` splits `concept.songStyle` (a Suno style prompt; minus-prefixed terms are excluded styles) and turns it into design direction for the planning LLMs (never an image prompt). |
| `musicVideoCharacterStyles.js` | Built-in Music Video character styles (a fixed-identity performer a project loads as its base concept and cast): `MUSIC_VIDEO_CHARACTER_STYLES` / `_IDS`, `getMusicVideoCharacterStyle`, `summarizeMusicVideoCharacterStyle` (picker projection), `musicVideoCharacterStyleSnapshot` (the `concept.characterStyle` text), `musicVideoCharacterStyleSubject` / `…SubjectId` / `…ReferenceId` (the protagonist and character-sheet reference a pick adds), `musicVideoCharacterSheetPrompt` (renders the style's own sheet). Pure; `services/musicVideo/characterStyles.js` keeps each install's sheet image. |
| `moodBoardStyleContext.js` | `collectBoardStyleContext(board)` bounds a board's notes, captions, analyzed prompts, and composite style for creative prompts. `moodBoardImageCandidates(board, resolveItem)` lists the poster first, then pinned local images. |
-| `musicVideoAutonomous.js` | Fully-autonomous Music Video vocabulary: `AUTONOMOUS_STAGES` (brief → lyrics → style → song → analyze → produce), optional `AUTONOMOUS_CHECKPOINT_IDS`, `normalizeAutonomousSettings` / `normalizeAutonomousBrief` / `normalizeAutopilotParams` (the shared run settings, a run's stored brief, and the scheduled task's params), `autonomousMedium` / `autonomousPool` (tool picks → footage vs code, production route pool), `sunoSongFields` + Suno limits/URL helpers, `normalizeSunoOptions` (the brief's optional `suno` form options: exclude styles, vocal gender, model version), and `pickBrainIdea` / `ideaToPrompt` for the scheduled task. Pure; the client drawer and the run service import it. |
+| `musicVideoAutonomous.js` | `supersededStillsCheckpoint(project, readiness)` retires only an old stills checkpoint from presentation once a current final render and approvals supersede it, preserving run history. Fully-autonomous Music Video vocabulary: `AUTONOMOUS_STAGES` (brief → lyrics → style → song → analyze → produce), optional `AUTONOMOUS_CHECKPOINT_IDS`, `normalizeAutonomousSettings` / `normalizeAutonomousBrief` / `normalizeAutopilotParams` (the shared run settings, a run's stored brief, and the scheduled task's params), `autonomousMedium` / `autonomousPool` (tool picks → footage vs code, production route pool), `sunoSongFields` + Suno limits/URL helpers, `normalizeSunoOptions` (the brief's optional `suno` form options: exclude styles, vocal gender, model version), and `pickBrainIdea` / `ideaToPrompt` for the scheduled task. Pure; the client drawer and the run service import it. |
| `musicVideoAutomation.js` | Music Video automation brief: `MUSIC_VIDEO_AUTOMATION_TOOLS` (image/video backends derived from `generationModes.js` plus `code:render`, each flagged `metered`), `MUSIC_VIDEO_AUTOMATION_TOOL_IDS`, and `normalizeMusicVideoAutomation(patch, current)` (per-sub-field merge, catalog-ordered tools, `budgetUsd: null` = no cap, `llm: null` clears the direction-LLM pin, `llmStages` merges per stage with `null` clearing one, server-written `routes` survive but are never patch-settable). Also `normalizeMusicVideoLlm` / `normalizeMusicVideoEffort` / `musicVideoLlmRouteLabel` for that pin and the effective route a stage ran on (#9545), and `MUSIC_VIDEO_LLM_STAGES` / `MUSIC_VIDEO_LLM_STAGE_LABELS` / `normalizeMusicVideoLlmStages` for the per-stage pins. Dependency-light; the client create drawer imports it. |
| `albumLimits.js` | Album record length/count caps shared by the albums sanitizer and client editors. |
| `artistLimits.js` | Artist record length caps shared by the artists sanitizer and client editors. |
diff --git a/server/lib/musicVideoAutonomous.js b/server/lib/musicVideoAutonomous.js
index 4c69cd44ac..a209a504d4 100644
--- a/server/lib/musicVideoAutonomous.js
+++ b/server/lib/musicVideoAutonomous.js
@@ -86,6 +86,30 @@ export function normalizeLocalMusicOptions(raw) {
// A run in one of these states can still be resumed / approved.
export const AUTONOMOUS_LIVE_STATUSES = Object.freeze(['running', 'awaiting-approval', 'needs-human', 'stopped']);
+/**
+ * Presentation only: a current finished video supersedes its old stills-only
+ * checkpoint. Keep the run and its child unchanged as historical evidence;
+ * failures, interruptions and unverified/stale renders still need attention.
+ */
+export function supersededStillsCheckpoint(project, readiness = project?.productionReadiness) {
+ const auto = project?.autonomousRun;
+ if (project?.status !== 'complete' || !isStr(project.renderHistoryId) || !project.renderHistoryId.trim()
+ || project.renderDependencyState?.status !== 'current'
+ || !readiness?.art?.approved || readiness.art.stale
+ || !readiness?.storyboard?.approved || readiness.storyboard.stale
+ || auto?.status !== 'awaiting-approval' || auto.awaiting !== 'stills' || auto.interrupted
+ || !auto.output?.productionRunId) return false;
+ const child = (project.productionRuns || []).find((run) => run.id === auto.output.productionRunId);
+ if (child?.status !== 'awaiting-video' || child.interrupted) return false;
+ // Summary cards carry only coarse run flags. Keep their warning when other
+ // work still needs attention, even if this particular checkpoint is obsolete.
+ return !project.castAndSets?.interrupted
+ && !(project.revisions || []).some((revision) => ['open', 'rendering'].includes(revision.status))
+ && !(project.autoReviews || []).some((run) => ['running', 'needs-human', 'limit-reached', 'stopped', 'failed'].includes(run.status))
+ && !(project.productionRuns || []).some((run) => run.id !== child.id
+ && (run.interrupted || ['running', 'stopped', 'limit-reached', 'blocked', 'needs-replan', 'awaiting-video', 'needs-human', 'failed'].includes(run.status)));
+}
+
export const AUTONOMOUS_PROMPT_MAX = 4000;
export const AUTONOMOUS_NAME_MAX = 200;
export const AUTONOMOUS_ORIGINS = Object.freeze(['manual', 'schedule']);
diff --git a/server/lib/musicVideoSummary.js b/server/lib/musicVideoSummary.js
index bd07724b4d..affc4ea1d7 100644
--- a/server/lib/musicVideoSummary.js
+++ b/server/lib/musicVideoSummary.js
@@ -9,6 +9,7 @@
*/
import { composedDrawsLyrics, isLayeredComposition, sceneRenderReady } from './musicVideoLayers.js';
import { latestMusicVideoReviewDraft } from './musicVideoReviewDraft.js';
+import { supersededStillsCheckpoint } from './musicVideoAutonomous.js';
import { finishedOutsideCovers } from './musicVideoFinishedOutside.js';
/**
@@ -165,7 +166,7 @@ export function summarizeMusicVideoProject(project, readiness) {
stage: currentStage(project, readiness, run),
runStatus: project.autonomousRun?.status || run?.status || null,
runInterrupted: Boolean(project.autonomousRun?.interrupted || project.castAndSets?.interrupted || run?.interrupted),
- runAwaiting: project.autonomousRun?.status === 'awaiting-approval',
+ runAwaiting: project.autonomousRun?.status === 'awaiting-approval' && !supersededStillsCheckpoint(project, readiness),
// 'schedule' when the Autonomous run task started it — the Schedule card names the project it is parked on (#10156).
runOrigin: project.autonomousRun?.brief?.origin?.kind || null,
poster: preview.poster || (preview.kind === 'image' ? preview.src : null),
diff --git a/server/routes/musicVideo.js b/server/routes/musicVideo.js
index d9ab100847..db77ba049d 100644
--- a/server/routes/musicVideo.js
+++ b/server/routes/musicVideo.js
@@ -14,6 +14,7 @@ import { pipeline } from 'stream/promises';
import { Router } from 'express';
import { musicVideoRenderPreviewSchema, musicVideoSongStyleSunoSchema, musicVideoProjectListQuerySchema, musicVideoFinishedOutsideSchema, musicVideoProductionDraftSchema, musicVideoProductionApprovalSchema, musicVideoShotLockSchema, musicVideoProductionProofSchema, musicVideoProductionImportSchema, musicVideoContinueShotSchema, musicVideoPoolUseSchema, musicVideoPoolMarkSchema, musicVideoPoolSearchQuerySchema, musicVideoPoolDeleteSchema, musicVideoPoolImportSchema, musicVideoLibrarySearchQuerySchema, musicVideoPoolAddSchema, musicVideoProductionFeedbackSchema, musicVideoProductionFeedbackResolutionSchema, musicVideoLyricAnchorSyncSchema, musicVideoProductionReviseSchema, musicVideoProductionRevertSchema } from '../lib/musicVideoValidation.js';
import { productionReadiness } from '../services/musicVideo/productionReview.js';
+import { presentMusicVideoDependencies } from '../lib/musicVideoDependencies.js';
import { finishedOutsideBlocker } from '../lib/musicVideoFinishedOutside.js';
import { getProductionReview, saveProductionDraft, prepareProductionReview, approveProductionReview, lockProductionShots, renderProductionProof, requireProductionReviewer, importProductionPlanning, bindProductionShot, addProductionFeedback, closeProductionFeedback, syncLyricAnchors, removeStaleStoryboardRows, reviseProductionFromFeedback, revertProductionInput } from '../services/musicVideo/productionReviewService.js';
import { asyncHandler, ServerError } from '../lib/errorHandler.js';
@@ -252,7 +253,7 @@ const projectUpdateSchema = musicVideoProjectUpdateSchema.extend(recordRenderPin
// response carries `productionReadiness` — stages derive from one record, never "not done" while a
// second request is in flight. GET /:id/production-review still serves the full review payload.
const presentProjectForRead = (project) => {
- const presented = presentProjectAutonomousRun(presentProjectCastAndSets(project));
+ const presented = presentProjectAutonomousRun(presentProjectCastAndSets(presentMusicVideoDependencies(project)));
return { ...presented, productionReadiness: productionReadiness(presented) };
};
diff --git a/server/routes/musicVideoProductionReview.test.js b/server/routes/musicVideoProductionReview.test.js
index 1538dcca40..cff8efe4f2 100644
--- a/server/routes/musicVideoProductionReview.test.js
+++ b/server/routes/musicVideoProductionReview.test.js
@@ -40,6 +40,7 @@ vi.mock('../services/musicVideo/excerptRender.js', async original => ({ ...await
}),
}));
+const { captureMusicVideoEvidence } = await import('../lib/musicVideoDependencies.js');
const { default: router } = await import('./musicVideo.js');
const store = await import('../services/musicVideo/projects.js');
const { saveGeneratedDevArtifact } = await import('../services/musicVideo/devArtifactService.js');
@@ -78,6 +79,31 @@ beforeEach(async () => {
afterAll(cleanupTempDataRoots);
describe('human-reviewed Music Video workflow', () => {
+ it('projects a finished video past its stills checkpoint while retaining the stored run and new attention', async () => {
+ expect((await approve('art')).status).toBe(200);
+ expect((await approve('storyboard')).status).toBe(200);
+ await store.mutateProjectRecord(project.id, current => ({ project: { ...current,
+ status: 'complete', renderHistoryId: 'synthetic-final', renderDependencies: captureMusicVideoEvidence(current),
+ autonomousRun: { id: 'synthetic-auto', status: 'awaiting-approval', awaiting: 'stills', stage: 'produce', output: { productionRunId: 'synthetic-production' } },
+ productionRuns: [{ id: 'synthetic-production', status: 'awaiting-video' }],
+ } }));
+ const before = await store.getProject(project.id);
+ const full = await request(app).get(base);
+ expect(full.body.renderDependencyState.status).toBe('current');
+ expect(full.body.productionReadiness).toMatchObject({ art: { approved: true }, storyboard: { approved: true } });
+ const summary = async () => {
+ const response = await request(app).get('/api/music-video?summary=1&limit=500');
+ expect(response.status).toBe(200);
+ return response.body.items.find(item => item.id === project.id);
+ };
+ expect(await summary()).toMatchObject({ status: 'complete', runStatus: 'awaiting-approval', runAwaiting: false });
+ expect(await store.getProject(project.id)).toEqual(before);
+ await store.mutateProjectRecord(project.id, current => ({ project: { ...current,
+ revisions: [{ id: 'synthetic-revision', status: 'open', sections: [] }],
+ } }));
+ expect(await summary()).toMatchObject({ runAwaiting: true });
+ });
+
it('drafts storyboard shots for planned scenes, taking camera and transition from the Cast & Sets world', async () => {
await save({ ...draft, storyboard: [] });
await store.mutateProjectRecord(project.id, current => ({ project: { ...current,