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

Patterns should be discoverable from block editor #28309

Open
tellyworth opened this issue Jan 18, 2021 · 3 comments
Open

Patterns should be discoverable from block editor #28309

tellyworth opened this issue Jan 18, 2021 · 3 comments
Labels
[Feature] Pattern Directory The Pattern Directory, a place to find patterns [Feature] Patterns A collection of blocks that can be synced (previously reusable blocks) or unsynced [Type] Enhancement A suggestion for improvement.

Comments

@tellyworth
Copy link
Contributor

What problem does this address?

There should be a UI flow that makes it easy to discover patterns that contain a given block.

If I'm adding a Buy Now button to content, it should be easy for me to discover that my e-commerce plugin already has some patterns for product layouts that contain the Buy Now button, to save me doing it all manually.

What is your proposed solution?

An issue has been created in the Pattern Directory repo to support this on the back-end, by creating APIs for searching patterns by block: WordPress/pattern-directory#33

The UI flow for how this should work in the editor is very much an open question. This issue is intended as a place to discuss those ideas and figure out a solution.

As an example, when a block is selected in the inserter, there could be a secondary menu or selector that suggests some patterns containing that block. It would probably need to exclude the most common core blocks, since they might appear in almost any pattern. The remote pattern directory might offer some kind of relevancy or ranking to the sort order, to help display only the more useful patterns.

@tellyworth tellyworth added the [Feature] Patterns A collection of blocks that can be synced (previously reusable blocks) or unsynced label Jan 18, 2021
@mtias
Copy link
Member

mtias commented Jan 19, 2021

See also #27575 which discusses surfacing patterns for a given block type, template part area, etc, as transform targets.

@annezazu annezazu added the [Feature] Pattern Directory The Pattern Directory, a place to find patterns label Jan 29, 2021
@ghost
Copy link

ghost commented Jan 29, 2021

We're very interested in pattern support being improved. Currently, Justin Tadlock’s Block Pattern Builder plugin allows the easy creation of new patterns. It doesn't have the option to specify categories yet, though. Any new pattern built using the plugin goes in the uncategorized category. There doesn't appear to be an option to use the forward slash and type ahead to select patterns either. This would be very helpful so we can promote the patterns most commonly used by our editors.

@annezazu
Copy link
Contributor

annezazu commented Mar 3, 2021

Noting this somewhat related issue to make patterns more discoverable: #26116

@priethor priethor mentioned this issue Apr 23, 2021
22 tasks
@jordesign jordesign added the [Type] Enhancement A suggestion for improvement. label Aug 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Feature] Pattern Directory The Pattern Directory, a place to find patterns [Feature] Patterns A collection of blocks that can be synced (previously reusable blocks) or unsynced [Type] Enhancement A suggestion for improvement.
Projects
None yet
Development

No branches or pull requests

4 participants