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

Block Categories Updates #15708

Closed
mtias opened this issue May 7, 2020 · 2 comments · Fixed by #16363
Closed

Block Categories Updates #15708

mtias opened this issue May 7, 2020 · 2 comments · Fixed by #16363
Labels
[Block] GIF [Block] Image Compare [Block] Latest Instagram Posts [Block] Slideshow [Block] Tiled Gallery [Focus] Blocks Issues related to the block editor, aka Gutenberg, and its extensions developed in Jetpack [Pri] Normal [Size] S [Type] Enhancement Changes to an existing feature — removing, adding, or changing parts of it

Comments

@mtias
Copy link
Member

mtias commented May 7, 2020

The following new categories are set to be coming to Gutenberg shortly. There are mappings in place, so all blocks would end up somewhere. However, it'd be worth to look at registering things like Tiled Galleries or Slideshow in the Media group. (I'd imagine Jetpack would need to retain older categories as well for previous versions of Gutenberg / WP.)

@jeherve jeherve added [Focus] Blocks Issues related to the block editor, aka Gutenberg, and its extensions developed in Jetpack [Block] GIF [Block] Image Compare [Block] Latest Instagram Posts [Block] Slideshow [Block] Tiled Gallery [Type] Enhancement Changes to an existing feature — removing, adding, or changing parts of it labels May 7, 2020
@jeherve jeherve added this to the 8.6 milestone May 7, 2020
@jeherve jeherve removed this from the 8.6 milestone May 22, 2020
@davemart-in davemart-in changed the title Block Categories Block Categories Updates May 25, 2020
@sirreal
Copy link
Member

sirreal commented Jun 12, 2020

Recommendations for how to safely start using new categories: WordPress/gutenberg#19279 (comment):

var hasFormattingCategory = wp.blocks.getCategories().some( function( category ) {
   return category.slug === 'formatting';
} );

wp.blocks.registerBlockType( 'my-plugin/my-block', {
   category: hasFormattingCategory ? 'formatting' : 'media',

   // ...
} );

@davemart-in
Copy link
Contributor

Looks like this has been picked up by the Good Mountain team. I'm removing this from the Manage Group backlog.

@sirreal sirreal linked a pull request Jul 7, 2020 that will close this issue
35 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Block] GIF [Block] Image Compare [Block] Latest Instagram Posts [Block] Slideshow [Block] Tiled Gallery [Focus] Blocks Issues related to the block editor, aka Gutenberg, and its extensions developed in Jetpack [Pri] Normal [Size] S [Type] Enhancement Changes to an existing feature — removing, adding, or changing parts of it
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants