revert(pipeline): back out picture-lock trimming from the preview build
Deploy / deploy (push) Successful in 6m19s

Production fallout after enabling it: the trimmed EXR footage started
after the head handle as intended, but the overlay's burn-in timecode
(hardcoded to start at frame 1001) did not shift with it, so the
delivered burn-in no longer matched the footage. The picture-lock
reference render also never worked correctly in practice. Reverts the
AE panel checkbox, the preview-build script's trim/reference logic, and
the server/worker plumbing around it back to their pre-feature state
(82dfaee) — untrimmed previews, no picture-lock reference, overlay
timecode correct again.

The noPictureLock/piclockRefKey schema columns and their migration are
deliberately left in place: they're already applied in production, and
dropping an applied migration's file risks the next `prisma migrate
deploy`. They sit unused and harmless until this is revisited.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
twotalesanimation
2026-08-23 21:44:45 +02:00
parent 67d8639861
commit a18dfc6203
12 changed files with 21 additions and 341 deletions
@@ -3,7 +3,7 @@
import { useState } from "react";
import Link from "next/link";
import { useQuery, useQueryClient } from "@tanstack/react-query";
import { ArrowLeft, RotateCcw, XCircle, ShieldAlert, Clapperboard } from "lucide-react";
import { ArrowLeft, RotateCcw, XCircle, ShieldAlert } from "lucide-react";
import { Button } from "@/components/ui/button";
import { useToast } from "@/components/ui/use-toast";
import { cn } from "@/lib/utils";
@@ -36,9 +36,6 @@ interface ExportDetail {
vfxScope: string | null;
submissionNote: string | null;
submittedByName: string | null;
noPictureLock: boolean;
/** Full-duration, ungraded picture-lock reference MP4 — a diagnostic sidecar, not a Version. */
piclockRefKey: string | null;
shot: {
id: string;
shotCode: string;
@@ -180,7 +177,6 @@ export function ExportDetailClient({ exportId }: { exportId: string }) {
["Colorspace", e.colorspace ?? "—"],
["EXR files", e.exrFileCount != null ? String(e.exrFileCount) : "—"],
["Submitted by", e.submittedByName ?? "—"],
["Picture lock", e.noPictureLock ? "Skipped (No Picture Lock)" : "Trimmed to picture lock"],
];
return (
@@ -207,13 +203,6 @@ export function ExportDetailClient({ exportId }: { exportId: string }) {
</div>
</div>
<div className="flex items-center gap-2">
{e.piclockRefKey && (
<a href={`/api/files/${e.piclockRefKey}`} target="_blank" rel="noreferrer">
<Button variant="outline" size="sm">
<Clapperboard className="h-4 w-4 mr-2 text-zinc-400" /> Picture Lock Reference
</Button>
</a>
)}
{FAILED_STATUSES.includes(e.status) && (
<Button variant="outline" size="sm" onClick={() => action("retry")}>
<RotateCcw className="h-4 w-4 mr-2 text-amber-400" /> Retry
+1 -3
View File
@@ -5,7 +5,7 @@ import { createExport } from "@/lib/render-pipeline/exports";
// ── POST /api/ext/exports (E1 — Queue Export) ────────────────────────────────
//
// Body: { manifest: RenderManifest, submittedByEmail?, priority?, force?, skipPreview?, noPictureLock? }
// Body: { manifest: RenderManifest, submittedByEmail?, priority?, force?, skipPreview? }
// The server decides the new version number, updates Shot.shotVersion/exrOutput,
// supersedes older non-terminal exports, and creates Export(QUEUED) + RenderJob.
@@ -21,7 +21,6 @@ export async function POST(req: NextRequest) {
vfxScope?: string | null;
submissionNote?: string | null;
skipPreview?: boolean;
noPictureLock?: boolean;
};
try {
body = await req.json();
@@ -41,7 +40,6 @@ export async function POST(req: NextRequest) {
vfxScope: body.vfxScope,
submissionNote: body.submissionNote,
skipPreview: body.skipPreview === true,
noPictureLock: body.noPictureLock === true,
});
return NextResponse.json(result, { status: 201 });
} catch (err) {
@@ -16,7 +16,6 @@ const KIND_FOLDERS: Record<string, string> = {
thumbnail: "image",
metadata: "renders",
log: "renders",
piclockRef: "videos",
};
export async function POST(