Open krlawrence opened 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.
Related to #96, and this comment about adding the selection of neighbors would solve the problem nicely:
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.