Repository navigation
Restore browser working places and target exact data items - #1544
Merged
Merged
Conversation
History return checkpoints restore focus and selection after revealing the entry; commands continue to read current browser state. Data navigation and keyboard comments/reactions share the exact semantic target and provenance. Closing reaction options commits retirement and the action together. The thread-history test now walks backwards from its bottom-of-page origin; the existing browser-derived walk clamps at the final thread rather than wrapping. Exact-row tests replace the old containing-summary focus expectation. Developer previews declare the patch parser they use when overlaid on a baseline runtime.
leaf-agent
approved these changes
Oct 2, 2026
max-sixty
pushed a commit
that referenced
this pull request
Oct 2, 2026
…ation (#1554) ## Summary Align three reaction browser tests with the current retained-editor and navigation behavior after #1536 and #1544. - A diagram comment editor stays in the window while its target scrolls away, then returns to target placement when the target is visible again. - The mobile Threads test opens the panel through its visible button, leaving the reaction keyboard behavior under test. - The response-row test explicitly constrains the bar to 280px, so it still proves the seven choices hold one row under tight space after the floating bar gained more room. ## Evidence All three tests failed in [main CI run 36945384717](https://github.com/max-sixty/leaf/actions/runs/36945384717) and were reproduced against current main before the edits. The three focused tests pass after the edits; the response-row case was rerun at its original 1024px viewport. `uvx pre-commit run --files tests/test_render_reactions.py` passes. > _This was written by Codex on behalf of max-sixty_ Co-authored-by: leaf-agent <[email protected]>
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.
Following a thread reference, then using Back, restored the viewport while focus remained at the destination:
tadvanced from the wrong discussion. History entries now hold return checkpoints for browser focus and selection, restored after their view is revealed. Commands continue to derive their current target from the browser. Removed or hidden targets are cleared, and a newer gesture cancels a delayed return.Data references now focus the addressed row. Keyboard comments and reactions share pointer targeting, retaining the datum and source revision rather than addressing the whole widget. Shared margin geometry reaches shadow rows, and closing reaction controls paints retirement and the submitted action together. The feature gallery exercises native history returns. Developer previews also declare the patch-parser dependency they need when overlaid on a baseline runtime.
Validation: real browser journeys cover Back/Forward, returned selections, thread links, exact patch-line comments and reactions, shadow scrolling, and focus return. The Python/browser gate, runtime tests, browser framework and Worker checks, lint, and bundle reproduction pass. Matched before/after journeys were inspected in rendered previews.