-
Notifications
You must be signed in to change notification settings - Fork 4.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Patterns: remove ability to change sync state in UI with a classic theme #51920
Comments
We should probably forbid editing that property in the REST API too. |
I am not sure I follow this. A classic theme has the ability to insert both synced and unsynced user-added patterns, so why would we want to stop them from changing the sync status of a given pattern but allow it for a block theme? This same toggle appears for block themes also.
If somebody creates a 'synced' pattern and inserts some instances of it in posts, and then toggles the source pattern to |
Yeah, so I guess the issue is that you can still edit those synced instances and have unexpected updates propagating. We did previously have it so that the inner blocks auto-detached themselves when the block detected it was unsynced, but it felt a bit risky. |
So just to expand on what Dan has said, initially we had it so if a source pattern was toggled from synced to unsynched when an instance of that pattern was opened in the editor it overwrote itself with its innerBlocks in the same what that using the 'Convert to blocks' with a reusable block does. We thought the risk with this was that one user could toggle to I think this is a case with no
Both options 2 & 3 still leave the potential for some confusion with unedited blocks. A user could toggle to unsynced and then wonder why new changes applied to source pattern are reflected in unedited blocks in the frontend, or toggle to synced and wonder why changes to source pattern are not reflected in previous versions of the block that they inserted. Any thoughts on the best option for 6.3? |
For me that's the best option, especially since we also said that potentially we could make the "sync" status per instance later. If a user changes his mind he can copy the content and create a new pattern. |
Having a duplicate or copy option on the pattern management screens would help reduce the inconvenience. |
I believe there is an intention to add this, but not sure about the timeline. |
I personally would really like to see that feature back. |
In testing 16.1 RC1 and the new pattern syncing, I noticed that with a classic theme you can control the sync state. In talking with @youknowriad about this he indicated this shouldn't be possible because otherwise one will be able to create "reusable blocks" that references a "non synced pattern".
In this case, we should show the sync state but not allow the option to edit. If it does remain for some reason, the design needs to be updated as the sync toggle isn't descriptive of what's changing, goes to the next line when toggling, and initiates a save state when no changes occur.
classic.theme.save.state.pattern.mov
The text was updated successfully, but these errors were encountered: