Archilyzer · Source

archilyzer

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

commit f76b06655607d67184de653bbb7bd8569b7e4edf
parent c22a2280ee60ff0783d6951a920ea0bf82d073bc
Author: I Mean I'm Just Saying <imeanimjustsaying@kiwifarms.st>
Date:   Mon,  2 Nov 2026 17:30:53 -0500

umtool reels: the walk takes the server's view on a refresh (a fix on a beat that did not map shows its new state); reel-play reads beats without their anchors where it compares seconds

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

Diffstat:
Mumtool/components/projects/reel/ReelBench.tsx | 2++
Mumtool/e2e/reel-play.spec.ts | 8+++++---
2 files changed, 7 insertions(+), 3 deletions(-)

diff --git a/umtool/components/projects/reel/ReelBench.tsx b/umtool/components/projects/reel/ReelBench.tsx @@ -54,6 +54,8 @@ type Cue = { start: number; end: number; text: string; endsSentence: boolean }; export default function ReelBench({ initial, changed = false }: { initial: ReelBenchData; changed?: boolean }) { const router = useRouter(); const [view, setView] = useState<ReelView>(initial.view); + // A refresh from the server (a fix on a beat that did not map) is the view now. + useEffect(() => setView(initial.view), [initial.view]); const project = view.project; const reel = view.reel; const take = view.take?.id ?? null; diff --git a/umtool/e2e/reel-play.spec.ts b/umtool/e2e/reel-play.spec.ts @@ -33,9 +33,11 @@ const PROMO = path.join(DIR, "promo"); const OUT = path.join(DIR, "takes", "draft-1", "out"); const NOTES = path.join(DIR, "notes.json"); -const beatsOf = (reel = "trailer") => { +/** The reel's beats as written; `anchors` keeps what each was cut against (a walk's write anchors it to the take). */ +const beatsOf = (reel = "trailer", { anchors = false } = {}) => { const d = JSON.parse(readFileSync(path.join(PROMO, `${reel}-beats.json`), "utf8")); - return (Array.isArray(d) ? d : d.beats) as { id?: string; start?: number; end?: number; verdict?: string }[]; + const list = (Array.isArray(d) ? d : d.beats) as { id?: string; start?: number; end?: number; verdict?: string; anchor?: unknown }[]; + return anchors ? list : list.map(({ anchor: _a, ...b }) => b); }; const root = (page: Page) => page.locator("[data-reel-play]"); @@ -231,7 +233,7 @@ test("reels track their source: a beat anchored to the take, then its clip's end await expect(page.locator("[data-reel-beat-state]")).toHaveAttribute("data-reel-beat-state", "unanchored"); await page.locator("[data-reel-anchor]").click(); await expect(page.locator("[data-reel-beat-state]")).toHaveAttribute("data-reel-beat-state", "unchanged"); - expect((beatsOf()[1] as { anchor?: { take: string; clip: { end: number } } }).anchor).toMatchObject({ take: "draft-1", clip: { start: 4.75, end: 6.75 } }); + expect((beatsOf("trailer", { anchors: true })[1] as { anchor?: { take: string; clip: { end: number } } }).anchor).toMatchObject({ take: "draft-1", clip: { start: 4.75, end: 6.75 } }); // The take's record for c03 now ends at 6.6 (as if the clip's edge moved and the take were rendered again): // beat 2 still fits -- its clip's edges moved; the reel says which beat.