[Lens] Support undo/redo #54971
Labels
Feature:Lens
impact:medium
Addressing this issue will have a medium level of impact on the quality/strength of our product.
release_note:enhancement
Team:Visualizations
Visualization editors, elastic-charts and infrastructure
There are various techniques that could be used to support undo/redo in Lens, but most will depend on a core restructing: #52792 One of the main features of the restructuring is to put all state into the top level, which would be useful for tracking undo/redo history.
Undo/redo systems can be tricky. Most Kibana apps sync their state to the URL, which gives a nice integration with the browser forward/back buttons. But Lens does not currently save its state to the URL, and the Lens state is a large object that should only get partially serialized.
The simplest undo/redo system for Lens would be to store the previous N state objects in their entirety. To "undo," we go back to the previous state. Every time the state changes, clear the "redo" list. This would be limited but effective.
The text was updated successfully, but these errors were encountered: