Archilyzer · Source

archilyzer

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

commit 1acc604770de1ad78baa4819a8fe937fd4d68cfc
parent 4995a03703655b2f9441cbad23e1da37360232db
Author: I Mean I'm Just Saying <imeanimjustsaying@kiwifarms.st>
Date:   Tue, 10 Nov 2026 14:53:11 -0500

umtool e2e: after the whole suite -- section() asks for a folded section by its old tab (an unclaimed project 308s to Deliver, a claimed one keeps its article's Media and Build); Play's URL checks allow its `cut=1`; add-clip takes away a window its fetch wrote after a test ended (vid1 0-41 changed clip-bench's and projects' numbers); the inspector says where a card is edited now

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

Diffstat:
Mumtool/components/projects/workspace/WorkspaceInspector.tsx | 2+-
Mumtool/e2e/add-clip.spec.ts | 15+++++++++++++++
Mumtool/e2e/draft-versions.spec.ts | 2+-
Mumtool/e2e/phone-walk.spec.ts | 4++--
Mumtool/e2e/play-engine.spec.ts | 5+++--
Mumtool/e2e/play-take-edit.spec.ts | 2+-
Mumtool/e2e/play-walk.spec.ts | 2+-
Mumtool/e2e/post-happy-path.spec.ts | 2+-
Mumtool/e2e/urls.ts | 7+++++--
9 files changed, 30 insertions(+), 11 deletions(-)

diff --git a/umtool/components/projects/workspace/WorkspaceInspector.tsx b/umtool/components/projects/workspace/WorkspaceInspector.tsx @@ -172,7 +172,7 @@ export default function WorkspaceInspector({ project, entry, hasLedger, hasClips <> <Head kind={entry.type} id={entry.id} /> <p className="m-0 px-3 py-2 text-[12px] text-muted" data-ws-inspector-none={entry.type}> - {entry.heading ? `“${entry.heading}”. ` : ""}A {entry.type} is edited on the Cut tab. + {entry.heading ? `“${entry.heading}”. ` : ""}A {entry.type} is edited on the cut as a list (Piece ▾). </p> </> ); diff --git a/umtool/e2e/add-clip.spec.ts b/umtool/e2e/add-clip.spec.ts @@ -27,6 +27,21 @@ test.afterEach(() => { if (had) for (const f of clipFiles()) if (!had.has(f)) rmSync(path.join(CLIPS, f), { force: true }); had = null; }); +// And whatever this file's fetches left that landed after a test ended (the stub editor writes the window when its +// job runs, which can be after the page saw the job end): every spec after this one reads vid1's windows, and a +// wider one changes their numbers (clip-bench.spec: peaks, `ready N of M`). +let before: Set<string> | null = null; +test.beforeAll(() => { + before = new Set(clipFiles()); +}); +test.afterAll(async () => { + for (let i = 0; i < 20; i += 1) { + const extra = clipFiles().filter((f) => before && !before.has(f)); + for (const f of extra) rmSync(path.join(CLIPS, f), { force: true }); + if (!extra.length && i >= 4) break; + await new Promise((r) => setTimeout(r, 250)); + } +}); test("Add a clip: find the words, in and out on the cues, after a row, added and fetched", async ({ page }) => { test.setTimeout(120_000); diff --git a/umtool/e2e/draft-versions.spec.ts b/umtool/e2e/draft-versions.spec.ts @@ -103,7 +103,7 @@ test("Play is the draft, named by its parent; a version plays read-only; Open in await page.screenshot({ path: test.info().outputPath("open-in-draft.png") }); await ask.locator("[data-open-draft-confirm]").click(); // Play of the draft (Play's own page always carries a query since L7b: a bare /play is the workspace's). - await expect(page).toHaveURL(/\/projects\/reports\/draft-versions-fixture\/play\?cut=1$/); + await expect(page).toHaveURL(/\/projects\/reports\/draft-versions-fixture\/play\?cut=1(&|$)/); await expect(page.locator("[data-play-draft]")).toContainText("Draft · from v1 · no edits", { timeout: 20_000 }); expect(manifestText()).toBe(base("v1")); expect(draftFrom()).toBe("v1"); diff --git a/umtool/e2e/phone-walk.spec.ts b/umtool/e2e/phone-walk.spec.ts @@ -285,7 +285,7 @@ test("Play → Edit this clip → move an edge → Back: the new bounds are what await page.locator("body").press("Shift+BracketLeft"); await expect(back).toHaveText("Save and back to the cut"); await back.click(); - await expect(page).toHaveURL(/\/play\?clip=c02/, { timeout: 20_000 }); + await expect(page).toHaveURL(/\/play\?(cut=1&)?clip=c02/, { timeout: 20_000 }); await expect(root).toHaveAttribute("data-play-item", "c02"); expect(entryOf(PLAY, "c02").start).toBe(3); await expect(root).toHaveAttribute("data-play-source", "3-5.5"); @@ -329,7 +329,7 @@ test("Play → Edit this clip → move an edge → Back: the new bounds are what const back = page.locator("[data-walk-back-play]"); await expect(back).toHaveText("Save, back to the cut"); await back.click(); - await expect(page).toHaveURL(/\/play\?clip=c01/, { timeout: 20_000 }); + await expect(page).toHaveURL(/\/play\?(cut=1&)?clip=c01/, { timeout: 20_000 }); await expect(root).toHaveAttribute("data-play-item", "c01"); expect(entryOf(PLAY, "c01").end).toBe(9); await expect(root).toHaveAttribute("data-play-source", `${before.start}-9`); diff --git a/umtool/e2e/play-engine.spec.ts b/umtool/e2e/play-engine.spec.ts @@ -105,8 +105,9 @@ test("the clock is the sound's: one AudioContext, nodes started ahead of their t }); test("the picture: WebCodecs in this browser, a dissolve is two layers; the <video> path does the same", async ({ page }) => { - for (const [q, want] of [["", "webcodecs"], ["?picture=element", "element"]] as const) { - await page.goto(urls.playHref(PROJECT) + q); + for (const [q, want] of [["", "webcodecs"], ["picture=element", "element"]] as const) { + // Play's own address always carries a query (L7b: a bare /play is the workspace's). + await page.goto(urls.playHref(PROJECT) + (q ? `&${q}` : "")); await expect(root(page)).toHaveAttribute("data-play-edges", "render", { timeout: 30_000 }); await page.locator('[data-play-row="c02"]').press("Enter"); await expect(root(page)).toHaveAttribute("data-play-picture", want, { timeout: 15_000 }); diff --git a/umtool/e2e/play-take-edit.spec.ts b/umtool/e2e/play-take-edit.spec.ts @@ -75,7 +75,7 @@ test("Play on a version → Edit asks to open it in the draft (the draft saved f // Back to the cut: Play of the draft, the same clip; the draft is from tight, one edit. await page.locator("[data-back-to-play]").click(); - await expect(page).toHaveURL(/\/play\?clip=t01b/); + await expect(page).toHaveURL(/\/play\?(cut=1&)?clip=t01b/); await expect(root).toHaveAttribute("data-play-item", "t01b", { timeout: 20_000 }); await expect(root).toHaveAttribute("data-play-cut", ""); await expect(page.locator("[data-play-draft]")).toContainText(`Draft · from ${TAKE} · 1 edit`); diff --git a/umtool/e2e/play-walk.spec.ts b/umtool/e2e/play-walk.spec.ts @@ -244,7 +244,7 @@ test("Back and Forward step between Play and the bench; the bench on its own goe await expect(here).toHaveAttribute("href", urls.playHref(P, { clip: "c03" })); await page.screenshot({ path: test.info().outputPath("app-walk-play-from-here.png") }); await here.click(); - await expect(page).toHaveURL(/\/play\?clip=c03/); + await expect(page).toHaveURL(/\/play\?(cut=1&)?clip=c03/); await expect(root(page)).toHaveAttribute("data-play-item", "c03", { timeout: 20_000 }); }); diff --git a/umtool/e2e/post-happy-path.spec.ts b/umtool/e2e/post-happy-path.spec.ts @@ -56,7 +56,7 @@ test("a post video from Add posts to a queued render, all by clicking", async ({ // 3. Play, from the head: no /play typed. await page.locator('[data-play-link="header"]').click(); - await expect(page).toHaveURL(/\/play\?cut=1$/); + await expect(page).toHaveURL(/\/play\?cut=1(&|$)/); await expect(page.locator("[data-play-cut]")).toBeVisible(); // 5. A take, rendered: the take maker's job starts from a press. diff --git a/umtool/e2e/urls.ts b/umtool/e2e/urls.ts @@ -8,7 +8,7 @@ // Assertions on hrefs (`toHaveAttribute("href", …)`) should build the expected // value here too, so a URL change is one edit in lib/hrefs.ts. import { projectHref } from "../lib/hrefs"; -import { tabOfSection } from "../lib/pieces/tabs.mjs"; +import { ARTICLE_SECTION_TAB, PIECE_FOLDED, tabOfSection } from "../lib/pieces/tabs.mjs"; import { songTabOfSection } from "../lib/pieces/song-tabs.mjs"; export * from "../lib/hrefs"; @@ -21,7 +21,10 @@ export { REDIRECTS } from "../redirects.mjs"; * section says which, so a section moving tab is one edit in that table. */ export function section(project: string, name: string, q: { all?: boolean; note?: string } = {}): string { - return projectHref(project, { tab: tabOfSection(name), ...q }); + // A section of what folded into Deliver (L7b: Build's, Media's) is asked for by its old tab: an unclaimed project + // 308s it to Deliver, a claimed one goes to its article piece's own Build or Media tab (which it keeps). + const was = (ARTICLE_SECTION_TAB as Record<string, string>)[name]; + return projectHref(project, { tab: was && was in PIECE_FOLDED ? was : tabOfSection(name), ...q }); } /**