fix(hub): resize the 3D canvas with its box and repair five stale e2e

The 3D graph took its size once from the box, so a later scrollbar cut
it at 390; a ResizeObserver now follows the box and is disconnected on
dispose. The e2e follow 78d4e4a (match swipe's ids method shadowed the
case's request counter, now card_ids), af3555e (three reveal buttons),
94bf0b4 (legend toggle in the Home tile head), a4f7017 (the runner
needs SHELL for its login shell) and 50363b1 (rules live in their own
Controls tab).

🎯 Fix: 85 %
💥 Break: 4 %
💸 Tokens: –
⏱️ Velocity: –
🛡️ Security: 100 %
🏆 Score: 82
🚦 Gate: ⛔ fix 85 % < 90

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-23 11:19:23 +00:00
1 parent d6e8b4a923
commit ccc80f17c1
6 files changed
+23 -15

No files matched your search

+3 -2
View File
@@ -123,7 +123,8 @@ HEADERS = """(async () => {@HELPERS@@HOME@@KIT@
return {
key: node.dataset.pin, w: Number(node.dataset.w), gone: node.classList.contains("gone"), overflow: head.scrollWidth > head.clientWidth + 1,
outside: shown.filter((child) => child.getBoundingClientRect().left < box.left - 0.5 || child.getBoundingClientRect().right > box.right + 0.5).map((child) => child.className),
order: shown.map((child) => [...child.classList].find((name) => name.startsWith("home-"))),
order: shown.map((child) => [...child.classList].find((name) => name.startsWith("home-") || name === "legend-toggle")),
legend: Boolean(head.querySelector(".legend-toggle")),
ellipsis: [getComputedStyle(title).textOverflow, getComputedStyle(title).whiteSpace, title.scrollWidth > title.clientWidth],
open: open.hidden ? null : {href: open.getAttribute("href"), title: open.getAttribute("title"), label: open.getAttribute("aria-label"), tag: open.tagName, focused, tabIndex: open.tabIndex, size: rect(open), unpin: rect(head.querySelector(".home-unpin")), glyph: open.querySelector("use").getAttribute("href")},
};
@@ -233,7 +234,7 @@ class TestHomeTileOpen(HubCase):
self.assertEqual(head["order"], ["home-grip", "home-title", "home-unpin"], head)
continue
self.assertFalse(head["gone"], head)
self.assertEqual(head["order"], ["home-grip", "home-title", "home-open", "home-unpin"], head)
self.assertEqual(head["order"], ["home-grip", "home-title", *(["legend-toggle"] if head["legend"] else []), "home-open", "home-unpin"], head)
found = head["open"]
self.assertEqual((found["tag"], found["label"], found["focused"], found["tabIndex"], found["glyph"]), ("A", "Open", True, 0, "#bi-arrows-angle-expand"), found)
self.assertTrue(found["title"].startswith("Open: show ") and found["title"].endswith(" in full view"), found)