Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Command Palette Overview #66648

Open
priethor opened this issue Oct 31, 2024 · 3 comments
Open

Command Palette Overview #66648

priethor opened this issue Oct 31, 2024 · 3 comments
Labels
[Type] Comand Palette [Type] Overview Comprehensive, high level view of an area of focus often with multiple tracking issues

Comments

@priethor
Copy link
Contributor

It's been more than a year since the Command Palette was first introduced in WordPress 6.3. The number of commands has grown in subsequent releases, and there are a handful of proposals to evolve the Command Palette in different ways. This issue aims to summarize all these efforts.

Palette availability

Currently the Command Palette only works inside the different block editors. There is a pair of issue and PR addressing this so that the Command Palette can be invoked everywhere in the wp-admin and the frontend:

Command organization

Right now, all command search results appear together. As the number of results grows due to adding more commands grows or having lots of content related to the searches, this makes it harder to find the right command and, in general, understand the results.

For example, if you type a in the Command Palette, you will get a mix of results like adding new post/pages, navigating to templates or to specific pages that contain the letter a in their name, relying only on icons to explain the purpose of the command.
Image

There are many ways to mitigate that, from improving the context and icons of the results to grouping the commands by type.

Command context

Apart from structuring the commands better, as the available commands grow in both directions with site-wide admin commands and niche, context-specific ones, the results need to take the context more into account. There is currently an in-depth discussion of site/page/template editing contextual commands at #50407

New commands

Considering the command context a key feature of the Command Palette usability, the following command suggestions are grouped by the context in which they should appear. NOTE: This is a work in progress, and the list will grow!

Available everywhere

Available in any block editor

Available in site editor

Available when editing a post/page

Extensibility and Developer Experience

@priethor priethor added [Type] Comand Palette [Type] Overview Comprehensive, high level view of an area of focus often with multiple tracking issues labels Oct 31, 2024
@annezazu
Copy link
Contributor

@poojabhimani12 @akshaya-rane @benazeer-ben @rinkalpagdar @alamgir-multidots in talking to you all about contributions, I wanted to flag this as another area to help out with, similar to in-line comments. Are you all interested in doing this work? It would be a more focused project than some of the extensibility items that have been started.

@poojabhimani12
Copy link
Contributor

poojabhimani12 commented Nov 4, 2024

Thank you for bringing this up! We’re interested in contributing to a focused project like this.

@annezazu
Copy link
Contributor

annezazu commented Nov 8, 2024

Just wanted to note some lovely PRs already underway for anyone following and who can help with reviews:

Thanks for all the efforts here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Type] Comand Palette [Type] Overview Comprehensive, high level view of an area of focus often with multiple tracking issues
Projects
None yet
Development

No branches or pull requests

3 participants