Skip to content

Keep New reply focused when the floating panel scrolls - #3162

Merged
leaf-agent merged 1 commit into
mainfrom
fix/ci-39292373577-floating-focus
Oct 19, 2026
Merged

leaf-agent merged 1 commit into
mainfrom
fix/ci-39292373577-floating-focus

Conversation

@leaf-agent

Copy link
Copy Markdown
Collaborator

Focusing the floating panel’s New reply button could scroll its thread view. The scroll handler then removed that focused button before Enter activated it, leaving focus on the page body. Keep the button while it holds focus; activating it still reveals the waiting reply and returns focus to the thread view.

Main CI run 39292373577 failed test_the_thread_walk_stands_on_each_thread_it_opens. The failure reproduced on current main and in 16 of 18 loaded local copies before this change. The focused test passes after the fix, including 18 of 18 loaded copies and a rerun after rebasing onto current main. pnpm run check also passed.

@leaf-agent
leaf-agent merged commit 9065cb3 into main Oct 19, 2026
4 checks passed
@leaf-agent
leaf-agent deleted the fix/ci-39292373577-floating-focus branch October 19, 2026 19:04
leaf-agent added a commit that referenced this pull request Oct 19, 2026
The two remaining browser failures in [main CI run
39295617122](https://github.com/max-sixty/leaf/actions/runs/39295617122)
came from test presses landing on the comment card rather than their
intended page targets.
[#3157](#3157) deliberately made
the card’s painted rows a drag grip while writing; the adjacent button
and passage in these fixtures now sit behind that grip.

Move the newer button above the composer’s area and give the draft
test’s second passage its own clear line. The tests still use real
presses to check that a later control keeps focus and that each passage
keeps its own unsent words. Both cases failed on current `main` before
this change and pass after it; the focus test’s other parameter also
passes.

The run’s other five failed cases are addressed by merged
[#3161](#3161),
[#3162](#3162), and
[#3163](#3163); those cases passed
in the focused current-main run.

---------

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.

1 participant