Skip to content

Stand the leaf at the panel row's end, in place of the On Me mark - #6569

Merged
max-sixty merged 9 commits into
mainfrom
panel-leaf-inbox
Nov 20, 2026
Merged

max-sixty merged 9 commits into
mainfrom
panel-leaf-inbox

Conversation

@max-sixty

@max-sixty max-sixty commented Nov 20, 2026 •

Copy link
Copy Markdown
Owner

The floating panel's row drops its On Me mark (the inbox icon). The row is now the field, then the leaf, which takes both roles: it wears the folded leaf's badges, its count of what waits on the user on a pill over its corner and its news and error dots beside it, and a press opens the On view on the tab those marks point at: the menu while an error waits unseen in Errors, else On Me while anything waits, else Threads while a thread has news or a draft waits, else the menu. A second press closes the On view from any tab. A search's or mode's ✕ stands at the field's end, before the leaf. Tab walks the row as it stands: the field, its corner control, then the leaf. The leaf draws no ground, neither the hover fill nor the chip while its view stands open, since its badges stand over its top edge and a tile's edge met them; the user asked for the tile to go, and other symbols keep their chip. Folded, the leaf looks as before, and the fold now gathers into the side the leaf stands on.

Before After
At rest
Draw mode

The badges hang past the leaf's top-left corner, so the leaf stands the row's padding (6px) further off what precedes it: at the row's 2px gap alone, the dots sat on the field's focus ring while the user wrote. That gutter is the one call here the user didn't make; the badge in the row and the press rule are theirs. Now that the field stands first, its slot reaches out to the panel's start edge only while it wears the ring, so the attachment shelf takes its start from the panel's edge and its measure from the editors, which stay put: hung from the slot, a press on a picture moved it from under the pointer. The test changes mostly retarget selectors; leaf_dev.browser.open_menu, on_tab and open_on_me reach the menu and the On view's tabs by pointer whatever the leaf opens on.

Asked for by the user, who picked both the badge and the press rule on the decision page. Tests: the browser tests whose code or helpers this touches and the journeys that press the leaf or call those helpers, locally; pnpm run check:browser; pnpm run test:runtime. A full-suite run on an earlier commit found the tests the new order broke, each rerun since by node id, and a second full run on the head finds nothing this change causes. Of its failures, test_the_shipped_long_thread_keeps_the_margin_and_its_height, test_an_old_document_state_request_cannot_update_the_new_revision and test_page_fixture_opens_without_firefox_console_warnings[thread-panel-gallery] fail in main's nightly run too; test_trace_replaces_captures_without_blank_pixels_or_layout_displacement, where a margin pin lags a script's instant scroll by a frame, fails at the merge base; test_unsaved_words_join_another_tab_s_later_words_in_every_tab trips the words watch #6587 has since fixed on main; and Firefox's test_a_wheel_as_the_thread_gives_up_room_moves_it_as_far_as_without and test_a_carry_draws_the_way_of_a_step_news_may_take[overshoot-False-True] pass 6 of 6 locally. test_presses_and_fills_leave_no_element_naming_stale_keys[file-tree] fails whenever its random sweep leaves the file tree at its list's end, where the vendored tree writes a scrollTop that moves nothing: 2 of 5 local runs on main, and every run here, since the row's one fewer control reshuffles the sweep. #6595, now merged, fixes that write.

Left for a follow-up: a pointer on the leaf brings the panel's corner fold mark over the count, which now holds that corner. Where the mark goes is the user's pick.

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

The floating panel's row was the leaf, the field and the On Me mark. The user
asked for the inbox mark to go and the leaf to take its side and both its
roles. The row is now the field, then the leaf:

- The leaf counts what waits on the user beside its mark, in the room the
  On Me mark kept for its count, and wears the news dot (grey for a draft
  put away) and the error dot at its mark's corner. Folded, it looks as it
  did, and the row now folds into the side the leaf stands on.
- A press opens the On view on the tab those marks point at: the menu while
  an error waits unseen in Errors, else On Me while anything waits on the
  user, else Threads while a thread has news or a draft waits, else the
  menu. A second press puts the On view away from any of its tabs, a view
  it leads to included. Its label and preview name that destination and
  what it counts ("On Me · 2 waiting on me · Away"), which the folded
  leaf's label now says too.
- A search's or a stance's ✕ stands between the field and the leaf, a
  symbol wide, beside the chip that names it; the leaf keeps its place.
- The field no longer gains the mark's room while the user writes, since
  nothing steps aside: opening the field and typing move nothing in the
  row. Its focus box now runs to the panel's left edge.
- More room stands over the leaf at the row's top-right, and the fold mark
  that rides that corner waits while it does.

Reaching the menu while something waits on the user now takes the leaf and
then the Menu tab; On Me takes one press, as the mark's did.

Tests: the selectors and helpers that pressed or read the On Me mark read
the leaf; `leaf_dev.browser.open_on_me` and `on_tab` open a tab of the On
view by pointer whatever the leaf opens on, and `panel_menu` turns the view
to the menu where the leaf opened it on a list. Behavior changes asserted:
the leaf stays visible through a mode and page search; the ✕ stands between
field and leaf with the leaf unmoved
(`test_a_mode_entered_from_the_panel_owns_the_row`); the drafted field runs
to the leaf (`test_send_stands_in_the_field_s_corner_while_the_field_holds_a_draft`);
the caret's box reaches the panel's left edge
(`test_writing_reaches_the_field_however_the_panel_stands`). The stills
state `panel-draw-mode` waited for words the field stopped saying in #6461
and now waits for the mode chip.
The row's leaf stood 55px wide to hold its count and folded to 32px, so the
fold's motion took it for a part that changed size: its mark travelled, but
its badge stood in the window's corner from the fold's first frame, ahead of
the box. The leaf is now one 32px box at the row's end and folded, and its
count stands past that box, in room the leaf keeps beside it, so a fold
carries the leaf, its count and its badges together, as it did before.

The fold's shape, which finishes shrinking before the box arrives, held the
box's start edge, where the leaf used to stand; it now holds the end edge,
where the leaf stands, so the leaf stays inside the box throughout.

Tests and helpers:
- `leaf_dev.browser.open_menu` is the one route to the menu by pointer,
  from a folded panel, a list over the menu or any view; the harness's
  `panel_menu` presses through it and waits for a view the leaf opened to
  stand still before aiming at its tab.
- `panel_control(page, "queue")` is the leaf where it opens On Me.
- The fold test reads the field's words against the leaf they now stand
  beside; a test that wrote a tall draft walks to the leaf by Tab.
- Two sweeps read the status at the end of the leaf's name, which now
  starts with what a press opens; a revision test turns the On view to the
  menu by key after the leaf opened Threads on its draft.
leaf-agent
leaf-agent previously approved these changes Nov 20, 2026
The user chose the badge over the leaf's corner for the row too, over the
count beside the mark in room the leaf kept for it, and said the corner
looked bunched with the menu open and an error waiting. So the row's leaf
wears its badges as it does folded: the count on a pill over its top-right
corner, and the news and error dots beside it, over its top edge. The
count's 22px room and `.lf-fp-num` go, with the fold's rules that swapped
one face for the other.

The badges hang past the leaf's top-left corner, where the dots met the
field's focus ring while the user wrote. The leaf now stands the row's
padding (6px) further off what precedes it, so the field stops 8px short
of the leaf and a mode's ✕ stands 2px off the field and 8px off the leaf.
The two tests that held the field and the ✕ 2px off the leaf now hold
that gutter.

The user also confirmed the press rule as built: the leaf opens where its
marks point, over always opening the menu; the header records it.
leaf-agent
leaf-agent previously approved these changes Nov 20, 2026
…s it stands

The full test run on this branch failed tests that the row's new order
causes, and found one bug in it.

The field's slot reaches out to the panel's start edge while it wears the
ring, now that the field stands first in the row. The shelf of attached
pictures followed that slot, so a press on a picture, which takes focus
from the editor, moved the picture 6px from under the pointer, and a press
near its start edge missed it: the image viewer never opened. The shelf
now follows `.lf-fp-editors`, which stays put as focus comes and goes, and
stands over the editor's start as it did before the change.

Tab now walks the row as it stands: from the page's last control to the
field, the control in its corner (Dictate where the engine can dictate,
else Send), then the leaf. The tests and the `panel_paint` probe that
reached the leaf by Shift+Tab from the field, or the field by Tab from the
leaf, go the other way, and the Tab-order test now holds the whole walk.
The view-close journey holds the field reaching the leaf rather than the
row's end, and the inline-name test holds the preview put away as focus
passes to the field, which previews nothing, where the leaf's own preview
used to replace it. The field's two focus-ring rules are one.
leaf-agent
leaf-agent previously approved these changes Nov 20, 2026
Hung from the editors, the shelf of attached pictures stood still as focus
came and went, but 6px inside the ring's start edge, which the field's box
reaches while the user writes. Before the row's reorder, the shelf stood
flush with the field's box. It now takes its start from the panel's edge,
where that box starts, and keeps its measure from the editors, so it
stands flush with the ring again and still holds still under a press.
leaf-agent
leaf-agent previously approved these changes Nov 20, 2026
max-sixty added a commit that referenced this pull request Nov 20, 2026
…change (#6595)

The file tree's vendored `@pierre/trees` clamps its virtualized list's
scroll against a maximum it computes from the viewport's fractional
`getBoundingClientRect` height, while Chrome holds the box at whole
pixels. So at the list's end each scroll event and model change wrote a
`scrollTop` that moved nothing (1038.94 against the 1039 Chrome holds),
which the write watch reports. This adds a seam in `build/vendor.mjs`
beside the four #6149 added for the same mismatch: the clamp writes only
when the box stands a pixel or more past the maximum. The rebuilt bundle
changes one expression. Firefox keeps fractional offsets and never made
the write.

It surfaced in
`test_presses_and_fills_leave_no_element_naming_stale_keys[file-tree]`,
which fails whenever its random sweep leaves the tree at its end: 2 of 5
local runs on main, and every run on #6569, whose row change reshuffles
the sweep. With the seam it passed 5 of 5 on each. Collapsing a folder
at the list's end still clamps the box to the new end. Ref #6303, whose
list of Nov 17 nightly failures includes this test.

Found while checking #6569's full test run; nobody asked for it
separately. Tests: that node 5 of 5 on main and on #6569 merged; the
file-tree widget's tests by node id; `pnpm run check:browser`.

> _This was written by Claude Code on behalf of max-sixty_
A symbol carrying badges, as the panel's leaf does, now draws no ground: no
library fill under a hovering or pressing pointer, and no chip while the view it
opens stands. The badges hang over the leaf's top edge, and the tile's edge met
them, the dots and the count standing half on the tile and half off it. The user
asked for the tile to go ("the hit box with the logo shouldn't be visible").
Other symbols keep the chip while what they open shows.
@max-sixty
max-sixty merged commit 89f4740 into main Nov 20, 2026
5 of 6 checks passed
@max-sixty
max-sixty deleted the panel-leaf-inbox branch November 20, 2026 21:46
max-sixty added a commit that referenced this pull request Nov 20, 2026
main's #6569 dropped the panel row's On Me mark (ON_ME_MARK); the leaf opens
On Me now, which leaf_dev.browser.open_on_me drives.
max-sixty added a commit that referenced this pull request Nov 20, 2026
The floating panel's fold mark (−) and the corner whose nearness shows
it move from the box's top-right to its top-left. Since #6569 stood the
leaf at the row's end, the leaf's On Me count badge holds the top-right
corner, and a pointer on the leaf faded the mark in over the count. The
top-left is where macOS keeps a window's minimize, at the far end from
the leaf the panel folds to. The user picked this over dropping the
mark, which would leave a pointer two presses from a fold through the
menu.

| Pointer on the leaf, before | Pointer on the leaf, after | Pointer at
the top-left, after |
| --- | --- | --- |
| <img
src="https://gist.githubusercontent.com/max-sixty/053b49be761632a0a211059641f14060/raw/e09931d0ee387cf9eb0ff66dee18f01da36e51fc/before-leaf.png"
width="380"> | <img
src="https://gist.githubusercontent.com/max-sixty/053b49be761632a0a211059641f14060/raw/e09931d0ee387cf9eb0ff66dee18f01da36e51fc/leaf.png"
width="380"> | <img
src="https://gist.githubusercontent.com/max-sixty/053b49be761632a0a211059641f14060/raw/e09931d0ee387cf9eb0ff66dee18f01da36e51fc/corner.png"
width="380"> |

The mark no longer waits out a long draft, since it waited only for the
long draft's more-room mark at the top-right. It still waits while a
view is open, whose head line now holds that corner. With a picture
attached, the mark under a pointer at the corner stands just below the
picture's left edge, without overlap.

`test_a_pointer_folds_the_panel_from_its_corner` now also holds the mark
hidden under a pointer on the leaf, and fails there with the old corner;
it and the fold paint test pass.

> _This was written by Claude Code on behalf of max-sixty_
leaf-agent added a commit that referenced this pull request Nov 21, 2026
…stant (#6646)

Removes text that no longer matches the code, and one unused constant,
found in the nightly survey and commit review. No behavior changes.

- **`README.md`:** drops the paragraph saying Leaf needs Claude Code
2.1.196. The install instruction above it already requires 2.1.275, so
no reader following it reaches the case that paragraph describes.
- **`src/leaf/provenance.py`:** drops two sentences about pages taken to
protocol 43 that keep revisions an earlier Leaf activated. A Leaf serves
only pages at its own protocol (now 53), so that case can't reach this
code, and root `AGENTS.md` ("Stage") keeps old-record handling out of
the tree.
- **`tests/page_scripts/focus_rings.js`:** drops the paragraph about a
joined `lf-options` carrying log news that stands its ring down. It
cites a comment in `packages/default/defaults.css` that is gone, and no
rule in `packages/default/styles/` stands an option group's ring down
any longer. Without it, the comment's "three answers" count matches the
three it lists, where the removed paragraph called a missed case "a
fifth way".
- **`browser/runtime/floating-panel.js`:** drops the history clause
("stood in a tinted notice beside the On Me mark until #5642") from the
standing-words comment. It names the On Me mark, which #6569 removed
from the row, and root `AGENTS.md` sends history to commit messages. The
current rule stays: the version stands in the field's words, and a
stance is named in the mode chip.
- **`packages/default/widgets/lf-draft.js`:** the `updated()` comment
cites `module-state.md`, "Rendering", which doesn't exist. It now cites
"The widget controller", the section whose `updated()` / `dressCode`
example states the rule.
- **`tests/model/test_product_page.py`:** removes `ASSETS`, which
nothing reads.

`tests/model/test_product_page.py` passes. The rest of the change is
comments and prose, so it needs no test.

---------

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