Skip to content

Make the catch-up example a workspace whose body is its deck - #7220

Merged
max-sixty merged 1 commit into
mainfrom
choice-walk-fixes
Nov 26, 2026
Merged

max-sixty merged 1 commit into
mainfrom
choice-walk-fixes

Conversation

@max-sixty

Copy link
Copy Markdown
Owner

Makes the catch-up example a workspace whose body is its deck, as #7192's rule now asks of a page whose whole task is a stack of cards taken one at a time. The page never scrolls, so the deck's bar stays put through every answer, m, Back and Later: 229 px in Firefox at both 1100×900 and 1100×720.

Two things the diff doesn't show. The disclosure of what the agent handled moves from below the deck into the header, since as a footer it stood under Leaf's panel at the window's foot. And the page's own style caps each block at the reading column, as page-layout.md asks of a workspace region holding prose; without it the cards' paragraphs ran the window's width. Opening the disclosure at 720 px shrinks the deck to 324 px with its bar still in view, and on a phone the page flows as the column did.

The maintainer chose #7192 on a Leaf page; following the example to it is this session's call, and they haven't read this yet. Checks: pre-commit, and a Firefox journey of five answers, six presses of m, and Back and Later by pointer at both window sizes; the catalog previews are recaptured and repinned.

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

#7192 tells agents to use a workspace when a page's whole task happens in
one view whose height changes as the user works, such as a stack of cards
taken one at a time. The catch-up example is that page, a title, a lede
and a deck of seven cards, and now follows the rule: its header holds the
title, the lede and the disclosure of what the agent handled, and the deck
is the body. The disclosure moves from below the deck into the header,
since at the window's foot it stood under Leaf's panel. The page's own
style caps each block at the reading column, as page-layout.md asks of a
workspace region holding prose; without it the cards' paragraphs ran the
window's width.

In Firefox at 1100x900 and 1100x720 the page never scrolls, and the deck's
bar stays at 229 px through five answers, six presses of m, and Back and
Later by pointer. Opening the disclosure at 720 px leaves the deck 324 px
with its bar in view. On a phone the workspace flows with the page, as the
column did.
@max-sixty
max-sixty merged commit ff22150 into main Nov 26, 2026
6 checks passed
@max-sixty
max-sixty deleted the choice-walk-fixes branch November 26, 2026 04:51
leaf-agent added a commit that referenced this pull request Nov 26, 2026
…bove it (#7256)

Where a deck fills a workspace, as catch-up's does since #7220, its bar
sticks over the cards with the page's background (#7192). The open card
is a named group, so its focus and location rings stood a region's gap
(8px) outside it: the bar, flush above the card, covered their top run,
and the workspace's scroller clipped their sides. The location ring that
`m` draws on arrival showed as only a line under the card. The card now
states its marks one band inside its edge, over the frame it draws, as
`tokens.css`'s "Where it stands" asks of a box with no room outside it.


`tests/journeys/test_render_controls.py::test_each_sampled_focus_ring_is_shown_whole_in_its_surface`
fails on main with the fault in #7246 and passes with this change (`uv
run pytest -n0 … -k
test_each_sampled_focus_ring_is_shown_whole_in_its_surface`, both run
locally in Chrome). `test_every_ring_stands_at_a_kind_of_box` passes.

**What changes on screen:** every deck card's rings, on a column page
too, move from 6px off the card's frame onto it. #6408 settled that a
framed box's ring lies on its frame; this card takes the inset rather
than `0px`, since at `0px` the 2px band still stands outside the border
and under the bar. The new `deck-card-keyboard` state captures catch-up
after `m` (`uv run leaf-dev stills --state deck-card-keyboard`), Chrome,
1440×900:

| main | this PR |
|---|---|
|
![before](https://github.com/user-attachments/assets/188144a2-6672-4091-b068-e6e3c8dffc17)
|
![after](https://github.com/user-attachments/assets/dd5a0d15-7ef8-4861-81d5-b52ae075c799)
|

Closes #7246 — automated triage

Co-authored-by: leaf-agent <[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