Skip to content

Stand Other responses in the empty comment field's corner - #4136

Merged
max-sixty merged 12 commits into
mainfrom
message-overflow-control
Oct 26, 2026
Merged

max-sixty merged 12 commits into
mainfrom
message-overflow-control

Conversation

@max-sixty

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

Copy link
Copy Markdown
Owner

The ⋯ that opens Suggest and the reactions moves from a bordered button
beside the comment field into the field's corner, beside Dictate, and
only while the field is empty. The draft's first word takes it away, so
the field spans the whole bar in every state and nothing moves as the
user starts typing. Tab and e still open the picker with words in the
field; it then stands over the field instead of the ⋯.

The user picked this on 25 October over keeping the button beside the
field, hiding that button at the first key (which widened the field
under the caret), and dropping it for keys only (which left a mouse or
finger no route). selection.js's header records the choice and what it
rejected, reversing #3634's placement. It also replaces #4124's ⋯ over the
field's end, in the head row of the floating frame, which landed on main
meanwhile and only the floating presentation had.

Behavior changes:

  • The field gains the button's 40px of the 294px bar, and a sent
    comment's message again ends at its card's Reply field.
  • A field holding words shows only Send in its corner; a pointer reaches
    the picker from an empty field, or by Tab and e from a draft.
  • A bar with only a target chosen shows Comment alone; its ⋯ appears
    once Comment opens the field.

Tapping the floating panel's offer of selected words opened the picker:
the panel opens the comment box on the release, and the click the
browser delivers after it landed on the ⋯ now standing under the
finger. The release claims that click, through a claimReleaseClick
in pointer.js that held-word.js's own copy of the same rule now uses
too.

Tests: the picker test asserts the ⋯ inside the empty field, gone with
words, and the field's width unchanged; it opens the picker by pointer
from an empty field. Its panel touch case fails without the claimed
click. The narrow-bar test asserts the field reaches the bar's content
edge.

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

max-sixty and others added 3 commits October 25, 2026 12:36
Throwaway: html[data-proto=a|b|c] switches between hiding the button once
the field has words, standing it inside the field until then, and dropping
it. The field records data-words for the first two. Not for landing; the
user picks one on the composer-other-responses Leaf page.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
The ⋯ that opens Suggest and the reactions moves from a bordered button
beside the comment field into the field's corner, beside Dictate, and
only while the field is empty. The draft's first word takes it away, so
the field spans the whole bar in every state and nothing moves as the
user starts typing. Tab and `e` still open the picker with words in the
field; it then stands over the field instead of the ⋯.

The user picked this on 25 October over keeping the button beside the
field, hiding that button at the first key (which widened the field
under the caret), and dropping it for keys only (which left a mouse or
finger no route). selection.js's header records the choice and what it
rejected, reversing #3634's placement.

Behavior changes:

- The field gains the button's 40px of the 294px bar, and a sent
  comment's message again ends at its card's Reply field.
- A field holding words shows only Send in its corner; a pointer reaches
  the picker from an empty field, or by Tab and `e` from a draft.
- A bar with only a target chosen shows Comment alone; its ⋯ appears
  once Comment opens the field.

Tapping the floating panel's offer of selected words opened the picker:
the panel opens the comment box on the release, and the click the
browser delivers after it landed on the ⋯ now standing under the
finger. The release claims that click, through a `claimReleaseClick`
in pointer.js that held-word.js's own copy of the same rule now uses
too.

Tests: the picker test asserts the ⋯ inside the empty field, gone with
words, and the field's width unchanged; it opens the picker by pointer
from an empty field. Its panel touch case fails without the claimed
click. The narrow-bar test asserts the field reaches the bar's content
edge.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
# Conflicts:
#	dist/kernel/kernel.json
#	dist/kernel/runtime/bundle-answer.js
leaf-agent
leaf-agent previously approved these changes Oct 25, 2026
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
leaf-agent
leaf-agent previously approved these changes Oct 25, 2026
# Conflicts:
#	dist/kernel/kernel.json
leaf-agent
leaf-agent previously approved these changes Oct 25, 2026
# Conflicts:
#	dist/kernel/kernel.json
# Conflicts:
#	dist/kernel/kernel.json
#	dist/kernel/runtime/bundle-errors.js
leaf-agent
leaf-agent previously approved these changes Oct 25, 2026
main's #4124 stood the ⋯ over the field's end in the floating frame's head
row; this branch stands it inside the empty field instead, so that rule
and its tests' expectations go, and selection.js's header records the
replacement.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
leaf-agent
leaf-agent previously approved these changes Oct 26, 2026
# Conflicts:
#	dist/kernel/kernel.json
leaf-agent
leaf-agent previously approved these changes Oct 26, 2026
# Conflicts:
#	dist/kernel/kernel.json
leaf-agent
leaf-agent previously approved these changes Oct 26, 2026
# Conflicts:
#	browser/runtime/floating-panel.js
#	dist/kernel/kernel.json
#	dist/kernel/leaf.js
#	dist/kernel/runtime/bundle-errors.js
#	dist/kernel/runtime/bundle-surfaces.js
leaf-agent
leaf-agent previously approved these changes Oct 26, 2026
# Conflicts:
#	dist/kernel/kernel.json
@max-sixty
max-sixty merged commit c09c72b into main Oct 26, 2026
4 checks passed
@max-sixty
max-sixty deleted the message-overflow-control branch October 26, 2026 04:42
leaf-agent added a commit that referenced this pull request Oct 26, 2026
The shadow-seating journey checked the configured 60px text inset while
the field was empty. #4136 deliberately reserves extra room there for
Other responses until typing hides the control.

Check the 60px inset after typing, and compare populated fields across
floating and shadow seating alongside the existing empty-field
comparison. Product behavior is unchanged. Both desktop/light and
touch/dark cases failed before this change and pass afterward (`uv run
pytest
tests/journeys/test_render_diff_controls.py::test_response_and_message_reading_keep_their_face_across_shadow_seating
-q -n0`).

Closes #4240 — automated triage

Co-authored-by: leaf-agent <[email protected]>
max-sixty added a commit that referenced this pull request Oct 26, 2026
Main's #4136 built the ⋯ trigger with the symbol face's classes spelled
in selection.js; on this branch every control takes its face from its
role through offerAction, which test_controls_are_built_by_role_and_never_by_face
holds. The trigger now comes from offerAction("symbol", ...), with the
same name, tooltip and icon.

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