atomic-server
atomic-server copied to clipboard
Undo DefaultResourcePage
Having a functioning undo would be very valuable. How should it work, technically?
Set previous version to current one
- Simple to build
- Works in most scenarios
- Doesn't work when editing a paragraph inside a resource, or a cell inside a table.
Create a log of "invertedActions"
- Store previous states of resources
- When undo, create a
set
with all the state of a previous one
Tables already have an undo feature. using the 'Inverted actions' approach. I don't think it'll be to hard to adapt to other usecases but it won't be a catch all solution. There are a lot of UX problems with app wide undo so doing it on a per feature basis is probably better.
Perhaps add one for DefaultResourcePage