feat(orchestrator): hub page for requirements 085 to 099

085 calm Match deck: no header hourglass, centred bare empty state, the
release card as a deck card (Cancel, Skip, Release), fixed card height.
086 motion: vanish() fade everywhere with a lint test, view transitions,
a lub-dub heartbeat for working objects, confetti that lands and fades.
087 time readout under the pivot of every analog clock.
088 prune dialog grouped by prefix with tri-state boxes, search, stepper
and sticky footer.
089 one-row task toolbar with Filter and Actions menus and a filter chip.
090 card border by state colour with a soft glow and owner avatars.
091 draggable limit lines with staged changes and one Save, a Limits menu
with the matrix, View toggles, the GPU cause in its tooltip.
093 request chips Open, Expired, Stale, Failed, All and a signed Delete.
094 closed cards leave the deck within 5 s; open in Claude stamps.
095 compact agent message box with Post/Call, attach, mic and Send in
the field.
096 Reject on an expired card drops it silently as Drop (expired).
097 Show filter in Match's right-click menu.
098 docked speech bubbles carry the speaker's avatar and a skip button.
099 Match card headlines cut to 120 characters with the full title in
the tooltip; the code box keeps the whole command.
tests/test_hub_path_links.py: a unicode fixture without German.

Full make test green through the queue (2605 tests, ruff, shellcheck,
markdownlint). Gate missed on the operator's word: break 7 %, the E2E
specs (13 new, 15 updated) run next.

🎯 Fix: 92 %
💥 Break: 7 %
💸 Tokens: –
⏱️ Velocity: –
🛡️ Security: 100 %
🏆 Score: 86
🚦 Gate: ⛔ break 7 % > 5

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-28 01:47:41 +00:00
1 parent 8ee52644c8
commit 6323f087bc
95 files changed
+5807 -704

No files matched your search

+14 -28
View File
@@ -1,4 +1,4 @@
"""Exercise requirement 074 in Chromium: the board's running marks, their border and glow, the Running chip, at three widths."""
"""Exercise requirement 074 in Chromium: the board's running marks, the Running chip, at three widths; the border and glow follow 090's state colour."""
from __future__ import annotations
@@ -23,12 +23,12 @@ CALM = [{"name": "prefers-reduced-motion", "value": "reduce"}]
MARKED = ["queue/q-1", "work/alpha", "work/bravo", "work/delta"]
UNMARKED = ["work/charlie", "work/echo"]
CHIPS = {
"work/alpha": [["queue", "accent", "#bi-cpu", r"test · \d+ min", "Queue job running"]],
"queue/q-1": [["queue", "accent", "#bi-cpu", r"test · \d+ min", "Queue job running"]],
"work/bravo": [["agent", "ok", "#bi-person-workspace", r"Docs · [234] min", "Agent working"]],
"work/delta": [["agent", "ok", "#bi-person-workspace", r"Skills · \d+ (s|min)", "Agent working"], ["hub", "info", "#bi-terminal", r"make deploy-hub", "Hub job running"]],
"work/alpha": [["queue", "neutral", "#bi-cpu", r"test · \d+ min", "Queue job running"]],
"queue/q-1": [["queue", "neutral", "#bi-cpu", r"test · \d+ min", "Queue job running"]],
"work/bravo": [["agent", "neutral", "#bi-person-workspace", r"Docs · [234] min", "Agent working"]],
"work/delta": [["agent", "neutral", "#bi-person-workspace", r"Skills · \d+ (s|min)", "Agent working"], ["hub", "neutral", "#bi-terminal", r"make deploy-hub", "Hub job running"]],
}
BORDERS = {"work/alpha": "accent", "queue/q-1": "accent", "work/bravo": "ok", "work/delta": "ok"}
BORDERS = {**dict.fromkeys(MARKED, "ok"), **dict.fromkeys(UNMARKED, "info")}
READ = """
const card = (task) => all("#main .kanban-card").find((node) => node.dataset.task === task) || null;
const toggle = () => document.getElementById("kanban-running");
@@ -40,16 +40,6 @@ READ = """
probe.remove();
return found;
};
const keyframes = (wanted) => {
for (const sheet of document.styleSheets) {
for (const rule of sheet.cssRules) {
if (rule.type === CSSRule.KEYFRAMES_RULE && rule.name === wanted) {
return [...rule.cssRules].map((frame) => [frame.keyText, [...frame.style].sort()]);
}
}
}
return null;
};
const spills = (node) => {
const own = node.getBoundingClientRect();
const host = node.closest(".kanban-card").getBoundingClientRect();
@@ -63,12 +53,8 @@ READ = """
marks: Object.fromEntries(cards.map((node) => [node.dataset.task, [node.dataset.mark || null, node.dataset.marks || null,
all(".kanban-mark", node).map((chip) => [chip.dataset.mark, chip.dataset.tone, chip.querySelector("use").getAttribute("href"), text(chip), name(chip), chip.getAttribute("title") || ""])]])),
borders: Object.fromEntries(cards.map((node) => [node.dataset.task, [getComputedStyle(node).borderTopWidth, getComputedStyle(node).borderTopColor]])),
glow: Object.fromEntries(cards.filter((node) => node.dataset.mark).map((node) => {
const after = getComputedStyle(node, "::after");
return [node.dataset.task, [after.animationName, after.animationDuration, after.animationIterationCount]];
})),
tones: {accent: color("--accent"), ok: color("--ok"), info: color("--info")},
frames: keyframes("kanban-glow"),
glow: Object.fromEntries(cards.map((node) => [node.dataset.task, [getComputedStyle(node).animationName, getComputedStyle(node, "::after").animationName]])),
tones: {ok: color("--ok"), info: color("--info")},
toggle: button ? [name(button), button.getAttribute("aria-pressed"), text(button.querySelector(".count")), button.getAttribute("title") || ""] : null,
spill: all("#main .kanban-mark").filter(spills).length,
unlabelled: all("#main .kanban-box svg.bi").map((svg) => svg.parentElement).filter((owner) => !text(owner) && !(owner.getAttribute("title") && owner.getAttribute("aria-label"))).length,
@@ -85,12 +71,14 @@ BOARD = """(async () => {@HELPERS@@READ@
return read();
})()"""
FILTER = """(async () => {@HELPERS@@READ@
await openTaskMenu("task-filter");
toggle().click();
if (!(await until(() => toggle().getAttribute("aria-pressed") === "true" && all("#main .kanban-card").length === @MARKED@, 4000))) {
return {error: `still ${all("#main .kanban-card").length} cards`};
}
await sleep(2500);
const only = read();
await openTaskMenu("task-filter");
toggle().click();
await until(() => toggle().getAttribute("aria-pressed") === "false" && all("#main .kanban-card").length > @MARKED@, 4000);
return {only, back: read()};
@@ -155,9 +143,9 @@ class TestBoardRunning(HubCase):
for task in shown:
with self.subTest(task=task):
first, keys, chips = read["marks"][task]
self.assertEqual(read["borders"][task], ["2px", read["tones"][BORDERS[task]]])
if task not in CHIPS:
self.assertEqual((first, keys, chips), (None, None, []))
self.assertEqual(read["borders"][task][0], "1px")
continue
wanted = CHIPS[task]
self.assertEqual((first, keys), (wanted[0][0], " ".join(chip[0] for chip in wanted)))
@@ -166,20 +154,18 @@ class TestBoardRunning(HubCase):
self.assertRegex(shown_text, f"^{pattern}")
self.assertEqual(label, f"{word}: {shown_text}")
self.assertRegex(title, rf"(?s)^{re.escape(task)}: .+, since ")
self.assertEqual(read["borders"][task], ["2px", read["tones"][BORDERS[task]]])
def check_board(self, read: dict, moving: bool) -> None:
self.assertNotIn("error", read, read)
self.assertEqual(read["cards"], sorted(MARKED + UNMARKED))
self.check_marks(read, MARKED + UNMARKED)
self.assertEqual(read["frames"], [["0%, 100%", ["opacity"]], ["50%", ["opacity"]]])
glow = ["kanban-glow", "3s", "infinite"] if moving else ["none", "0s", "1"]
self.assertEqual(read["glow"], {task: glow for task in MARKED})
beat = "lub-dub" if moving else "lub-dub-glow"
self.assertEqual(read["glow"], {**{task: [beat, "none"] for task in MARKED}, **{task: ["none", "none"] for task in UNMARKED}})
self.assertEqual(read["toggle"][:3], ["Running", "false", str(len(MARKED))], read["toggle"])
self.assertIn("every card shown", read["toggle"][3])
self.assertEqual((read["spill"], read["unlabelled"], read["wide"]), (0, 0, False), read)
def test_chromium_marks_running_cards_glows_by_opacity_only_and_filters_them_at_three_widths(self):
def test_chromium_marks_running_cards_beats_their_state_border_and_filters_them_at_three_widths(self):
data = self.drive(self.steps(), None)
(OUT / "chromium-board-running.json").write_text(json.dumps(data, indent=1), encoding="utf-8")
self.assertEqual([error for error in data["errors"] if "/favicon.ico" not in error], [])