Skip to content

feat(graph): require double-click to open code view - #43

Merged
SobshDev merged 1 commit into
mainfrom
feat/double-click-code-view
May 19, 2026
Merged

SobshDev merged 1 commit into
mainfrom
feat/double-click-code-view

Conversation

@SobshDev

Copy link
Copy Markdown
Owner

Summary

  • Code nodes now open the function sheet on double-click instead of single-click, which was triggering the sheet too eagerly while panning the graph.
  • Summary nodes still expand on single click; section nodes remain inert.
  • zoomOnDoubleClick was already disabled on the canvas, so double-clicking a node no longer competes with React Flow's built-in zoom.

Test plan

  • Open a project and confirm a single click on a code node does nothing.
  • Double-click a code node and confirm the function sheet opens with the right file/lines.
  • Single-click a summary (group) node and confirm it expands.
  • Confirm double-clicking the empty canvas does not zoom.

Single-clicking a code node was opening the function sheet too eagerly
while panning the graph. Move sheet-opening to onNodeDoubleClick and
leave single-click reserved for summary group expansion.
@SobshDev
SobshDev merged commit 7abbbbe into main May 19, 2026
3 checks passed
@SobshDev
SobshDev deleted the feat/double-click-code-view branch May 19, 2026 13:15
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