feat(connector): per-shot/version export folders, scene filter

Panel export paths now mirror the server's layout
({exportRoot}/{showId}/[{episode} if episodic]/{shotCode}/{version}) via a new
getShotExportDir helper, so farm and local renders land in the same folder.
Folder creation moves into the per-shot loop so one unwritable path no longer
aborts the whole queue.

Also adds an optional `scene` query param to the ext shots endpoint.
This commit is contained in:
twotalesanimation
2026-08-12 10:29:51 +02:00
parent 7dcb9303e5
commit c4abda2d63
2 changed files with 35 additions and 11 deletions
@@ -18,6 +18,7 @@ function isAuthorized(req: NextRequest): boolean {
//
// Query params (all optional):
// episode e.g. 108
// scene e.g. 022
// sequence e.g. 004
// status e.g. IN_PROGRESS
// page (default 1)
@@ -60,6 +61,7 @@ export async function GET(
where: {
projectId: project.id,
...(episode ? { episode } : {}),
...(scene ? { scene } : {}),
...(sequence ? { sequence } : {}),
...(status ? { status: status as never } : {}),
},