Skip to content
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

Data Views: show trashed templates and patterns #65009

Open
annezazu opened this issue Sep 3, 2024 · 4 comments
Open

Data Views: show trashed templates and patterns #65009

annezazu opened this issue Sep 3, 2024 · 4 comments
Labels
[Feature] DataViews Work surrounding upgrading and evolving views in the site editor and beyond [Feature] Patterns A collection of blocks that can be synced (previously reusable blocks) or unsynced [Feature] Site Editor Related to the overarching Site Editor (formerly "full site editing") Needs Dev Ready for, and needs developer efforts [Type] Enhancement A suggestion for improvement.

Comments

@annezazu
Copy link
Contributor

annezazu commented Sep 3, 2024

Similar to when you're trashing a page or post, you might want to both see what you've deleted and restore them. Right now, for patterns you can't do this and, once something is deleted, it's simply gone. For synced patterns in particular, that's fairly destructive and I think we should consider how best to give folks options here.

This overlaps with the request to disable templates a bit #49640 and the experience of trashed synced patterns in the editor: #52013

@annezazu annezazu added [Type] Enhancement A suggestion for improvement. [Feature] Patterns A collection of blocks that can be synced (previously reusable blocks) or unsynced [Feature] Site Editor Related to the overarching Site Editor (formerly "full site editing") [Feature] DataViews Work surrounding upgrading and evolving views in the site editor and beyond labels Sep 3, 2024
@jasmussen jasmussen added the Needs Dev Ready for, and needs developer efforts label Sep 4, 2024
@TheJeffr0
Copy link

I recently experienced the damage caused by publishing content in a Synced pattern and then deleting the Synced pattern. The content within the pattern was lost with no means of recovery. I'm of the mindset that as an admin, anything I delete as it relates to content in WordPress should be able to be retrieved. Whether that means a global trash bin for everything or a specific trash bin for Templates and Patterns, allowing users to recover something from the trash is necessary.

@annezazu
Copy link
Contributor Author

annezazu commented Dec 4, 2024

Whew, I have run into this too, losing patterns I deleted. I'll flag this up in the new data views channel in slack to see if we can get some traction.

@annezazu
Copy link
Contributor Author

annezazu commented Dec 4, 2024

Noting that previously the old pattern management experience did show trash state, a quick way to undo trashing, and a way to permanently delete:

restore.trash.mov

@TheJeffr0
Copy link

It was suggested that I add this plugin https://www.billerickson.net/reusable-blocks-accessible-in-wordpress-admin-area/ and only delete patterns from that plugin's UI so that they end up in a trash bin. Considering Synced and Unsynched patterns used to be called Reusable blocks, it's probably similar UI as what your video shows.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Feature] DataViews Work surrounding upgrading and evolving views in the site editor and beyond [Feature] Patterns A collection of blocks that can be synced (previously reusable blocks) or unsynced [Feature] Site Editor Related to the overarching Site Editor (formerly "full site editing") Needs Dev Ready for, and needs developer efforts [Type] Enhancement A suggestion for improvement.
Projects
None yet
Development

No branches or pull requests

3 participants