Archilyzer · Source

archilyzer

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

commit d598a6aef52c753a3fa736b2683b2bcd56d0a1bd
parent 604b858bc2ae3b30a9f05425d3de81e107beb97c
Author: I Mean I'm Just Saying <imeanimjustsaying@kiwifarms.st>
Date:   Mon,  9 Nov 2026 19:40:31 -0500

umtool, editor: the rail's entry points -- the clip bench's "Life cycle", Play's clip row, the editor's Open in umtool (lane L5)

The clip bench's head links the clip's source's life cycle (BenchTop `life`, beside the bench's kind);
Play's row for the clip on screen gains a small "Life cycle" link (playView entries carry
`sourceChannel`: the clip's channel, else the provenance's). The editor's video page "Open in umtool"
now opens /ingredients/<slug>/<id> -- its "make a video from it" is the old /?from= hand-off -- and
PipelineStatusStrip keeps its two dots.

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

Diffstat:
Meditor/app/channels/[slug]/videos/[id]/components/VideoPanel.tsx | 9++++++---
Mumtool/components/projects/bench/BenchShell.tsx | 8++++++++
Mumtool/components/projects/review/PlayCut.tsx | 16+++++++++++++++-
Mumtool/lib/report/benchData.ts | 6+++++-
Mumtool/lib/report/playView.mjs | 2++
5 files changed, 36 insertions(+), 5 deletions(-)

diff --git a/editor/app/channels/[slug]/videos/[id]/components/VideoPanel.tsx b/editor/app/channels/[slug]/videos/[id]/components/VideoPanel.tsx @@ -106,7 +106,10 @@ type Props = { nextHref?: string; position?: { index: number; total: number }; // The umtool front door, when UMTOOL_URL is set on the editor. One link: - // "open in umtool" scaffolds a report video from this exact video. + // "open in umtool" opens this recording's life cycle there + // (/ingredients/<slug>/<id>: found, downloaded, transcribed, its windows, + // every cut that uses it, checked, rendered, published), where "make a + // video from it" scaffolds a report video from it. umtoolUrl?: string | null; // The transcription pool is paused (getWorkerPool().isPaused(), read by the // page): the Transcribe rows offer "Transcribe now (workers paused)". @@ -208,13 +211,13 @@ export function VideoPanel({ {umtoolUrl && ( <div className="text-sm"> <a - href={`${umtoolUrl}/?from=${encodeURIComponent(`${slug}/${videoId}`)}`} + href={`${umtoolUrl}/ingredients/${encodeURIComponent(slug)}/${encodeURIComponent(videoId)}`} className="underline" data-umtool-link > Open in umtool </a> - <span className="text-muted-foreground"> — start a report video from this recording</span> + <span className="text-muted-foreground"> — this recording&apos;s life cycle: its windows, every cut that uses it, what was checked, rendered and published</span> </div> )} <PipelineStatusStrip diff --git a/umtool/components/projects/bench/BenchShell.tsx b/umtool/components/projects/bench/BenchShell.tsx @@ -71,6 +71,7 @@ export function BenchTop({ note, phone = "shown", slot = false, + life = null, }: { /** The piece this bench belongs to: "← <its name>". */ back: BenchLink; @@ -94,6 +95,8 @@ export function BenchTop({ * portal a control into (the clip bench's "Back to the cut"). Hidden while empty. */ slot?: boolean; + /** The source's life cycle (lane L5, /ingredients/<ch>/<id>): a small link beside the bench's kind. */ + life?: BenchLink | null; }) { return ( <header @@ -128,6 +131,11 @@ export function BenchTop({ <span className="micro" data-bench-kind=""> {kind} </span> + {life && ( + <Link href={life.href} prefetch={false} data-bench-life="" className="text-[11.5px] text-muted-2 hover:text-text" {...life.attrs}> + {life.label} + </Link> + )} {pos && ( <span data-bench-pos={`${pos.index}/${pos.total}`} className="font-mono text-[12.5px] font-medium text-text-2"> {pos.index} of {pos.total} diff --git a/umtool/components/projects/review/PlayCut.tsx b/umtool/components/projects/review/PlayCut.tsx @@ -7,7 +7,7 @@ import { buttonVariants } from "@/components/ui/button"; import { useSharedNotes } from "@/components/notes/NotesProvider"; import { NoteThread } from "@/components/notes/NoteThread"; import type { Anchor, CutAsk, Note } from "@/lib/annotations/types"; -import { clipBenchHref, openInDraftHref, postBenchHref } from "@/lib/hrefs"; +import { clipBenchHref, ingredientHref, openInDraftHref, postBenchHref } from "@/lib/hrefs"; import { cn } from "@/lib/utils"; import { footageAt } from "@/lib/report/footage-move.mjs"; import { finaleUp, stampAt, tallyAt } from "@/lib/report/liveClock.mjs"; @@ -116,6 +116,8 @@ export type PlayEntry = { dateLabel?: string | null; section?: unknown; channel?: string | null; + /** The channel it cuts from (its own, else the provenance's): the life cycle's address (lane L5). */ + sourceChannel?: string | null; quote?: string | null; video?: string; start?: number; @@ -1390,6 +1392,18 @@ export default function PlayCut({ > {postNow ? "Edit this post" : "Edit this clip"} </button> + {/* The clip's source across its life cycle (lane L5): found, downloaded, … published. */} + {item?.clip && entry?.video && entry.sourceChannel && ( + <Link + href={ingredientHref(entry.sourceChannel, entry.video)} + prefetch={false} + data-play-life="" + className="text-[11.5px] text-muted-2 hover:text-text" + title="this clip's recording across its life cycle: found, downloaded, transcribed, its windows, every cut that uses it, checked, rendered, published" + > + Life cycle + </Link> + )} <span className="ml-auto flex flex-wrap items-center gap-x-2 text-[11.5px] text-muted" data-play-hud=""> {tally.length > 0 && <span className="sr-only" data-play-tally={tally.map((r) => `${r.verdict}:${r.count}`).join(",")} />} {schedule?.factcheck && ( diff --git a/umtool/lib/report/benchData.ts b/umtool/lib/report/benchData.ts @@ -1,5 +1,5 @@ import { notFound } from "next/navigation"; -import { projectsHref, clipBenchHref, playHref, takeClipHref, takeWalkHref, takesHref } from "@/lib/hrefs"; +import { projectsHref, clipBenchHref, ingredientHref, playHref, takeClipHref, takeWalkHref, takesHref } from "@/lib/hrefs"; import type { ClipBenchData } from "@/components/projects/ClipBench"; import type { BenchKey, BenchLink } from "@/components/projects/bench/BenchShell"; import { @@ -41,6 +41,8 @@ export type BenchTopSpec = { next: BenchLink | null; keys: BenchKey[]; note: string; + /** The clip's source, across its life cycle (lane L5). */ + life?: BenchLink | null; }; /** @@ -296,6 +298,8 @@ export async function clipBenchData( ], // Which source is playing. note: `${entry.video}${entry.channel ? ` · ${entry.channel}` : ""}`, + // Its source's life cycle: found, downloaded, … published (lane L5). + life: entry.channel && entry.video ? { href: ingredientHref(String(entry.channel), String(entry.video)), label: "Life cycle" } : null, }; return { data, top }; } diff --git a/umtool/lib/report/playView.mjs b/umtool/lib/report/playView.mjs @@ -208,6 +208,8 @@ export async function playViewWith(project, { take = null, bare = false, postFor dateLabel: dateKey === null ? null : /^\d{1,2}\s+[A-Za-z]{3}/.test(onscreenDate) ? onscreenDate : dateKeyLabel(dateKey), section: e.section ?? null, channel: typeof e.channel === "string" ? e.channel : null, + // The channel the clip cuts from, the provenance's when the clip names none: its life cycle's address (lane L5). + sourceChannel: typeof e.channel === "string" && e.channel ? e.channel : typeof selected.provenance?.channelSlug === "string" ? selected.provenance.channelSlug : null, heading: text(e.onscreen?.title) || text(e.title) || text(e.quote) || e.id, date: text(e.date) || text(e.onscreen?.title) || null, quote: text(e.quote) || null,