Gallery: update action labels for conversion from dynamic variation#80664
Gallery: update action labels for conversion from dynamic variation#80664ramonjd wants to merge 2 commits into
Conversation
|
The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message. To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. |
|
Size Change: -11 B (0%) Total Size: 7.75 MB 📦 View Changed
|
|
Thanks for getting the PR up to kickstart the discussion! I'm a little too close to the feature to make an objective call on the right language, so I've added |
|
Flaky tests detected in e0c62ac. 🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/30069345646
|
|
Tested! Confirms the labels now show consistently. Both the block toolbar and the Source inspector panel read "Convert to static gallery" for the dynamic Gallery block, as expected. Not sure whether this wording change is actually needed though — will leave that to the design team's input, as @andrewserong mentioned.
|
|
Thanks for fast action. I commented here, that perhaps we could be even simpler: just "Detach", but open a confirm dialog when you press it. I'm very possibly missing nuance, and perhaps this reads as a provocation, but then it is with intent for me to understand the limits: why does a user have to know that this block is dynamic? Can it just be a gallery like all others right up until they want to make changes to the sort order or add/remove items, at which point they will have to engage with the Detach button and modal? |
| * The Gallery block's "Source" inspector panel. | ||
| * | ||
| * In dynamic mode it shows the resolved source, a control to convert back to | ||
| * individual images, and the source ordering. In static mode it offers the |
There was a problem hiding this comment.
| * a static gallery, and the source ordering. In static mode it offers the |
| /** | ||
| * Renders a dynamic-mode gallery on the canvas: | ||
| * | ||
| * - a block-toolbar control to convert back to individual images; |
There was a problem hiding this comment.
| * - a block-toolbar control to convert back to a static gallery; |
I like it. Commented here: #80613 (comment) |
|
Since the discussion in the issue has expanded a bit I've opened up a separate PR to explore the "Detach + modal" idea over in: #80727 I'll close this one out now to signal that the PR we're trying to land is the other one. Thanks for getting the discussion happening! |

What? How?
Note
Take or leave this change. It's low priority.
Addresses the "label semantics" part of #80613.
Controls (toolbar + inspector):
Convert to static gallery(was "Convert to images" / "Convert to individual images")Why?
The Gallery block's dynamic variation offered a
convertToStaticaction under two different labels:Read in a certain way, they could be construed as unwrapping the gallery into individual Image blocks, when in fact they switch the gallery from its dynamic source to a plain, manually-editable gallery.
Testing Instructions