aws / graph-explorer

React-based web application that enables users to visualize both property graph and RDF data and explore connections between data without having to write graph queries.
https://github.com/aws/graph-explorer
Apache License 2.0
314 stars 46 forks source link

[Feature Request] Clearing the canvas cannot be undone #310

Open kmcginnes opened 4 months ago

kmcginnes commented 4 months ago

Description

When a user clears the canvas it is cleared immediately and there is no way to undo or go back.

This is unfortunate when done on accident.

CleanShot 2024-04-23 at 10 23 22@2x

Preferred Solution

The simplest approach would be to add a confirmation modal to the process to ensure the user is aware that the action cannot be undone.

If we had a way to snapshot the graph in the canvas and restore that snapshot, we could offer an undo action (potentially viable after #298)


[!TIP] Please use a 👍 reaction to provide a +1/vote.

This helps the community and maintainers prioritize this request.

[!IMPORTANT] If you are interested in working on this issue or have submitted a pull request, please leave a comment.