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:
1 parent
27b376819c
commit
85e24fb68b
3 files changed
+14
-3
No files matched your search
@@ -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"]});
|
||||
const speaker = document.querySelector('[data-face="@FACE@"]');
|
||||
if (speaker && !visible(speaker.getBoundingClientRect())) {
|
||||
speaker.scrollIntoView({block: "center", inline: "center"});
|
||||
}
|
||||
toggle.click();
|
||||
const on = Boolean(await until(() => toggle.getAttribute("aria-pressed") === "true" && !layer.hidden, 8000));
|
||||
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))
|
||||
|
||||
|
||||
def spoken(cue: str, face: str) -> str:
|
||||
return probe(BUBBLES_ON, cue).replace("@FACE@", face)
|
||||
|
||||
|
||||
def quiet(found: dict) -> dict:
|
||||
violations = found["violations"]
|
||||
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
|
||||
shot = str(OUT / f"{browser}-{width}-bubbles")
|
||||
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_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})
|
||||
if width == 1366:
|
||||
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": f"{self.base}?{width}-stream-reloaded#stream", "wait": 1200, "probe": probe(BUBBLES_KEPT), "shot": None, "media": media},
|
||||
]
|
||||
|
||||
Reference in new issue
Block a user