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

Media workflows around patterns #58172

Open
mtias opened this issue Jan 24, 2024 · 2 comments
Open

Media workflows around patterns #58172

mtias opened this issue Jan 24, 2024 · 2 comments
Labels
[Feature] Media Anything that impacts the experience of managing media [Feature] Patterns A collection of blocks that can be synced (previously reusable blocks) or unsynced [Type] Enhancement A suggestion for improvement.

Comments

@mtias
Copy link
Member

mtias commented Jan 24, 2024

It should be easy to replace all images in a pattern or set of patterns with images from the media library or a new set of uploads. Some of the following scenarios seem worth exploring:

  • Open media; select a bunch of items; offer a new option next to "create gallery" that's "fill in selected pattern" or "pick from patterns" where you can browse pattern categories like "gallery".
  • On pattern blocks (wp_block) offer an option in the toolbar for media assignment; it'd open the media library contextually, and allow you to select as many images as image or media blocks are in the current pattern.
  • When uploading multiple images, make drop zones smarter by allowing to not just create a new gallery, but if dropping over a pattern with image blocks, fill them in.
@mtias mtias added the [Feature] Media Anything that impacts the experience of managing media label Jan 24, 2024
@annezazu annezazu added the [Feature] Patterns A collection of blocks that can be synced (previously reusable blocks) or unsynced label Jan 24, 2024
@jordesign jordesign added the [Type] Enhancement A suggestion for improvement. label Jan 25, 2024
@andrewserong
Copy link
Contributor

Just jotting down a quick thought/idea for how part of this might work (implementation-wise) for replacing multiple images at once:

Could the behaviour with the media library / media selection work in a way where it doesn't need to be aware of patterns per se, but given a list of selected blocks, it figures out which ones are image blocks, counts how many, and in the media library, allows you to replace up to that many of the image blocks with another selection of media items?

That way the same "replace" behaviour could work if a pattern is selected, or if a user does a selection of, say, 3 images in a Gallery block, or part of a post or page that contains several image blocks.

@ramonjd
Copy link
Member

ramonjd commented Mar 20, 2024

Could the behaviour with the media library / media selection work in a way where it doesn't need to be aware of patterns per se, but given a list of selected blocks, it figures out which ones are image blocks, counts how many, and in the media library, allows you to replace up to that many of the image blocks with another selection of media items?

This sounds like a good abstraction. It could then work with any pattern, or even site. For the latter, I'm guessing it could make a site-building AI assistant's role easier by allowing it to respond to requests such as "replace all the images with ones that have flowers in them".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Feature] Media Anything that impacts the experience of managing media [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

5 participants