Make the empty graph canvas interactive #55

Merged
lost-rob0t merged 1 commit from fix/empty-graph-context-menu into main 2026-07-26 01:21:00 +00:00
lost-rob0t commented 2026-07-26 01:19:19 +00:00 (Migrated from github.com)

Summary

Makes the graph canvas interactive before any nodes exist.

  • right-clicking anywhere on the graph opens a canvas action menu immediately
  • Create node here places the new node at the clicked graph coordinate
  • the menu also exposes corpus import, graph creation, and document import
  • the empty-state overlay no longer intercepts canvas pointer events
  • Enter blank canvas dismisses the onboarding overlay without creating anything
  • switching graphs restores the empty-state guidance for the newly active graph

Root cause

The full-stage empty-state overlay sat above Cytoscape and consumed the initial interaction, so the canvas could not provide a context menu until users took an unrelated onboarding action.

Validation

  • npm test — 16 files, 68 tests passed
  • npm run check — passed
  • npm run build — passed
  • Playwright scenario now starts by right-clicking an empty graph and choosing Create node here

Follow-up to #54.

## Summary Makes the graph canvas interactive before any nodes exist. - right-clicking anywhere on the graph opens a canvas action menu immediately - **Create node here** places the new node at the clicked graph coordinate - the menu also exposes corpus import, graph creation, and document import - the empty-state overlay no longer intercepts canvas pointer events - **Enter blank canvas** dismisses the onboarding overlay without creating anything - switching graphs restores the empty-state guidance for the newly active graph ## Root cause The full-stage empty-state overlay sat above Cytoscape and consumed the initial interaction, so the canvas could not provide a context menu until users took an unrelated onboarding action. ## Validation - `npm test` — 16 files, 68 tests passed - `npm run check` — passed - `npm run build` — passed - Playwright scenario now starts by right-clicking an empty graph and choosing **Create node here** Follow-up to #54.
Sign in to join this conversation.
No description provided.