Repository navigation
Seat a gesture's next step on the phone banner row, and floor Web Awesome fields at 16px - #979
Merged
Merged
Conversation
…some fields at 16px #950 moved every non-loop control behind More, including the touch selection's "Comment on selection" and the target chooser's "Cancel selection". Both exist only while a reader's gesture holds them, and each is the one thing that reader came to the banner for, but the shelf had only a fixed row/menu partition, so they sat in a shut popover with no marker. The shelf now has a third seat, `gesture`: while a gesture step is on offer it stands on the row in Approval and Threads' place, and the loop returns when the gesture ends. The swap is fixed rather than width-driven, so the 320px row's budget is never asked to hold both. Web Awesome's text fields (the Threads find box, the Map search, and the widget packages' inputs) set their native field in a shadow root the layer's 16px coarse-pointer floor does not reach, so iOS zoomed on focus. The theme bridge now passes `max(var(--entry-floor), 1em)` as the vendor's value size. Tests: the phone comment tests read the step off the row with More shut instead of opening More through `banner_control`, and the phone field-floor check walks shadow roots, so it now reads the vendored fields too. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
leaf-agent
approved these changes
Sep 23, 2026
max-sixty
added a commit
that referenced
this pull request
Oct 6, 2026
On a phone held upright (window up to 480px wide) the banner is now one
53px row: the status in words, cut short by an ellipsis; Threads as its
comment icon and open count; then More. It was 89px, two rows. Approve
moves into More, where it is the first entry, and More wears its dot
while a press there would approve. A passing notice takes the status
words' place for its four seconds. This builds the decision in
`notes/chrome-and-covers.md` and removes it from `TODO.md` and the note.
The desk banner is unchanged. Probes at 1440, 900, 600 and 481px, with a
mouse and with touch, match `main`: geometry, the Threads words, More's
name and the status press's name. `leaf-dev stills` finds no desk state
changed except sub-pixel text noise outside the banner (triage board
headers, 63 px at 2x; a 1x probe of the same page matches exactly).
## How it works
- **Seats per face** (`banner-toolbar.js`). A banner control can name
one seat per face, `{ desk, phone }`. Approval is `{ desk: "row", phone:
"menu" }`. The toolbar reads the same `(width <= 480px)` query theme.css
and chrome.css use, and reseats when the window crosses it. A
reading-loop control a phone moves behind More leads the menu. `paint()`
now hands focus to a control Lit moved, or to More when More is shut,
because a moved node drops focus.
- **More's dot**. `urgent` on a banner control is the words More's name
adds for it (`"new"` for the latest-version chip, `"approval open"` for
Approval). `paintApproval` marks Approval urgent exactly when a press
would approve, so the dot comes up when the last Ask holding approval is
answered and goes when the user approves.
- **Notice seat** (`notifications.js`, `banner-status-view.js`,
`chrome.css`). Notices used to have one presenter, the bottom status.
Now both seats register, and the `--lf-notice-seat` token in chrome.css
shows the notice in one of them: the banner on a phone, the foot
otherwise. Under a covering surface (`html[data-lf-covering-surface]`)
or in a block sample the notice stays at the foot, since there the
banner is under the scrim or draws no status. In the banner the notice
stands over the status words in one grid cell, takes up to two lines of
the row, and is `aria-hidden`, because the live region has already said
it. The status press keeps its name, and nothing moves.
- **Threads** draws `Threads: 3` on a desk as before. On a phone it
draws the icon, and the count comes from `data-lf-count` in three digits
of reserved room. The unread dot marks the icon's corner, so it doesn't
read as More's.
- **Queue counts** stand down on the phone row and are inert. The status
disclosure and the Queue control in More still say what they count.
## Tests
- `tests/test_render_controls.py`, `tests/test_render_startup.py`,
`tests/test_chrome_contracts.py` and
`tests/test_render_semantic_news.py` pass: 371 passed. The one failure,
`test_each_sampled_focus_ring_is_shown_whole_in_its_surface`, fails the
same way on `main` at 7bd43bc.
- `npm run test:runtime` passes.
- New tests:
- `test_more_wears_a_dot_while_a_press_would_approve`: the dot goes up
and down with approval and undo, and focus crosses 480px with Approval.
- `test_a_phone_shows_a_notice_in_the_banner_s_status_words`.
-
`test_a_phone_s_one_row_seats_a_finger_s_steps_and_leaves_the_counts_out`.
- The phone tests that expected two rows, or Approval on the row, now
expect one row and Approval at the head of More. The second-row counts
test now runs at 490px, where the banner still has two rows.
- `leaf-dev stills` gains `plan-touch` and `plan-more-touch`. Its
composer driver now waits for Comment under a coarse pointer instead of
racing it.
## Is there a more underlying fix?
No. I ran these candidates:
- A walk standing in the bottom status while a notice shows in the
banner. `standingStatusBoxes` keeps the walk's box at 390 and 1200px.
- The 480/481px boundary. The rows, Approval's seat, the icon and the
counts agree between CSS and JS.
- A covering Queue drawer. The notice stays at the foot.
- A covering thread panel. The notice stays at the foot (test).
- A refused Approval crossing 480px, with More shut and with More open.
This one did fail at first, sending focus to More. It is fixed here at
its cause: `paint()` now asks where the control stands
(`bannerControlDoor`), not whether it takes a press.
History read: the notice's single presenter dates from #731 (the Lit
move), and the toolbar's seat partition from #979 and #1638. Neither
line had been patched for this condition before.
One copy remains: the phone width is written in theme.css, chrome.css
and now `banner-toolbar.js`. Nothing disagrees today.
## Decisions
- **Dot meaning (decided by Max).** More's dot shows only while a press
on Approve would approve. While an Ask refuses approval there is no dot;
it comes up when the last Ask is answered.
- **Long notices (decided by Max).** A notice takes up to two lines
inside the one 53px row, then an ellipsis; the row's height never
changes. At 320px both refusal reasons clamp, and so does "Approved.
Press z to take it back…" at 390px.
> _This was written by Claude Code on behalf of max-sixty_
---------
Co-authored-by: Claude Opus 5.5 (1M context) <[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.
#950 moved every control except Approval and Threads behind More. Two of those controls only exist during a reader's gesture: "Comment on selection" after a touch selection, and "Cancel selection" while the target chooser is open. On an iPhone, selecting words turned "Comment on selection" on inside a closed popover that showed no marker, so the #923 flow described in the feature gallery ("tap Comment on selection in the banner") took two taps on a door nothing pointed to. The tests missed it because
banner_controlopens More without saying so.Banner shelf: a
gestureseatThe shelf split controls between a fixed row and a fixed menu. It had nowhere to put an action that a gesture produces and that lasts only as long as the gesture. It now has three seats:
row: Approval and Threads, the page's reading loop.menu: every secondary action, behind More.gesture: the next step of something the reader is doing right now. While one is on offer it takes the reading loop's place on the row, and the loop comes back when the gesture ends.The swap is a fixed rule rather than a response to width, so the 320px row (zero slack since #974) never has to hold both. If focus was on a loop control when a step displaces it, focus moves to the step. "Comment on selection" is now
primary, so it reads as the thing to press. Both gesture steps are coarse-pointer only, so nothing changes with a mouse.Web Awesome fields meet the 16px phone floor
On a coarse pointer, the layer's own fields compute 16px (
--entry-floor,shadow.css). The Threads find box and the Map search arewa-inputs, and their native field sits in a vendor shadow root that rule cannot reach, so they computed 14px and iOS zoomed in on focus. The theme bridge (scripts/vendor-src/webawesome/leaf-theme.css) now sets the vendor's value size tomax(var(--entry-floor), 1em). That coverswa-input,wa-textarea, andwa-number-input, including the ones in the widget packages. The bundle is regenerated withscripts/vendor.py webawesome. On desktop the floor is 0, so the value resolves to1em, which matches what the unset token inherited before.Lit duplication: left as is
After boot,
window.litElementVersionsis['4.2.2','4.2.2'], becausebrowser-runtime.jsand the Web Awesome bundle each bundle their own Lit. Sharing one copy would mean pointing Web Awesome's imports (lit,lit/decorators.js, and about eight directive subpaths) at a re-export surface inbrowser-runtime.js. That would tie two independent builds to one export list, which is more than a small build change.skills/leaf/assets/CLAUDE.mdnow says the page runs two copies instead of claiming Lit ships once.Tests
test_chrome_contracts.pyandtest_render_aim.py, and the touch Cancel test intest_render_semantic_selection.py, read the step from.lf-banner-actionswith More shut. They no longer go throughbanner_control. The iPhone test also checks that Threads gives way to the step and that the step fits in the viewport.test_a_phone_comment_field_keeps_its_passage_clearnow walks shadow roots, so it reads the vendored fields as well, and it requires at least onewa-input. Against the old bundle it fails with14 >= 16.test_chrome_contracts.py,test_render_semantic_selection.py,test_render_aim.py, andtest_render_controls.py(26), plus the Web Awesome, targeting, and playground widget cases (18).npm run test:runtime: 55 passed.🤖 Generated with Claude Code