Skip to content

Command Palette: Mapping Contextual Commands #50407

@richtabor

Description

@richtabor

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

Metadata

Metadata

Assignees

No one assigned

    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

    No type

    Projects

    Status

    Needs design, or refresh

    Status

    Next

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions