-
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
Inserter: Add 'Starter Content' category to the inserter #66819
Conversation
The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the If 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. |
Size Change: +86 B (0%) Total Size: 1.82 MB
ℹ️ View Unchanged
|
This also depends on other factors like the
The new category is not showing on the Site Editor > Patterns screen. |
Should it show there too? I guess this could be a follow-up. It would be nice if you can filter patterns in data views by block type. |
) { | ||
return true; | ||
} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's not great that the categorization logic is duplicated in two components. Feels like something that can be factorized. Maybe within use-patterns-state
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Works well for me.
Let's try it, and see if this can replace the modal in #66836. |
…6819) Co-authored-by: ellatrix <[email protected]> Co-authored-by: youknowriad <[email protected]> Co-authored-by: carolinan <[email protected]>
What?
Adds a new "Starter Content" category to the inserter, which contains patterns for the post content.
Why?
Currently, there is a modal showing on empty pages with starter content/patterns. After picking one of these, or closing the modal, it's no longer possible to find these patterns.
This PR adds a new category to the inserter, so they can be found once the modal is closed.
The grander goal is to eventually open this inserter category instead of the modal when a new page is created, but let's start small! See #61489.
How?
Just adds a new special category, and its filter.
Testing Instructions
Open a page, then open the inserter and this new category.
Testing Instructions for Keyboard
Screenshots or screencast