fix(hub): follow the Yes/No ask dialog in the 390 options and e2e

aa4a337 turned an ask into a decision dialog whose Yes option stays
enabled after a pick. The bulk grant probe now picks an ask by its Yes
option, and the inbox probe counts choice cards on decision rows only.
.options gets a minmax(0, 1fr) column, so the ask options shrink inside
the card at 390 instead of running past it.

🎯 Fix: 88 %
💥 Break: 3 %
💸 Tokens: –
⏱️ Velocity: –
🛡️ Security: 100 %
🏆 Score: 85
🚦 Gate: ⛔ fix 88 % < 90

Created-with: https://s.veen.world/skills
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Kevin Veen-BirkenbachandClaude Opus 5.5 committed 2026-11-23 11:10:28 +00:00
1 parent c7320961f4
commit c412d76b25
3 files changed
+4 -4

No files matched your search

+1 -1
View File
@@ -361,7 +361,7 @@ textarea + .mic-auto { display: flex; margin: 4px 0 0 auto; }
.sheet-box.wide { width: min(1400px, 100%); }
.sheet-head { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.sheet-body { display: grid; gap: 14px; padding: 16px 18px 20px; }
.options { display: grid; gap: 6px; margin-top: 8px; }
.options { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; margin-top: 8px; }
.option { display: grid; gap: 2px; padding: 8px 11px; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--panel); text-align: left; cursor: pointer; }
.option:hover { background: var(--accent-soft); border-color: var(--accent); }
.option.recommended { border-color: var(--ok); box-shadow: inset 3px 0 0 var(--ok); }
+1 -1
View File
@@ -151,7 +151,7 @@ WATCH = """
const fits = () => ({tall: document.documentElement.scrollHeight > window.innerHeight, wide: document.documentElement.scrollWidth > window.innerWidth + 1});
"""
CHOICE_VIEW = """(async () => {@HELPERS@@LABELS@
const found = await until(() => document.getElementById("choice-request") && all("#main .inbox-list > li .options").length === @CARDS@ && document.querySelector('#choice-request input[type="checkbox"]'), 8000);
const found = await until(() => document.getElementById("choice-request") && all("#main .inbox-list > li.k-decision .options").length === @CARDS@ && document.querySelector('#choice-request input[type="checkbox"]'), 8000);
if (!found) {
return {error: text(document.getElementById("main"))};
}
+2 -2
View File
@@ -33,7 +33,7 @@ COMMON = """
await until(() => menu().open, 2000);
await sleep(100);
};
const grantOf = (ref) => row(ref) && row(ref).querySelector(".item-actions button.primary");
const grantOf = (ref) => row(ref) && (row(ref).querySelector(".item-actions button.primary") || all(".options.dialog > button.option", row(ref)).find((button) => text(button.querySelector("strong")) === "Yes"));
const wide = () => document.documentElement.scrollWidth > innerWidth + 1;
const switchState = () => [name(main()), count(), document.querySelector("#grant-bar #grant-direct") ? "select" : "direct"];
const storedMode = async (mode) => {
@@ -250,7 +250,7 @@ class TestBulkGrant(base.OrchestratorE2ECase):
self.assertEqual(collect["restored"], selecting, collect)
self.assertEqual(collect["pale"], [True, True], collect)
self.assertEqual(collect["counts"], ["1 selected", "2 selected", "1 selected", "2 selected", "3 selected"], collect)
self.assertEqual((collect["pressed"], collect["posted"]), ([["true", True]] * 3, []), collect)
self.assertEqual((collect["pressed"], collect["posted"]), ([["true", True], ["true", False], ["true", True]], []), collect)
self.assertEqual((collect["labels"][0], collect["labels"][-1]), ("Grant selection (3)", "Direct"), collect)
self.assertEqual(sum(label.startswith("Remove ") for label in collect["labels"]), 3, collect)
self.assertEqual((sheet["label"], len(sheet["listed"])), ("Grant 3", 3), sheet)