Make WordPress Core

Opened 12 months ago

Closed 10 months ago

Last modified 10 months ago

#63845 closed enhancement (fixed)

Command Palette: Enqueue command-related assets for all admin pages

Reported by: wildworks Owned by: cbravobernal
Priority: normal Milestone: 6.9
Component: Editor Version:
Severity: normal Keywords: has-patch gutenberg-merge
Cc: Focuses:

Description

This ticket tracks the backport of PHP files for the following Gutenberg update:

Command Palette: Enqueue assets globally #71264

We're aiming to bring the Command Palette into all parts of the WordPress site, as described in the Roadmap to 6.9 post.

As a first step, just like the Gutenberg plugin, this ticket aims to enable the Command Palette on all admin pages by enqueuing command-related assets via the admin_enqueue_scripts hook.

Attachments (1)

dashboard-command-palette-style.png (36.6 KB ) - added by wildworks 10 months ago.
Styles not applied to the Command Palette UI

Download all attachments as: .zip

Change History (9)

This ticket was mentioned in PR #9542 on WordPress/wordpress-develop by @wildworks.


12 months ago
#1

  • Keywords has-patch added

#2 @wildworks
12 months ago

Note: The attached PR can't be committed until the latest npm packages are synced to the core. This is because the wp.coreCommands.initializeCommandPalette() method in the code doesn't exist in core yet. The attached PR will need to be committed after the package sync for Beta 1 is complete.

This ticket was mentioned in Slack in #core by welcher. View the logs.


11 months ago

#4 @wildworks
10 months ago

  • Keywords gutenberg-merge added

#5 @wildworks
10 months ago

Update:

The attached PR can't be committed until the latest npm packages are synced to the core. This is because the wp.coreCommands.initializeCommandPalette() method in the code doesn't exist in core yet.

I'm testing this PR again now that the package has been updated, and it appears that the styles are not being applied to the dashboard. I'll investigate the cause.

@wildworks
10 months ago

Styles not applied to the Command Palette UI

#6 @wildworks
10 months ago

I'm testing this PR again now that the package has been updated, and it appears that the styles are not being applied to the dashboard. I'll investigate the cause.

Fixed.

#7 @cbravobernal
10 months ago

  • Owner set to cbravobernal
  • Resolutionfixed
  • Status newclosed

In 61022:

Command Palette: Enqueue command-related assets for all admin pages.

Removes the core command initialization and registration code from the edit-post and edit-site packages and enqueues command-related assets globally.

Props wildworks, rcorrales, shailu25, youknowriad.

Fixes #63845.

Note: See TracTickets for help on using tickets.