Archilyzer · Source

archilyzer

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

commit 64806db889a0353dc732e8f656824935bddffa4a
parent 477286eadb73e50fdd49797d43261f6e703ec5a3
Author: I Mean I'm Just Saying <imeanimjustsaying@kiwifarms.st>
Date:   Sun,  1 Nov 2026 00:25:55 -0400

umtool: on lane/ui-cut-integrity -- trailer candidates from its trailerCandidates, the Trailer page linked from the candidates panel; a take a render is made from is said so, not RENDERING

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

Diffstat:
Mumtool/components/projects/report/CutTab.tsx | 6+++++-
Mumtool/lib/report/takeHousekeeping.mjs | 4+++-
Mumtool/lib/report/trailerBeats.mjs | 20+++++++-------------
3 files changed, 15 insertions(+), 15 deletions(-)

diff --git a/umtool/components/projects/report/CutTab.tsx b/umtool/components/projects/report/CutTab.tsx @@ -466,7 +466,11 @@ export default async function CutTab({ project, detail, search, tabHref }: Repor </ul> <p className="mt-2 text-[11px] text-[var(--color-dim)]"> <code className="font-mono">umtool trailer {project.id} --candidates --json</code> prints them as a trailer&rsquo;s{" "} - <code className="font-mono">--beats-json</code>. + <code className="font-mono">--beats-json</code>.{" "} + <Link href={trailerHref(project.id)} className="ink-link"> + Add them on the Trailer page + </Link> + . </p> </section> )} diff --git a/umtool/lib/report/takeHousekeeping.mjs b/umtool/lib/report/takeHousekeeping.mjs @@ -66,7 +66,8 @@ export async function takesOverview(projectDir) { verdict: v?.verdict ?? null, picked: v?.picked === true, superseded: v?.superseded ?? null, - rendering: holds.length > 0, + rendering: holds.some((h) => h.startsWith("it is rendering")), + base: holds.some((h) => !h.startsWith("it is rendering")), holds, }); } @@ -80,6 +81,7 @@ export function takeLine(r) { r.superseded ? `superseded${r.superseded.by ? ` by ${r.superseded.by}` : ""}` : null, r.draft ? "draft" : null, r.rendering ? "RENDERING" : null, + r.base ? "a render is made from it" : null, r.verdict, ].filter(Boolean); return `${r.id.padEnd(14)} ${typeof r.seconds === "number" ? `${r.seconds.toFixed(1)}s`.padStart(8) : " "} ${r.label}${marks.length ? ` [${marks.join(", ")}]` : ""}`; diff --git a/umtool/lib/report/trailerBeats.mjs b/umtool/lib/report/trailerBeats.mjs @@ -27,6 +27,7 @@ import { gappedLength, gapsOf } from "umtool-report-to-video/gaps"; import { TRAILER_XFADE_DEFAULT, TrailerError, parseBeats } from "umtool-report-to-video/trailer"; import { indentOf } from "./sectionPatches.mjs"; import { sectionModel, sectionWords } from "./sectionEdit.mjs"; +import { trailerCandidates } from "./trailerCandidates.mjs"; export const TRAILER_BEATS_FILE = path.join("promo", "trailer-beats.json"); /** X's video limit is 2:20; a trailer must be UNDER it. */ @@ -423,23 +424,16 @@ export async function introSecondsOf(dir) { } /** - * The walk's ★ favourites not yet beats: the trailer's candidates. A starred - * clip (`star: true`, lane/ui-cut-integrity's walk ★) that will play, as a beat - * over what it plays (its cut, else its window). + * The walk's ★ favourites not yet beats: the trailer's candidates -- + * lane/ui-cut-integrity's trailerCandidates (a starred clip that will play, + * as a beat over what it plays), less the clips already beats. * * @param {Record<string, any>} manifest * @param {any[]} beats */ export function trailerCandidatesOf(manifest, beats = []) { const used = new Set(beats.filter((b) => isObj(b) && b.id !== undefined).map((b) => b.id)); - const out = []; - for (const e of manifest?.timeline ?? []) { - if (e?.type !== "clip" || e.star !== true || used.has(e.id)) continue; - if (e.verdict === "incorrect" || e.verdict === "rejected") continue; - const start = e.cutStart ?? e.start; - const end = e.cutEnd ?? e.end; - if (!(end > start)) continue; - out.push({ id: String(e.id), start, end, quote: typeof e.quote === "string" ? e.quote : null, walkNote: typeof e.walkNote === "string" ? e.walkNote : null }); - } - return out; + return trailerCandidates(manifest) + .filter((c) => !used.has(c.id)) + .map((c) => ({ id: c.id, start: c.start, end: c.end, quote: c.quote ?? null, walkNote: c.walkNote ?? null })); }