Repository navigation
Make the catch-up example a workspace whose body is its deck - #7220
Merged
Merged
Conversation
#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.
leaf-agent
approved these changes
Nov 26, 2026
This was referenced Nov 26, 2026
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 | |---|---| |  |  | Closes #7246 — automated triage Co-authored-by: leaf-agent <[email protected]>
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.
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.mdasks 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.