From c7320961f4156051cee13b74ca107caa3c132281 Mon Sep 17 00:00:00 2001 From: Kevin Veen-Birkenbach Date: Mon, 23 Nov 2026 11:07:20 +0000 Subject: [PATCH] fix(hub): follow the radio redesign in the header, caption and e2e MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit d695bb2 split the grant button, added Mute, moved Cancel mayday into the composer, put a caret on the mode buttons, folded closed panels and gave radio rows their sender's face. The e2e probes now read the header buttons by id, the board's Mute, the composer's Cancel, the caret-free mode name, open-only panels and the first rendered face, and expect the waiting bubble anchored at 1366. The 390 header title ellipsizes instead of running under the buttons, and on screens over 66rem tall the speaking caption overlays the display line instead of adding a row that pushed main under its floor at 1920x1080. ๐ŸŽฏ Fix: 85 % ๐Ÿ’ฅ Break: 5 % ๐Ÿ’ธ Tokens: โ€“ โฑ๏ธ Velocity: โ€“ ๐Ÿ›ก๏ธ Security: 100 % ๐Ÿ† Score: 81 ๐Ÿšฆ Gate: โ›” fix 85 % < 90 Created-with: https://s.veen.world/skills Co-Authored-By: Claude Opus 5.5 --- orchestrator/templates/index.html.j2 | 3 ++- orchestrator/templates/style-ui.css | 13 ++++++++----- tests/e2e/hub_e2e_views.py | 2 +- tests/e2e/radio_layout_focus_probes.py | 2 +- tests/e2e/radio_layout_kit.py | 2 +- tests/e2e/radio_set_kit.py | 2 +- tests/e2e/test_gibberlink_e2e.py | 2 +- tests/e2e/test_hub_board_e2e.py | 2 +- tests/e2e/test_hub_radio_e2e.py | 4 ++-- tests/e2e/test_orchestrator_e2e.py | 2 +- tests/e2e/test_workbench_w6_e2e.py | 4 ++-- 11 files changed, 21 insertions(+), 17 deletions(-) diff --git a/orchestrator/templates/index.html.j2 b/orchestrator/templates/index.html.j2 index 795f916..b6bc282 100644 --- a/orchestrator/templates/index.html.j2 +++ b/orchestrator/templates/index.html.j2 @@ -36,7 +36,8 @@ code, pre { font-family: var(--mono); font-size: var(--fs-sm); } .head { position: sticky; top: 0; z-index: 6; } .top { display: flex; align-items: center; gap: var(--sp-4); padding: var(--sp-3) var(--sp-5); background: var(--glass-panel); border-bottom: 1px solid var(--line); } .brand { display: flex; flex: 1; align-items: center; gap: var(--sp-3); min-width: 0; } -.brand-text { display: grid; line-height: var(--lh-tight); } +.brand-text { display: grid; grid-template-columns: minmax(0, 1fr); min-width: 0; line-height: var(--lh-tight); } +.brand-text > * { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .sky-note { color: var(--muted); font-size: var(--fs-xs); white-space: nowrap; } .logo { width: 24px; height: 24px; border-radius: var(--radius-sm); background: linear-gradient(135deg, var(--accent), var(--violet)); box-shadow: inset 0 0 0 1px rgb(255 255 255 / 18%), var(--shadow); } h1 { margin: 0; font-size: var(--fs-lg); font-weight: 680; letter-spacing: -.01em; } diff --git a/orchestrator/templates/style-ui.css b/orchestrator/templates/style-ui.css index 0316179..bfcc869 100644 --- a/orchestrator/templates/style-ui.css +++ b/orchestrator/templates/style-ui.css @@ -215,6 +215,13 @@ body.fit .spot-host { flex: none; } .radio-spot .composer > * { grid-column: 1 / -1; } .radio-spot .composer > .voice-note:not([hidden]) { grid-column: 1; } .radio-spot .composer > .voice-note:not([hidden]) + .actions { grid-column: 2; } + .radio-spot .radio-face { grid-template-columns: auto minmax(0, max-content) minmax(0, 1fr) auto; } + .radio-spot .radio-display { display: grid; grid-template-columns: subgrid; } + .radio-spot .radio-caption { z-index: 1; grid-area: 1 / 2 / 2 / 4; gap: 4px; min-height: 0; padding: 0 4px; background-color: var(--sunken); background-image: linear-gradient(var(--ok-soft), var(--ok-soft)); } + .radio-spot .radio-caption strong { min-width: 0; overflow: hidden; text-overflow: ellipsis; } + .radio-spot .radio-caption .caption-line { flex: 1 0 4rem; } + .radio-spot .radio-caption .avatar { width: 20px; height: 20px; } + .radio-spot .radio-caption .btn { padding: 4px; } } @media (min-width: 80rem) and (45rem <= height <= 66rem), (min-width: 61rem) and (46.5rem <= height <= 66rem), (min-width: 48rem) and (61rem <= height <= 66rem), (min-width: 48rem) and (width < 56rem) and (min-height: 61rem) { body.fit .shell:has(> .spot-host > .radio-spot:not([hidden])) { padding-bottom: var(--sp-4); } @@ -229,11 +236,7 @@ body.fit .spot-host { flex: none; } .radio-spot .radio-device > .radio-card-head > .group-title { grid-area: 1 / 1; margin: 0; } .radio-spot .radio-device > .radio-card-head > .star { grid-area: 1 / 6; } .radio-spot .radio-display { display: grid; grid-area: 1 / 2 / 2 / 6; grid-template-columns: subgrid; align-items: center; padding-block: 1px; } - .radio-spot .radio-caption { z-index: 1; grid-area: 1 / 3 / 2 / 5; gap: 4px; min-height: 0; padding: 0 4px; background-color: var(--sunken); background-image: linear-gradient(var(--ok-soft), var(--ok-soft)); } - .radio-spot .radio-caption strong { min-width: 0; overflow: hidden; text-overflow: ellipsis; } - .radio-spot .radio-caption .caption-line { flex: 1 0 4rem; } - .radio-spot .radio-caption .avatar { width: 20px; height: 20px; } - .radio-spot .radio-caption .btn { padding: 4px; } + .radio-spot .radio-caption { grid-area: 1 / 3 / 2 / 5; } .radio-spot .radio-modes { grid-area: 2 / 1 / 3 / -1; justify-self: start; padding: 1px; } .radio-spot .radio-modes button { padding-block: 2px; } .radio-spot .radio-mode-menu { grid-column: 1 / -1; padding: 4px var(--sp-2); } diff --git a/tests/e2e/hub_e2e_views.py b/tests/e2e/hub_e2e_views.py index 62ddad1..49e5460 100644 --- a/tests/e2e/hub_e2e_views.py +++ b/tests/e2e/hub_e2e_views.py @@ -15,7 +15,7 @@ PROBE = """(async () => {@HELPERS@ hash: location.hash, title: document.title, h1: text(document.querySelector("h1")), - header: all("header.top button").map((button) => button.id), + header: all("header.top button[id]").map((button) => button.id), tabs: all("#tabs > .tab-group > button").map(name), subs: all("#tabs .subtabs button").map(name), badges: Object.fromEntries(all("#tabs button").map((button) => [button.id, badge(button)])), diff --git a/tests/e2e/radio_layout_focus_probes.py b/tests/e2e/radio_layout_focus_probes.py index 75e89e9..c22d258 100644 --- a/tests/e2e/radio_layout_focus_probes.py +++ b/tests/e2e/radio_layout_focus_probes.py @@ -305,7 +305,7 @@ REPLY_HOME = """(async () => {@HELPERS@@PROBES@ questions.push(question); return true; }; - const clear = all(".spot-head button", tile("radio")).find((button) => button.getAttribute("aria-label") === "Cancel mayday"); + const clear = all("form.composer button.radio-cancel", tile("radio")).find((button) => button.getAttribute("aria-label") === "Cancel mayday"); const enabled = clear ? !clear.disabled : null; const shownBefore = new Set(all("#toasts .toast")); if (clear) { diff --git a/tests/e2e/radio_layout_kit.py b/tests/e2e/radio_layout_kit.py index 03afb3a..ce1e67f 100644 --- a/tests/e2e/radio_layout_kit.py +++ b/tests/e2e/radio_layout_kit.py @@ -93,7 +93,7 @@ PROBES = """ row.querySelector(".radio-pick").click(); return until(() => popup().open && popup().querySelector(".radio-full") ? popup() : null, 4000); }; - const shown = (node) => node.getClientRects().length > 0; + const shown = (node) => node.getClientRects().length > 0 && !node.closest("details:not([open]) > :not(summary)"); const scrolls = (node) => { const look = getComputedStyle(node); return (node.scrollHeight > node.clientHeight + 1 && ["auto", "scroll"].includes(look.overflowY)) || (node.scrollWidth > node.clientWidth + 1 && ["auto", "scroll"].includes(look.overflowX)); diff --git a/tests/e2e/radio_set_kit.py b/tests/e2e/radio_set_kit.py index c805b3b..0baeecb 100644 --- a/tests/e2e/radio_set_kit.py +++ b/tests/e2e/radio_set_kit.py @@ -132,7 +132,7 @@ RADIO = """ FACE = """(async () => {@HELPERS@@RADIO@ await cpuShown("CPU 10 %"); const display = {lamp: [text(lamp()), lamp().dataset.lit], cls: field("class"), mode: field("mode"), cpu: field("cpu"), title: spot.querySelector('[data-field="cpu"]').title}; - const modes = all(".radio-modes button", spot).map((button) => [text(button), button.getAttribute("aria-pressed"), Boolean(button.title && button.getAttribute("aria-label")), Boolean(button.querySelector("svg.bi"))]); + const modes = all(".radio-modes button", spot).map((button) => [text(button).replace("โ–พ", ""), button.getAttribute("aria-pressed"), Boolean(button.title && button.getAttribute("aria-label")), Boolean(button.querySelector("svg.bi"))]); const knobs = all(".radio-knobs input[type=range]", spot).map((input) => [input.getAttribute("aria-label"), input.min, input.max, input.step, input.value]); const toneToggles = all(".radio-knobs button[aria-pressed]", spot).map((button) => [button.getAttribute("aria-label"), button.getAttribute("aria-pressed")]); const labels = all(".radio-knobs .knob-row", spot).filter((row) => row.querySelector(".knob-label")).map((row) => { diff --git a/tests/e2e/test_gibberlink_e2e.py b/tests/e2e/test_gibberlink_e2e.py index 1677556..167f985 100644 --- a/tests/e2e/test_gibberlink_e2e.py +++ b/tests/e2e/test_gibberlink_e2e.py @@ -98,7 +98,7 @@ QUIET = """(async () => {@HELPERS@@RADIO@@KIT@ const played = await sent(at.captured); const quiet = await stopped(); const tts = audio().tts.slice(at.tts).map((entry) => entry.body.text); - await opened(true); + await modeMenu("quiet", true); return {played, quiet, tts, captured: window.e2eGibber.slice(at.captured), fits: fits(), violations: window.e2eViolations}; })()""" DECODE = """ diff --git a/tests/e2e/test_hub_board_e2e.py b/tests/e2e/test_hub_board_e2e.py index dbeab48..4af3ee8 100644 --- a/tests/e2e/test_hub_board_e2e.py +++ b/tests/e2e/test_hub_board_e2e.py @@ -103,7 +103,7 @@ class TestHubBoard(base.OrchestratorE2ECase): self.assertNotIn("error", found) self.assertEqual((found["badge"], found["start"], found["wide"]), (["Day", "1 alone"], everyone, False)) self.assertEqual((found["one"], found["kept"], found["none"], found["all"]), ([one, [True] * 3], one, [nobody, [False] * 3], [everyone, [True] * 3])) - self.assertEqual(found["popup"], {"badge": ["Draining"], "buttons": ["Drain", "Suspend", "Resume"]}) + self.assertEqual(found["popup"], {"badge": ["Draining"], "buttons": ["Mute Stage", "Drain", "Suspend", "Resume"]}) self.assertEqual([question.split(":")[0] for question in found["questions"]], ["Drain Stage", "Suspend Stage"]) sent = [["/api/board/sign", ["action", "agents"], "drain", ["s2"]], ["/api/board/drain", ["proof", "agents"], None, ["s2"]], ["/api/board/sign", ["action", "agents"], "suspend", ["s2"]], ["/api/board/suspend", ["proof", "agents"], None, ["s2"]]] self.assertEqual(found["posted"], sent if signs else sent[::2]) diff --git a/tests/e2e/test_hub_radio_e2e.py b/tests/e2e/test_hub_radio_e2e.py index 5a28312..6e2a528 100644 --- a/tests/e2e/test_hub_radio_e2e.py +++ b/tests/e2e/test_hub_radio_e2e.py @@ -298,7 +298,7 @@ class TestHubRadio(base.OrchestratorE2ECase): self.assertEqual((sent["closed"], sent["open"]), ([True, "false"], [False, "true", True])) self.assertEqual(sent["inline"], ["static", True, True]) self.assertEqual((sent["toolbar"], sent["channels"], sent["record"]), (["Priority", "Day/Night", "Status"], CHOICE_CHANNELS, ["Record"])) - self.assertEqual((sent["heads"], sent["send"], sent["cancel"]), (0, SEND_GROUP, True)) + self.assertEqual((sent["heads"], sent["send"], sent["cancel"]), (0, SEND_GROUP, False)) self.assertEqual((sent["tall"], sent["wide"]), (width == 390, False)) self.assertEqual([run["cls"] for run in sent["runs"]], CHOICE_CHANNELS) for run in sent["runs"]: @@ -349,7 +349,7 @@ class TestHubRadio(base.OrchestratorE2ECase): self.assertNotIn("error", sent, sent) self.assertEqual((sent["closed"], sent["open"], sent["inline"]), ([True, "false"], [False, "true", True], ["static", True, True])) self.assertEqual((sent["toolbar"], sent["channels"], sent["record"]), (["Priority", "Day/Night", "Status"], CHOICE_CHANNELS, ["Record"])) - self.assertEqual((sent["heads"], sent["send"], sent["cancel"]), (0, SEND_GROUP, True)) + self.assertEqual((sent["heads"], sent["send"], sent["cancel"]), (0, SEND_GROUP, False)) self.assertEqual((sent["tall"], sent["wide"]), (width == 390, False)) self.assertEqual([run["cls"] for run in sent["runs"]], CHOICE_CHANNELS) for run in sent["runs"]: diff --git a/tests/e2e/test_orchestrator_e2e.py b/tests/e2e/test_orchestrator_e2e.py index f5dd5e9..36fc0ae 100644 --- a/tests/e2e/test_orchestrator_e2e.py +++ b/tests/e2e/test_orchestrator_e2e.py @@ -139,7 +139,7 @@ class TestOrchestratorE2E(base.OrchestratorE2ECase): with self.subTest(url=step["url"], width=step["width"]): self.assertNotIn("error", probe) self.assertEqual((probe["title"], probe["h1"]), ("(2) Agent Orchestrator", "Agent Orchestrator")) - self.assertEqual(probe["header"], ["grant-direct", "grant-select", "radio-open", "bubbles-toggle", "palette-open", "settings-open"]) + self.assertEqual(probe["header"], ["grant-select", "radio-open", "bubbles-toggle", "palette-open", "settings-open"]) self.assertEqual((probe["tabs"], probe["subs"]), (TABS, SUBS)) self.assertEqual(probe["badges"], {"tab-home": None, "tab-stream": None, "tab-rules": None, "tab-agents": "1", "tab-artifacts": None, "tab-tasks": "2", "tab-resources": None}) self.assertEqual(probe["banner"], "MAYDAY ยท Docs: disk full") diff --git a/tests/e2e/test_workbench_w6_e2e.py b/tests/e2e/test_workbench_w6_e2e.py index 28df0a8..dcd145e 100644 --- a/tests/e2e/test_workbench_w6_e2e.py +++ b/tests/e2e/test_workbench_w6_e2e.py @@ -30,7 +30,7 @@ EARLY = 0.1 LATE = 2.0 VIEWS = {1920: "agents/orbit", 1366: "stream/radio", 390: "agents/hierarchy"} SECOND_FROM = {1920: "Skills", 1366: "Skills", 390: "Docs"} -SECOND_ANCHORED = {1920: True, 1366: False, 390: False} +SECOND_ANCHORED = {1920: True, 1366: True, 390: False} CALM = [{"name": "prefers-reduced-motion", "value": "reduce"}] FADE_MS = 400 FADE_SLACK = 50 @@ -108,7 +108,7 @@ BUBBLES_ON = """(async () => {@HELPERS@@READ@ }); } }).observe(layer, {subtree: true, childList: true, attributes: true, attributeFilter: ["class", "data-state", "data-words", "data-read"]}); - const speaker = document.querySelector('[data-face="@FACE@"]'); + const speaker = [...document.querySelectorAll('[data-face="@FACE@"]')].find((node) => node.getClientRects().length > 0); if (speaker && !visible(speaker.getBoundingClientRect())) { speaker.scrollIntoView({block: "center", inline: "center"}); }