Add category filtering to StartPageOptions patterns modal #56944
Labels
[Feature] Patterns
A collection of blocks that can be synced (previously reusable blocks) or unsynced
[Type] Enhancement
A suggestion for improvement.
The current requirement for including a pattern in the StartPageOptions modal is to set
Block Types: core/post-content
. I also prefer to setPost 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
core/post-content
. Not every category is rendered, only the ones that have page patterns.core/post-content
, and a category ofabout
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:
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](https://private-user-images.githubusercontent.com/1813435/289536089-b256bebd-aef2-48d9-a493-d5a79b5ddef8.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzg5MzU0NTAsIm5iZiI6MTczODkzNTE1MCwicGF0aCI6Ii8xODEzNDM1LzI4OTUzNjA4OS1iMjU2YmViZC1hZWYyLTQ4ZDktYTQ5My1kNWE3OWI1ZGRlZjgucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI1MDIwNyUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNTAyMDdUMTMzMjMwWiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9MTUwMmEzZmQ3YWVjMTRiMjgzYzhhM2JiZTEwYTRmZjlkOTVhZjVjNTY0MjE1N2E4YzMxMjcxMjU2OTc0MjU4ZiZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QifQ.eWgwGDO8CQEArc5QvHgLG_T-ucTiSvpEKaQWFwcbBoY)
The text was updated successfully, but these errors were encountered: