Skip to content

fix: let a drafted field reach the panel row's end - #4105

Merged
max-sixty merged 1 commit into
mainfrom
field-reaches-end
Oct 25, 2026
Merged

max-sixty merged 1 commit into
mainfrom
field-reaches-end

Conversation

@max-sixty

Copy link
Copy Markdown
Owner

Since #3651 the floating panel's exit seat keeps Close's width even when it is empty, so a view closing on its own leaves the On me and Threads counts where they were. That room also stood while the user typed on the page, where the counts step aside and nothing else uses it, so the field stopped 34 px short of the row's end, leaving an empty stretch after Send.

The seat now keeps its room only while the counts stand. Once a draft steps them aside, an empty seat collapses and the field runs to the row's end, as it did before #3651. With a view open, Close still stands in the seat and nothing changes.

leaf-dev probe alert-review --base, with the caret in the field and one key typed: the field's right edge goes from 950 px to 982 px, against a row inner end at 984 px (the 2 px is the row's flex gap). The empty field and the Threads view with Close measure the same on both arms. test_send_stands_in_the_counts_place_while_the_field_holds_a_draft now asserts the field reaches the row's end; it fails at 34 px with the new rule removed from the served sheet.

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

Since #3651 the floating panel's exit seat keeps Close's width when it is
empty, so a view closing on its own leaves the On me and Threads counts
where they were. That room also stood while the user typed on the page,
where the counts step aside and nothing else uses it, so the field
stopped 34 px short of the row's end with an empty stretch after Send.

The seat now keeps its room only while the counts stand. Once a draft
steps them aside an empty seat collapses and the field runs to the row's
end, as it did before #3651; with a view open, Close still stands there.
The drafted-field test now asserts the field reaches the row's end.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
@max-sixty
max-sixty merged commit 2a71c93 into main Oct 25, 2026
4 checks passed
@max-sixty
max-sixty deleted the field-reaches-end branch October 25, 2026 19:39
max-sixty added a commit that referenced this pull request Oct 25, 2026
The Leaf panel's row used to end in an On me mark, a Threads mark, and a
seat kept empty for the ✕ (#3651). That left a gap at the row's end and
cut the status words short. Now the row ends in one seat holding one
button. At rest it is the On me mark, with its count and a dot while a
thread holds an unread reply. While a view, stance or search is open, it
is the way out (Close, Exit Draw mode, Close search…), in exactly the
mark's place. The press that opens a view leaves the user on what closes
it, and nothing needs room kept. A draft with no way out standing still
lets the field reach the row's end (#4105).

Threads is now a tab of the On view (On me · On ‹agent› · Threads ·
Plan), since On me already lists a thread message that waits on the user
(#3666). Its Open/Unread/Drafts/Resolved filters are gone. Open threads
come first, each saying New or Draft, then resolved ones under a
Resolved heading, as Done items stand under On me. With nothing on the
user but an unread reply, the mark opens Threads directly. `g T` and `g
M` are unchanged.

The user chose this design from three candidates on a Leaf exploration
page: today's row, the two marks tidied with the ✕ before them, and this
one.

What users lose: the open-thread count moves from the row to the Threads
tab; Threads by pointer is the mark, then its tab; the On me count is
out of sight while a view or stance stands.

Navigating the diff:

- `browser/runtime/floating-panel.js`: the seat (`quick`, `seatHeld`,
the one button in `paintNow`), `onTabs`/`onTab`, `threadsView` and
`pressMark`. The header records the decision and the rejected
alternatives.
- `browser/styles/floating-panel.css`: the seat's fixed width; the exit
seat and the second mark's rules are removed.
- `lf-sample`'s `showThread` drops `status: "resolved"`, which only
chose a filter.
- Tests open Threads through one pointer helper
(`dev/leaf_dev/browser.py`, `open_threads`, re-exported by
`tests/render_harness.py`); tools that run one checkout's driver against
another's runtime (`stills`, `bench-latency`, thread snapshots,
`verify-site`) use `go_to_threads` (`g T`), which both runtimes share.
Tests read the open count through the runtime's `threadCounts`, now on
the check API. About 70 test files move to the new selectors; tests
whose subject was a filter or the second mark were rewritten for the new
behaviour, none deleted.
- Prose: the glossary's Leaf panel entry, `docs/how-it-works.html`,
`docs/threads.html`, the two developer galleries and `live-samples.md`.

Checked: `pnpm run test:runtime`, `pnpm run check:browser`, ruff and
pre-commit, and about 40 selected browser tests (opening Threads, the
Resolved section, unread news, focus and rings, Draw-mode exit, the
drafted field reaching the row's end). A probe on `review-a-plan` showed
the seat's position and width unchanged at rest, in On me, in Threads,
after Close and in Draw mode.

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

---------

Co-authored-by: Claude Opus 5.5 (1M context) <[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