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

Add category filtering to StartPageOptions patterns modal #56944

Open
richtabor opened this issue Dec 11, 2023 · 2 comments
Open

Add category filtering to StartPageOptions patterns modal #56944

richtabor opened this issue Dec 11, 2023 · 2 comments
Labels
[Feature] Patterns A collection of blocks that can be synced (previously reusable blocks) or unsynced [Type] Enhancement A suggestion for improvement.

Comments

@richtabor
Copy link
Member

The current requirement for including a pattern in the StartPageOptions modal is to set Block Types: core/post-content. I also prefer to set Post Types: page, which limits these to only populating within "Add new page" flows (not posts).

This gives us a "Choose a pattern" modal, which renders when creating a new page. This is nice, but could be much more useful if we had additional categorization, much like the Pattern Explorer, to filter by page category/type (i.e. about, services, portfolio, etc).

Acceptance criteria

  • Categories are added to the StartPageOptions modal, relative to the patterns that have declared a block type of core/post-content. Not every category is rendered, only the ones that have page patterns.
  • A pattern with a block type of core/post-content, and a category of about would be available within the StartPageOptions modal in the "About" category. There's no need to redeclare categories, but rather pull from the existing source.

The current StartPageOptions modal:

CleanShot 2023-12-11 at 07 29 09

The current Pattern Explorer:

I would expect we could share the design and structure of the explorer; perhaps merge the UI.
CleanShot 2023-12-11 at 07 30 06

@richtabor richtabor added [Type] Enhancement A suggestion for improvement. [Feature] Patterns A collection of blocks that can be synced (previously reusable blocks) or unsynced labels Dec 11, 2023
@glendaviesnz
Copy link
Contributor

Seems like a duplicate of #46498 ?

@richtabor
Copy link
Member Author

Seems like a duplicate of #46498 ?

Yea, in part. Good catch. I lean towards keeping this one, as one of the action items noted in that issue.

And it's actionable/updated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Feature] Patterns A collection of blocks that can be synced (previously reusable blocks) or unsynced [Type] Enhancement A suggestion for improvement.
Projects
No open projects
Status: No status
Development

No branches or pull requests

2 participants