Repository navigation
Assert the send press's current face in the two nightly tests that still expect the solid accent fill - #814
Merged
Merged
Conversation
…ill expect the solid accent fill #803 made `.lf-compose-submit` a bare accent glyph over a 28px disc that is clear at rest and takes `--accent-tint` on hover, and moved the everyday gate's assertions with it. The two nightly tests reading the same face kept asserting paper-on-accent, so main's first completed nightly slot after that merge went red with four cases. Both now read through one `glyph_action_face` helper and assert the shipped contract at rest and under the pointer. The claims they were holding are kept: the press paints nothing of its own in any state, the disc is 28px whatever the hit box does, the add press takes the shared corner rather than the pick mark's circle, and the glyph outranks the `.lf-ui` ink — now stated directly as accent and not `--ink` instead of proved incidentally by paper-on-accent.
max-sixty
added a commit
that referenced
this pull request
Sep 19, 2026
…ith it (#824) Below about 820px the margin has no room for a thread's row, so `margin-layout` withholds it and its box is empty. `placeThreadPreview` handed that empty box to the geometry as the cluster the card stands by, and an empty box decides two things wrongly. **It puts the card over the words the reader just pressed.** A zero rect leaves room beside it at any width, so the card takes the `right` placement in the boundary's top corner. Measured at 820x800, the card spans 96–286 and the pressed words sit at 151–172, wholly under it. Anchored to what the row is about, the card stands under the passage, right-aligned to the visible edge, as it does under a cluster that has too little room beside it. **It also makes the card outlive its subject.** `threadCardGeometry` calls a card detached once its cluster has left the boundary, and an empty box has left it by definition: its bottom is 0 and the boundary's top is under the banner. So the card read as detached on its first placement, never set `previewReferenceSeen`, and could never take the dismissal every scroll offers it. Measured at the same size: the passage scrolls 900px away and the card stays open for the rest of the page's life. [#810](#810) describes the card holding at the boundary's foot "until the cluster itself has left, which closes it as before", which holds wherever the row has a place. With the cluster standing by the passage, the card leaves when the passage does. Both come from the same line: when the rail has no room for the row, the card now stands by the page target it is about. The module header states that standing now. A row is also withheld when its target is not shown, and then the target has no box either; this change does not reach that case. ## Verification `test_a_withheld_row_opens_its_card_beside_the_passage` asserts both. Against main's placement it fails on the first, with `the card spans 96–286 over the pressed words at 151–172`. The second hangs off the same line, so the test cannot fail on it alone; its contrast was measured with a probe on the same fixture and scroll, which found the card still open with the line reverted and closed with it. - `uv run pytest tests/test_render_anchors.py tests/test_render_margin.py`: 205 passed - `uv run pytest tests`: 1146 passed - `uv run pre-commit run --files skills/leaf/assets/runtime/margin-projection.js tests/test_render_anchors.py` Every other runtime reader of `[data-lf-margin-for]` resolves identity (`lfTarget`, `dataset.lfMarginFor`, focus hosts) rather than geometry, so none of them can be misled by an empty box. This branch also carried a repair for two stale `--accent` face assertions. [#814](#814) landed the same repair through a shared `glyph_action_face` helper while this was open, so `tests/test_render_options_addition.py` takes main's version whole and nothing of that repair remains here. > _This was written by Claude Code on behalf of max-sixty_ 🤖 Generated with [Claude Code](https://claude.com/claude-code) --------- Co-authored-by: Claude Opus 5 (1M context) <[email protected]>
This was referenced Sep 20, 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.
nightlyon main failed in run 35397355730 with four cases, and all four are the same fact: the send press no longer wears a solid accent fill, and two nightly tests still assert that it does.84136d1(#803) made.lf-compose-submita bare accent glyph over a 28px disc that stays clear at rest and takes--accent-tintunder the pointer, and it moved the assertions in the everyday gate with it. The two that read the same face intests/test_render_drafts.pyandtests/test_render_options_addition.pyarenightly-marked, so no pull request ran them; main holds one nightly slot, and the first one to complete after that merge wasbdf581c's. The product is right and the tests are stale.Both now read the face through one
glyph_action_facehelper besidetoken_colourandbutton_radius, and assert the shipped contract at rest and under the pointer, so the next move of this face has one reading to change rather than two hand-writtengetComputedStyleblocks that drifted apart.What each assertion was holding is kept, restated against the current face:
pressis still transparent at rest, still transparent on hover, and still transparent once--aim-floorwidens the hit box to 44px — that last one is the claim the coarse-pointer section makes, and it now reads a press at rest because the pointer is moved off first.--accent-tinton hover, and 28px in every reading.50%..lf-uiink. The old form asserted paper-on-accent, which proved it incidentally. It is now stated directly — the glyph is--accentand is not--ink, which is what the rule it outranks would have drawn.One observation rather than a request: a theme change reaches these faces only through nightly, so its author gets no signal until main has already moved. Every other
--accentassertion intests/survived #803, so this was the whole of the exposure this time.Reproduction and verification
The four cases fail locally at the run's head with CI's exact diffs —
assert 'rgb(47, 84, 128)' == 'rgb(250, 249, 245)'for the three composer parametrizations, andassert 'rgba(0, 0, 0, 0)' != 'rgba(0, 0, 0, 0)'for the add field, which is the disc having gone clear.uv run pytest tests/test_render_options_addition.py tests/test_render_drafts.py— 92 passed, both files completef56b814uv run pre-commit run --files tests/render_cases_layout.py tests/test_render_drafts.py tests/test_render_options_addition.py