atomic-server icon indicating copy to clipboard operation
atomic-server copied to clipboard

Undo DefaultResourcePage

Open joepio opened this issue 1 year ago • 2 comments

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

joepio avatar Nov 20 '23 13:11 joepio

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.

Polleps avatar Nov 20 '23 16:11 Polleps

Perhaps add one for DefaultResourcePage

joepio avatar Jan 15 '24 09:01 joepio