Skip to content

Draw the margin card's Reply as its editor at rest, so its c key shows - #1294

Merged
max-sixty merged 2 commits into
mainfrom
reply-key-label
Sep 27, 2026
Merged

max-sixty merged 2 commits into
mainfrom
reply-key-label

Conversation

@max-sixty

Copy link
Copy Markdown
Owner

A margin card's Reply box never showed the c key while the card was at rest, though c landed in it and the shortcut bar said "comment on the thread". The card drew its Reply as a stand-in button (.lf-reply-disclosure) over a hidden editor. c, the key badge and landing all name the editor, so the badge was painted on a box the user could not see. The key appeared only after the reply had been opened and left open, for example after c then Escape, or once a draft existed.

#1204 fixed which box c reaches, and its invariant test read the badge from the editor's placeholder attribute. That attribute records the hint whether or not it is drawn, so the test passed on every route while the key was invisible on eight of its ten.

The stand-in had matched the empty editor's box and face since #1165, so it no longer changed how the card looked, only which node was on screen. The card now draws the editor itself, as the Threads panel does. The collapse/reveal state goes with the stand-in: its CSS, lfCollapseReply, and the collapse on closing the card. lfRevealReply remains the Threads panel's reveal.

Behavior that moves

  • At rest the card shows the editor's Reply c hint and its disabled send glyph.
  • Tab from the thread lands in the text box, as in the Threads panel, rather than on a button that left page keys live.
  • A press on the resting Reply focuses the editor directly instead of running the thread landing, which re-scrolled the page to the passage the card already stands beside.

Tests

test_c_lands_where_its_badge_is_and_in_the_card_on_screen also requires the drawn key to be visible whenever a card is up. It fails on eight routes against the previous runtime and passes on all ten now. Margin, navigation, chrome-contract and draft tests that pressed the stand-in now press the editor, and assertions that the editor was hidden at rest are gone.

Local: uv run pytest tests 1451 passed; npm run test:runtime 139 passed. Across the six affected browser files including nightly tests, the branch fails the same 13 tests as its merge-base (6e3897a), plus one Threads-panel scroll test that passes alone.

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

🤖 Generated with Claude Code

max-sixty and others added 2 commits September 27, 2026 00:01
A margin card's Reply box never showed the `c` key while the card was at
rest, though `c` landed in it and the shortcut bar said "comment on the
thread". The card drew its Reply as a stand-in button
(`.lf-reply-disclosure`) over a hidden editor. `c`, the key badge and
landing all name the editor, so the badge was painted on a box the user
could not see. It showed only after the reply had been opened once and
left open, for example after `c` then Escape, or once a draft existed.

#1204 fixed which box `c` reaches, and its invariant test read the badge
from the editor's `placeholder` attribute. That attribute records the
hint whether or not it is drawn, so the test passed on every route while
the key was invisible on eight of its ten.

The stand-in had matched the empty editor's box and face since #1165, so
it no longer changed how the card looked, only which node was on screen.
The card now draws the editor itself, as the Threads panel does. The
collapse/reveal state goes with the stand-in: its CSS, `lfCollapseReply`,
and the collapse on closing the card. `lfRevealReply` remains the Threads
panel's reveal.

Behavior that moves:

- At rest the card shows the editor's `Reply c` hint and its disabled
  send glyph.
- Tab from the thread lands in the text box, as in the Threads panel,
  rather than on a button that left page keys live.
- A press on the resting Reply focuses the editor directly instead of
  running the thread landing, which re-scrolled the page to the passage
  the card already stands beside.

Tests: `test_c_lands_where_its_badge_is_and_in_the_card_on_screen` also
requires the drawn key to be visible whenever a card is up. It fails on
eight routes against the previous runtime and passes on all ten now.
Margin, navigation, chrome-contract and draft tests that pressed the
stand-in now press the editor, and assertions that the editor was hidden
at rest are gone.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
@max-sixty
max-sixty merged commit adda216 into main Sep 27, 2026
5 checks passed
@max-sixty
max-sixty deleted the reply-key-label branch September 27, 2026 07:48
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