dakboard / Cloud-Platform

Feature requests, enhancements and anything you'd like to see in DAKboard!
https://dakboard.com
168 stars 39 forks source link

Screen Editing: Undo, Save, or Confirm Block Changes #1919

Closed cocarrig closed 12 months ago

cocarrig commented 1 year ago

Description: Creating this case for development of an undo movement button in the DAKboard screen editor UI.

Proposed solution would involve recording a history of each movement event in order and it would be kept in a data attribute in an element of the screen. Enforcing limits would need to be implemented and old movements would fall off.

Discussed in https://github.com/dakboard/Cloud-Platform/discussions/1411

Originally posted by **jsu1995** October 18, 2019 From time to time, I manage to grab the wrong block and move or resize it, inadvertently. Since the changes take effect instantly, I then have to try to put the block back the way it was. The best solution would be to add the ability to 'Undo' any change to the screen layout. Or maybe add a 'Save Changes' button, where you could make multiple changes, but they wouldn't take effect until saved. With this option, another button should be added to allow one to 'Discard Changes', which would revert the layout back to where the last change was saved. Another solution could be to add a 'Confirmation' after each block change. Of course, this would be less desirable, since it would likely be irritating to have to confirm each and every change one makes to the layout.
Dan-Peck commented 1 year ago

Beginning experimentation on an implementation for an initial undo/redo feature for high level live editor features (e.g., moving a block, resizing a block, ...)

Dan-Peck commented 1 year ago

Experiments and implementation have been working well! Once released, the following operations will be undo-able via the undo/redo buttons, or CTRL-Z, CTRL-SHIFT-Z (or CTRL-Y):

Dan-Peck commented 12 months ago

Merged in @ c5e1f2f and added to the queue for upcoming release to the live site.