eclipse-sirius / sirius-web

Sirius Web: open-source low-code platform to define custom web applications supporting your specific visual languages
https://eclipse.dev/sirius/sirius-web.html
Eclipse Public License 2.0
79 stars 52 forks source link

Support undo/redo #1078

Open Camork opened 2 years ago

Camork commented 2 years ago

Do we have a plan to support the undo/redo command?

sbegaudeau commented 2 years ago

Undo/redo would be a great feature but it comes with some unique challenges in a collaborative environment. If Bob and Alice are working on a diagram. Bob creates an element then Alice creates a new reference to this element. Bob wants to undo the last change, what is undone? His change or Alice change? What if there are 5 persons working on the diagram and new changes are coming very quickly so while Bob wants to undo something others are adding new changes again and again? Since they are working on the same project, now let's consider that they are both manipulating the same data but using different diagrams for example.

I'm not saying that it can't be done or won't be done, far from it, but it would take time to specify the user experience that we want to provide and to build it.

luxingxiao commented 1 year ago

If we want to implement this feature ourselves, any suggestions? Sirius-web front-end does not seem to provide a command stack.

dvojtise commented 2 weeks ago

+1

this would be really useful , especially when discovering the UI and creating elements at the wrong place, it that case we need several click to delete the element instead of a simple Ctrl+z