Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Option to close/delete views or layers #207

Open
ren-zeng opened this issue Mar 31, 2022 · 1 comment
Open

Option to close/delete views or layers #207

ren-zeng opened this issue Mar 31, 2022 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@ren-zeng
Copy link

No description provided.

@yrammos yrammos added the enhancement New feature or request label Mar 31, 2022
@pettter pettter self-assigned this Apr 8, 2022
@pettter
Copy link
Contributor

pettter commented May 4, 2022

Self-TODO:

Basically, the procedure to accomplish this (in the back-end) would be to:

  • In the graph
    • If a node only corresponds to a note in the layer to be deleted
      • Remove the node, and any relation involving it (possibly configurable), and cascade this into meta-relations etc.
  • In other layers
    • If they are copies/derived from notes in the deleted layer
      • Find the new "topmost" referent, and redirect all the references to the deleted note there instead, including if there is some node in the graph referring there
  • Finally, remove the layer mdiv
  • Also remove the relevant elements in the UI

In terms of the UI, there would need to be a button to do this per layer, and possibly a confirm/configure dialogue, especially if there are notes/nodes/relations that might be deleted

Ideally, this whole system should also be integrated into the undo/redo system

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants