import Link from "next/link"; import { notFound } from "next/navigation"; import { BenchBody, BenchFrame, BenchTop } from "./bench/BenchShell"; import { projectsHref, trailerHref } from "@/lib/hrefs"; import { pieceHrefOfProject } from "@/lib/pieces/article"; import type { ProjectRef } from "@/lib/project-types"; import { DEFAULT_REEL, isReelId, listReels } from "@/lib/report/trailerBeats.mjs"; import { cn } from "@/lib/utils"; import TrailerBeatsEditor from "./TrailerBeatsEditor"; import ReelCutPanel from "./reel/ReelCutPanel"; import NewReel from "./reel/NewReel"; // `/projects//trailer` -- the trailer's beats (UI notes 2026-10-30, // item 11): promo/trailer-beats.json, its running length against the // platform's limit, the beats outside their clips, the cut's order, the walk's // ★ clips -- edited here, or by `umtool trailer-beats`. BEAT REELS // (lane/beat-reels): the project's other reels (`?reel=`, // promo/-beats.json), each played and walked from a take's rendered // master and cut as a job on the runner (ReelCutPanel.tsx) -- `umtool trailer //

--reel ` does the same from a terminal. export default async function TrailerPage({ project, reel = DEFAULT_REEL }: { project: ProjectRef; reel?: string }) { const r = reel || DEFAULT_REEL; if (!isReelId(r)) notFound(); const [back, reels] = await Promise.all([pieceHrefOfProject(project.id, { tab: "cut" }), listReels(project.dir)]); if (r !== DEFAULT_REEL && !reels.some((x) => x.name === r && x.exists)) notFound(); return ( } >

); }