commit e3fb751a9ebeef671a8e75b1608c0b148152cbe3
parent 4ac8b3b84bfa8abd6384d9023a04ce798163375a
Author: I Mean I'm Just Saying <imeanimjustsaying@kiwifarms.st>
Date: Tue, 10 Nov 2026 23:17:27 -0500
umtool: the channel-context review's confirming press sits where the first press was -- "Make it active" and Cancel come before the sentence, which used to push the button far to the right of the click (the operator pressed Yes on eleven notes and none was written); the spec asserts the two buttons share a place
Co-Authored-By: Claude <noreply@anthropic.com>
Diffstat:
2 files changed, 10 insertions(+), 4 deletions(-)
diff --git a/umtool/components/tools/DigestContextReview.tsx b/umtool/components/tools/DigestContextReview.tsx
@@ -143,16 +143,17 @@ export default function DigestContextReview({ initial, promptChars }: { initial:
</>
) : (
<>
- <span className="text-[12px]" data-digest-confirm={n.slug}>
- {n.slug}'s note becomes <code className="font-mono">digest-context.md</code>: every digest already made for this channel goes stale and
- regenerates.
- </span>
+ {/* The confirming press sits where the first press was: the sentence follows the buttons, so a second click in place confirms. */}
<button type="button" data-digest-confirm-yes={n.slug} disabled={busy !== null} onClick={() => void decide(n, "yes")} className={buttonVariants({ size: "sm" })}>
Make it active
</button>
<button type="button" disabled={busy !== null} onClick={() => setConfirming(null)} className={buttonVariants({ variant: "quiet", size: "sm" })}>
Cancel
</button>
+ <span className="text-[12px]" data-digest-confirm={n.slug}>
+ {n.slug}'s note becomes <code className="font-mono">digest-context.md</code>: every digest already made for this channel goes stale and
+ regenerates.
+ </span>
</>
)}
{errors[n.slug] && (
diff --git a/umtool/e2e/digest-context.spec.ts b/umtool/e2e/digest-context.spec.ts
@@ -60,7 +60,12 @@ test("each note with its evidence; No refuses it and keeps the file; Yes, asked
await expect(page.locator("[data-digest-pending]")).toHaveAttribute("data-digest-pending", "1");
// Yes asks first, with what it costs; Cancel writes nothing.
+ // The confirming button lands where the first press was (a second click in place confirms), the sentence after it.
+ const yesBox = await note("testchan").locator("[data-digest-yes]").boundingBox();
await note("testchan").locator("[data-digest-yes]").click();
+ const confirmBox = await note("testchan").locator("[data-digest-confirm-yes]").boundingBox();
+ expect(Math.abs((confirmBox?.x ?? -999) - (yesBox?.x ?? 0))).toBeLessThanOrEqual(2);
+ expect(Math.abs((confirmBox?.y ?? -999) - (yesBox?.y ?? 0))).toBeLessThanOrEqual(2);
await expect(note("testchan").locator("[data-digest-confirm]")).toContainText("every digest already made for this channel goes stale and regenerates");
await page.screenshot({ path: test.info().outputPath("digest-context-confirm.png") });
await note("testchan").getByRole("button", { name: "Cancel" }).click();