Repository navigation
Read the nightly banner, rail, and chord fixtures as the layer now draws them - #218
Conversation
…aws them Seven nightly cases stood on readings the layer had moved past. The strip a copy holds open was read from body's edges though a strip stands beside the column; three banner cases assumed an address the fold now takes; and the chord fixture set two links closer than a chip's face is wide.
leaf-agent
left a comment
There was a problem hiding this comment.
Reviewed as the author — no approval from me on my own PR. All four readings check out against the runtime: refold() in banner-shelf.js does hand focus to overflowBtn when it folds the focused address, so .lf-banner-menu > .lf-version plus .lf-banner-more is what #209 actually draws (and matches the docstring #209 wrote but left the assertion contradicting); .lf-banner-actions { max-width: calc(100% - 34ch) } is the floor that makes oneLine > shown * 1.2 unpayable; and the stacking behaviour the LIVE_KEYS_V1 fixture stopped exercising still has its own home in test_no_address_is_drawn_on_top_of_another.
I reproduced each case on 40c1de4 and confirmed it passes at 46ec807: the wide-banner ratio failed at 545.06 > 478 * 1.2, the phone-banner case at .lf-banner-actions > .lf-version resolving to 0 elements, and the ring walk at no selected example reached the leaves tray. The export test passes across all twelve examples.
One thing worth knowing before this lands, inline: the export band gate can no longer fail on three of the five examples that claim a strip.
|
A parallel The rail paragraph in The whole nightly suite is green with these seven fixed, at CI's own parallelism. The PR ran the four touched modules; the parallel run also ran the remaining nightly modules and One reading is worth a second look: the phone-banner assertion swaps which platform it fails on. The old assert page.locator(".lf-banner-menu > *").count() > 0, (
"a 390px row folded nothing at all, so nothing here is about crossing into one"
)
behind = page.locator(".lf-banner-menu > .lf-version").count() == 1
expect(page.locator(".lf-banner-more" if behind else ".lf-version")).to_be_focused()Replacement for the rail paragraph, and what the other run checked
The deletion is in Nightly runs on
Two cases failed only when the same batches were forced to |
The export gate's band reading asked whether anything under `main` overlapped the claimed strip. A widget asking for width is drawn past the column by design and lands in that band while claiming nothing, so a board or a diagram answered for the rail on three of the five copies that hold a strip: the strip could have been held open for nothing and the band still read as occupied. Measured by exporting each example with `.lf-margin-item, aside.sidenote` hidden — a copy keeping the claim and losing what stands in it — the old reading caught the defect on design-decision and ship-review only, while the narrowed one catches it on all five and stays green on the corpus as it stands. The phone-banner reading follows the address instead of pinning where it lands. Whether the version folds at 390px is a font-width fact: the assertion #209 shipped reads it still on the row, this suite's fonts fold it away, and the two cannot both be pinned. What the test is about is that the fold hands the reader over rather than drops them, which is read now over a row made to fold something. The rail paragraph in `skills/leaf/CLAUDE.md` described the code #213 deleted. `reserveRailForPage` and its `x-state`/`x-work` query are gone; `reserveRail()` now runs unconditionally as `createLivingMargin` builds, and the bake drops the reservation unless a margin item survived into the file.
|
Still red on main, unchanged: run 33654005369 on e1480bc fails the same seven cases this PR fixes, with the same messages — The triggering commit touched Failed test ids from the run |
Problem
The nightly leg of
cihas been red on main since de0f296, with seven cases failing on run 33614395596. None is a product regression: each is a test reading the layer the way it was drawn before #209 landed the banner fold, the reserved rail, and the wider control floors. #209's owncirun was cancelled, so the nightly modules first ran against it two commits later and every stale reading surfaced at once.Solution
Three readings, brought back onto what the layer now draws.
The strip a copy holds open (
test_an_exported_example_stands_on_its_own, button-gallery and ship-review). A strip is whatmaingives up beside itself and--lf-shiftre-centres what is left, so on a window wider than the column plus its strips the leftover room sits outside both. The band was still read from body's edges, which asks about that leftover — nobody's claim, and always empty — while the rail's actual residents stood beside the column. The band is measured from the column's own edges now, and the question is put to the residents that make the claim (aside.sidebar,aside.sidenote,.lf-margin-item) rather than to every descendant ofmain: a widget asking for width is drawn past the column by design and lands in the band while claiming nothing, so the wider reading was answered by a board or a diagram on three of the five copies that hold a strip.Three cases that assumed an address the fold now takes.
test_covering_workspaces_separate_page_paint_from_chrome_target_paintpressed.lf-decisionsat 560px, where the row has folded it; it uses thebanner_addresshelper written for exactly that.test_the_banner_uses_the_page_mark_and_puts_each_edge_by_its_panelasserted the focused address stays on the row at 390px, against its own docstring and againstrefold— whether the version folds at that width is a font-width fact, so the reading follows the address to wherever the fold put it, over a row that has been made to fold something. The ring walk'soffersgate asked whether.lf-otherswas visible, so a folded address read as a page not offering the tray at all, and the walk that did open and walk it never recorded the scope.A fixture the chip face outgrew.
LIVE_KEYS_V1set two links 60px apart with a chip face 63px wide, so the chord took the second chip down — the right answer to a crowded line, and the wrong fixture for a test about a page moving under a press. The links are a clause apart now.The wide-banner case is the one calibration change:
oneLine > shown * 1.2cannot hold, because the row's cap is the sentence's floor stated from the other end, so a crowded row leaves the status its floor and no margin over it. The pressure is stated as the sentence outgrowing its box, and the fixture's crowding is asserted where the row is read — the row folded something.One doc correction rides along, because the export reading rests on it: the rail paragraph in
skills/leaf/CLAUDE.mdstill described the code #213 deleted.reserveRailForPageand itsx-state/x-workquery are gone,reserveRail()now runs unconditionally ascreateLivingMarginbuilds, and the bake drops the reservation unless a margin item survived into the file.Testing
Each case reproduced locally on
40c1de4before the change and passes after. The four touched modules ran whole under--run-nightly—test_render_controls.py,test_render_export.py,test_render_aim.py,test_render_projection.py— 223 passed at46ec807, andtest_render_controls.pyplustest_render_export.pyre-ran at 98 passed after the readings above changed. The everyday suite is 794 passed, 6 skipped.ruff checkandruff format --checkare clean on the touched files. The PR's ownciruns the everyday suite; the nightly leg these cases live in first runs after main moves.What the narrowed band reading catches, per example
Each example exported twice at 1200px, once as it stands and once with
aside.sidebar, aside.sidenote, .lf-margin-item { display: none !important }appended — a copy keeping the claim and losing what stands in it, which is the defect the assertion names.--strip-remptyas it standsmain *[][]['right'][][]['right'][]['right']['right'][][]['right'][]['right']['right']The other seven examples claim nothing (
--strip-r: 0), sohi - lo > 1never lets a band be read at all. No copy claims--strip-l: the sidebar strip is written underhtml:not(.lf-copy), so it is the live page's alone.