commit d1315cba1ab80251e4f72421251e5cea00162493
parent 989e054925ae3933b5a4faea7f8cb91d4d6c93b1
Author: I Mean I'm Just Saying <imeanimjustsaying@kiwifarms.st>
Date: Thu, 22 Oct 2026 10:46:19 -0400
knobs: the stamp switch shows the choice at once; the markers and variants specs start from a known state
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Diffstat:
2 files changed, 19 insertions(+), 3 deletions(-)
diff --git a/umtool/components/projects/review/ClipKnobs.tsx b/umtool/components/projects/review/ClipKnobs.tsx
@@ -117,7 +117,10 @@ export function CountStampBox({
const set = (knobs: Record<string, unknown>, done: string) => void write({ op: "claim", clip: clipId, knobs }, done);
const hold = defaults?.hold ?? 3;
const word = defaults?.labels?.[claim.verdict] ?? claim.verdict;
- const stampOn = claim.stamp !== false;
+ // The box shows the choice at once (stampDraft) until the view comes back with it.
+ const [stampDraft, setStampDraft] = useState<boolean | null>(null);
+ useEffect(() => setStampDraft(null), [claim.stamp, clipId]);
+ const stampOn = stampDraft ?? claim.stamp !== false;
const outsideCut = typeof claim.at === "number" && (claim.at < span.cutStart || claim.at > span.cutEnd);
return (
<section id="clip-stamp" data-count-stamp={clipId} data-claim-id={claim.id} className={box}>
@@ -159,7 +162,12 @@ export function CountStampBox({
</span>
<KnobField name="hold" label="hold" unit="s" step={0.5} value={claim.hold} placeholder={String(hold)} busy={busy} onSave={(v) => set({ hold: numOrNull(v) }, v ? `The stamp stays ${v} s` : "The stamp stays the cut's default")} />
<label className="inline-flex items-center gap-1.5 text-text">
- <input type="checkbox" data-knob="stamp" checked={stampOn} disabled={busy} onChange={(e) => set({ stamp: e.target.checked ? null : false }, e.target.checked ? "Stamp drawn" : "Counts, no stamp")} />
+ <input type="checkbox" data-knob="stamp" checked={stampOn} disabled={busy} onChange={(e) => {
+ const on = e.target.checked;
+ setStampDraft(on);
+ void write({ op: "claim", clip: clipId, knobs: { stamp: on ? null : false } }, on ? "Stamp drawn" : "Counts, no stamp").finally(() => setStampDraft(null));
+ }}
+ />
draw the stamp
</label>
<KnobField name="count" label="count" step={1} value={claim.count} placeholder={String(defaults?.count ?? 1)} busy={busy} onSave={(v) => set({ count: numOrNull(v) }, v ? `Counts ${v}` : "Counts 1")} />
diff --git a/umtool/e2e/knobs.spec.ts b/umtool/e2e/knobs.spec.ts
@@ -95,9 +95,13 @@ test("Count & stamp and Audio in the clip editor; an agent's token on the route"
expect(entry("r003")?.claim?.count).toBe(3);
});
-test("the Markers editor: add, label, colour, align, re-order, layout", async ({ page }) => {
+test("the Markers editor: add, label, colour, align, re-order, layout", async ({ page, request }) => {
test.setTimeout(120_000);
test.skip(!readManifest(DECK_DIR).render.fontRegular, "the deck refuses to draw without render.fontRegular/fontBold, and make-fixture.mjs found no font on this machine");
+ // From no markers, whatever an earlier run left.
+ const token = (await (await request.get(`/api/report/chrome?project=${encodeURIComponent(DECK_PROJECT)}`)).json()).token;
+ const reset = await request.put("/api/report/chrome", { data: { project: DECK_PROJECT, token, markers: [], markerLayout: null } });
+ expect(reset.ok(), await reset.text()).toBe(true);
await page.goto(urls.section(DECK_PROJECT, "onscreen"));
const ed = page.getByTestId("markers-editor");
await expect(ed).toBeVisible({ timeout: 30_000 });
@@ -129,6 +133,10 @@ test("the Markers editor: add, label, colour, align, re-order, layout", async ({
test("Deliver: Make variants (stub encoder) lists them; Sync flags a clip and links to its Audio box", async ({ page, request }) => {
test.setTimeout(120_000);
+ // From the default ladder, whatever an earlier run left.
+ const token = (await (await request.get(`/api/report/render?project=${encodeURIComponent(PROJECT)}`)).json()).token;
+ const reset = await request.put("/api/report/render", { data: { project: PROJECT, token, variants: null } });
+ expect(reset.ok(), await reset.text()).toBe(true);
await page.goto(urls.section(PROJECT, "deliver"));
const panel = page.locator("[data-variants-panel]");
await expect(panel).toBeVisible({ timeout: 30_000 });