Skip to content

fix(v6.52.2): links to other views keep full screen (ADR-258) - #313

Merged
cgbarlow merged 1 commit into
mainfrom
fix/fullscreen-follows-view-links
Sep 30, 2026
Merged

cgbarlow merged 1 commit into
mainfrom
fix/fullscreen-follows-view-links

Conversation

@cgbarlow

Copy link
Copy Markdown
Owner

Problem

In full screen (focus view), clicking a linked-diagram node or a diagram link opened the next diagram in the normal layout.

Fix

  • A beforeNavigate hook on /views/[id] handles every way of reaching another view: goto from linked nodes, and <a> links from model-ref nodes and markdown iris:// links. When full screen is on, it re-sends the navigation with ?focus=1.
  • The rule lives in focusCarryOverTarget, a small helper with unit tests. It skips back/forward, the same view, non-view pages and other origins.
  • ADR-258, SPEC-258-A, changelog, guide text, and version bump to 6.52.2.

Tests

  • Unit tests: 7 new. Frontend vitest: 1331 passed.
  • Playwright against the dev app:
    • Clicking a linked nav-cell in full screen opens /views/<other>?focus=1 with focus view shown. Without the fix, the same click lost focus=1.
    • Clicking an <a> link inside focus view keeps full screen.
    • Back returns to the previous view, still in full screen.
  • svelte-check: no new errors (167, the same as main).

🤖 Generated with Claude Code

https://claude.ai/code/session_01EbTwcTX1wKVooS7oWd7cP9

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
@cgbarlow
cgbarlow merged commit a02a454 into main Sep 30, 2026
1 check passed
@cgbarlow
cgbarlow deleted the fix/fullscreen-follows-view-links branch September 30, 2026 02:10
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