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

Remote: reassigned block patterns to default categories #5664

Merged
merged 4 commits into from
Mar 21, 2022

Conversation

MaggieCabrera
Copy link
Contributor

Changes proposed in this Pull Request:

Instead of using the pages category (blame copy paste when setting up the theme for that) I've assigned all patters to default categories for now. @kjellr @beafialho feel free to correct any that you think it's not the right one.

@MaggieCabrera MaggieCabrera requested a review from a team March 15, 2022 10:28
@MaggieCabrera MaggieCabrera added this to the Remote milestone Mar 15, 2022
@MaggieCabrera MaggieCabrera added the [Theme] Remote Automatically generated label for Remote. label Mar 15, 2022
@MaggieCabrera MaggieCabrera self-assigned this Mar 15, 2022
@kjellr
Copy link
Contributor

kjellr commented Mar 15, 2022

This seems fine! I think we still need to define those categories just in case the external call to the pattern directory doesn't work? Or at least, that's what we did in Twenty Twenty-Two.

In addition to their more specific categories, we should also add these categories to the "featured" category too.

@MaggieCabrera
Copy link
Contributor Author

We need to re register the categories so the theme patterns show up first, but they work fine without doing so. I did it anyway, since it's what we did on archeo too. I wish there was a simpler way to reorder patterns though, feels like a lot of PHP just for that!

I added all the patterns to the featured category too.

@MaggieCabrera
Copy link
Contributor Author

I opened a GB issue about this: WordPress/gutenberg#39500

Copy link
Contributor

@kjellr kjellr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good thought about the Gutenberg issue! In the meantime, this looks good to go. 🚢

@MaggieCabrera MaggieCabrera merged commit f01add8 into trunk Mar 21, 2022
@pbking pbking deleted the remote-patterns-categories branch April 12, 2022 14:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Theme] Remote Automatically generated label for Remote.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants