Repository navigation
fix: land On Me's Show in the margin card it opens, not On Me's own drawing of the message - #6083
Merged
Merged
Conversation
…the thread On Me's Show on a question asked in a thread's words left focus on body after #6056. The panel's reader declines an anchored thread, so the route opens the thread's margin card and travels there (`onPage`, `scrollToThread`). Both picked their focus target through `threadFocusTarget`, which prefers the primary reader's destination; the panel's reader still drew the message in On Me's card, so the arrival landed there and On Me closing dropped the user on the page. #5039 had closed On Me before the arrival; #6056 removed that close. An arrival on the page now asks `threadFocusTarget` for the page's drawings only (`page: true`), in `onPage` and in `scrollToThread`, whose callers are all page routes. The primary's view is never the target of an arrival it declined or is about to put away. `test_show_from_on_me_lands_in_the_card_it_opens` fails on main and passes here. Closes #6081
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
On Me's Show on a question asked in a thread's words has left focus on
bodysince #6056, instead of in the margin card it opens. The panel's reader declines an anchored thread, so the route opens the thread's margin card and travels to it (onPage→scrollToThread). Both chose their focus target throughthreadFocusTarget, which prefers the primary reader's destination, and the panel's reader still draws the message in On Me's card. So the arrival landed on thatlf-msg(stack:scrollToThread'sarrive→focusForNavigation), and On Me closing then dropped the user on the page. #5039 had worked around this by closing On Me before the arrival; #6056 removed that close on the premise that a drawing aside receives no arrival, which holds forauthoredHolderbut not for this target lookup.An arrival on the page now asks
threadFocusTargetfor the page's drawings only (page: true): inonPage's non-travel branch and inscrollToThread, whose three callers are all page routes indestination.js. That route runs only after the primary declined the thread, drew nothing for it, or is about to put its view away (reader: "page"), so its view is never the right target there. The early close stays deleted.Verification:
tests/browser/controls/test_focus.py::test_show_from_on_me_lands_in_the_card_it_opensfails on current main (timeout waiting for focus in.lf-margin-preview) and passes here. The 86 browser tests selected by-k "show_from or show_on or on_me or (on_panel and show) or arrival or arrives or walk_to"pass. One of them,test_render_floating_panel.py::test_an_arrival_the_opening_view_will_cover_puts_it_away, errors in the teardown shift watch the same way on main without this change.pnpm run test:runtimeandpnpm run check:browserpass.Closes #6081 — automated triage