import Link from "next/link"; import { BenchBody, BenchFrame, BenchTop } from "./bench/BenchShell"; import { projectsHref } from "@/lib/hrefs"; import { readManifest } from "@/lib/projects/report.mjs"; import { manifestToken } from "@/lib/report/manifest.mjs"; import { narrationReviewView } from "@/lib/report/narration-review.mjs"; import { pieceHrefOfProject } from "@/lib/pieces/article"; import type { ProjectRef } from "@/lib/project-types"; import NarrationReview, { type NarrationView } from "./NarrationReview"; // `/browse//narration` -- the cut's narration script, card by card, // before synthesis (release 25, T5): each narrated card's words beside what // the card shows, approved, edited or rejected, and played through the editor. // Verdicts are /drafts.review.json (release 25's // narration.review.json still read); the build refuses an un-approved card // once the cut's narration has a verdict, and a final build a drafted one. export default async function NarrationPage({ project }: { project: ProjectRef }) { const manifest = await readManifest(project.dir); const view = (await narrationReviewView(project.dir, manifest ?? {})) as NarrationView; const token = await manifestToken(project.dir); const { counts } = view; // The piece this view belongs to: the article's when an article claims the project (P4a-2). const media = await pieceHrefOfProject(project.id, { tab: "media" }); return ( // The bench shell (P4b): the top bar here; NarrationReview owns the verdict bar. } > {view.rows.length === 0 ? (

No card in this cut carries a narration.{" "} back to {project.id}

) : ( )}
); }