[codex] Add minimap double-click canvas navigation#222
Merged
DeadWaveWave merged 3 commits intoDeadWaveWave:mainfrom May 2, 2026
Merged
[codex] Add minimap double-click canvas navigation#222DeadWaveWave merged 3 commits intoDeadWaveWave:mainfrom
DeadWaveWave merged 3 commits intoDeadWaveWave:mainfrom
Conversation
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.
💡 Change Scope
📝 What Does This PR Do?
Adds a faster minimap navigation gesture for the infinite canvas: users can now double-click a region in the bottom-right minimap to center the main viewport on that area without changing the current zoom level.
This keeps the existing node-focus behavior intact while introducing a separate viewport navigation semantic for region jumps. The implementation also adds web-canvas regression coverage for the new interaction.
🏗️ Large Change Spec (Required if "Large Change" is checked)
1. Context & Business Logic
The workspace canvas already supports minimap pan and zoom, but it lacked a fast way to jump to a distant area. This PR adds a minimap double-click interaction that re-centers the viewport on the clicked flow position while preserving the current zoom ratio.
2. State Ownership & Invariants
viewportRef/onViewportChangesynchronization path.3. Verification Plan & Regression Layer
The behavior is locked down at the E2E layer with a web-canvas Playwright regression that zooms the canvas, double-clicks a distant minimap region, and asserts that the viewport center moves while the zoom value stays unchanged.
✅ Delivery & Compliance Checklist
pnpm pre-commitis completely green.CLA.md).DEVELOPMENT.mdarchitectural boundaries.📸 Screenshots / Visual Evidence
UI interaction change. Screenshot or recording will be attached in the GitHub PR UI.
Screen.Recording.2026-05-02.at.6.48.02.PM.mp4