Skip to content

Assert the send press's current face in the two nightly tests that still expect the solid accent fill - #814

Merged
max-sixty merged 1 commit into
mainfrom
fix/ci-35397355730
Sep 18, 2026
Merged

max-sixty merged 1 commit into
mainfrom
fix/ci-35397355730

Conversation

@leaf-agent

Copy link
Copy Markdown
Collaborator

nightly on 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-submit a bare accent glyph over a 28px disc that stays clear at rest and takes --accent-tint under the pointer, and it moved the assertions in the everyday gate with it. The two that read the same face in tests/test_render_drafts.py and tests/test_render_options_addition.py are nightly-marked, so no pull request ran them; main holds one nightly slot, and the first one to complete after that merge was bdf581c's. The product is right and the tests are stale.

Both now read the face through one glyph_action_face helper beside token_colour and button_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-written getComputedStyle blocks that drifted apart.

What each assertion was holding is kept, restated against the current face:

  • The press paints nothing of its own. press is still transparent at rest, still transparent on hover, and still transparent once --aim-floor widens 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.
  • The disc is the whole of the paint, at a size the hit box does not change. It is clear at rest, --accent-tint on hover, and 28px in every reading.
  • The add press is not the pick mark's circle. Unchanged: the disc takes the shared margin entry corner, not 50%.
  • The glyph outranks the .lf-ui ink. The old form asserted paper-on-accent, which proved it incidentally. It is now stated directly — the glyph is --accent and 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 --accent assertion in tests/ 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, and assert '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 complete
  • The four repaired cases re-run green on this branch's base, f56b814
  • uv run pre-commit run --files tests/render_cases_layout.py tests/test_render_drafts.py tests/test_render_options_addition.py

…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
max-sixty merged commit 28dac53 into main Sep 18, 2026
4 checks passed
@max-sixty
max-sixty deleted the fix/ci-35397355730 branch September 18, 2026 23:40
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]>
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