Cut and Paste functionality #8

Closed
opened 2026-03-23 15:50:35 +00:00 by tymurbaniak · 0 comments
Owner

Create cut and paste functionality. Example how it should work:

  • user selects nodes on the currently displayed graph (selection happens when user holds ctrl button and left clicks on nodes)
  • user right clicks on the one of selected nodes - context menu opens - in the context menu there is new 'cut' action together with other actions, that were previously implemented
  • user clicks on the 'cut' action
    • selected nodes and nodes linked with selected nodes (only with link direction from selected nodes) are considered 'cut nodes'
    • there happens some graphic indication, that 'cut nodes' are 'cut' (e.g. they are more transparent)
    • cut nodes ids and properties needs to be stored (preferably some zustand store), because they'll be retrieved later for 'paste' action
  • user navigates to different subgraph (with tree or breadcrumbs)
  • user right clicks on the empty graph space - context menu opens - in the context menu there is second new 'paste' action together with other previously implemented actions
  • user clicks on the 'paste' action - 'cut nodes', that were cut previously and are saved in a 'cut' store appear now in the currently displayed graph
  • after 'cut' and 'paste' workflow happen also other stores needs to be updated, so everything will be consistent
  • implement also tests for this feature
Create cut and paste functionality. Example how it should work: - user selects nodes on the currently displayed graph (selection happens when user holds ctrl button and left clicks on nodes) - user right clicks on the one of selected nodes - context menu opens - in the context menu there is new 'cut' action together with other actions, that were previously implemented - user clicks on the 'cut' action - - selected nodes and nodes linked with selected nodes (only with link direction from selected nodes) are considered 'cut nodes' - - there happens some graphic indication, that 'cut nodes' are 'cut' (e.g. they are more transparent) - - cut nodes ids and properties needs to be stored (preferably some zustand store), because they'll be retrieved later for 'paste' action - user navigates to different subgraph (with tree or breadcrumbs) - user right clicks on the empty graph space - context menu opens - in the context menu there is second new 'paste' action together with other previously implemented actions - user clicks on the 'paste' action - 'cut nodes', that were cut previously and are saved in a 'cut' store appear now in the currently displayed graph - after 'cut' and 'paste' workflow happen also other stores needs to be updated, so everything will be consistent - implement also tests for this feature
tymurbaniak added the Kind/Featureclaude labels 2026-03-23 15:50:35 +00:00
Sign in to join this conversation.