Repository navigation
Seat hint chips from rectangles measured first - #1170
Merged
Merged
Conversation
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]>
leaf-agent
approved these changes
Sep 25, 2026
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.
spreadHintsread 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 pureseatHints, 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.tests/runtime/hint-seating.test.mjscovers 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.npm run test:runtime(124 passed) and the 46 hint and target-chooser browser tests intest_render_navigation.pyandtest_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.🤖 Generated with Claude Code