Archilyzer · Source

archilyzer

Archilyzer
git clone https://archilyzer.pages.dev/source/archilyzer.git
Log | Files | Refs | README | LICENSE

commit ae790788dd6167eb64af41e6e9c9abccd5fe2cb1
parent 9478b2398c91e76bf5505d9b0f207ffdefdc4b4d
Author: I Mean I'm Just Saying <imeanimjustsaying@kiwifarms.st>
Date:   Sun,  1 Nov 2026 12:22:46 -0500

umtool bench: the working cut's name beside the walk's counts -- Latest: draft-22 · no edits since (the bench edits the project's manifest; the latest take is what it was made into)

The operator: the latest draft is the default everywhere, Walk included. The
bench's data carries readWorkingCut (lib/report/benchData.ts); the line is
WhatPlays' LatestLine, not on a take's walk (that bench edits the take).

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>

Diffstat:
Mumtool/components/projects/ClipBench.tsx | 5+++++
Mumtool/e2e/play-walk.spec.ts | 2++
Mumtool/lib/report/benchData.ts | 6++++++
3 files changed, 13 insertions(+), 0 deletions(-)

diff --git a/umtool/components/projects/ClipBench.tsx b/umtool/components/projects/ClipBench.tsx @@ -6,6 +6,7 @@ import AnchoredNotes, { notesOn } from "@/components/notes/AnchoredNotes"; import GeneratedBanner from "@/components/notes/GeneratedBanner"; import { useSharedNotes, wroteNotes } from "@/components/notes/NotesProvider"; import { useCallback, useEffect, useMemo, useRef, useState } from "react"; +import { LatestLine, type WorkingCut } from "./review/WhatPlays"; import { createPortal } from "react-dom"; import Link from "next/link"; import { useRouter } from "next/navigation"; @@ -321,6 +322,8 @@ export type ClipBenchData = { fromPlay?: { href: string; take: string | null } | null; /** Walk → Play: the cut from this clip (the bench opened on its own, not from Play, not a take's). */ playHere?: string | null; + /** The working cut's name (lib/report/workingCut.mjs): the latest whole-cut take and the edits since it. */ + working?: WorkingCut; /** * WALKING A TAKE (/projects/<p>/takes/<take>/clip/<id>): the clip is the * take's -- the project's manifest with the take's patch applied -- and @@ -3317,6 +3320,8 @@ export default function ClipBench({ <span className="micro max-md:hidden" data-ready-count=""> ready {data.ready} of {data.needing} needing judgement </span> + {/* The working cut's name: what this bench edits, and the latest take it was made into. */} + {data.working && !data.take && <LatestLine project={data.project} working={data.working} className="max-md:hidden" />} {!data.fetched && ( <span className={cn(badgeVariants({ variant: "state", size: "sm" }), "max-md:order-[21] max-md:self-start")} data-clip-unfetched=""> not fetched yet diff --git a/umtool/e2e/play-walk.spec.ts b/umtool/e2e/play-walk.spec.ts @@ -200,6 +200,8 @@ test("Play → Edit → the bench in place → Back: the same clip, second and t await expect(page.locator(`[data-cut-app-bench="${item}"] [data-bench-shell="clip"]`)).toBeVisible({ timeout: 20_000 }); await expect(page.locator("[data-cut-app-play]")).toHaveAttribute("data-cut-app-play", "hidden"); await expect(page).toHaveURL(new RegExp(`/clip/${item}\\?from=play.*order=cut`)); + // The bench names the working cut it edits: the latest take, no edits since. + await expect(page.locator(`[data-cut-app-bench="${item}"] [data-working-cut]`)).toHaveAttribute("data-working-cut", "draft-1"); await page.screenshot({ path: test.info().outputPath("app-bench-in-place.png") }); // n: the cut's next clip (the reel strip's order), in place. const next = "c03"; diff --git a/umtool/lib/report/benchData.ts b/umtool/lib/report/benchData.ts @@ -14,6 +14,8 @@ import { projectCache, segmentFor, windowVersion, windowsFor } from "@/lib/repor import { FETCH_MAX_PAD } from "@/lib/report/driver.mjs"; import { deckOn } from "umtool-report-to-video/deck"; import { pieceHrefOfProject } from "@/lib/pieces/article"; +import { readWorkingCut } from "@/lib/report/workingCut.mjs"; +import { resolveTakeManifest } from "@/lib/report/takeManifest.mjs"; import type { ProjectRef } from "@/lib/project-types"; // THE CLIP BENCH'S DATA, in one place: what `/projects/<p>/clip/<id>` renders @@ -261,6 +263,10 @@ export async function clipBenchData( data.fromPlay = fromPlay ? { href: playHref(project.id, { take: playTake, clip: clipId, at }), take: playTake } : null; // Walk → Play (the audit's "no way back"): the cut, from this clip. data.playHere = take || fromPlay ? null : playHref(project.id, { clip: clipId }); + // The working cut's name: the bench edits the project's manifest, the latest take is what it was made into. + data.working = take + ? null + : await readWorkingCut(project.dir, { resolveNow: async (id) => (await resolveTakeManifest(project.dir, id)).manifest }).catch(() => null); const top: BenchTopSpec = { trail: take ? [{ href: projectsHref(), label: "Projects" }, { href: takesHref(project.id), label: `${project.name} · takes` }] : [{ href: projectsHref(), label: "Projects" }], back: { href: back, label: take ? `take ${take}` : project.name },