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

Derived storyboard shots take the treatment's transition

Claude60d1e19a6e74
diff --git a/server/services/musicVideo/productionReview.js b/server/services/musicVideo/productionReview.js
index 757d575974..f2c5f0d3c9 100644
--- a/server/services/musicVideo/productionReview.js
+++ b/server/services/musicVideo/productionReview.js
@@ -227,13 +227,19 @@ function castAndSetsApproval(project) {
return { approved, stale: changedFields.length ? withRevertible({ approvedAt: stage.approvedAt || null, changedFields }, stage.approvedValues) : null };
}
+// A treatment's per-shot entry and exit (scene.direction, treatment.js), as one storyboard transition line.
+const sceneTransition = direction => [direction?.transitionIn && `Entry: ${direction.transitionIn}`, direction?.transitionOut && `Exit: ${direction.transitionOut}`]
+ .filter(part => text(part)).join('. ');
+
/**
* The storyboard row a Board scene with no draft shot of its own stands for:
- * its planned action, staging and camera, the Cast & Sets world's camera and
- * transition language where the scene has none (unless the sheet was skipped),
- * and the lyric lines it overlaps. Planning shots after the art approval
- * writes scenes without draft rows, so the storyboard reads them this way
- * until a director edits a shot; preparing the review writes the same rows.
+ * its planned action, staging and camera, its treatment entry and exit as the
+ * transition, the Cast & Sets world's camera and transition language where the
+ * scene has none (unless the sheet was skipped; a photographic direction has
+ * no world), else a plain cut, and the lyric lines it overlaps. Planning shots
+ * after the art approval writes scenes without draft rows, so the storyboard
+ * reads them this way until a director edits a shot; preparing the review
+ * writes the same rows.
*/
function boardShotFromScene(project, scene) {
const world = (project.castAndSets?.status !== 'skipped' && project.castAndSets?.direction?.world) || {};
@@ -241,7 +247,7 @@ function boardShotFromScene(project, scene) {
sceneId: scene.sceneId,
lyricCueIds: (project.lyricCues || []).filter(c => c.startSec < scene.endSec && c.endSec > scene.startSec).map(c => c.id),
action: scene.visualIntent || scene.prompt || '', staging: scene.framePrompt || '',
- camera: shotCameraLabel(scene.camera) || scene.direction?.camera || world.camera || '', transition: world.transitions || '',
+ camera: shotCameraLabel(scene.camera) || scene.direction?.camera || world.camera || '', transition: sceneTransition(scene.direction) || world.transitions || 'Cut',
};
}
diff --git a/server/services/musicVideo/productionReview.storyboard.test.js b/server/services/musicVideo/productionReview.storyboard.test.js
index 1486b68c6a..0ae2167d24 100644
--- a/server/services/musicVideo/productionReview.storyboard.test.js
+++ b/server/services/musicVideo/productionReview.storyboard.test.js
@@ -66,3 +66,15 @@ describe('approving a Board storyboard of derived shots', () => {
expect(productionReadiness(approved).storyboard.approved).toBe(true);
});
});
+
+describe('derived shot transitions', () => {
+ it('takes the treatment entry and exit, else a plain cut, when the direction has no world', () => {
+ const base = project();
+ const photographic = { ...base, castAndSets: { status: 'approved', direction: { look: 'Analog film' } },
+ scenes: [{ ...base.scenes[0], camera: { move: 'locked-off' }, direction: { transitionIn: 'match cut from the monitor glow', transitionOut: 'whip to the reel' } },
+ { ...base.scenes[1], camera: { move: 'locked-off' } }] };
+ const { storyboard } = productionReadiness(photographic);
+ expect(storyboard.shots.map(s => s.transition)).toEqual(['Entry: match cut from the monitor glow. Exit: whip to the reel', 'Cut']);
+ expect(storyboard.problems.filter(p => SHOT_PROBLEM.test(p))).toEqual([]);
+ });
+});