WordPress / gutenberg

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

Expose block transforms in the sidebar #27843

Open mtias opened 3 years ago

mtias commented 3 years ago

Block transformations are a fundamental and powerful tool. They allow basic operations, like turning a paragraph into a heading, but also other important flows like turning a gallery into a slideshow, and generally being able to swap one block with another. In multi-selection contexts, it allows converting a series of paragraphs into a list, a series of images into a gallery, and many more.

It'd be good to explore ways in which we can increase awareness of these powerful transformations. One way would be to introduce transforms also on the sidebar, where the current block icon and description sit.

mtias commented 3 years ago

Thinking this would need to account for between transforms to other blocks, variations, and styles. cc @shaunandrews

simison commented 3 years ago

There sometimes are transformations between plugin blocks via core blocks (e.g. Jetpack tiled gallery transforms to core block, core block transforms to CoBlocks Masonry). Should those "two step" transforms be exposed in all places where we have block transforms? It could open up the number of transforms quite a bit.

mtias commented 3 years ago

Not sure I follow, do you mean to show "CoBlocks Masonry" as an option for "Jetpack Tiled" gallery by default given they share transformation to / from "Gallery"?