WordPress / gutenberg

The Block Editor project for WordPress and beyond. Plugin is available from the official repository.
https://wordpress.org/gutenberg/
Other
10.53k stars 4.21k forks source link

Add category filtering to StartPageOptions patterns modal #56944

Open richtabor opened 11 months ago

richtabor commented 11 months ago

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

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

glendaviesnz commented 11 months ago

Seems like a duplicate of https://github.com/WordPress/gutenberg/issues/46498 ?

richtabor commented 11 months ago

Seems like a duplicate of https://github.com/WordPress/gutenberg/issues/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.