apache / camel-karavan

Apache Camel Karavan a Low-code Data Integration Platform
https://camel.apache.org
Apache License 2.0
440 stars 149 forks source link

Undo/Redo for Designer #863

Open mgubaidullin opened 1 year ago

mgubaidullin commented 1 year ago

This might help https://www.npmjs.com/package/zundo after https://github.com/apache/camel-karavan/issues/836

vidhyasagarj commented 7 months ago

@mgubaidullin can we work on this. (@indubabu & @vidhyasagarj)

  1. Add Zundo package
  2. Add undo & redo action buttons to the integration designer
  3. Use zundo to maintain past & future state of integration yaml string
  4. Save/Update yaml string based on undo/redo action
  5. May have to change the property input save to onBlur instead of onChange to avoid character level undo/redo action.

Challenges

  1. Unable undo delete action on array -> raise an issue in zundo (https://github.com/charkour/zundo/issues/161)
  2. When actions may not focus on the area of change in the designer or in the property slide -> any suggestion on how we can address this?
mgubaidullin commented 7 months ago

This one is on hold until we fix performance issues in Designer.

vidhyasagarj commented 7 months ago

Noted @mgubaidullin,

Is there an issue for understanding the performance issue in the designer? or Can we work on any other item?