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

Post blocks: ensure all are able to be transformed to other post blocks #49283

Open
annezazu opened this issue Mar 22, 2023 · 6 comments
Open
Labels
[Feature] Blocks Overall functionality of blocks Needs Dev Ready for, and needs developer efforts [Type] Enhancement A suggestion for improvement.

Comments

@annezazu
Copy link
Contributor

All post blocks should be replaceable / convert to other blocks. I should be able to easily swap a Date with an Author block, or Categories with Tags. Currently this is inconsistent and incomplete as you can see below in two examples:

Screen Shot 2023-03-22 at 12 10 02 PM

Screen Shot 2023-03-22 at 12 10 07 PM

Pulled from: #48443

Marking as needs dev since this seems to need some PRs to ensure transforms are possible.

@annezazu annezazu added [Type] Enhancement A suggestion for improvement. [Feature] Blocks Overall functionality of blocks Needs Dev Ready for, and needs developer efforts labels Mar 22, 2023
@ntsekouras
Copy link
Contributor

Post terms transforms(categories/tags, etc..) are already in: #48328.

@annezazu
Copy link
Contributor Author

Awesome! Thanks for noting that.

@carolinan
Copy link
Contributor

I think it would be helpful to have a list of the expected transforms, or is it literally "all post blocks should be able to be transformed into all post blocks"

@mtias
Copy link
Member

mtias commented May 1, 2023

Some transforms are somewhat semantic (transforming between content and excerpt, or between different types of post meta), but others are really just about swapping a block with another block.

@carolinan
Copy link
Contributor

It is going to be a very long list of blocks in the transform UI, if all post blocks can be transformed to all post blocks:
Transform modal with list of blocks that the excerpt can be transformed to

@mtias
Copy link
Member

mtias commented May 2, 2023

Not necessarily, the transforms list can be for what was explicitly added, and then there can be a "Replace with ->" that opens another menu or quick inserter with access to all the blocks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Feature] Blocks Overall functionality of blocks Needs Dev Ready for, and needs developer efforts [Type] Enhancement A suggestion for improvement.
Projects
Status: 💻 Needs development
Development

No branches or pull requests

4 participants