From 4c3219549f5a65d570aa5fc7e3f9d0c4fd3644cb Mon Sep 17 00:00:00 2001 From: Kevin Veen-Birkenbach Date: Fri, 13 Nov 2026 21:35:29 +0000 Subject: [PATCH] fix(orchestrator): keep 008's star from squeezing the graph cards at 390 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The 008 star row took about 26 px from the stage cards: the tasks/3d canvas fell under 80 px, where zoomToFit's 40 px padding gave a negative field of view and froze the camera, and the agents/orbit card pushed the page past 844 px with the radio spot open, against 001's no-scrollbar rule. The chart legend is now the panel's star slot (style-home.css places it at the end of the last key line under 640 px), and the 3D fit clamps its padding to a quarter of the canvas height and skips a canvas of height 0. The Firefox radio probe waits for paused with src cleared, since Firefox pauses the element before the product's 3 s fade ends. ๐ŸŽฏ Fix: 92 % ๐Ÿ’ฅ Break: 4 % ๐Ÿ’ธ Cost: โ€“ โฑ๏ธ Time: โ€“ ๐Ÿ›ก๏ธ Security: 100 % ๐Ÿ† Score: 88 ๐Ÿšฆ Gate: โœ… 90/5, cost and time <= 100, security 100 % Co-Authored-By: Claude Opus 5.5 --- orchestrator/templates/page-graph-charts.js | 2 +- orchestrator/templates/page-graph3d.js | 4 ++-- orchestrator/templates/style-home.css | 2 ++ tests/e2e/test_orchestrator_e2e.py | 2 +- 4 files changed, 6 insertions(+), 4 deletions(-) diff --git a/orchestrator/templates/page-graph-charts.js b/orchestrator/templates/page-graph-charts.js index e428cc4..7c8059c 100644 --- a/orchestrator/templates/page-graph-charts.js +++ b/orchestrator/templates/page-graph-charts.js @@ -158,7 +158,7 @@ } function legend() { - return h("div", {class: "legend"}, LEGEND.map(([name, label]) => h("span", {}, h("i", {class: `swatch t-${name}`}), label)), + return h("div", {class: "legend", "data-star-slot": ""}, LEGEND.map(([name, label]) => h("span", {}, h("i", {class: `swatch t-${name}`}), label)), h("span", {class: "muted"}, "Line width = count ยท closeness = recent collaboration")); } diff --git a/orchestrator/templates/page-graph3d.js b/orchestrator/templates/page-graph3d.js index 819cd7f..b11daa6 100644 --- a/orchestrator/templates/page-graph3d.js +++ b/orchestrator/templates/page-graph3d.js @@ -17,8 +17,8 @@ const layoutOf = (tab) => (layoutsOf(tab).some(([id]) => id === space.views.graph.axis) ? space.views.graph.axis : "none"); function fit3d(ms) { - if (g3.graph) { - g3.graph.zoomToFit(ms, 40); + if (g3.graph && g3.graph.height() > 0) { + g3.graph.zoomToFit(ms, Math.min(40, g3.graph.height() / 4)); } } diff --git a/orchestrator/templates/style-home.css b/orchestrator/templates/style-home.css index e476f0e..0cfc254 100644 --- a/orchestrator/templates/style-home.css +++ b/orchestrator/templates/style-home.css @@ -20,4 +20,6 @@ .home-agent { display: grid; gap: var(--sp-2); } @media (max-width: 640px) { .home-tile { grid-column: 1 / -1; } + .legend[data-star-slot] > .star { order: 1; } + .legend[data-star-slot] > .muted { order: 2; } } diff --git a/tests/e2e/test_orchestrator_e2e.py b/tests/e2e/test_orchestrator_e2e.py index d8a4941..788aedb 100644 --- a/tests/e2e/test_orchestrator_e2e.py +++ b/tests/e2e/test_orchestrator_e2e.py @@ -533,7 +533,7 @@ RADIO_STOP = """(async () => {@HELPERS@@MEDIA@ } const button = [stop.getAttribute("aria-label"), stop.title, text(stop), Boolean(stop.querySelector('svg.bi use[href="#bi-stop-fill"]'))]; stop.click(); - const paused = Boolean(await until(() => sample() && sample().paused, 8000)); + const paused = Boolean(await until(() => sample() && sample().paused && sample().src === null, 8000)); const media = await advancing(); const now = row(); const action = now ? now.querySelector("button[data-action]") : null;