Repository navigation
fix(v6.52.2): links to other views keep full screen (ADR-258) - #313
Merged
Merged
Conversation
In focus view, following a linked-diagram node or a /views/<id> link now opens the next view with ?focus=1. A beforeNavigate hook on the view page reroutes link/goto navigations to other views through focusCarryOverTarget. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01EbTwcTX1wKVooS7oWd7cP9
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.
Problem
In full screen (focus view), clicking a linked-diagram node or a diagram link opened the next diagram in the normal layout.
Fix
beforeNavigatehook on/views/[id]handles every way of reaching another view:gotofrom linked nodes, and<a>links from model-ref nodes and markdowniris://links. When full screen is on, it re-sends the navigation with?focus=1.focusCarryOverTarget, a small helper with unit tests. It skips back/forward, the same view, non-view pages and other origins.Tests
/views/<other>?focus=1with focus view shown. Without the fix, the same click lostfocus=1.<a>link inside focus view keeps full screen.main).🤖 Generated with Claude Code
https://claude.ai/code/session_01EbTwcTX1wKVooS7oWd7cP9