Roadmap: Autosave Draft Changes #295
DanRibbens
announced in
Roadmap
Replies: 3 comments 1 reply
-
I think a very important feature overall. At the moment I've just got a checkbox that says if something is published or not. This is much cleaner. |
Beta Was this translation helpful? Give feedback.
0 replies
-
How much draft data are we talking about here? Because if data is less maybe Cookies can be considered to store drafts in browser? @DanRibbens @richardvanbergen What do you think about it 🤔? |
Beta Was this translation helpful? Give feedback.
1 reply
-
Released in v0.15.0 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Description
In the admin UI when updating or creating a new document, the changes should be passed to the backend and persisted in draft form. This will prevent changes from being lost in the event the editor was working and disconnects before saving.
Implementation Detail
The changes need to be persisted in draft form in an alternate collection to not interfere with live data. The admin UI will need to indicate the status of autosaves and could display a warning for connection interupts. This will need some server API endpoint to be enabled to acccept draft data.
In addition to autosaving data, Payload will need to feature some type of mechanism to "lock" documents when they are currently being edited by other users, in order to prevent users from losing their changes while editing a document at the same time.
Potential Breaking Changes
This feature will need to be coordinated to not impact the Revision History (#292). We will also have to manage file uploads here too.
Effort
Medium
Beta Was this translation helpful? Give feedback.
All reactions