Nested element workflow improvements #16002
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
When saving a nested element within a Matrix/Addresses field in card view, the changes are now saved to a draft of the owner element, rather than published immediately. The changes won’t actually go live until the owner element is saved. If the draft is discarded, the changes will be discarded too.
Nested element cards that contain unpublished edits identify themselves with a blue modified indicator. (Newly-added nested elements have a similar indicator too, now.)
CleanShot.2024-11-03.at.10.51.00.mp4
This only affects Matrix/Addresses fields in cards view. Decided to keep element index view working as-is, since that view is more obviously dealing with separate elements that aren’t really “part of” the owner element’s content, like card view is.
CKEditor will be updated for consistency with these changes, as well.
Related issues