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
332 stars 49 forks source link

[Feature Request] Add an UNDO button to reverse expanding nodes etc. #317

Open krlawrence opened 7 months ago

krlawrence commented 7 months ago

Community Note

Graph Explorer Version (and Graph Database and Version used if applicable) 1.6.0

Is your feature request related to a problem? Please describe. After expanding a node with a lot of neighbors, it would be very helpful to be able to reverse that action, especially of done by mistake. Please consider adding an UNDO capability to Graph Explorer.

Related to this, there is in general no easy way to collapse the structure around a previously expanded node.

kmcginnes commented 7 months ago
kmcginnes commented 7 months ago

I find the concept of an undo stack very intriguing for a tool like Graph Explorer. It would give the user more confidence to explore their data without worrying they might mess something up.

I've also considered an undo stack, which assumes a list of user events is stored in state, could be used as the payload in #298 URL sharing, rather than the list of nodes and edges since it may be more efficient.

That said, this would be a large chunk of engineering to do well. But the payoff would be fairly substantial and Graph Explorer would be better for it.

kmcginnes commented 1 month ago

Related to #96, and this comment about adding the selection of neighbors would solve the problem nicely: