Skip to content

Put the stage tiles and the wheel columns on one grid - #123

Merged
brettheap merged 1 commit into
mainfrom
change/tiles-align-wheel-columns
Aug 8, 2026
Merged

brettheap merged 1 commit into
mainfrom
change/tiles-align-wheel-columns

Conversation

@brettheap

Copy link
Copy Markdown
Contributor

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.

tiles columns
x positions 394, 615, 836, 1057, 1278, 1499 395, 615, 836, 1056, 1277, 1498

Two things fall out

  • The deck no longer pages at the default width, so every column is whole for the first time.
  • Hiding a column refits the rest, so the remainder stay whole and keep filling the port.

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.js now carries copies of both, pinned equal to the stylesheet by test — the same class of divergence the bullseye's FONT copy already suffered. That test earned itself immediately by matching the :fullscreen gap override (28px) instead of the base rule.

Full suites 2791 passed, 19 skipped, exit 0. openspec validate --all --strict green.

🤖 Generated with Claude Code

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]>
Copilot AI lite review requested due to automatic review settings August 8, 2026 06:22
@brettheap
brettheap merged commit 246ef99 into main Aug 8, 2026

@sourcery-ai sourcery-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @brettheap! 👋

Your private repo does not have access to Sourcery.

Please upgrade to continue using Sourcery ✨

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.js fit 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))
@brettheap
brettheap deleted the change/tiles-align-wheel-columns branch August 21, 2026 23:57
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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants