DataForm: openAs:menu#75421
Conversation
|
Flaky tests detected in 0e232bc. 🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/21907134695
|
|
Alternatives considered:
All things considered, something like this PR feels more future-proof, robust, and flexible. |
|
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. |
|
Are we certain this is an api we want to add, does it have any immediate use beyond the template example? My initial reaction is that it seems quite niche which makes me a bit apprehensive. A menu with a single item isn't ideal from a UX perspective either. I understand that the Template 'field' in the editor Inspector has additional actions like "Edit template", but this feels tangential and a bit unrelated to the field value, so should arguably live elsewhere in the UI. Stepping back, the Template option is essentially a
I recognise it's too late to get something like this done for 7.0. But unless we're confident about the api maybe we omit the template field from Quick Edit initially, or just use something simple like |
|
That's a tough one.. I've thought for a while, explored a few things and maybe this API makes sense with some things to iron out. To start with, right now It feels quite natural to me. Also note in the below video how the field is rendered in What I don't love is that the consumer of the field would need to use the Screen.Recording.2026-02-13.at.11.31.41.AM.mov |
|
Prepared the select approach at #75518 |


Follow-up to #75290
What?
This PR introduces a new
openAs: 'menu'in the panel layout, that complements the existingmodalanddropdownoptions.Why?
To support complex behaviors, like editing the template, which includes multiple contextual actions:
Screen.Recording.2026-02-11.at.14.30.32.mov
How?
openAs: 'menu'option for the panel layout.Testing Instructions
QuickEdit:
Storybook:
npm run storybook:dev) and visit the panel layout story.