feat(pipeline): render-derived shot thumbnails, and bulk shot delete
Deploy / deploy (push) Failing after 19m11s
Deploy / deploy (push) Failing after 19m11s
Two independent features landing together: Generated shot thumbnails — a shot can now carry a thumbnail promoted from a render export (Shot.generatedThumbnailUrl/generatedThumbnailFrom) alongside the existing brief-supplied thumbnailUrl, which always takes display precedence (lib/shot-thumbnail.ts) so a promoted frame can only ever fill a gap, never overwrite the brief. Shows with pipelineConfig.autoShotThumbnail promote automatically on every finished export (lib/render-pipeline/preview.ts); promoteExportThumbnail/ clearGeneratedThumbnail (actions/shots.ts) are the manual equivalent for everyone else. Worker-side seek logic for picking the promoted frame is covered by RenderWorker/VFXReviewWorker.Tests/ThumbnailSeekTests.cs. Bulk shot delete — the shot-status page's selection bar gets a "Bulk Actions" dropdown (alongside the existing Change Due Date) with Delete Shots. bulkDeleteShots() (actions/shots.ts) deletes one at a time rather than in a single statement: exports_shotId_fkey is ON DELETE RESTRICT by design, so a shot with renders or deliveries on record is protected and gets skipped and reported by name rather than aborting the whole selection or being silently destroyed along with its history. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
@@ -41,6 +41,7 @@ const settingsSchema = z.object({
|
||||
overlayComp: z.string().optional(),
|
||||
previewComp: z.string().optional(),
|
||||
lutComp: z.string().optional(),
|
||||
autoShotThumbnail: z.boolean().optional(),
|
||||
});
|
||||
|
||||
type SettingsFormValues = z.infer<typeof settingsSchema>;
|
||||
@@ -79,6 +80,7 @@ interface ProjectSettingsTabProps {
|
||||
overlayComp?: string | null;
|
||||
previewComp?: string | null;
|
||||
lutComp?: string | null;
|
||||
autoShotThumbnail?: boolean | null;
|
||||
} | null;
|
||||
};
|
||||
clients: Client[];
|
||||
@@ -127,6 +129,7 @@ export function ProjectSettingsTab({ project, clients, teamMembers }: ProjectSet
|
||||
overlayComp: project.pipelineConfig?.overlayComp ?? "",
|
||||
previewComp: project.pipelineConfig?.previewComp ?? "",
|
||||
lutComp: project.pipelineConfig?.lutComp ?? "",
|
||||
autoShotThumbnail: project.pipelineConfig?.autoShotThumbnail ?? false,
|
||||
},
|
||||
});
|
||||
|
||||
@@ -159,6 +162,7 @@ export function ProjectSettingsTab({ project, clients, teamMembers }: ProjectSet
|
||||
overlayComp: data.overlayComp?.trim() || null,
|
||||
previewComp: data.previewComp?.trim() || null,
|
||||
lutComp: data.lutComp?.trim() || null,
|
||||
autoShotThumbnail: data.autoShotThumbnail ?? false,
|
||||
},
|
||||
});
|
||||
toast({ title: "Project settings saved" });
|
||||
@@ -427,6 +431,28 @@ export function ProjectSettingsTab({ project, clients, teamMembers }: ProjectSet
|
||||
<Input id="lutComp" placeholder="_SHOW LUT" {...register("lutComp")} />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div className="pt-4 mt-4 border-t border-border/60">
|
||||
<label className="flex items-start gap-2.5 cursor-pointer group">
|
||||
<input
|
||||
id="autoShotThumbnail"
|
||||
type="checkbox"
|
||||
className="accent-amber-500 h-3.5 w-3.5 mt-0.5"
|
||||
{...register("autoShotThumbnail")}
|
||||
/>
|
||||
<span className="space-y-1">
|
||||
<span className="block text-sm group-hover:text-foreground transition-colors">
|
||||
Use render frames as shot thumbnails
|
||||
</span>
|
||||
<span className="block text-xs text-muted-foreground">
|
||||
Every finished export sets its shot's thumbnail from the render.
|
||||
A thumbnail supplied with the brief always takes priority and is
|
||||
never overwritten — turn this on for shows that arrive with no
|
||||
stills at all, where the alternative is an empty grid.
|
||||
</span>
|
||||
</span>
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user