Dynamic Gallery: Rename toolbar button to Detach and add a modal explaining what will happen#80727
Dynamic Gallery: Rename toolbar button to Detach and add a modal explaining what will happen#80727andrewserong wants to merge 4 commits into
Conversation
…aining what happens
|
Size Change: +238 B (0%) Total Size: 7.75 MB 📦 View Changed
|
|
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. |
|
Flaky tests detected in e324af8. 🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/30245839636
|
|
I like it! It feels like it explains quite well, even if after the fact, what this is. How do you feel about it? Nit, I'd love if this could be a
Perhaps we could:
Well, barely shorter. Up to you! |
I thought all confirmation dialogs were the same size. |
|
Could be my mistake, it just looked wider in the screenshot. You can safely ignore me if that's not the case. |
What?
Fixes #80613
The Dynamic mode of the gallery block (the Dynamic Gallery variation) has an ambiguous "Convert to images" button in the block toolbar. As discussed in #80613 this can be confusing to users, and it also doesn't accurately reflect what's really going to happen.
This PR tries out ideas discussed in that issue: let's try renaming the button to
Detachand add a confirm dialog that helps explain what will happen.Very happy for feedback and ideas on the wording! Right now I've borrowed from @ramonjd's mockups.
Why?
The block can operate in two modes: dynamic mode connected to a source, and a static mode where the block isn't attached to a source and is made up of editable inner blocks. The two modes provide powerful behaviour (at least I think so), but it's also difficult to understand.
Hopefully, the button and modal can help users learn how to interact with the gallery block in each of its states, and also with this change, we hopefully reduce some confusion.
How?
Testing Instructions
Screenshots or screencast
This screenshot includes the three changes:
Use of AI Tools
Claude Code (Opus 5) for making the initial change, with testing and a little tweaking by me.