7 Commits

Author SHA1 Message Date
0eea473670 feature: add Create Node action for orphaned node creation
Right-clicking on empty graph area (outside any node or edge) now shows
a context menu with a single 'Create Node' option. Clicking it adds a new
node with a random label and no edges, allowing the user to wire it up
manually afterwards.

- NodeContext gains isEmptyArea flag to distinguish empty-area from node
  right-clicks
- Container div contextmenu handler covers the white space below the SVG;
  SVG-level handler covers empty space within the rendered graph
- node contextmenu handler calls stopPropagation so the SVG handler never
  fires for node clicks; SVG handler also guards via target.closest check
- NodeContextMenu renders emptyAreaItems (Create Node only) vs nodeItems
  (Rename / Subgraph / Remove) based on the flag
- randomWordList extracted as a named export so NodeContextMenu can reuse
  the same word bank
- Three new Playwright e2e tests cover: empty-area menu shows only Create
  Node, created node is orphaned (no new edges), node right-click does not
  show Create Node
2026-03-19 13:25:54 +01:00
92ef00e78f feature: navigation highlighting in tree 2026-03-16 19:35:35 +01:00
8bf3ab296d feature: loading completed with teste 2026-03-06 14:54:20 +01:00
1a479e931f feature: added saving graph to json 2026-03-06 11:03:21 +01:00
e1adf6b9b0 bugfix: fixed subgraph not being preserved after navigation 2026-03-06 08:44:19 +01:00
5b991ca8cd tests: breadcrumbs tests 2026-03-06 07:20:24 +01:00
c6c63ad50a added playwright tests 2026-03-06 05:07:59 +01:00