Repository navigation
Open
Labels
[Feature] Site EditorRelated to the overarching Site Editor (formerly "full site editing")[Package] Commands/packages/commands[Type] Tracking IssueTactical breakdown of efforts across the codebase and/or tied to Overview issues.
Description
Tentative mapping out of contextual commands for the Command Center.
These are commands that should be suggested and prioritized when the Command Center is invoked from specific flows (currently within the Site Editor). There are likely more to bake in, but these will help us build it out.
If you have ideas for more, do share them.
Site Editor
| Command | Requirement | Suggested | Action |
|---|---|---|---|
| Open Styles | N/A | Yes | Opens the Global Styles panel |
| Open Templates | N/A | Yes | Opens the Site View > Template sidebar |
| Open Library | N/A | Yes | Opens the Site View > Template Parts sidebar |
| Open Style Book | N/A | No | Opens the Global Styles panel, Activates Style Book, Closes List View |
| Open Style Variations | N/A | No | Opens Site View > Styles sidebar (or Styles sidebar in the Inspector). Also consider re-naming to "Style Variations", as Open and Browse styles isn't great. |
| Add custom CSS | N/A | No | Opens Styles sidebar with the CSS panel available. |
Editing a template
| Command | Requirement | Suggested | Action |
|---|---|---|---|
| Manage templates | N/A | Yes | Opens the Manage Templates view |
| Edit header | Has header template part | Yes | Opens the template's Header in isolated template mode |
| Edit footer | Has footer template part | Yes | Opens the template's Footer in isolated template mode |
| Delete template | Is a custom template | Yes | Moves the currently viewed template to the trash |
| Replace template | N/A | Yes | Opens the template pattern selection modal that currently renders when adding a new template |
| Clear customizations | Yes | Customizations are present and is not a custom template | Resets the template to the default state |
Editing a template part
| Command | Requirement | Suggested | Action |
|---|---|---|---|
| Manage template parts | N/A | Yes | Opens the Manage Templates Parts view |
| Replace template part | N/A | Yes | Opens the template part replace modal |
| Clear customizations | Customizations are present | Yes | Resets the template part to the default state |
Editing a postType
| Command | Requirement | Suggested | Action |
|---|---|---|---|
| Preview postType | N/A | Yes | Opens the preview link in a new tab |
| Publish postType | postType is not published | Yes | Publishes the postType |
| Save postType | postType has unsaved changes | Yes | Saves changes |
| Delete postType | postType is a draft, or published state | Yes | Moves postType to trash |
| Duplicate postType | postType is a draft, or published state | Yes | postType is duplicated as a draft |
| Add new postType | N/A | Yes | Opens Add New modal #48456 |
Editing a category template
| Command | Requirement | Suggested | Action |
|---|---|---|---|
| Manage categories | N/A | Yes | Opens the /edit-tags.php?taxonomy=category view |
cc @youknowriad @WordPress/gutenberg-design
Reacted by Greg Ziółkowski, Saxon Fletcher, Nik Tsekouras, annezazu, Andrei Draganescu and Miguel Fonseca
Metadata
Metadata
Assignees
Labels
[Feature] Site EditorRelated to the overarching Site Editor (formerly "full site editing")[Package] Commands/packages/commands[Type] Tracking IssueTactical breakdown of efforts across the codebase and/or tied to Overview issues.
Type
Projects
- StatusShow more project fieldsNeeds design, or refresh
- StatusShow more project fieldsNext
Activity
richtabor commentedon May 5, 2023
A WIP, and some may not be entirely possible just yet. Let's riff on these to get going.
jameskoster commentedon May 5, 2023
Nice, this looks like a great start.
richtabor commentedon May 5, 2023
✅
Good idea. I'll add one for "Manage categories" and another for "Add new category template".
I wanted to focus on the actual commands this go around, but recent "context" will be good.
richtabor commentedon May 5, 2023
@youknowriad Do we have sub-commands yet, or was that still up in the air?
Example:

ramonjd commentedon May 8, 2023
🤞 We can add a command for Global styles revisions for the site editor soon!
youknowriad commentedon May 8, 2023
@richtabor We don't have sub commands yet.
Also, I'd like some clarifications about how the "contextual commands" work. For instance:
I'd love also to get some designs/mockups about how these contextual commands should look.
jasmussen commentedon May 8, 2023
This one could depend on #49980. That is, if you are in the site editor, but in the "page editing" portion, you can show one set of commands, whereas inside the template editing "mode", you'd show the others.
Can we be aware of what's selected in the canvas?
My instinct when thinking of contextuality, it's related either to what is selected, or what mode you are in. So Site editor > select header > edit header in focus mode — the last two steps, or at least the last step, could be the context that defines the suggestions.
CC: @richtabor in case you have clarification or mockups going over this.
youknowriad commentedon May 8, 2023
My question is about when we have more than one context, do we accumulate the contextual commands or do we force the command center to only show one context at time (the more focused I guess)
jasmussen commentedon May 8, 2023
My instinct would also be that we always replace the suggestions with the most focused context.
8 remaining items
richtabor commentedon May 23, 2023
I think it's fine to have loads of commands; I'd rather you search for header and see a command to edit the header, than search for it and not find something.
But we need to be cognizant of the commands that are suggested contextually.
jameskoster commentedon May 23, 2023
Sorry I'm not getting my question across properly :)
That is what I am talking about. In #50832, an "Edit..." suggestion is included for each template part in the template you're already editing. The question is about how useful this is, given you can already click directly on the template part on the canvas, or select it via list view. It doesn't seem all that helpful to me, and adds quite a lot of noise to the suggestions.
I agree these commands should appear on search.
jameskoster commentedon May 24, 2023
For custom templates / parts, it might be good to include a Rename command.
annezazu commentedon Jun 2, 2023
Dropping this bug here as work progresses: #51204
jameskoster commentedon Jun 8, 2023
When editing a post or page, we might consider a "Swap template" command which would surface all $custom templates in a modal. Related: #51347
annezazu commentedon Jun 29, 2023
Passing on some feedback from the FSE Outreach Program's latest call for testing:
In particular, it is odd that you can search for template parts, including custom ones, but not general patterns. As patterns take center stage with the Pattern section, I think we should consider adding this.
jameskoster commentedon Jul 12, 2023
Another consideration for "Editing a postType": direct access to revisions.
jameskoster commentedon Aug 17, 2023
Should we surface management actions in site editor sections? IE in Templates you'd see "Add new template", "Manage all templates"? Same for Pages, Patterns, etc.
[-]Command Center: Mapping Contextual Commands[/-][+]Command Palette: Mapping Contextual Commands[/+]annezazu commentedon Aug 24, 2023
As part of the twenty fifth call for testing, adding a command to open list view was suggested, along with a few other ideas:
Another suggestion to add List View in:
JosVelasco commentedon May 30, 2024
I'd love to have a command to open/expand a block's advanced panel settings. It makes sense to open advanced options easily with a command or at least make it available to search for.
jasmussen commentedon Jul 3, 2024
A good place to start on this one might be to show the current context. We're already showing initial commands based on this context.