import { notFound } from "next/navigation"; import AppShell from "@/components/shell/AppShell"; import PostBench from "./PostBench"; import { projectHref, playHref, readsHref } from "@/lib/hrefs"; import PlayLink from "./PlayLink"; import { postBenchData } from "@/lib/report/postBenchData"; import type { ProjectRef } from "@/lib/project-types"; // THE POST BENCH (report-to-video/post-item.mjs; knobs.md, "A post item"): one // post item of the cut on its own -- its card and attachments played on the // item's clock, and its knobs: an attachment's trim, sound, crop and push-in, // the images' grid, the blur of other authors, the item's hold, and a video's // words through the editor's transcription. Every save is updatePostItem // (POST /api/report/post-item {op: "set"}), the writer `umtool posts set-item` runs. // THE BENCH EDITS THE DRAFT (umtool redesign L3): every save lands in the project's manifest. The take-only // scope (lane/ui-simplify's "edit this take only" query) is retired from the page -- an old address with it is // the draft's bench -- and stays for agents as the CLI's `--in-take`. export default async function PostBenchPage({ project, id, search = {} }: { project: ProjectRef; id: string; search?: Record }) { return postBenchBody({ project, id, search }); } async function postBenchBody({ project, id, search }: { project: ProjectRef; id: string; search: Record }) { const d = await postBenchData(project.dir, id); if (!d) notFound(); const { entry, neighbours, index: k } = d; const fromPlay = search.from === "play"; const back = fromPlay ? playHref(project.id, { clip: id, at: Number(search.at ?? 0) || null }) : projectHref(project.id, { tab: "cut" }); return (
} />
{/* Where the bench's edits go: the draft. */}

edits go to the draft · Reads

0 ? neighbours[k - 1] : null} next={k < neighbours.length - 1 ? neighbours[k + 1] : null} fromPlay={fromPlay} />
); }