From 4c71cc497eb24b8a71a55d9dc7686faf0d4c8a14 Mon Sep 17 00:00:00 2001 From: Benjiyaya Date: Sun, 13 Sep 2026 02:56:00 +0800 Subject: [PATCH 1/2] feat(video): show the selected clip's shot brief in the composer 1.5 moved rendering to clips but the Video stage only surfaced the scene script, so the workflow prompt field gave no hint of what an individual clip performs. Each clip now carries its description, shot size, and covered dialog lines into a brief panel above the composer, with a copy button feeding the prompt. The stage splits into player + a scrollable input inspector so the input stack can no longer squeeze the player out. --- calliope-web/package-lock.json | 4 +- calliope-web/package.json | 2 +- calliope-web/src/lib/components/ui/icons.ts | 2 + .../components/video/SceneFilmstrip.svelte | 14 +- .../components/video/SceneScriptDrawer.svelte | 4 - .../src/lib/components/video/ShotBrief.svelte | 288 ++++++++++++++++++ .../video/VideoEditWorkspace.svelte | 251 ++++++++------- .../2026-09-10-build-scene-clips.md | 1 - docs/changelogs/2026-09-13-clip-shot-brief.md | 31 ++ docs/changelogs/README.md | 1 + 10 files changed, 479 insertions(+), 119 deletions(-) create mode 100644 calliope-web/src/lib/components/video/ShotBrief.svelte create mode 100644 docs/changelogs/2026-09-13-clip-shot-brief.md diff --git a/calliope-web/package-lock.json b/calliope-web/package-lock.json index 0cf7e0b5..7d763dcd 100644 --- a/calliope-web/package-lock.json +++ b/calliope-web/package-lock.json @@ -1,12 +1,12 @@ { "name": "calliope-web", - "version": "1.5.0", + "version": "1.5.1", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "calliope-web", - "version": "1.5.0", + "version": "1.5.1", "dependencies": { "@tanstack/svelte-query": "^5.66.0", "@types/three": "0.185.0", diff --git a/calliope-web/package.json b/calliope-web/package.json index e361bdb4..0e21ea13 100644 --- a/calliope-web/package.json +++ b/calliope-web/package.json @@ -1,6 +1,6 @@ { "name": "calliope-web", - "version": "1.5.0", + "version": "1.5.1", "private": true, "scripts": { "dev": "vite dev", diff --git a/calliope-web/src/lib/components/ui/icons.ts b/calliope-web/src/lib/components/ui/icons.ts index 5775cd03..ffa682ed 100644 --- a/calliope-web/src/lib/components/ui/icons.ts +++ b/calliope-web/src/lib/components/ui/icons.ts @@ -37,6 +37,8 @@ export const icons = { '', paperclip: '', + copy: + '', search: '', 'external-link': '', diff --git a/calliope-web/src/lib/components/video/SceneFilmstrip.svelte b/calliope-web/src/lib/components/video/SceneFilmstrip.svelte index c711865b..98d77c06 100644 --- a/calliope-web/src/lib/components/video/SceneFilmstrip.svelte +++ b/calliope-web/src/lib/components/video/SceneFilmstrip.svelte @@ -1,13 +1,10 @@ + +
+
+ {label} + {#if shotSizeLabel} + {shotSizeLabel} + {/if} + {formatClock(clip.duration_sec || 5)} + + + +
+ +

+ {#if body} + {body} + {:else} + No shot description — this clip inherited the scene's defaults. + {/if} +

+ + {#if open} + {#if sceneLevel} +

+ This clip has no per-shot description yet — the text above is the full scene action. Use + Break into shots in the Script stage to split it into coverage. +

+ {/if} + + {#if coveredLines.length} +
+ Dialog in this shot +
{coveredLines.join('\n')}
+
+ {/if} + + {#if (scene.characters ?? []).length} +
+ Characters +
+ {#each scene.characters as c (c.id)} + {c.name} + {/each} +
+
+ {/if} + {/if} +
+ + diff --git a/calliope-web/src/lib/components/video/VideoEditWorkspace.svelte b/calliope-web/src/lib/components/video/VideoEditWorkspace.svelte index 955cb2dc..92e8ad83 100644 --- a/calliope-web/src/lib/components/video/VideoEditWorkspace.svelte +++ b/calliope-web/src/lib/components/video/VideoEditWorkspace.svelte @@ -14,6 +14,7 @@ import PromptPreviewModal from './PromptPreviewModal.svelte'; import SceneFilmstrip, { type FilmstripClip } from './SceneFilmstrip.svelte'; import SceneScriptDrawer from './SceneScriptDrawer.svelte'; + import ShotBrief from './ShotBrief.svelte'; type Thumb = { kind: 'image' | 'video'; src: string } | null; @@ -144,34 +145,36 @@
-
- +
+ +
+ + + +
- - - - -
+
{:else if clipSource?.enabled} -
- Video source - -
- onClipSourceChange?.(source)} - onupload={() => onClipSourceUpload?.()} - /> - {/if} - {#if assetOptions.length === 0} -

- No refs yet. Generate character sheets or environments in Assets, or upload a video/audio - file here. -

- {/if} - {#if hasJobPayload} -
- -
- { - formValues = { ...formValues, ...values }; - onFormChange?.({ ...formValues }); - }} - onApplyToScene={(j, path) => onApplyToClip?.(j, path)} - applying={applying} - /> - {/if} +
+ Video source + +
+ onClipSourceChange?.(source)} + onupload={() => onClipSourceUpload?.()} + /> + {/if} + {#if assetOptions.length === 0} +

+ No refs yet. Generate character sheets or environments in Assets, or upload a video/audio + file here. +

+ {/if} + {#if hasJobPayload} +
+ +
+ { + formValues = { ...formValues, ...values }; + onFormChange?.({ ...formValues }); + }} + onApplyToScene={(j, path) => onApplyToClip?.(j, path)} + applying={applying} + /> + {/if} + {#if selectedClip} + + {/if} + {assetOptions} + {allowUpload} + {generateLabel} + {submitting} + disabled={generateDisabled} + generateDisabledHint={generateDisabledReason} + onChange={onFormChange} + onSubmit={onPreviewPrompt ?? onGenerate} + /> {:else}

No video workflow enabled

@@ -264,22 +275,33 @@

{/if} -
+