Skip to content

Tree focus on the first switch to All files, Escape after a tree search, IME Escape in two boxes - #3689

Merged
backnotprop merged 5 commits into
mainfrom
fix/tree-focus-ime
Nov 28, 2026
Merged

backnotprop merged 5 commits into
mainfrom
fix/tree-focus-ime

Conversation

@backnotprop

Copy link
Copy Markdown
Owner

Three small defects found by hand on main after 0.29.0.

  • Inbox PR page, first switch to All files after a load lost keyboard focus. The fix from File tree: Escape focus, rename tooltip, focus after switching lists #3663 waited a fixed number of frames; the All files list mounts later than that (175–314 ms measured). focusScopeWhenLost now watches the rail for the new list's switch instead, stops after 3 s, stops as soon as the switch exists with focus intact, and does nothing while a dialog is open.
  • Escape after a tree search landed on the last match. It now lands on the open file's row; a row the tree has not drawn is scrolled to first.
  • An IME Escape closed "+ Global comment" in the code review window and the Inbox thread's Reply box. Both now let the Escape cancel the composition only.

Tests: DOM tests for each, failing before the fix: a list that appears 400 ms late, an open dialog, focus lost much later for another reason (the switch must not take it), Escape after arrowing through matches, and a composing Escape in both boxes. Typecheck clean; guard tests pass.

Not proven in a browser: the real chunk-load timing, a virtualised tree where the open file's row is not drawn, and a real input method (the tests simulate one).

…h, however long the list takes to load, and leaves focus alone while a dialog is open.
…ow, scrolling it into view when the tree has not drawn it, instead of the last match stepped to.
…cels the composition: the code review's global comment box and the Inbox reply box stay open.
…ng for lost focus once the new list is in or after three seconds, so focus lost later never jumps to it.
# Conflicts:
#	packages/inbox/components/Thread.tsx
@backnotprop backnotprop added the ci:e2e Run the full browser suite (Inbox window e2e) on this PR label Nov 28, 2026
@backnotprop
backnotprop merged commit ca2b323 into main Nov 28, 2026
55 checks passed
backnotprop added a commit to bendrucker/plannotator that referenced this pull request Nov 28, 2026
…panel swipes and the HTML viewer's lost highlights

ui 0.67.0 and core 0.25.35 went to npm on 2026-11-28 with package files
that match the v0.29.6 tag (c21f65e), so this pair carries what merged
after v0.29.6, up to v0.29.7.

core 0.25.36 is additive: the linked mark "decisions" and
InboxDecision.machine (backnotprop#4066), DraftFileUploader.previewUrl (backnotprop#4165), and
holdingsOf no longer counting a question Mark read closed (backnotprop#4160). No
exports subpath changes; nothing removed.

ui 0.68.0 is a minor: Escape while an input method composes only ends the
composition, and shortcuts skip such keys; holdsImeEscape is new (backnotprop#3689,
backnotprop#4162). HtmlViewer treats a collapsed live Range as lost (backnotprop#4152). Compact
panels: OverlayScrollArea scrollMemory, SidebarContainer closing and
scrollPositions, ActionMenu compactEdgeSwipe, four new hooks and the panel
rules in theme.css (backnotprop#2861). useLaunchAnnouncement waits for ready (backnotprop#4067).
ui uses nothing new from core; its exact pin follows so a host gets one
core. Publish core first.

README and HANDOFF name the new pair, and HANDOFF adds what the published
0.25.35 / 0.67.0 already held beyond their notes (backnotprop#4114, backnotprop#4151).

bun.lock is bun install's own output: the two package version lines, and
six app workspace version lines (0.29.5 to 0.29.7) the release bumps left
behind.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci:e2e Run the full browser suite (Inbox window e2e) on this PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant