commit a2cbb4362b1c4085316d10a0aac6019973915615
parent 47e130690f28bfbe250843e3d18bbed454f4724e
Author: I Mean I'm Just Saying <imeanimjustsaying@kiwifarms.st>
Date: Fri, 16 Oct 2026 17:27:30 -0400
umtool: review-player.spec (the deck plays a window on disk, fetches a missing one through the editor stub, keeps, cuts, undoes, edits; Verify quotes / Check report on the article page) and its fixture; the deck never loses a key to its exit animation (a ghost card flies out), counts skips in its position, KEEP stamps from the left; the specs that walk the review's list open ?view=list
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Diffstat:
8 files changed, 249 insertions(+), 41 deletions(-)
diff --git a/umtool/components/projects/review/AuditionDeck.tsx b/umtool/components/projects/review/AuditionDeck.tsx
@@ -41,7 +41,22 @@ const UNDO_DEPTH = 20;
// The next card rises into place (120 ms); with reduced motion it does not move.
const DECK_CSS = `@keyframes deck-rise { from { transform: scale(0.97) translateY(4px); } to { transform: none; } }
.deck-rise { animation: deck-rise 120ms ease-out; }
+@keyframes deck-out-right { from { transform: translate(var(--dx), var(--dy)) rotate(var(--r)); } to { transform: translate(120%, 0) rotate(8deg); opacity: 0.6; } }
+@keyframes deck-out-left { from { transform: translate(var(--dx), var(--dy)) rotate(var(--r)); } to { transform: translate(-120%, 0) rotate(-8deg); opacity: 0.6; } }
+@keyframes deck-out-down { from { transform: translate(var(--dx), var(--dy)); } to { transform: translate(0, 110%); opacity: 0; } }
+@keyframes deck-fade { from { opacity: 1; } to { opacity: 0; } }
+.deck-out-right { animation: deck-out-right 160ms ease-in forwards; }
+.deck-out-left { animation: deck-out-left 160ms ease-in forwards; }
+.deck-out-down { animation: deck-out-down 160ms ease-in forwards; }
+.deck-fade { animation: deck-fade 80ms linear forwards; }
@media (prefers-reduced-motion: reduce) { .deck-rise { animation: none; } }`;
+
+// KEEP reads from the side the card leaves by: top left; CUT and SKIP top right.
+const stampClass = (kind: string) =>
+ cn(
+ "pointer-events-none absolute top-28 z-10 rotate-[-8deg] rounded-[4px] border-[3px] px-2.5 py-0.5 font-display text-[28px] font-bold uppercase tracking-wide",
+ kind === "KEEP" ? "left-4 border-signal text-signal" : kind === "CUT" ? "right-4 border-muted text-muted line-through" : "right-4 border-seam-2 text-text-2",
+ );
const TYPING = "input, textarea, select, [contenteditable=''], [contenteditable='true']";
export default function AuditionDeck({
@@ -80,7 +95,9 @@ export default function AuditionDeck({
const [error, setError] = useState<string | null>(null);
const [busy, setBusy] = useState(false);
const [drag, setDrag] = useState<{ dx: number; dy: number } | null>(null);
- const [leaving, setLeaving] = useState<null | "right" | "left" | "up" | "down">(null);
+ // The card that was just decided, flying out over the next one: a picture of
+ // it only, so a key pressed during the exit is never lost.
+ const [ghost, setGhost] = useState<null | { address: string; dir: "right" | "left" | "down"; dx: number; dy: number; id: number }>(null);
const [reduced, setReduced] = useState(false);
const clip = useRef<CitedClipHandle | null>(null);
const card = useRef<HTMLDivElement | null>(null);
@@ -105,6 +122,8 @@ export default function AuditionDeck({
return c;
}, [decided]);
const done = decided.size;
+ // Where the deck is: every card ruled or skipped so far, then this one.
+ const at = Math.min(done + skipped.size + 1, total);
// The card after the next: ask what plays it before it is shown.
useEffect(() => {
@@ -158,7 +177,7 @@ export default function AuditionDeck({
const decide = useCallback(
(dir: "right" | "left" | "up" | "down") => {
- if (!top || busy || leaving) return;
+ if (!top || busy) return;
setStarted(true);
if (dir === "up") {
setDrag(null);
@@ -169,17 +188,13 @@ export default function AuditionDeck({
return;
}
const address = top;
- setLeaving(dir);
+ const id = Date.now();
+ setGhost({ address, dir, dx: drag?.dx ?? 0, dy: drag?.dy ?? 0, id });
setDrag(null);
- window.setTimeout(
- () => {
- setLeaving(null);
- void commit(dir === "right" ? "kept" : dir === "left" ? "cut" : "skip", address);
- },
- reduced ? 80 : 160,
- );
+ window.setTimeout(() => setGhost((g) => (g?.id === id ? null : g)), reduced ? 80 : 160);
+ void commit(dir === "right" ? "kept" : dir === "left" ? "cut" : "skip", address);
},
- [top, busy, leaving, rowOf, commit, reduced],
+ [top, busy, drag, rowOf, commit, reduced],
);
const undo = useCallback(async () => {
@@ -279,7 +294,7 @@ export default function AuditionDeck({
// The drag: past 30 % of the card's width, or a flick, decides; below it springs back.
const onPointerDown = (e: React.PointerEvent) => {
- if (editing || leaving || e.button !== 0) return;
+ if (editing || e.button !== 0) return;
if ((e.target as HTMLElement).closest("button, a, input, textarea, select, [data-word]")) return;
start.current = { x: e.clientX, y: e.clientY, t: performance.now(), id: e.pointerId };
};
@@ -312,21 +327,9 @@ export default function AuditionDeck({
? Math.abs(drag.dx) >= Math.abs(drag.dy)
? { kind: drag.dx > 0 ? "KEEP" : "CUT", o: Math.min(1, Math.abs(drag.dx) / ((card.current?.offsetWidth ?? 400) * THRESHOLD)) }
: { kind: drag.dy < 0 ? "EDIT" : "SKIP", o: Math.min(1, Math.abs(drag.dy) / ((card.current?.offsetWidth ?? 400) * THRESHOLD)) }
- : leaving
- ? { kind: leaving === "right" ? "KEEP" : leaving === "left" ? "CUT" : leaving === "down" ? "SKIP" : "EDIT", o: 1 }
- : null;
+ : null;
- const transform = leaving
- ? reduced
- ? undefined
- : leaving === "right"
- ? "translate(120%, 0) rotate(8deg)"
- : leaving === "left"
- ? "translate(-120%, 0) rotate(-8deg)"
- : "translate(0, 110%)"
- : drag
- ? `translate(${drag.dx}px, ${drag.dy}px) rotate(${drag.dx * 0.04}deg)`
- : undefined;
+ const transform = drag ? `translate(${drag.dx}px, ${drag.dy}px) rotate(${drag.dx * 0.04}deg)` : undefined;
const toggle = (
<div className="flex items-center gap-2 text-[12px]">
@@ -337,7 +340,7 @@ export default function AuditionDeck({
List
</Link>
<span data-deck-count="" className="ml-auto font-mono text-[11.5px] text-muted">
- {total ? `${Math.min(done + 1, total)} / ${total}` : "0 / 0"} · {counts.kept} kept · {counts.cut} cut{counts.edited ? ` · ${counts.edited} edited` : ""} · {skipped.size} skipped
+ {total ? `${at} / ${total}` : "0 / 0"} · {counts.kept} kept · {counts.cut} cut{counts.edited ? ` · ${counts.edited} edited` : ""} · {skipped.size} skipped
</span>
</div>
);
@@ -450,19 +453,15 @@ export default function AuditionDeck({
className="deck-card deck-rise relative z-[2] touch-pan-y select-none rounded-[8px] border border-seam-2 bg-panel shadow-sm outline-none focus-visible:ring-2 focus-visible:ring-signal"
style={{
transform,
- opacity: leaving && reduced ? 0 : 1,
- transition: drag ? "none" : leaving ? `transform 160ms ease-in, opacity ${reduced ? 80 : 160}ms` : "transform 120ms ease-out",
+ transition: drag ? "none" : "transform 120ms ease-out",
}}
>
{stamp && stamp.o > 0.05 && (
<span
data-stamp={stamp.kind}
aria-hidden
- className={cn(
- "pointer-events-none absolute right-4 top-12 z-10 rounded-[4px] border-[3px] px-2.5 py-0.5 font-display text-[28px] font-bold uppercase tracking-wide",
- stamp.kind === "KEEP" ? "border-signal text-signal" : stamp.kind === "CUT" ? "border-muted text-muted line-through" : "border-seam-2 text-text-2",
- )}
- style={{ opacity: stamp.o, transform: "rotate(-8deg)" }}
+ className={stampClass(stamp.kind)}
+ style={{ opacity: stamp.o }}
>
{stamp.kind}
</span>
@@ -471,7 +470,7 @@ export default function AuditionDeck({
address={top}
row={row}
ev={ev}
- index={Math.min(done + 1, total)}
+ index={at}
total={total}
playing={started}
clipRef={clip}
@@ -503,6 +502,21 @@ export default function AuditionDeck({
</div>
)}
</div>
+ {ghost && (
+ <div
+ key={ghost.id}
+ aria-hidden
+ data-card-ghost={ghost.dir}
+ className={cn("pointer-events-none absolute inset-x-0 top-0 z-[3] overflow-hidden rounded-[8px] border border-seam-2 bg-panel shadow-sm", reduced ? "deck-fade" : `deck-out-${ghost.dir}`)}
+ style={{ "--dx": `${ghost.dx}px`, "--dy": `${ghost.dy}px`, "--r": `${ghost.dx * 0.04}deg` } as React.CSSProperties}
+ >
+ <span className={stampClass(ghost.dir === "right" ? "KEEP" : ghost.dir === "left" ? "CUT" : "SKIP")}>{ghost.dir === "right" ? "KEEP" : ghost.dir === "left" ? "CUT" : "SKIP"}</span>
+ <div className="space-y-3 p-4 sm:p-5">
+ <span className="micro">{rowOf(ghost.address)?.label}</span>
+ <p className="m-0 font-display text-[22px] font-semibold leading-[1.2] text-text sm:text-[26px]">{rowOf(ghost.address)?.text}</p>
+ </div>
+ </div>
+ )}
</div>
{/* The stack's edges: as many as fields remain, up to three (depth is the truth). */}
{peeks > 0 && (
@@ -544,7 +558,7 @@ export default function AuditionDeck({
aria-label="Why cut, in a few words"
data-cut-note=""
maxLength={300}
- className="min-w-0 flex-1 rounded-[3px] border border-seam-2 bg-ground px-1.5 py-[2px] text-[11.5px] text-text outline-none focus:border-signal"
+ className="min-w-[10rem] flex-1 rounded-[3px] border border-seam-2 bg-ground px-1.5 py-[2px] text-[11.5px] text-text outline-none focus:border-signal"
/>
</div>
{error && (
@@ -641,7 +655,7 @@ function Card({
const misheardWords = marked?.size ? [...marked].map((i) => words[i]?.text).filter(Boolean) : [];
return (
- <div className="space-y-3 p-4 sm:p-5" data-card-body={address}>
+ <div className="flex flex-col gap-3 p-4 sm:p-5" data-card-body={address}>
<div className="flex items-baseline gap-2">
<span className="micro">{row?.label ?? address}</span>
{row?.entry && <span className="font-mono text-[11px] text-muted">{row.entry}</span>}
@@ -721,7 +735,7 @@ function Card({
onTime={setNow}
/>
) : (
- <p className="m-0 text-[12px] text-muted">{row?.entry ? "No source for this field." : "Not drawn over a clip: read it against the report."}</p>
+ <p className="m-0 text-[12px] text-muted">{ev ? "No source on disk names this clip's recording." : "Not drawn over a clip: read it against the report."}</p>
)}
{words.length > 0 && (
<p data-lit-quote="" className="m-0 font-serif text-[17px] leading-[1.45] text-text-2">
diff --git a/umtool/e2e/bench-shell.spec.ts b/umtool/e2e/bench-shell.spec.ts
@@ -134,7 +134,7 @@ test("the claim bench: its context on the reader, the cited cue lit, j/k from an
});
test("the drafts review is a bench: j/k light a field, the bar asks about it, a approves, r goes to the note", async ({ page }) => {
- await page.goto(urls.reviewHref(REVIEW));
+ await page.goto(urls.reviewHref(REVIEW, { view: "list" }));
await expect(page.locator("[data-bench-top] [data-bench-kind]")).toHaveText("Drafts review");
await expect(page.locator("[data-bench-back]")).toHaveAttribute("href", urls.projectHref(REVIEW, { tab: "media" }));
const rows = page.locator("[data-draft-row]");
diff --git a/umtool/e2e/draft-review.spec.ts b/umtool/e2e/draft-review.spec.ts
@@ -69,6 +69,9 @@ test("the review page: every drafted field, the narration's badge, and Use this
await page.goto(urls.section(PROJECT, "review"));
await page.locator("[data-review-link]").click();
await expect(page).toHaveURL(new RegExp(`/projects/${PROJECT}/review$`));
+ // The review opens on the audition deck (release 32 R1); this walks the list.
+ await page.locator("[data-review-view=list]").click();
+ await expect(page).toHaveURL(new RegExp(`/projects/${PROJECT}/review\\?view=list$`));
// The narration and the teaser are drafted; a final build would refuse them.
const k01 = page.locator('[data-draft-row="narrate/k01/narration"]');
await expect(k01).toHaveAttribute("data-state", "unreviewed");
@@ -115,7 +118,7 @@ test("a final build refuses an unapproved draft, and builds once it is approved"
expect(JSON.stringify(refused)).toContain("timeline c02: its on-screen text (drafted by qwen3:8b) is not approved");
expect(existsSync(path.join(BUILD_DIR, "out", "draft-review-build-fixture.mp4"))).toBe(false);
- await page.goto(urls.reviewHref(BUILD_PROJECT));
+ await page.goto(urls.reviewHref(BUILD_PROJECT, { view: "list" }));
const row = page.locator('[data-draft-row="onscreen/c02/onscreen"]');
await row.locator('[data-draft-action="approve"]').click();
await expect(row).toHaveAttribute("data-state", "approved");
diff --git a/umtool/e2e/fixtures/make-fixture.mjs b/umtool/e2e/fixtures/make-fixture.mjs
@@ -28,6 +28,7 @@ import { makeMediaDraftFixture } from "./media-draft-fixture.mjs";
import { makeMediaSurfacesFixture } from "./media-surfaces-fixture.mjs";
import { makeDeleteFixture } from "./delete-fixture.mjs";
import { makeDraftReviewFixture } from "./draft-review-fixture.mjs";
+import { makeReviewPlayerFixture } from "./review-player-fixture.mjs";
import { makeBenchShellFixture } from "./bench-shell-fixture.mjs";
import { makeYoutubeFixture } from "./youtube-fixture.mjs";
import { makeBoardFixture, makeResearchFixture } from "./research-fixture.mjs";
@@ -1690,6 +1691,8 @@ for (const dir of [BENCH, BUILD, ONSCREEN, ONSCREEN_BUILD, ONSCREEN_POSTS, ONSCR
// Release 28: drafted fields to review, and a final build they hold
// (draft-review.spec.ts).
makeDraftReviewFixture({ reports, manifest, cachedWindow: path.join(REPORT, "out", "clips-raw", "vid1_0.00-9.00.mp4") });
+// Release 32 R1: the audition deck, one window on disk and one fetched (review-player.spec.ts).
+makeReviewPlayerFixture({ reports, channels: CHANNELS, manifest, cachedWindow: path.join(REPORT, "out", "clips-raw", "vid1_0.00-9.00.mp4") });
// P4b: the bench shell's own clips, and the Media tab's fields with their draft files.
makeBenchShellFixture({ reports, manifest, cachedWindow: path.join(REPORT, "out", "clips-raw", "vid1_0.00-9.00.mp4") });
// Release 28 M6: the YouTube text, previewed and built (media-draft-e.spec.ts).
diff --git a/umtool/e2e/fixtures/review-player-fixture.mjs b/umtool/e2e/fixtures/review-player-fixture.mjs
@@ -0,0 +1,65 @@
+// What review-player.spec.ts walks (release 32 R1): the drafts review's
+// audition deck over a cut whose first cited window is on disk and whose
+// second is not. Its own project and its own source (vid8), so a fetch here
+// never makes another spec's window "already cached".
+//
+// reports/review-player-fixture/
+// p01 on-screen text DRAFTED over vid1 3-6 s: the project's cached window
+// (out/clips-raw/vid1_0.00-9.00.mp4) plays it
+// p02 on-screen text DRAFTED over vid8 3-6 s: nothing on disk until Fetch
+// clip asks the editor stub, which writes the window into the corpus
+// k01 a chapter card whose narration was DRAFTED: no clip, edited on the card
+//
+// Synthetic, like every fixture.
+import { copyFileSync, mkdirSync, writeFileSync } from "node:fs";
+import path from "node:path";
+
+const AT = "2026-10-16T10:00:00.000Z";
+const P = (task, model = "qwen3:8b") => ({ task, model, at: AT, iteration: 1, attempt: 1 });
+
+const write = (dir, name, doc) => {
+ mkdirSync(dir, { recursive: true });
+ writeFileSync(path.join(dir, name), JSON.stringify(doc, null, 2) + "\n");
+};
+
+/**
+ * @param {{ reports: string, channels: string, manifest: Function, cachedWindow: string }} o
+ */
+export function makeReviewPlayerFixture({ reports, channels, manifest, cachedWindow }) {
+ const rows = [
+ [0, 3, "The review fixture opens."],
+ [3, 6, "This is the sentence the second card cites."],
+ [6, 9, "And nothing else on the disk holds it."],
+ ];
+ write(path.join(channels, "testchan", "data", "vid8"), "transcript.cues.json", {
+ title: "Fixture source vid8",
+ uploadDate: "20250101",
+ channel: "Fixture Channel",
+ webpageUrl: "https://example.invalid/watch?v=vid8",
+ duration: 9,
+ cues: rows.map(([start, end, text]) => ({ start, end, text })),
+ });
+
+ const dir = path.join(reports, "review-player-fixture");
+ write(
+ dir,
+ "video.manifest.json",
+ manifest("review-player-fixture", "The Review Player Fixture", { siteOrigin: "https://archive.example" }, [
+ {
+ type: "clip", id: "p01", video: "vid1", start: 3.0, end: 6.0, cite: 3, section: 0, lock: true, quote: "And this one runs on and because",
+ onscreen: { title: "On disk title" }, drafted: { onscreen: P("onscreen") },
+ },
+ {
+ type: "clip", id: "p02", video: "vid8", start: 3.0, end: 6.0, cite: 3, section: 0, lock: true, quote: "This is the sentence the second card cites.",
+ onscreen: { title: "Fetched title" }, drafted: { onscreen: P("onscreen", "claude-sonnet-5-5") },
+ },
+ {
+ type: "card", id: "k01", style: "chapter", seconds: "auto", heading: "Later",
+ narration: { text: "A drafted narration line." }, drafted: { narration: P("narrate") },
+ },
+ ]),
+ );
+ mkdirSync(path.join(dir, "out", "clips-raw"), { recursive: true });
+ copyFileSync(cachedWindow, path.join(dir, "out", "clips-raw", path.basename(cachedWindow)));
+ return { dir };
+}
diff --git a/umtool/e2e/review-player.spec.ts b/umtool/e2e/review-player.spec.ts
@@ -0,0 +1,120 @@
+import { test, expect } from "@playwright/test";
+import { existsSync, readFileSync } from "node:fs";
+import path from "node:path";
+import { fileURLToPath } from "node:url";
+import * as urls from "./urls";
+
+// ---------------------------------------------------------------------------
+// Verify by playing the citation (release 32 R1). The drafts review is an
+// audition deck: card 1's cited window is on disk and is its player's video;
+// → keeps it (drafts.review.json); card 2's window is not on disk -- Fetch
+// clip asks the editor stub, and the card plays what it wrote; ← cuts, z
+// undoes, a reason chip rides in the note; ↑ edits the narration on the card;
+// the list shows the same verdicts. And the article page's Verify quotes /
+// Check report, each quote with its own Play. Fixtures:
+// e2e/fixtures/review-player-fixture.mjs, sites-fixture.mjs (priv/polemic-alpha).
+// ---------------------------------------------------------------------------
+
+const HERE = path.dirname(fileURLToPath(import.meta.url));
+const FIXTURE = path.join(HERE, "..", ".e2e-song");
+const PROJECT = "reports/review-player-fixture";
+const DIR = path.join(FIXTURE, "reports", "review-player-fixture");
+const STUB_LOG = path.join(FIXTURE, "editor-stub.requests.json");
+
+type Verdict = { verdict: string | null; note: string };
+const review = (): Record<string, Verdict> => {
+ const f = path.join(DIR, "drafts.review.json");
+ if (!existsSync(f)) return {};
+ const doc = JSON.parse(readFileSync(f, "utf8")) as { rows?: Record<string, Verdict> } & Record<string, Verdict>;
+ return doc.rows ?? doc;
+};
+const manifest = () => JSON.parse(readFileSync(path.join(DIR, "video.manifest.json"), "utf8")) as { timeline: { id: string; narration?: { text: string }; drafted?: unknown }[] };
+
+test("the audition deck: play the span, keep, fetch a missing clip, cut, undo, edit; the list agrees", async ({ page, request }) => {
+ test.setTimeout(120_000);
+ await page.setViewportSize({ width: 1366, height: 900 });
+ await page.goto(urls.reviewHref(PROJECT));
+ const card = page.locator("[data-card-top]");
+ await expect(card).toHaveAttribute("data-card", "onscreen/p01/onscreen");
+ await expect(card.locator("[data-card-value]")).toHaveText("On disk title");
+ await expect(card.locator("[data-card-drafted]")).toHaveText("drafted by qwen3:8b · onscreen");
+ await expect(page.locator("[data-deck-count]")).toContainText("1 / 3 · 0 kept · 0 cut");
+
+ // Video first: the project's cached window, served with ranges.
+ await expect(card.locator("[data-play]")).toHaveAttribute("data-play", "window", { timeout: 15_000 });
+ const video = card.locator("video[data-player]");
+ await expect(video).toHaveAttribute("src", /\/api\/report\/raw\?.*file=vid1_0\.00-9\.00\.mp4/);
+ const res = await request.get((await video.getAttribute("src"))!, { headers: { range: "bytes=0-99" } });
+ expect(res.status()).toBe(206);
+ // The lit line: the quote, word by word.
+ await expect(card.locator("[data-lit-quote] [data-word]")).toHaveCount(7);
+
+ // Start (the gesture that lets every card play itself), then → keeps it.
+ await page.locator("[data-deck-start]").click();
+ await expect(page.locator("[data-deck-start]")).toHaveCount(0);
+ await page.keyboard.press("ArrowRight");
+ await expect.poll(() => review()["onscreen/p01/onscreen"]?.verdict).toBe("approved");
+
+ // Card 2: nothing on disk. Fetch clip asks the editor as fetch_clip does, then plays it.
+ await expect(card).toHaveAttribute("data-card", "onscreen/p02/onscreen");
+ await expect(card.locator("[data-play]")).toHaveAttribute("data-play", "none");
+ await card.locator("[data-fetch-clip]").click();
+ await expect(card.locator("[data-play]")).toHaveAttribute("data-play", "window", { timeout: 30_000 });
+ await expect(card.locator("video[data-player]")).toHaveAttribute("src", /\/api\/(report\/raw|sites\/media)\?/);
+ const asked = (JSON.parse(readFileSync(STUB_LOG, "utf8")) as Record<string, unknown>[]).filter((q) => q.videoId === "vid8");
+ expect(asked.at(-1)).toMatchObject({ channelSlug: "testchan", videoId: "vid8", from: 0, to: 9, pad: 3, requestedBy: "umtool" });
+
+ // A word marked misheard rides in the note; ← cuts, z undoes.
+ await card.locator('[data-word="0"]').click();
+ await expect(card.locator('[data-word="0"]')).toHaveAttribute("data-misheard", "");
+ await page.locator("body").press("ArrowLeft");
+ await expect.poll(() => review()["onscreen/p02/onscreen"]?.verdict).toBe("rejected");
+ expect(review()["onscreen/p02/onscreen"].note).toBe("cut on the deck · misheard: This");
+ await page.locator("body").press("z");
+ await expect.poll(() => review()["onscreen/p02/onscreen"]?.verdict ?? null).toBeNull();
+ await expect(card).toHaveAttribute("data-card", "onscreen/p02/onscreen");
+ await page.locator('[data-cut-reason="wrong moment"]').click();
+ await page.locator('[data-deck-action="cut"]').click();
+ await expect.poll(() => review()["onscreen/p02/onscreen"]?.note).toBe("wrong moment · misheard: This");
+
+ // Card 3: a narration with no clip. ↑ edits it on the card; Enter keeps it as edited.
+ await expect(card).toHaveAttribute("data-card", "narrate/k01/narration");
+ await expect(card).toContainText("Not drawn over a clip");
+ await page.locator("body").press("ArrowUp");
+ const edit = card.locator("[data-card-edit]");
+ await expect(edit).toHaveValue("A drafted narration line.");
+ await edit.fill("A narration line, said better.");
+ await edit.press("Enter");
+ await expect.poll(() => manifest().timeline.find((e) => e.id === "k01")?.narration?.text).toBe("A narration line, said better.");
+ await expect.poll(() => review()["narrate/k01/narration"]?.verdict).toBe("approved");
+
+ // The deck's end: what was cut, and the way back.
+ const summary = page.locator("[data-deck-summary]");
+ await expect(summary).toContainText("1 kept · 1 cut · 1 edited");
+ await expect(summary.locator('[data-summary-row="onscreen/p02/onscreen"]')).toContainText("Fetched title");
+
+ // The list shows the same verdicts.
+ await page.locator("[data-review-view=list]").click();
+ await expect(page).toHaveURL(/\/review\?view=list$/);
+ await expect(page.locator('[data-draft-row="onscreen/p01/onscreen"]')).toHaveAttribute("data-state", "approved");
+ await expect(page.locator('[data-draft-row="onscreen/p02/onscreen"]')).toHaveAttribute("data-state", "rejected");
+});
+
+test("the article page: Verify quotes plays each quote; Check report says what compose would", async ({ page }) => {
+ await page.goto(urls.articleHref({ site: "priv", id: "polemic-alpha" }, { tab: "article" }));
+ const checks = page.locator("[data-article-checks]");
+ await checks.locator('[data-check="quotes"]').click();
+ const quotes = page.locator("[data-quote-checks]");
+ await expect(quotes).toHaveAttribute("data-quote-checks", "2", { timeout: 30_000 });
+ const c1 = quotes.locator('[data-quote-check="c1"]');
+ await expect(c1).toHaveAttribute("data-status", /.+/);
+ await expect(c1).toContainText("The vote was rigged and everybody knew.");
+ await c1.locator("[data-check-play]").click();
+ await expect(c1.locator("[data-play]")).toHaveAttribute("data-play", "window", { timeout: 15_000 });
+ await expect(c1.locator("video[data-player]")).toHaveAttribute("src", /corpus=.*sv1.*clips/);
+
+ await checks.locator('[data-check="check"]').click();
+ const check = page.locator("[data-report-check]");
+ await expect(check).toBeVisible({ timeout: 60_000 });
+ await expect(check.locator("[data-check-summary]")).toContainText(/compose would (pass|fail)/);
+});
diff --git a/umtool/e2e/running.spec.ts b/umtool/e2e/running.spec.ts
@@ -221,6 +221,9 @@ test.describe("drafts in the Inbox", () => {
await expect(card.locator("small")).toHaveText("by qwen3:8b");
await card.locator("[data-action-link]").click();
await expect(page).toHaveURL(new RegExp(`/projects/${DRAFTS}/review$`));
+ // The review opens on the audition deck (release 32 R1); the list is one toggle away.
+ await page.locator("[data-review-view=list]").click();
+ await expect(page).toHaveURL(new RegExp(`/projects/${DRAFTS}/review\\?view=list$`));
for (const address of ["onscreen/c01/onscreen", "narrate/k01/narration", "narrate/k02/narration"]) {
const row = page.locator(`[data-draft-row="${address}"]`);
diff --git a/umtool/e2e/visual-audit.spec.ts b/umtool/e2e/visual-audit.spec.ts
@@ -52,7 +52,7 @@ const PAGES: [string, string][] = [
["bench-claim", urls.claimBenchHref("reports/bench-fixture", "k01")],
["bench-narration", urls.narrationHref("reports/narration-review-fixture")],
["bench-takes", urls.takesHref("reports/takes-fixture")],
- ["bench-review", urls.reviewHref("reports/media-review-fixture")],
+ ["bench-review", urls.reviewHref("reports/media-review-fixture", { view: "list" })],
["create", urls.createHref()],
...(["research", "article", "article-board", "recurring", "video-article", "video-board", "video-recording", "video-report", "song"] as const).map(
(make) => [`create-${make}`, urls.createHref({ make })] as [string, string],