feat(preview): burn the production name into the slate and the overlay
Deploy / deploy (push) Successful in 5m57s
Deploy / deploy (push) Successful in 5m57s
The preview manifest now carries the show name, taken from the project's
name rather than its code — a slate is read by a human, so "Ungovernable"
beats "UNG_S1".
Both the worker's headless build and the panel's own preview set it, so a
farm-generated preview and an artist-built one still match. The panel
writes it whenever it touches an overlay, not only when building a
preview, so existing comps pick it up on the next Add Overlay.
The slate's other properties are title case ("Date", "Scene") while the
overlay's are upper ("DATE", "SHOT NAME"), so both spellings of SHOW are
attempted; a template exposing neither reports its actual property names
as a build warning rather than failing silently, matching how the VFX
Scope and Submission Note fields already behave.
Panel 2.2.0, worker 1.2.0.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
@@ -37,6 +37,8 @@ export interface PreviewManifest {
|
||||
description: string | null;
|
||||
notes: string | null;
|
||||
shotCode: string;
|
||||
/** Production name, burned into the slate and the overlay. */
|
||||
show: string | null;
|
||||
episode: string | null;
|
||||
scene: string | null;
|
||||
vfxScope: string | null;
|
||||
@@ -75,6 +77,7 @@ export async function buildPreviewManifest(exportRow: ExportForPreview): Promise
|
||||
description: true,
|
||||
notes: true,
|
||||
slateDescription: true,
|
||||
project: { select: { name: true, code: true } },
|
||||
},
|
||||
});
|
||||
if (!shot) throw new PipelineError(404, "Shot not found for export");
|
||||
@@ -111,6 +114,8 @@ export async function buildPreviewManifest(exportRow: ExportForPreview): Promise
|
||||
description: shot.slateDescription ?? shot.description,
|
||||
notes: shot.notes,
|
||||
shotCode: shot.shotCode,
|
||||
// The production's own name, not its code: this is read off a slate.
|
||||
show: shot.project?.name ?? shot.project?.code ?? null,
|
||||
episode: shot.episode,
|
||||
scene: shot.scene,
|
||||
vfxScope: exportRow.vfxScope,
|
||||
|
||||
Reference in New Issue
Block a user