Skip to content

Widen the page composer over the On me mark as it opens, not at the first key - #4715

Merged
max-sixty merged 3 commits into
mainfrom
composer-expand-mic
Oct 30, 2026
Merged

max-sixty merged 3 commits into
mainfrom
composer-expand-mic

Conversation

@max-sixty

Copy link
Copy Markdown
Owner

The page composer's field used to cover the On me mark only once it held a draft. So the first key moved the field's end and its corner press by the mark's width: 52px at 1440px, with the press at x 900 when the field opened and 952 once the user typed. In Chrome that press was Dictate before the key and Send after it, so the two never shared the one seat the stylesheet gives them. Now the mark and the row's older-version notice step aside while the user writes in the panel (writing in browser/runtime/floating-panel.js), not only while the field holds a draft. Opening the field puts its end and its press where typing will leave them, and the first key moves nothing. The user chose this on 29 October, given before/after stills and the Tab cost below.

The 20 October rule still holds: moving the caret into or out of a draft moves nothing. An empty field has no lines to rewrap.

What users lose: while the caret is in the empty field, the On me count is out of sight, as it already was while drafting. A forward Tab walk passes through the field first, so it no longer reaches the mark: on review-a-plan it took 8 presses before and none of 80 after. Shift+Tab (2 presses from the page's end) and g M still reach it. The ring journey in tests/journeys/test_render_controls.py that reached the mark by Tab now walks backward.

Tests:

  • test_send_stands_in_the_mark_s_place_while_the_field_holds_a_draft now asserts that the mark steps aside when the field opens and that the field keeps its box through the first key. It fails on the old rule.
  • test_the_row_s_marks_and_presses_share_the_words_line reads the counts' line at rest, where they now stand.

The panel's data-words attribute is gone; its only reader was the notice's CSS rule, which now reads data-writing and data-drafted like the mark.

Also answered, with no code change: the empty composer's microphone was never removed. It shows wherever the browser has SpeechRecognition or webkitSpeechRecognition, which the user's Firefox 159 lacks (checked in the installed browser, run headless with a fresh profile).

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

max-sixty and others added 3 commits October 28, 2026 13:35
…irst key

The panel's field took the On me mark's room only once it held a draft,
so the first key moved the field's end and its corner press by the
mark's width (52px at 1440px: x 900 opened, 952 typed). In Chrome that
press was Dictate before the key and Send after, so the two never stood
in the one seat the stylesheet gives them. Now the mark and the row's
older-version notice step aside while the user writes in the panel
(`writing`) as well as while the field holds a draft, so opening the
field puts its end and its press where typing will leave them. They come
back once the field is empty and focus leaves the panel. The 20 October
rule, that the caret moving in or out of a draft moves nothing, still
holds; an empty field has no lines to rewrap.

What users lose: while the caret is in the empty field the On me count
is out of sight, as it already was while drafting, and a forward Tab
walk, which passes the field first, no longer reaches the mark
(Shift+Tab and `g M` still do). The ring journey that reached the mark
by Tab now walks backward.

`test_send_stands_in_the_mark_s_place_while_the_field_holds_a_draft` now
asserts the mark steps aside on opening and the field keeps its box
through the first key; it fails on the old rule.
`test_the_row_s_marks_and_presses_share_the_words_line` reads the
counts' line at rest, where they now stand.

The host panel's `data-words`, whose only reader was the notice's rule,
is gone.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
# Conflicts:
#	dist/kernel/kernel.json
@max-sixty
max-sixty merged commit 9fa9aaf into main Oct 30, 2026
4 checks passed
@max-sixty
max-sixty deleted the composer-expand-mic branch October 30, 2026 00:46
leaf-agent added a commit that referenced this pull request Oct 30, 2026
The Threads pointer helper now leaves the empty comment field with a
page press when writing hides On me, then follows the existing On me →
Threads route. #4715 deliberately hid that mark as soon as writing
begins to keep the field's corner still at the first key; the helper
incorrectly assumed the mark remained clickable. This preserves that
interface and changes no runtime behavior.

The phone key-surface case reproduces the hidden-mark timeout before the
change. All four cases in #4753 pass with the repair on current main,
retaining their key-hint, whitespace quote, ambiguous passage and
rejected-state assertions. The ordinary opening-words Threads-list case
also passes. Ruff lint, format and diff checks pass.

An additional status-row consumer still times out on `.lf-fp-value`;
#4764 owns that selector repair. A second exploratory consumer run
overlapped the rebase and had mismatched fixture/runtime contracts, so
it supplies no verification evidence.

Closes #4753 — automated triage

Co-authored-by: leaf-agent <[email protected]>
leaf-agent added a commit that referenced this pull request Nov 3, 2026
…erence rows and folded contents (#5253)

`test_each_sampled_focus_ring_is_shown_whole_in_its_surface` has failed
in the scheduled `ci` run on Linux and macOS since [run
41432142330](https://github.com/max-sixty/leaf/actions/runs/41432142330).
Three of its samples were out of date with changes that were meant to
happen, and each stopped the sweep in turn. This PR updates the three
samples, changes no product code, and leaves every surface's ring
assertion in place.

- **On me** (#5179): #4715 deliberately puts the On me mark aside while
the caret is in the panel's field (`quickHidden` in
`browser/runtime/floating-panel.js`). Before focusing each sample, the
sampler pressed Tab so that the focus would count as keyboard focus.
From the leaf button, that Tab landed in the field, which hid
`.lf-fp-quick`, and `.lf-fp-on-user` could not take focus. The sampler
now presses Shift instead. Shift sets the browser's keyboard modality
for `:focus-visible`, which Leaf's `data-lf-focus-visible` follows
(`visibleFocus` in `browser/runtime/focus.js`), and it moves no focus. I
checked in Chromium that `focus()` after a Shift press matches
`:focus-visible`, and after a click alone it does not.
- **Command reference rows**: #5118 builds these rows by the `row` role
and deleted their own `[data-lf-focus-visible]` rule, so their ring now
comes from the floor rule. The sample now expects `FLOOR_RING`.
- **Contents link**: the feature gallery's `lf-toc` stands in the
reading column, not in a sidebar track, so its outline is a folded
native disclosure (`lf-toc.js` header, `#measure`). The selector's
`:visible` matched no link, so the locator waited out its 120 s timeout
before the runtime's `reveal` could open the disclosure. Without
`:visible`, `reveal` opens the outline and the link's ring is measured.

Verification: on a local run at main `89482e4a5`, the test failed
exactly as in CI. After each fix, the next stale sample surfaced. With
all three fixes the whole test passes (`1 passed in 451.67s`, `-n0`).
This PR's CI runs the edited journey on the rebased head.

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