Archilyzer · Source

archilyzer

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

commit 6998ddd8159e0391fd777de781029068baf71a9f
parent 8607f65626f2827f3336624566c2362484eec4ed
Author: I Mean I'm Just Saying <imeanimjustsaying@kiwifarms.st>
Date:   Tue, 10 Nov 2026 18:18:09 -0500

umtool: a stale Fix keeps showing what it said -- under "changed since reviewed" the review pass says "it needed work: <note>" (data-review-stale-fix), and the Fix form opens on that note; before, a block changed since its Fix lost the note from view (L7b re-review nit). review-pass.spec asserts both

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

Diffstat:
Mumtool/components/projects/workspace/ReviewPass.tsx | 11+++++++++--
Mumtool/e2e/review-pass.spec.ts | 4++++
2 files changed, 13 insertions(+), 2 deletions(-)

diff --git a/umtool/components/projects/workspace/ReviewPass.tsx b/umtool/components/projects/workspace/ReviewPass.tsx @@ -244,6 +244,8 @@ export default function ReviewPass({ const answer = id ? (rv.answers.get(id) ?? null) : null; // Marked once, but the block is not what was reviewed any more (an edge, a post's words, another version opened). const changed = !!(id && rv.marks[id]?.stale); + // A Fix gone stale keeps what it said: shown under "changed since reviewed", and the Fix form opens on it. + const staleFix = changed && id && rv.marks[id]?.mark === "fix" ? (rv.marks[id]?.note ?? null) : null; // The bench's ruling on a clip (incorrect: a fact error, wrong speaker), shown and left as it is. const bench = entry?.type === "clip" && !clipKeepable(entry) @@ -266,9 +268,9 @@ export default function ReviewPass({ const openFix = useCallback(() => { if (!entry || readOnly) return; setNoting(false); - setFixText(answer?.mark === "fix" ? (answer.note ?? "") : ""); + setFixText(answer?.mark === "fix" ? (answer.note ?? "") : (staleFix ?? "")); setFixing(true); - }, [entry, readOnly, answer]); + }, [entry, readOnly, answer, staleFix]); // k / f / n: the block's answers (the workspace keeps Space and ← →). const keys = useRef({ go, openFix, setNoting }); @@ -358,6 +360,11 @@ export default function ReviewPass({ changed since reviewed </p> )} + {staleFix && !answer && ( + <p className="m-0 text-[12px] text-doubt-text" data-review-stale-fix=""> + it needed work: {staleFix} + </p> + )} {/* A clip the bench ruled (a fact error, wrong speaker): the pass shows it and never overwrites it. */} {bench && ( <p className="m-0 text-[12px] text-doubt-text" data-review-bench={bench.verdict}> diff --git a/umtool/e2e/review-pass.spec.ts b/umtool/e2e/review-pass.spec.ts @@ -264,6 +264,10 @@ test("a mark is of what was reviewed: c02's edge moved since its Fix -- \"change await page.goto(urls.workspaceHref(P, { mode: "review" })); await expect(pass(page)).toHaveAttribute("data-review-current", "c02", { timeout: 20_000 }); await expect(page.locator("[data-review-changed]")).toHaveText("changed since reviewed"); + // What the stale Fix said is still shown, and the Fix form opens on it. + await expect(page.locator("[data-review-stale-fix]")).toHaveText("it needed work: trim the tail"); + await page.keyboard.press("f"); + await expect(page.locator("[data-review-fix-text]")).toHaveValue("trim the tail"); await expect(page.locator('[data-ws-block="c02"]')).toHaveAttribute("data-ws-block-review", ""); // The mark is still on disk, with what it was of: the answer is gone, not the record. expect(json("review-pass.json").marks.c02).toMatchObject({ mark: "fix", note: "trim the tail" });