Repository navigation
Patterns: Add the Status panel to synced patterns - #84938
im3dabasia wants to merge 3 commits into
Conversation
🤖 PR meta 🤖🎉 PropsIf you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message. To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. Props Bot commandsYou can trigger Props Bot actions by commenting on this PR:
Updated as activity occurs, without notifying anyone named here. Add the ⚡ PerformanceShow the resultsClient side metrics exclude the server response time. front-end-block-theme
front-end-classic-theme
media-processing
media-upload
post-editor
site-editor
|
|
@ntsekouras would you have a moment to review? This brings the Status panel to synced patterns, and since you worked on the panel in #60857 I'd appreciate your view on the direction. There's one design question in the description on hiding Private and password protection for patterns. E2E test to follow once the approach is agreed. |
|
Interesting, thanks for contributing. If patterns support status, we definitely need this panel. Which I guess they do, then this does seem a good next step. 👍 👍 |
t-hamano
left a comment
There was a problem hiding this comment.
Thanks for the PR.
I'm aware that patterns support post statuses internally, but I think this PR needs careful discussion.
The Patterns screen in the Site Editor only shows patterns with the publish status. If a user changes a pattern's status to something other than published, either intentionally or by mistake, the pattern disappears from both the Patterns screen and the inserter. Unless the user knows that patterns of every status can be accessed from the "classic" pattern list (/wp-admin/edit.php?post_type=wp_block), they have no way to get that pattern back.
Before moving this PR forward, I think we need to discuss and decide how post statuses should be handled for patterns, and implement a few things:
- Deleting a pattern in the Site Editor bypasses the trash and deletes it permanently. As far as I can tell, this is an unintended regression: patterns stopped going through the trash when several actions were consolidated in #61912 (WordPress 6.6 and later). I think we should fix this regression first.
- Should the "All patterns" screen in the Site Editor also show patterns with statuses other than published? Perhaps it should show only published patterns by default, and allow filtering by other statuses.
- As already discussed in #52013, we need some way to indicate the status of an inserted pattern. Currently, draft, scheduled, and pending patterns are not rendered on the front end, but in the editor they can't be distinguished from published patterns.
|
Thanks for the PR @im3dabasia! I removed the status panel from the design post types in #60857 because some fields while they are supported internally(like Maybe we could show the status as a read-only field instead, like |
What?
Part of #52013.
Shows the Status panel for synced patterns, so a draft pattern is visible as a draft and its status can be changed in the editor.
Why?
A draft synced pattern renders nothing on the front end, but the editor gives no hint. Changing it means going to the classic patterns screen.
How?
Open question
Should Private and password protection be hidden, or kept with pattern-specific wording?
Testing Instructions
Screenshots
Screen.Recording.2026-10-16.at.6.47.11.PM.mov
An e2e test will follow once the approach is agreed.