import Link from "next/link"; import { projectsHref, takesHref } from "@/lib/hrefs"; import { clipDeckView } from "@/lib/report/clipDeck"; import { clipEditorView } from "@/lib/report/clipEditor.mjs"; import type { EditorView } from "@/lib/report/clipEditorTypes"; import { pieceHrefOfProject } from "@/lib/pieces/article"; import type { ProjectRef } from "@/lib/project-types"; import { NotesProvider } from "@/components/notes/NotesProvider"; import { BenchBody, BenchFrame, BenchTop } from "./bench/BenchShell"; import ClipEditor from "./review/ClipEditor"; // `/projects//clips` on a cut that is not a montage -- THE CLIP // EDITOR (release 35 C2): a person hops in on the clips an assistant made // (the clip finder's, `assist` on each) or on any report video's clips, and // trims, splits, merges, adds, restores, keeps or cuts them, comments on // them (notes.json, anchored to the clip) and says which voice is the host. // lib/report/clipEditor.mjs is every write. Nothing here calls a model. const KEYS = [ { keys: ["Space"], label: "play" }, { keys: ["J", "L"], label: "∓2 s" }, { keys: ["I", "O"], label: "in / out" }, { keys: ["S"], label: "split" }, { keys: ["M"], label: "merge" }, { keys: ["K", "X"], label: "keep / cut" }, { keys: ["←", "→"], label: "clip" }, ]; export default async function ClipEditorPage({ project, clip }: { project: ProjectRef; clip?: string }) { const [view, deck, back] = await Promise.all([ clipEditorView(project) as Promise, clipDeckView(project).catch(() => null), pieceHrefOfProject(project.id, { tab: "cut" }), ]); const top = ; if (!view || !view.clips.length) { return (

No clips in this cut.{" "} back to {project.id}

); } const initial = view.clips.some((c) => c.id === clip) ? (clip as string) : view.clips[0].id; return ( ); }