Repository navigation
Repair the stills catalogue's broken drivers, and fail the run when a state fails - #4807
Merged
Merged
Conversation
Fifteen `leaf-dev stills` states failed on both arms on main, so no stills comparison covered them. Thirteen failed because their driver still followed a UI that later changes had moved: - plan-option-picked, plan-option-card-picked: the driver waited for the live region to say "— sent". Since #4325 an admitted pick is announced as "Chose “…”" alone, so the driver now waits for "Chose “". - share-link, share-link-dark: since #4291 a refused copy of the page's link opens About this page, where the link is read-only text, rather than a field under the menu's About group. The driver now waits for the dialog's source reading, as page-about does, and focuses its Link. share-link frames the dialog's Page details. - diff-filter, diff-filter-phone-dark: #4323 removed the file filter from a diff of one file, and `#pr-key-hunk` holds one file. Both states now filter the walkthrough's 46-file `#pr-exact-patch`. - worktree-summaries, -dark, -phone: since #4724 lf-worktree draws its disclosure in a shadow root and slots the authored evidence, whose own details also matched `#… > details > summary`. The driver now presses the widget's `.lf-worktree-summary`. - plan-capture, -drag, -dark, -touch: since #3814 area capture opens with no rectangle until a drag draws one, so waiting for `.lf-region-selection` to show timed out. `capture_menu` now waits for the Capture area region, as the suite's `open_capture_area` does. contents-over-reading and contents-over-reading-dark still fail. #4724 moved the gallery's lf-toc out of its sidebar into the reading flow, where no margin map draws, so the state's `.lf-toc-start` link is never shown. That is a change to the example rather than to a driver, and is left for a decision.
A stills run reported each failed state but still exited 0, even when every state failed. Callers read the exit status, so thirteen catalogue states went unnoticed while their drivers were broken. The command now finishes the whole report as before, faces.txt included, and then exits 1 if any state failed. A run where every state captured still exits 0. The module header, which owns the failure contract, says so. test_stills.py's failed-driver and failed-analysis tests now expect exit 1, and the first also checks that a run with no failure exits 0.
#4724 moved the feature gallery's lf-toc out of its sidebar into the reading flow, where the contents is a folded "On this page" disclosure at every width. The contents states still read the gallery, so contents-over-reading and its dark variant failed waiting for the map's start link, while contents-spine, contents-spine-keyboard and contents-spine-dark captured the folded disclosure instead of the map. contents-narrow, contents-coarse and contents-phone, which show the sidebar's fallbacks where the map can't draw, showed no sidebar at all. The map draws only in a sidebar's track beside a `.layout-column`, and no corpus page draws one now. pr-walkthrough's sidebar has no `.layout-column`, so its outline stands beside the body, and the gallery's topic-contents sample keeps its in-flow outline even in Full view. A new regression fixture, tests/fixtures/pages/sidebar-contents.html, is a runbook laid out the way the site's docs pages are. All eight contents states now read it: the map at rest, revealed by keyboard and revealed over the reading column at 1100 px, and the folded fallback at 900 px, under a coarse pointer and on a phone. The fixture passes `page check --render` with no findings. The gallery's opening paragraph described the map's rings ("The title has the largest ring…"). The in-flow disclosure draws no rings or current marker, so those two sentences are cut.
leaf-agent
approved these changes
Oct 31, 2026
max-sixty
added a commit
that referenced
this pull request
Oct 31, 2026
…w draws the margin map (#4808) The feature gallery's "An index for each topic" sample tells the reader that in Full view on a wide screen each topic's contents sits in the left margin as a reading map. Since #4724 moved sidebars to native CSS it hasn't: the sample's tabs stand inside its page's `layout-column`, so each tab's `layout-sidebar` gets about 720px of a 1379px Full view and stacks its aside above the body, leaving the index open in the flow. `data-width="available"` on the sample's `lf-tabs` gives the tabs the window, as `page-layout.md` says a block asks for more than the column. Probed at 1440×900 in Chromium and Firefox, Full view now stands the aside (240px) beside a 1017px body and draws the map; embedded in the gallery's column, and in a 1000px Full view, the index still starts open below the tabs, as the sample's prose says. The embedded sample's geometry is identical to main's. This came up while repairing the stills catalogue (#4807), where no example drew the margin map any more. > _This was written by Claude Code on behalf of max-sixty_
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.
Fifteen
leaf-dev stillscatalogue states failed to capture on every run, base and head alike, so no stills comparison covered them, and nothing said so: the command printed afailedline per state and exited 0. They surfaced while comparing a cascade change across the full catalogue (#4805).The command now fails when a state does
leaf-dev stillswrites its whole report as before,faces.txtincluded, then exits 1 if any state failed. Its module header states the rule, andtest_stills.py's failed-driver and failed-analysis tests expect it.Thirteen drivers followed a UI that has since moved
#pr-key-hunkis; the states filter the walkthrough's 46-file#pr-exact-patch.lf-worktreeslots its authored evidence into a shadow disclosure, and the evidence's own<details>also matched the driver's selector. It presses the widget's.lf-worktree-summary.capture_menuwaits for the Capture area region, as the suite'sopen_capture_areadoes.The contents map has a page again
#4724 moved the feature gallery's contents out of its sidebar into the reading flow, where it is a folded "On this page" disclosure, so no example drew the margin map: contents-over-reading failed, and contents-spine and four more states captured the disclosure instead.
tests/fixtures/pages/sidebar-contents.htmlis a runbook laid out as the site's docs pages are (.layout-sidebarwith the contents inaside > .layout-trackbeside a.layout-column), and all eight contents states read it. As a fixture page it also joins the corpus, which had no page drawing the map. The gallery's sentence about the map's rings goes, since its folded disclosure draws none.Checks
dev/tests/model/test_stills.pypasses, and fails with the new exit removed. The fixture passesleaf page check --renderwith no findings.The gallery's topic-contents sample still says its Full view draws the map, which it doesn't since #4724; that is left for its own change.