Skip to content

Stack a board's columns on a phone instead of paging them sideways - #3869

Merged
leaf-agent merged 2 commits into
mainfrom
grind/e-triage-phone
Oct 27, 2026
Merged

leaf-agent merged 2 commits into
mainfrom
grind/e-triage-phone

Conversation

@max-sixty

@max-sixty max-sixty commented Oct 25, 2026 •

Copy link
Copy Markdown
Owner

On a phone every bucket of a board is now a scroll down away, the gesture the rest of the page already takes, and each column is its own height. The board used to page sideways once its box was 640px or narrower: one column took the width, 8px of the next stood at the edge as the cue, every other column sat behind a sideways swipe nothing else on the page asks for, and every column stretched to the tallest one's height. On triage-board at 390px the one blocking card was followed by 500px of empty field and the release rationale stood 1013px down. Stacked, the first screen shows the blocking column and the start of the next, and the rationale follows the last column.

The fix is the widget's (packages/default/styles/board.css), so every board page gets it; the example's markup is unchanged. The board's grid flows by column and a container query cannot restyle its own container, so the (width <= 640px) query gives each lf-column grid-column: 1 and sparse placement stacks them, in place of the 100cqi minimum width and snap alignment that paged. The boundary is the one the paging already used, so a board wider than 640px lays out as before. The phone's direct destination buttons stay, since a distant column is now a long press-hold drag through autoscroll away; a move still follows the card to where it landed, and the leaf menu's Undo row takes it back.

The keys follow the layout (lf-board.js). Left and Right still change column, now titled "Move it to the previous/next column" rather than "Move it left/right", which a stacked board makes false; a card that shows another widget's answer (#3935) has only these two routes. Where the columns stack, Down past a column's last card continues into the column below at its top and Up past a first card into the column above at its end, the next slot the user sees; side by side, the step past an end still does nothing. The board reads whether the next column stands below it from its own boxes, not from the CSS rule.

Evidence

uv run leaf-dev probe triage-board --viewport 390x844 --touch, column boxes [x, y, w, h]:

base head
board 342 wide, 667 tall, scrollWidth 1296 342 wide, 1593 tall, scrollWidth 342
Blocking release [24, 322, 318, 667] [24, 322, 342, 256]
Fix in 2.4.1 [350, 322, 318, 667] (off screen) [24, 586, 342, 626]
Defer from 2.4 [676, 322, 318, 667] (off screen) [24, 1220, 342, 452]
Needs a repro [1002, 322, 318, 667] (off screen) [24, 1680, 342, 235]
#triage-status top 1013 1939

At 1440 (--viewport 1440x900 --base, light and --scheme dark) the four columns' boxes are identical on both arms and the dark screenshots differ in no pixel. leaf-dev stills --state triage --state triage-grabbed --state activity-feed --state triage-phone --state triage-phone-dark: the three desktop states unchanged, the two phone states (new in the catalogue) changed as above.

A touch journey on the stacked page (probe --touch --journey): tapping "Move Digest email uses server timezone to Defer from 2.4" puts the card in #col-defer, scrolls it into view with its grip focused (scrollY 57 → 1197), hides that column's own button and offers the origin's; the leaf menu's row reads "Undo: Moved to Defer from 2.4 · just now" and tapping it returns the card to #col-next.

Other boards the boundary reaches: the feature gallery's workspace-pane board #bg-layout-board is 410px wide at 1440×900 and now stacks its three columns (each 382×80 at y = 14, 102, 190 inside the board, scrollWidth 410) where it paged them sideways (358px columns at x = 0, 366, 732, scrollWidth 1118). The eight-column test board stacks at a 680px window (632px box) and scrolls sideways at 700px (652px box).

Tests

  • tests/browser/widgets/test_boards.py::test_a_phone_board_stacks_its_columns_and_moves_a_card_by_its_destination_buttons (rewritten from ..._gives_its_column_room_and_keeps_the_next_one_discoverable): columns stack at the board's width, the board doesn't scroll sideways, a destination tap moves the card and follows it, the emptied column stands at its own height.
  • test_a_keyboard_move_keeps_the_card_in_view: the columns arm and test_tabbing_to_a_grip_reveals_its_whole_card move from 390px to 720px (SIDEWAYS), where the eight-column board is wider than 640px and narrower than its floor, and both assert the board scrolls before relying on it; a new stacked arm walks Right down the stacked columns at 390px and checks the document reveals each placement.
  • test_on_a_stacked_board_a_vertical_step_past_a_column_s_end_enters_the_next (new): Down and Up across stacked columns, the no-op past an end side by side, and Escape restoring the origin.
  • tests/browser/test_render_pages.py::test_a_boards_minimum_keeps_the_room_the_column_can_grant: a 540px board now asserts no sideways scroll.
  • Rewritten tests fail against main's built sheet; the new vertical-step test fails against the widget without the #step change. Ran: uv run pytest tests/browser/widgets/test_boards.py tests/browser/test_render_pages.py -k "keyboard_move or tabbing or stacked_board or cancelling or reversing or at_its_floor or taller_grip or phone_board or says_which_column or boards_minimum" -n 2 (16 passed), pnpm run build:browser, pnpm run check:browser, pre-commit on the changed files.

Decisions Max may reverse

  • Stacking replaces paging at the existing 640px container boundary rather than at "fewer than two columns fit", so a pane up to 640px stacks too, the feature gallery's 410px pane board among them.
  • A destination tap keeps following the card to its new column (page scroll on a stacked board), since the result among its new neighbours is the comparison context the move asks for and the leaf's Undo then takes it at once; the alternative keeps the view on the origin column.
  • Left and Right keep their column meaning on a stacked board (previous column is up the screen) and the titles name the column; Down and Up cross into the stacked neighbour past a column's end. The alternative is to leave the arrows as they were and let Down stop at the column's last card.
  • The example's authored order is unchanged: on a phone the rationale still reads after the board, with the lede carrying the one-line version.
  • Undo doesn't carry the view back to the origin column (the card returns above the viewport). A board gesture leaves no reversal with retainGesture, which the widget API doesn't expose; left as a follow-up.

Not verified

  • The catalogue still for triage-board is a desktop first screen, which is unchanged; wt refresh-previews not run.
  • Firefox and a real iOS device: Chromium only.
  • The route titles in the command reference dialog, by eye; no test reads them.
  • pnpm run check and the broad suite, which land runs.

Part of #4023.

On landing, update #4023: triage-board is done.

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

@leaf-agent leaf-agent left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[P2] Update the keyboard reveal test for stacked columns. Running uv run pytest 'tests/browser/widgets/test_boards.py::test_a_keyboard_move_keeps_the_card_in_view[columns]' -q -n0 fails at the horizontal-overflow premise: it resizes to 390px and requires board.scrollWidth > board.clientWidth, which this change deliberately removes. It therefore never exercises the keyboard move or Escape return, and the changed browser test file brings this failure into PR CI. Preserve the sideways reveal case at a board width above 640px, and have the stacked case check vertical visibility and document scrolling through the moves and cancellation.

On a phone every bucket of a board is now a scroll down away, the gesture the
rest of the page already takes, and each column is its own height. The board
used to page sideways once its box was 640px or narrower: one column took the
width, 8px of the next stood at the edge as the cue, every other column sat
behind a sideways swipe nothing else on the page asks for, and every column
stretched to the tallest one's height, so on `triage-board` at 390px the one
blocking card was followed by 500px of empty field and the release rationale
stood 1013px down. Stacked, the first screen shows the blocking column and the
start of the next, and the rationale follows the last column.

The fix is the widget's, so every board page gets it, the feature gallery's
410px workspace-pane board included. The board's grid flows by column and a
container query cannot restyle its own container, so the `(width <= 640px)`
query gives each `lf-column` `grid-column: 1` and sparse placement stacks them,
in place of the `100cqi` minimum width and snap alignment that paged. The
boundary is the one the paging already used, so a board wider than 640px lays
out as before: at 1440 the four columns' boxes are identical to the base, light
and dark, and the `triage`, `triage-grabbed` and `activity-feed` stills are
unchanged. The phone's direct destination buttons stay, since a distant column
is now a long press-hold drag through autoscroll away; a move still follows the
card to where it landed, and the leaf menu's Undo row ("Undo: Moved to Defer
from 2.4 · just now") takes it back, driven by touch on the stacked page.

The keys follow the layout. Left and Right still change column, titled "Move it
to the previous/next column" rather than left and right, which a stacked board
makes false; and where the columns stack, Down past a column's last card
continues into the column below at its top and Up past a first card into the
column above at its end, the next slot the user sees, while side by side the
step past an end still does nothing.

Tests change the behavior they protect: the phone board test asserts the
columns stack at the board's width rather than page sideways, and the board
minimum test asserts a 540px board no longer scrolls. The sideways fixtures
(keyboard move along columns, Tab revealing a whole card) move from 390px to
720px, where the eight-column board is wider than 640px and narrower than its
floor, with a precondition that it scrolls; the keyboard-move test gains a
stacked arm, and a new test covers the vertical step across stacked columns.
Each fails on `main` and passes here. `triage-phone` and `triage-phone-dark`
join the stills catalogue.

Co-Authored-By: Claude Fable 5.1 <[email protected]>
@max-sixty
max-sixty force-pushed the grind/e-triage-phone branch from 6269869 to 4beb951 Compare October 25, 2026 04:25
max-sixty added a commit that referenced this pull request Oct 25, 2026
The backlog is now GitHub issues labelled `backlog`. Every item under
Now, Next and Etc in `TODO.md` became one issue, so a pull request that
says `Closes #N` links itself to its item, and a session finds untaken
work with a query instead of reading a file that has no claim signal.
#4000 landed first, so none of the new issues started a triage run (all
82 `tend-triage` runs were skipped).

**Query.**

```bash
gh issue list --search "label:backlog label:now -label:waits-on-user -linked:pr"
```

then `label:next` and `label:etc`. `-linked:pr` leaves out issues a pull
request already links with a closing keyword.

**What moved where.**

- 82 issues from #4007 to #4089 (#4067 is another session's), one per
bullet. Each is labelled `backlog` and its priority: 13 `now`, 29
`next`, 40 `etc`. Now and Next items also carry a theme mapped from
their `###` heading: `ux` (User experience; User continuity and mobile
access), `agent-experience` (Agent and author experience; The agent's
text interface), `layout` (Layout; Layout stability; Queues),
`review-tools` (Before/after comparison; Recorded interaction review)
and `dev-velocity`. Etc's two headings, Product and harness ideas and
Implementation candidates, sort kinds rather than subjects, so those
items carry no theme.
- 14 items also carry `waits-on-user`, the "Waits on the user" marking
from #3891 (`todo-review`), and their bodies take that branch's wording,
including its rewrite of the held-news item as "Keep a held-news count
whole as it grows" (#3459 landed the "+N" route). `TODO.md` says what
the label means, and the query above leaves those items out.
- After the migration, #3891's author asked for three more edits from
the grind PRs that touch these items: #4039 is retitled "Decide whether
Pixels should soften redrawn-shadow fringes" (#3838), #4039 and #4048
(#3840) also carry `waits-on-user`, and #4098, "Keep a window preference
from cramping a dashboard into a workspace", is the item #3913 puts in
place of #4033.
- Each title is the bullet's bold outcome. For the bullets whose bold
text is a label ("Multiplayer:", "MCP Apps:"), the title adds the
bullet's first clause.
- Each body is the bullet's text with its hard wraps joined (GitHub
renders a single newline as a line break), relative links made absolute,
and `notes/` paths linked. A footer gives the bullet's `TODO.md`
permalink, its heading, its position within its priority, the old `TODO
#N` id for the six that had one, and the theme section's introduction
where there was one. #4014's mention of the reply-widgets item now links
#4089.
- `TODO.md` keeps "Biggest current challenges" unchanged. Its priority
explanation now says the items live in issues, what the labels mean, and
how to query them.
- `/developing-leaf` gains "Take a backlog item": pick an unclaimed
issue that isn't waiting on the user, and open the PR early with `Closes
#N`. It points at `TODO.md` for the query, so the rule and the query
each have one home.
- Every reference to a current `TODO.md` item now names its issue:
`AGENTS.md`'s repository map, `/developing-leaf`, the thread snapshot
skips, `journey.py`, `thread_snapshots.py`, `llm.py`, `test_tabs.py`,
the Worker, two eval comments and five notes.
- #3891's two note edits come along (`notes/browser-support.md`'s
recheck rule, `notes/user-feedback-responsiveness.md`'s retired tone
lever), since #3891 will drop its `TODO.md` changes.

**Order.** Each issue's footer records its old position ("item 6 of 13
in Now"). I didn't keep an ordered index in `TODO.md`: it would be a
second list of the backlog that every new issue has to be added to by
hand, and it would drift from the labels. The priority label is the
ordering that stays current.

**Duplicates.** None of the 15 open issues duplicated an item, so every
item is a new issue.

**Mapping.** The old-item-to-issue table, with open PRs whose titles
match an item, is below; the same table is at
`~/.tmp/leaf.agent-afd0a8c0d63089ed9/backlog-mapping.md`.

<details><summary>82 items</summary>

| Issue | Priority | Old position | Old id | Title | Possible PRs |
|---|---|---|---|---|---|
| [#4007](#4007) | now › User
experience | 1 (TODO.md line 43) | | Make complete reading journeys feel
coherent | #3860, #3865 |
| [#4008](#4008) | now › User
experience | 2 (TODO.md line 47) | | Keep the Thread hierarchy clear | |
| [#4009](#4009) | now › User
experience | 3 (TODO.md line 49) | | Keep a long Thread's current status
visible | |
| [#4010](#4010) | now › User
experience | 4 (TODO.md line 53) | | Test annotation placement in
context (waits-on-user) | |
| [#4011](#4011) | now › User
experience | 5 (TODO.md line 57) | | Make the next move and its result
apparent | #3879 |
| [#4012](#4012) | now › User
experience | 6 (TODO.md line 62) | TODO #28 | Finish the floating panel
(waits-on-user) | |
| [#4013](#4013) | now › User
experience | 7 (TODO.md line 69) | | Keep a held-news count whole as it
grows (waits-on-user) | |
| [#4014](#4014) | now › User
experience | 8 (TODO.md line 80) | | Stop moving live content between
parents | |
| [#4015](#4015) | now › Agent
and author experience | 9 (TODO.md line 94) | | Wake idle Codex desktop
chats without user messages | |
| [#4016](#4016) | now › Agent
and author experience | 10 (TODO.md line 99) | | Consider a reminder
when revising decided content (waits-on-user) | |
| [#4017](#4017) | now › Agent
and author experience | 11 (TODO.md line 104) | TODO #20 | Act on the
plain HTML comparison | |
| [#4018](#4018) | now › Agent
and author experience | 12 (TODO.md line 118) | | Keep delegated work in
the panel's status on Codex and Pi | #3854 |
| [#4019](#4019) | now › Agent
and author experience | 13 (TODO.md line 123) | TODO #24 | Measure time
to an initial reviewable page and the value of review | |
| [#4020](#4020) | next | 1
(TODO.md line 149) | | Add a host-owned widget LLM allowance
(waits-on-user) | |
| [#4021](#4021) | next › User
continuity and mobile access | 2 (TODO.md line 159) | | Bring back a
rewrite Escape discarded | #3862 |
| [#4022](#4022) | next › User
continuity and mobile access | 3 (TODO.md line 163) | | Decide when a
page merits a separate phone composition (waits-on-user) | |
| [#4023](#4023) | next › User
continuity and mobile access | 4 (TODO.md line 169) | | Improve
maintained examples through a phone-quality queue | #3869, #3899, #3902
|
| [#4024](#4024) | next › User
continuity and mobile access | 5 (TODO.md line 175) | | Decide whether
Back may restore a leaf.page page whole (waits-on-user) | |
| [#4025](#4025) | next › User
continuity and mobile access | 6 (TODO.md line 182) | | Consider
automatic Leaf recovery on resume | |
| [#4026](#4026) | next › User
continuity and mobile access | 7 (TODO.md line 185) | | Verify the
native phone reading journey | |
| [#4027](#4027) | next › User
continuity and mobile access | 8 (TODO.md line 189) | | Finish what a
phone user still cannot reach | #3856, #3868, #3874, #3875 |
| [#4028](#4028) | next › User
continuity and mobile access | 9 (TODO.md line 199) | | Reconsider
thread navigation (waits-on-user) | |
| [#4029](#4029) | next › Layout
| 10 (TODO.md line 224) | | Show returning threads without moving the
current reading | #3883 |
| [#4030](#4030) | next › Layout
| 11 (TODO.md line 229) | | Let a page restyle Leaf's chrome on purpose
(waits-on-user) | |
| [#4031](#4031) | next › Layout
| 12 (TODO.md line 235) | | Let a block be a workspace | |
| [#4032](#4032) | next › Layout
| 13 (TODO.md line 245) | | Show each floating surface across the
content it can hold | |
| [#4033](#4033) | next › Layout
| 14 (TODO.md line 275) | | Test the Layouts on agents | #3913 |
| [#4098](#4098) | next › Layout
| 14, added by #3913 in #4033's place | | Keep a window preference from
cramping a dashboard into a workspace | |
| [#4034](#4034) | next › Layout
| 15 (TODO.md line 285) | | Layout values that wait for a task:
list-detail on a phone, canvas regions, slides | |
| [#4035](#4035) | next › Layout
| 16 (TODO.md line 288) | | Decide whether a too-narrow table fails a
page at the fixed widths (waits-on-user) | |
| [#4036](#4036) | next › Layout
stability | 17 (TODO.md line 298) | | Keep what a live revision adds
above the reader from moving it | |
| [#4037](#4037) | next › Layout
stability | 18 (TODO.md line 304) | | Keep the merge film's controls
still as it steps | |
| [#4038](#4038) | next › Queues
| 19 (TODO.md line 314) | | Keep the open item's group named on a phone
| #3853 |
| [#4039](#4039) | next ›
Before/after comparison | 20 (TODO.md line 323) | TODO #29 | Decide
whether Pixels should soften redrawn-shadow fringes (waits-on-user; was
"Explain the faint amber halo in Pixels") | #3838 |
| [#4040](#4040) | next ›
Recorded interaction review | 21 (TODO.md line 333) | | Explore DOM
selection in the imported timeline | |
| [#4041](#4041) | next › The
agent's text interface | 22 (TODO.md line 343) | | Decide the Leaf-owned
defects the bad-pages eval left open (waits-on-user) | |
| [#4042](#4042) | next › The
agent's text interface | 23 (TODO.md line 350) | | Read the full render
gate after handover | #3888 |
| [#4043](#4043) | next › The
agent's text interface | 24 (TODO.md line 366) | | Consider loading a
page once per render check (waits-on-user) | |
| [#4044](#4044) | next › The
agent's text interface | 25 (TODO.md line 372) | | Derive the waiting
status from the page's open obligation | |
| [#4045](#4045) | next ›
Development velocity | 26 (TODO.md line 380) | | Require `test` on
`main` again (waits-on-user) | |
| [#4046](#4046) | next ›
Development velocity | 27 (TODO.md line 386) | | Resume the thread
appearance gate (waits-on-user) | |
| [#4047](#4047) | next ›
Development velocity | 28 (TODO.md line 394) | | Guard thread appearance
on CI again | #3896 |
| [#4048](#4048) | next ›
Development velocity | 29 (TODO.md line 404) | | Keep the agent
journey's samples (waits-on-user) | #3840 |
| [#4049](#4049) | etc › Product
and harness ideas | 1 (TODO.md line 420) | | Consider Redo and a Changes
panel | |
| [#4050](#4050) | etc › Product
and harness ideas | 2 (TODO.md line 433) | | Link filenames to their
repository context | |
| [#4051](#4051) | etc › Product
and harness ideas | 3 (TODO.md line 438) | | Revisit the Claude desktop
app opening a page's file over the live page | |
| [#4052](#4052) | etc › Product
and harness ideas | 4 (TODO.md line 448) | | Decide the site's structure
before release | |
| [#4053](#4053) | etc › Product
and harness ideas | 5 (TODO.md line 451) | | Assess whether automatic
measurement freshness is useful | |
| [#4054](#4054) | etc › Product
and harness ideas | 6 (TODO.md line 457) | | Revisit where an abandoned
comment's words come back | |
| [#4055](#4055) | etc › Product
and harness ideas | 7 (TODO.md line 462) | | Revisit a pin's icons if
they read unclearly | |
| [#4056](#4056) | etc › Product
and harness ideas | 8 (TODO.md line 466) | | Revisit the reaction
tokens' meanings or glyphs if they confuse | |
| [#4057](#4057) | etc › Product
and harness ideas | 9 (TODO.md line 471) | TODO #30 | Try a feed of
ready-to-approve actions | |
| [#4058](#4058) | etc › Product
and harness ideas | 10 (TODO.md line 477) | | Explore independent jobs |
|
| [#4059](#4059) | etc › Product
and harness ideas | 11 (TODO.md line 480) | | Tell the agent when to ask
before ending its own to-do | |
| [#4060](#4060) | etc › Product
and harness ideas | 12 (TODO.md line 485) | | Let the user edit items in
the On view | |
| [#4061](#4061) | etc › Product
and harness ideas | 13 (TODO.md line 489) | | Multiplayer: let several
users share a page, each recorded as themselves | |
| [#4062](#4062) | etc › Product
and harness ideas | 14 (TODO.md line 495) | | Show which pane has focus,
and move between panes by key | |
| [#4063](#4063) | etc › Product
and harness ideas | 15 (TODO.md line 508) | | Expand everything waiting
with a keypress | |
| [#4064](#4064) | etc › Product
and harness ideas | 16 (TODO.md line 514) | | Let a user add, remove and
edit table rows | |
| [#4065](#4065) | etc › Product
and harness ideas | 17 (TODO.md line 519) | TODO #16 | Named widget
interfaces: let a typed reference name the interface its target
implements | |
| [#4066](#4066) | etc › Product
and harness ideas | 18 (TODO.md line 523) | | Visual review beside Leaf:
coordinate a real browser target through the harness | |
| [#4068](#4068) | etc › Product
and harness ideas | 19 (TODO.md line 526) | | Other harnesses: add a
blocking `leaf wait` route when another harness needs it | |
| [#4069](#4069) | etc › Product
and harness ideas | 20 (TODO.md line 528) | | Consider Leaf running the
agent session | |
| [#4070](#4070) | etc › Product
and harness ideas | 21 (TODO.md line 533) | | Decide whether an exported
page carries its threads | |
| [#4071](#4071) | etc › Product
and harness ideas | 22 (TODO.md line 540) | | Character bindings: let
users disable them | |
| [#4072](#4072) | etc › Product
and harness ideas | 23 (TODO.md line 541) | | Replacement diffs and
visual masks for repeated reviews | |
| [#4073](#4073) | etc › Product
and harness ideas | 24 (TODO.md line 543) | | Motion evidence: define
video, caption and transcript handling | |
| [#4074](#4074) | etc › Product
and harness ideas | 25 (TODO.md line 545) | | Revisit long-thread
folding after using summaries | |
| [#4075](#4075) | etc ›
Implementation candidates | 26 (TODO.md line 551) | | Remove the
early-key hold once startup is fast on slower machines too | |
| [#4076](#4076) | etc ›
Implementation candidates | 27 (TODO.md line 578) | | Draw the margin's
annotations once per thread pass | #3864 |
| [#4077](#4077) | etc ›
Implementation candidates | 28 (TODO.md line 587) | | Read moves exactly
where the before/after pair is a browser's capture | |
| [#4078](#4078) | etc ›
Implementation candidates | 29 (TODO.md line 597) | | Reduce
plugin-update downloads by cleaning Git history | |
| [#4079](#4079) | etc ›
Implementation candidates | 30 (TODO.md line 605) | | Set
interaction-trace privacy before sharing pages | |
| [#4080](#4080) | etc ›
Implementation candidates | 31 (TODO.md line 610) | | Make a leaf.page
dispatch survive its container | |
| [#4081](#4081) | etc ›
Implementation candidates | 32 (TODO.md line 616) | | Start each
release's containers on its own image | |
| [#4082](#4082) | etc ›
Implementation candidates | 33 (TODO.md line 629) | | Push page updates
instead of polling | |
| [#4083](#4083) | etc ›
Implementation candidates | 34 (TODO.md line 670) | | Claude Code tool
observation: a cheap hook for sessions holding pages | |
| [#4084](#4084) | etc ›
Implementation candidates | 35 (TODO.md line 672) | | Measure Leaf's
hook cost for sessions holding pages | #3876 |
| [#4085](#4085) | etc ›
Implementation candidates | 36 (TODO.md line 677) | | Invoker commands:
test `command` and `commandfor` once Leaf's Chromium floor allows | |
| [#4086](#4086) | etc ›
Implementation candidates | 37 (TODO.md line 681) | | MCP Apps: rebuild
inline hosting as a direct resource | |
| [#4087](#4087) | etc ›
Implementation candidates | 38 (TODO.md line 692) | | Release labels:
prefer an exact tag when Leaf adopts named releases | |
| [#4088](#4088) | etc ›
Implementation candidates | 39 (TODO.md line 693) | | Diff controls:
author-configurable wrapping and per-file review tracking | |
| [#4089](#4089) | etc ›
Implementation candidates | 40 (TODO.md line 695) | | Show a reply's
widgets in every view of it | |

</details>

**Not migrated cleanly.**

- Each section introduction (Layout, Layout stability, Queues, Recorded
interaction review) is copied into every issue of its section, since a
label can't carry it.
- Eval fixtures that quote a past session mentioning `TODO.md`
(`assessment-surfaces-pending-decisions`,
`record-asks-hold-their-premise`, `options-*`) are recorded inputs and
stay as they were. Two eval provenance comments and one line of
`notes/agent-usability-evals.md` name items that left `TODO.md` before
this change, so they have no issue to point at.
- The fold-button entry #3891 corrected is in neither `TODO.md`, and
#3928 fixed it, so it has no issue.

> _This was written by Claude Code on behalf of max-sixty_

---------

Co-authored-by: Claude Opus 5.5 (1M context) <[email protected]>
max-sixty added a commit that referenced this pull request Oct 25, 2026
The overnight page relayed #3898's playground layout call, and #3869's and
#3865's spacing calls, as text. Max: "it's totally impossible to review this
sort of thing with text". `/developing-leaf` already handed visible changes off
as still pairs, but said nothing of a UI call a PR body leaves open or a page
relays from it. Now every UI option left to the user carries a still, sketch,
diagram or live sample, and `/grinding-backlog`'s handover points there.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Main's #3935 builds the grip's arrow routes once, dropping up and down for a
card that shows another widget's answer; the merge names the left and right
routes for the column there. #3921's travels flag stays on the move route.
stills keeps both the phone states and main's metrics states.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@max-sixty
max-sixty marked this pull request as ready for review October 27, 2026 05:21
max-sixty added a commit that referenced this pull request Oct 27, 2026
…tep (#3899)

Second item of the phone-quality queue (#4023, "Improve maintained
examples through a phone-quality queue"), after `triage-board` (#3869).

## What changed

- `examples/security-boundary.html`: the "Before: workspace ownership
crossed phases" flow is drawn `flowchart TD` instead of `LR`, with
`data-height` set to the drawing's new 449px. Leaf's own `lf-diagram`
instruction asks for top-down on a chain longer than three steps; this
example predates the instruction (#438 vs #3593) and was the one shipped
page still drawing a long chain sideways.
- `tests/browser/test_render_gate.py`: the scrollbar-clearance test
reads this example for a drawing wider than a 678px viewport, so it now
turns the chain back to `LR` in the source it serves, beside the
`data-height` it already rewrote.
- `dev/leaf_dev/commands/stills.py`: four `security-flow*` states (1440
and 390, light and dark) so the drawing has a before/after pair.

## Why this example

Every catalogue example was opened at 390×844 under a coarse pointer and
its first two screens read, with a journey that lists elements wider
than the viewport, boxes that scroll sideways and controls under 32px
(`.tmp/phone/journey.py` in the worktree; `uv run leaf-dev probe
<example> --viewport 390x844 --touch --journey …`). Five examples had
content scrolling sideways:

| example | what scrolls sideways at 390 | verdict |
| --- | --- | --- |
| security-boundary | the five-step flow: 1150px drawing in a 342px box;
the three red boxes, the point of the figure, off the edge | **fixed
here** |
| data-explorer | result table 480px in a 336px frame; the Risk column,
the field the filters act on, cut off; sticky controls hold 27% of the
screen | next |
| alert-review | nine-tab strip of 2419px shows under two alert names;
`lf-tabs`' phone design, with Next on me and chevrons reaching the rest
| design, not a defect |
| code-comparison | code reader 761px wide (inherent to code); sticky
controls hold 36% of the screen | after data-explorer |
| dynamic-widgets | tab strip 458px in 340px | minor |
| github-discoveries | a `pre` 811px wide | minor |

Controls under 32px on touch, which the widgets own rather than the
examples: the code reader's Copy (17×17 bounding box; whether a
pseudo-element widens its hit area wasn't checked), `lf-option-control`
marks (11–19px, though the option card may be the target),
release-notes' `.handle` (30px), rust-sort's scrubber (16px tall).

## Why content, not the widget

`packages/diagram/theme.css` records that a drawing is never scaled or
re-laid out (labels would fall below legibility; comment coordinates sit
on the drawn boxes), and the registry's `x-instructions` already tell
authors to draw long chains top-down. A widget that re-rendered `LR` as
`TD` when its box is narrower than the drawing would reverse that record
and add a second render per resize for one case the instruction covers,
so the example follows the instruction instead. That is a call Max may
reverse.

## Evidence

Before and after, from `uv run leaf-dev stills --authored --state
security-flow --state security-flow-dark --state security-flow-phone
--state security-flow-phone-dark` (crops under
`.tmp/stills/run-uwteeakp/` in the worktree, gathered on a Leaf page at
`.tmp/phone/evidence/`, `page check` clean):

- 390×844, touch: before, `clientWidth` 342 / `scrollWidth` 1150, two of
five steps visible; after, 342 / 342, drawing 256×449, all five steps
and the three red ones in view. Same in dark.
- 1440×900: before, the `LR` chain grew into the margins and fit (1392px
wide, 77px tall); after, a 449px-tall column on the prose axis. Nothing
is clipped at 1440; a desktop reader scrolls about half a screen more
past the figure. Same in dark.
- Touch journey (`.tmp/phone/touch-journey.py`, recorded to
`.tmp/phone/touch/worktree/{recording.gif,trace.zip}`): panel menu →
Annotate → target picker → tap "Same tree handed to agent" → composer
quotes `§ diagram · Same tree handed to agent` → type → Comment → margin
preview with the box marked. Passes on both drawings; on main's `LR`
drawing the box's rectangle was outside the viewport before the tap
(`box_in_viewport: false`), on this one it is in view (`true`).

## What ran

- `uv run pytest tests/browser/test_render_gate.py -k
test_a_diagrams_reserved_box_includes_its_scrollbar_clearance` (3
passed)
- `uv run pytest tests/journeys/test_render_gate.py -k
"test_page_fixture_renders and security"` (1 passed: the corpus render
gate on this page, which reports an unreserved or wrong `data-height`)
- `uv run pytest dev/tests/model/test_stills.py` (3 passed)
- pre-commit on the changed files

Not verified: a real phone (emulation only), Firefox, and the public
catalogue still (`wt refresh-previews` is not run from a draft; the
example's first screen doesn't change, since the flow is below the
fold).

Part of #4023.

**On landing, update** #4023: `security-boundary` is done.

> _This was written by Claude Code on behalf of max-sixty_

Co-authored-by: Claude Fable 5.1 <[email protected]>
@leaf-agent
leaf-agent merged commit 996b23b into main Oct 27, 2026
5 of 6 checks passed
@leaf-agent
leaf-agent deleted the grind/e-triage-phone branch October 27, 2026 05:47
leaf-agent added a commit that referenced this pull request Oct 27, 2026
The clipped-card commenting test still expected the phone paging layout
that #3869 intentionally replaced with stacked columns. Its second card
was fully visible, so the test stopped before exercising clipped
targeting.

Use the existing eight-column crowded-board fixture at 720px, where
columns remain side by side and overflow. Position the fourth card with
a 24px visible sliver, assert that it is clipped, then choose it through
the keyboard target picker. The whole-card route and the assertions that
the clipped card, board scroll position and comment target remain
correct are retained. This changes test setup only and preserves #3869's
phone layout.

The reported test failed locally before the change with `visible: 326,
width: 326` and passes after it. Pre-commit checks pass. The preceding
run's JUnit records this case passing; the reported run records the same
failure reproduced locally.

Closes #4382 — automated triage

Co-authored-by: leaf-agent <[email protected]>
leaf-agent added a commit that referenced this pull request Oct 27, 2026
The sample containment test relied on a three-column board overflowing
at phone width. #3869 intentionally stacks those columns, so the board
now fits and the test fails its setup assertion before checking
containment.

Use a dedicated scrolling exhibit with an explicit 600px child instead.
This keeps the sample's containment coverage independent of responsive
widget layout and preserves #3869's behavior. No product rendering
changes.

The original test fails on current main with a 305px board in a 380px
viewport. The revised test passes; temporarily replacing the sample's
`table-layout: fixed` with `auto` makes it fail with a 627px sample in
that viewport. Earlier push run 40452531123 records the original test
passing before #3869; run 40459654718 records the setup failure after
it.

Closes #4385 — 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