feat(pipeline): per-project AE templates, and a workspace that fits any show
Deploy / deploy (push) Successful in 7m4s

Initialise Workspace built UNG_101..UNG_117 from a hardcoded range and
imported one hardcoded AEP, and fourteen findComp calls named UNG's comps
literally. None of it worked for a second show.

Comp names now follow a convention derived from the show id —
{showId}_VFX_OVERLAY, {showId}_EXPORT_TEMPLATE, _SHOW LUT — which
reproduces UNG's existing names exactly, so nothing changes for the show
it was written for. A project whose template departs from the pattern can
override any of the three.

Paths cannot be derived: UNG's show id is UNG while its folder is
UNGO_VFX. Those live on Project.pipelineConfig and are edited under
Project → Settings → Pipeline. They are resolved server-side and handed
to the panel with the project list, and read by buildPreviewManifest for
the headless build, so the panel and the farm cannot disagree about which
template — or which show LUT — a shot was built with. That mattered more
than the folder names: a preview rendered through another show's LUT is
quietly the wrong colour rather than obviously broken.

Episode folders come from the project's episode list, falling back to the
folders under its footage root for a show whose episodes are not entered
yet.

Panel 2.5.0. Adds migration 20260814010000_project_pipeline_config.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
twotalesanimation
2026-08-15 08:24:40 +02:00
parent 483db65eb3
commit bada122f42
12 changed files with 430 additions and 45 deletions
+93 -1
View File
@@ -19,7 +19,7 @@ import {
} from "@/components/ui/select";
import { updateProject } from "@/actions/projects";
import { useToast } from "@/components/ui/use-toast";
import { Settings, Building2, Users, Webhook } from "lucide-react";
import { Settings, Building2, Users, Webhook, Clapperboard } from "lucide-react";
const settingsSchema = z.object({
name: z.string().min(1, "Name is required").max(100),
@@ -35,6 +35,12 @@ const settingsSchema = z.object({
startDate: z.string().optional(),
slackWebhook: z.string().optional(),
slackChannel: z.string().optional(),
// Pipeline — see the Pipeline section for why only paths are required here.
templateAep: z.string().optional(),
rendersRoot: z.string().optional(),
overlayComp: z.string().optional(),
previewComp: z.string().optional(),
lutComp: z.string().optional(),
});
type SettingsFormValues = z.infer<typeof settingsSchema>;
@@ -67,6 +73,13 @@ interface ProjectSettingsTabProps {
startDate: Date | null;
slackWebhook: string | null;
slackChannel: string | null;
pipelineConfig: {
templateAep?: string | null;
rendersRoot?: string | null;
overlayComp?: string | null;
previewComp?: string | null;
lutComp?: string | null;
} | null;
};
clients: Client[];
teamMembers: TeamMember[];
@@ -109,9 +122,19 @@ export function ProjectSettingsTab({ project, clients, teamMembers }: ProjectSet
startDate: toDateInput(project.startDate),
slackWebhook: project.slackWebhook ?? "",
slackChannel: project.slackChannel ?? "",
templateAep: project.pipelineConfig?.templateAep ?? "",
rendersRoot: project.pipelineConfig?.rendersRoot ?? "",
overlayComp: project.pipelineConfig?.overlayComp ?? "",
previewComp: project.pipelineConfig?.previewComp ?? "",
lutComp: project.pipelineConfig?.lutComp ?? "",
},
});
// Blank comp-name fields mean "use the convention", so they are shown as
// placeholders rather than pre-filled: a project that follows the pattern
// should have nothing stored, and inherit any future change to it.
const showId = watch("showId") || project.showId;
const onSubmit = async (data: SettingsFormValues) => {
setIsSubmitting(true);
try {
@@ -130,6 +153,13 @@ export function ProjectSettingsTab({ project, clients, teamMembers }: ProjectSet
startDate: data.startDate || null,
slackWebhook: data.slackWebhook || null,
slackChannel: data.slackChannel || null,
pipelineConfig: {
templateAep: data.templateAep?.trim() || null,
rendersRoot: data.rendersRoot?.trim() || null,
overlayComp: data.overlayComp?.trim() || null,
previewComp: data.previewComp?.trim() || null,
lutComp: data.lutComp?.trim() || null,
},
});
toast({ title: "Project settings saved" });
router.refresh();
@@ -338,6 +368,68 @@ export function ProjectSettingsTab({ project, clients, teamMembers }: ProjectSet
</div>
</section>
{/* ── Pipeline ── */}
<section className="space-y-4">
<div className="flex items-center gap-2">
<Clapperboard className="h-4 w-4 text-zinc-400" />
<h2 className="text-sm font-semibold text-zinc-200">Pipeline</h2>
</div>
<Separator />
<p className="text-xs text-zinc-500">
Where this show&apos;s After Effects template lives. Used by the connector panel and by the
render farm&apos;s preview build alike, so both work from the same template — and, above
all, the same show LUT.
</p>
<div className="grid grid-cols-2 gap-4">
<div className="space-y-1.5 col-span-2">
<Label htmlFor="templateAep">Template project (.aep)</Label>
<Input
id="templateAep"
placeholder="X:/shared_projects_2026/UNGO_VFX/production/working_files/UNG_VFXOVERLAY_SLATE_TEMPLATE.aep"
{...register("templateAep")}
/>
<p className="text-xs text-zinc-500">
Holds the overlay, the slate/export template and the show LUT. Imported by
Initialise Workspace and by every headless preview build.
</p>
</div>
<div className="space-y-1.5 col-span-2">
<Label htmlFor="rendersRoot">Renders root</Label>
<Input
id="rendersRoot"
placeholder="X:/shared_projects_2026/UNGO_VFX/production/renders"
{...register("rendersRoot")}
/>
<p className="text-xs text-zinc-500">
Where per-shot pre-renders live; the panel appends the shot code. Used by Import Renders.
</p>
</div>
</div>
<div className="space-y-1.5">
<p className="text-xs text-zinc-400">
Comp names default to the convention below and only need filling in when this show&apos;s
template departs from it. Leave blank to follow the convention.
</p>
<div className="grid grid-cols-3 gap-4 pt-1">
<div className="space-y-1.5">
<Label htmlFor="overlayComp">Overlay comp</Label>
<Input id="overlayComp" placeholder={`${showId}_VFX_OVERLAY`} {...register("overlayComp")} />
</div>
<div className="space-y-1.5">
<Label htmlFor="previewComp">Slate / export comp</Label>
<Input id="previewComp" placeholder={`${showId}_EXPORT_TEMPLATE`} {...register("previewComp")} />
</div>
<div className="space-y-1.5">
<Label htmlFor="lutComp">Show LUT comp</Label>
<Input id="lutComp" placeholder="_SHOW LUT" {...register("lutComp")} />
</div>
</div>
</div>
</section>
{/* Save */}
<div className="flex justify-end pt-2">
<Button type="submit" disabled={isSubmitting || !isDirty} className="min-w-[120px]">