Skip to content

Repair the stills catalogue's broken drivers, and fail the run when a state fails - #4807

Merged
max-sixty merged 5 commits into
mainfrom
agent-a881c7d8c5251d9a5
Oct 31, 2026
Merged

max-sixty merged 5 commits into
mainfrom
agent-a881c7d8c5251d9a5

Conversation

@max-sixty

Copy link
Copy Markdown
Owner

Fifteen leaf-dev stills catalogue states failed to capture on every run, base and head alike, so no stills comparison covered them, and nothing said so: the command printed a failed line 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 stills writes its whole report as before, faces.txt included, then exits 1 if any state failed. Its module header states the rule, and test_stills.py's failed-driver and failed-analysis tests expect it.

Thirteen drivers followed a UI that has since moved

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.html is a runbook laid out as the site's docs pages are (.layout-sidebar with the contents in aside > .layout-track beside 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

  • The 13 repaired states, the eight contents states and topic-contents captured on two consecutive runs; each new capture was read by eye (the filter at "0 of 46", the capture area mid-drag, the closed worktree row, the picked option, the focused link, the map at rest and revealed over the column).
  • dev/tests/model/test_stills.py passes, and fails with the new exit removed. The fixture passes leaf page check --render with 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.

This was written by Claude Code on behalf of max-sixty

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.
@max-sixty
max-sixty merged commit b82e0b6 into main Oct 31, 2026
4 checks passed
@max-sixty
max-sixty deleted the agent-a881c7d8c5251d9a5 branch October 31, 2026 04:19
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_
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