Open steveparks opened 1 month ago
I understand why you want this... but until you actually create the entry, there's nothing actually in Statamic to "autosave" to, apart from what's in your browser.
Yes, I understand the underlying constraint.
But at the moment, that's not clear to editorial users if they believe there is an autosave feature.
So that's why, at the least, it might be user friendly to have a message to prompt them to make the first save.
Yep, I agree.
Bug description
Autosave does not begin autosaving until after the user has first done a manual save.
Yet many editors will simply create a new entry and start typing, without thinking to do a manual save before they're done — which is kind of the user need for autosave!
So it's important for autosave to either start autosaving straight away, or to clearly inform the user of the need to do a manual save first.
Immediate autosaving approach
The preferred approach would be for autosave to immediately start autosaving, without the need for the user to do the first save manually.
This of course brings some issues:
1. What to do about required system fields, such as Title Autosave could use a title_format approach until the user has entered a title, such as "Autosaved blog post {hash}'
2. What would happen with the creation of the slug? Autosave could bypass creation of the slug, leaving that for a manual save
3. What to do about other user-defined required fields Could autosave bypass validation, that would then only be done on manual saves of the entry?
Inform the user approach
If the above is not possible, or until it can be implemented, the autosave feature could trigger a banner at the top of the entry creation form to say something like:
I understand Autosave is currently experimental, so am opening this issue to contribute to the discussion and refinement. I completely understand if you want to move this discussion somewhere else.
How to reproduce
Logs
No response
Environment
Installation
Existing Laravel app
Additional details
No response