Copy functionality #12

Open
opened 2026-03-31 07:31:03 +00:00 by tymurbaniak · 0 comments
Owner

Create 'copy' 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 'copy' action together with other actions, that were previously implemented
  • user clicks on the 'copy' action
    -- selected nodes are considered 'copy nodes'
    -- there happens some graphic indication, that 'copy nodes' are 'copied'
    -- copy 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 'copy' 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 'copy' action together with other actions, that were previously implemented - user clicks on the 'copy' action -- selected nodes are considered 'copy nodes' -- there happens some graphic indication, that 'copy nodes' are 'copied' -- copy 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
Status
Need More Info
2
label 2026-03-31 07:31:03 +00:00
Sign in to join this conversation.