fix(orchestrator): keep the mic touch target and radio history head inside narrow cards

The 44 px mic target at 640 px now beats the small button rule, the radio
history head and tabs tighten in a narrow history container, and the W6
bubbles probe scrolls the speaking Stage face into view before it reads the
pair (spoken() replaces a new probe default).

🎯 Fix: 92 %
💥 Break: 3 %
💸 Tokens: 100 %
⏱️ Velocity: 100 %
🛡️ Security: 100 % (index.html.j2 and style-ui.css not covered by MEDUSA, reviewed by hand)
🏆 Score: 89
🚦 Gate: ✅ 90/5, tokens and velocity <= 100, security 100 %

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Kevin Veen-BirkenbachandClaude Opus 5.5 committed 2026-11-17 09:57:03 +00:00
1 parent 27b376819c
commit 85e24fb68b
3 files changed
+14 -3

No files matched your search

+1 -1
View File
@@ -328,7 +328,7 @@ textarea + .mic-auto { display: flex; margin: 4px 0 0 auto; }
.mic-live[hidden] { display: none; } .mic-live[hidden] { display: none; }
.mic-live::before { content: ""; flex: none; width: 10px; height: 10px; border-radius: 50%; background: #fff; animation: mic-pulse 1s ease-in-out infinite; } .mic-live::before { content: ""; flex: none; width: 10px; height: 10px; border-radius: 50%; background: #fff; animation: mic-pulse 1s ease-in-out infinite; }
@keyframes mic-pulse { 50% { opacity: .45; } } @keyframes mic-pulse { 50% { opacity: .45; } }
@media (max-width: 640px) { .mic { min-width: 44px; min-height: 44px; } } @media (max-width: 640px) { .btn.small.mic { min-width: 44px; min-height: 44px; } }
@media (prefers-reduced-motion: reduce) { .mic[aria-pressed="true"], .mic-live::before { animation: none; } } @media (prefers-reduced-motion: reduce) { .mic[aria-pressed="true"], .mic-live::before { animation: none; } }
.palette-list { max-height: 55vh; margin: 0; padding: 6px; overflow: auto; list-style: none; } .palette-list { max-height: 55vh; margin: 0; padding: 6px; overflow: auto; list-style: none; }
.palette-list li { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; cursor: pointer; } .palette-list li { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; cursor: pointer; }
+3
View File
@@ -173,6 +173,9 @@ body.fit .spot-host { flex: none; }
.radio-modes button { gap: 4px; padding-inline: 7px; } .radio-modes button { gap: 4px; padding-inline: 7px; }
} }
@container history (max-width: 34rem) { @container history (max-width: 34rem) {
.radio-logbox > .radio-card-head { gap: 4px; }
.radio-logbox > .radio-card-head .group-title { margin-inline-end: 0; }
.radio-logbox .radio-tabs button { padding-inline: 7px; }
.radio-row, .radio-pick { gap: 4px; } .radio-row, .radio-pick { gap: 4px; }
.radio-pick { padding-inline-start: 6px; } .radio-pick { padding-inline-start: 6px; }
.radio-pick > time { flex: 0 1 auto; min-width: 0; overflow: hidden; font-size: var(--fs-xs); text-overflow: ellipsis; } .radio-pick > time { flex: 0 1 auto; min-width: 0; overflow: hidden; font-size: var(--fs-xs); text-overflow: ellipsis; }
+10 -2
View File
@@ -108,6 +108,10 @@ BUBBLES_ON = """(async () => {@HELPERS@@READ@
}); });
} }
}).observe(layer, {subtree: true, childList: true, attributes: true, attributeFilter: ["class", "data-state", "data-words", "data-read"]}); }).observe(layer, {subtree: true, childList: true, attributes: true, attributeFilter: ["class", "data-state", "data-words", "data-read"]});
const speaker = document.querySelector('[data-face="@FACE@"]');
if (speaker && !visible(speaker.getBoundingClientRect())) {
speaker.scrollIntoView({block: "center", inline: "center"});
}
toggle.click(); toggle.click();
const on = Boolean(await until(() => toggle.getAttribute("aria-pressed") === "true" && !layer.hidden, 8000)); const on = Boolean(await until(() => toggle.getAttribute("aria-pressed") === "true" && !layer.hidden, 8000));
await cue("@CUE@"); await cue("@CUE@");
@@ -217,6 +221,10 @@ def probe(template: str, cue: str = CUE) -> str:
return template.replace("@HELPERS@", base.HELPERS).replace("@READ@", READ).replace("@UNLABELLED@", base.UNLABELLED).replace("@CUE@", cue).replace("@FADE@", str(FADE_MS)) return template.replace("@HELPERS@", base.HELPERS).replace("@READ@", READ).replace("@UNLABELLED@", base.UNLABELLED).replace("@CUE@", cue).replace("@FADE@", str(FADE_MS))
def spoken(cue: str, face: str) -> str:
return probe(BUBBLES_ON, cue).replace("@FACE@", face)
def quiet(found: dict) -> dict: def quiet(found: dict) -> dict:
violations = found["violations"] violations = found["violations"]
return {**found, "violations": None if violations is None else [seen for seen in violations if not seen.endswith("/favicon.ico")]} return {**found, "violations": None if violations is None else [seen for seen in violations if not seen.endswith("/favicon.ico")]}
@@ -271,7 +279,7 @@ class TestWorkbenchBubbles(HubCase):
cue = f"{CUE}-docs" if SECOND_FROM[width] == "Docs" else CUE cue = f"{CUE}-docs" if SECOND_FROM[width] == "Docs" else CUE
shot = str(OUT / f"{browser}-{width}-bubbles") shot = str(OUT / f"{browser}-{width}-bubbles")
steps += [ steps += [
{"width": width, "height": height, "url": f"{self.base}?{width}#{view}", "wait": 1200, "probe": probe(BUBBLES_ON, cue), "shot": f"{shot}-pair.png", "media": media}, {"width": width, "height": height, "url": f"{self.base}?{width}#{view}", "wait": 1200, "probe": spoken(cue, self.keys["Stage"]), "shot": f"{shot}-pair.png", "media": media},
{"width": width, "height": height, "url": None, "wait": 0, "probe": probe(BUBBLES_GROW), "shot": f"{shot}-grown.png", "media": media}, {"width": width, "height": height, "url": None, "wait": 0, "probe": probe(BUBBLES_GROW), "shot": f"{shot}-grown.png", "media": media},
{"width": width, "height": height, "url": None, "wait": 0, "probe": probe(BUBBLES_DONE), "shot": None, "media": media}, {"width": width, "height": height, "url": None, "wait": 0, "probe": probe(BUBBLES_DONE), "shot": None, "media": media},
] ]
@@ -282,7 +290,7 @@ class TestWorkbenchBubbles(HubCase):
steps.append({"width": width, "height": height, "url": f"{self.base}?{width}-reloaded#{view}", "wait": 1200, "probe": probe(BUBBLES_KEPT), "shot": f"{shot}-off.png", "media": media}) steps.append({"width": width, "height": height, "url": f"{self.base}?{width}-reloaded#{view}", "wait": 1200, "probe": probe(BUBBLES_KEPT), "shot": f"{shot}-off.png", "media": media})
if width == 1366: if width == 1366:
steps += [ steps += [
{"width": width, "height": height, "url": f"{self.base}?{width}-stream#stream", "wait": 1200, "probe": probe(BUBBLES_ON), "shot": f"{shot}-stream.png", "media": media}, {"width": width, "height": height, "url": f"{self.base}?{width}-stream#stream", "wait": 1200, "probe": spoken(CUE, ""), "shot": f"{shot}-stream.png", "media": media},
{"width": width, "height": height, "url": None, "wait": 0, "probe": probe(BUBBLES_DONE), "shot": None, "media": media}, {"width": width, "height": height, "url": None, "wait": 0, "probe": probe(BUBBLES_DONE), "shot": None, "media": media},
{"width": width, "height": height, "url": f"{self.base}?{width}-stream-reloaded#stream", "wait": 1200, "probe": probe(BUBBLES_KEPT), "shot": None, "media": media}, {"width": width, "height": height, "url": f"{self.base}?{width}-stream-reloaded#stream", "wait": 1200, "probe": probe(BUBBLES_KEPT), "shot": None, "media": media},
] ]