Repository navigation
Put the stage tiles and the wheel columns on one grid - #123
Merged
Merged
Conversation
Brett: "make the tiles line up with the wheel columns." They could not, and the reason was worth finding: the columns are a FIXED 220px times --wheel-scale, so six of them plus their gaps wanted 1390px in a 1312px port. The deck has always paged by that overflow, which is why the sixth column was always part-cut and why the two rows drifted ~70px apart by the right edge. So the deck now FITS: it scales its columns so the visible ones exactly span the port, and drops the 24px inset that offset it from the tiles' grid. The tiles take the deck's own layout — six equal columns at the deck's 14px gap. Measured across all six: within 1px, both 207px wide. Two things fall out of it. The deck no longer pages at the default width, so every column is whole for the first time. And hiding a column refits the rest, so the remaining columns stay whole and keep filling the port. Fullscreen is untouched: it keeps the stylesheet's own larger scale, where the point is bigger tiles rather than a fitted row. The fit reads the column width and the deck gap, so wheel.js now carries copies of both — pinned equal to the stylesheet by test, the same guard the bullseye's FONT copy needed. That test immediately earned itself by matching the :fullscreen gap override instead of the base rule. Suites 2791 passed (exit 0); strict validation green. Co-Authored-By: Claude Fable 5 <[email protected]>
There was a problem hiding this comment.
Hi @brettheap! 👋
Your private repo does not have access to Sourcery.
Please upgrade to continue using Sourcery ✨
There was a problem hiding this comment.
Pull request overview
Aligns the ideation dashboard’s stage tiles with the wheel’s columns by fitting the wheel deck to the available port width and standardizing both rows onto a shared 6-column grid with the same inter-column gap.
Changes:
- Add wheel-deck “fit to port” logic in
wheel.js, including a fullscreen escape hatch. - Update the stats tiles CSS layout to match the wheel deck’s 6-column grid and 14px gap, and remove the deck’s horizontal padding offset.
- Add a regression test to pin
wheel.jsfit constants (COLUMN_W,DECK_GAP) to the stylesheet values.
Reviewed changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
| tests/ideation-dashboard/test_bullseye_widget.py | Adds a test to keep wheel fit constants in sync with CSS. |
| scripts/ideation_dashboard/web/views/wheel.js | Implements dynamic scaling to fit visible wheel columns to the port and recalculates on resize/hide. |
| scripts/ideation_dashboard/web/styles.css | Puts .tiles on a fixed 6-column grid with 14px gap; removes deck padding to align grids. |
| docs/ideation-dashboard-session-runbook.md | Documents the new “one grid” behavior and the no-paging side effect. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
Comment on lines
+1573
to
+1586
| function fitScale() { | ||
| if (document.fullscreenElement) { | ||
| port.style.removeProperty("--wheel-scale"); | ||
| return; | ||
| } | ||
| const shown = WHEEL_KEYS.filter((k) => !hidden.has(k)).length; | ||
| const width = port.clientWidth; | ||
| if (!shown || !width) return; | ||
| const gaps = DECK_GAP * (shown - 1); | ||
| const scale = (width - gaps) / (shown * COLUMN_W); | ||
| // never magnify past the design size; a narrow port still pages, which is | ||
| // what the carousel is for | ||
| port.style.setProperty("--wheel-scale", String(Math.min(1, scale))); | ||
| } |
Comment on lines
+860
to
+867
| column_w = float(re.search(r"const COLUMN_W = ([\d.]+)", js).group(1)) | ||
| deck_gap = float(re.search(r"const DECK_GAP = ([\d.]+)", js).group(1)) | ||
| # anchor at line start: `:fullscreen .wheeldeck` overrides the gap and | ||
| # would otherwise be the first match (it is, at 28px — this test caught it) | ||
| css_col = float(re.search( | ||
| r"(?m)^\.wheelcol\s*\{[^}]*?flex:\s*0 0 calc\(([\d.]+)px", css, re.S).group(1)) | ||
| css_gap = float(re.search( | ||
| r"(?m)^\.wheeldeck\s*\{[^}]*?gap:\s*([\d.]+)px", css, re.S).group(1)) |
This was referenced Aug 22, 2026
brettheap
added a commit
that referenced
this pull request
Sep 16, 2026
Copilot round 7 on #1068, five findings, every one measured at openDox-code `0b4e8bbf` / openXdox-code `0a0265f7`: the full census report is BYTE-IDENTICAL before and after — 54 gate-exclusive classes, 18 shared, 59 exclusive blocks, 89 lines, 10 reading a token, 0 blocks kept for declaring one — and 0 blocks / 0 lines at the two leg heads. * `.foo:hover.bar` IS TWO CLASSES. `hover` was consumed as an ordinary identifier run, which cleared the bit saying the run before `.bar` began with a dot. `div:hover.foo` stays element-qualified and still names nothing. * A DOTTED WORD IN A SENTENCE IS NOT A SELECTOR. `showError("see .gatebar")` is on the selector alphabet end to end, so shape alone passed it and a message could MOVE an openDox rule. A bare word in a selector can only be a TYPE selector, so it must be an element name; `h2 .gate-title` still reads. * `class=` ANYWHERE IN A STRING IS NOT MARKUP (thread PRRT_kwDOTAvnrs6jCcPV). `const message = 'expected class="dispose-"'` registered a concatenation PREFIX, and a prefix claims every declared class beginning with it. An unclosed `<tag` must open before the attribute now. * A TOKEN DECLARATION IS BOUNDED BY `;`, NOT BY A LINE START. `.gatebar { color: red; --st-proposed: #123 }` was extractable and RULED Q7's stable surface would have left with it. * THE REPORTED LINE COUNT IS THE CARVE FLOOR'S (`scripts/carve_lines.py`, RULED Q-L8 (c)) and not `splitlines()`', which also breaks on U+2028, U+2029, `\v`, `\f`, `\x85` and a lone `\r` where `line_of` does not. * The runbook's Q7 window is a CSS EXTRACTION — 88 deletions and carve `:161` a replacement in place — not "wholly a DELETION", which § 3.4 already says. Five regressions added (30 passed in tests/carve_manifest/test_css_census.py; 211 passed across tests/carve_manifest/); `validate-carve-manifest.py` OK, 456 rows, 4 RE-DESTINED. Lane: openxfactory-4 Co-Authored-By: Claude Fable 5.1 <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Brett: "make the tiles line up with the wheel columns."
Why they couldn't
The columns are a fixed 220px ×
--wheel-scale, so six of them plus their gaps wanted 1390px inside a 1312px port. The deck has always paged by that overflow — which is why the sixth column was always part-cut, and why the two rows drifted ~70px apart by the right edge.The fix
The deck now fits: it scales its columns so the visible ones exactly span the port, and drops the 24px inset that offset it from the tiles' grid. The tiles take the deck's own layout — six equal columns at the deck's 14px gap.
Measured across all six columns: within 1px, both 207px wide.
Two things fall out
Fullscreen is untouched — it keeps the stylesheet's larger scale, where the point is bigger tiles rather than a fitted row.
Guard
The fit reads the column width and the deck gap, so
wheel.jsnow carries copies of both, pinned equal to the stylesheet by test — the same class of divergence the bullseye'sFONTcopy already suffered. That test earned itself immediately by matching the:fullscreengap override (28px) instead of the base rule.Full suites 2791 passed, 19 skipped, exit 0.
openspec validate --all --strictgreen.🤖 Generated with Claude Code