Skip to content

Seat hint chips from rectangles measured first - #1170

Merged
max-sixty merged 1 commit into
mainfrom
hint-seating
Sep 25, 2026
Merged

max-sixty merged 1 commit into
mainfrom
hint-seating

Conversation

@max-sixty

Copy link
Copy Markdown
Owner

spreadHints read each chip's box, worked out where it should stand, and wrote the shift, all in one loop. It is now three steps: measure every chip, fold the rectangles through a new pure seatHints, then write each chip's shift. Placement is unchanged; the collision math can now be tested in Node without a browser.

This is the badge half of the last step of "fewer frame owners": split the packers into measure, compute and write. #1164 already did the margin half when it moved row packing into margin-placement.js.

  • New test: tests/runtime/hint-seating.test.mjs covers a chip stacked on another, a chip centred under its target, a chip past the window's corner, and a chip over the key line on a wide and a narrow target.
  • Checks: npm run test:runtime (124 passed) and the 46 hint and target-chooser browser tests in test_render_navigation.py and test_render_semantic_selection.py. With the write step's top shift disabled, 7 of those browser tests fail, so they cover the wiring the Node tests don't reach.

This was written by Claude Code on behalf of max-sixty

🤖 Generated with Claude Code

spreadHints now measures every chip, folds the rectangles through the
pure seatHints, and then writes each shift, so tests/runtime covers the
collision math without a browser. Placement is unchanged.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
@max-sixty
max-sixty merged commit 9e61b24 into main Sep 25, 2026
5 checks passed
@max-sixty
max-sixty deleted the hint-seating branch September 25, 2026 16:37
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