Make WordPress Core

Opened 7 months ago

Closed 5 months ago

Last modified 5 months ago

#63845 closed enhancement (fixed)

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

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

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 5 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.


7 months ago
#1

  • Keywords has-patch added

#2 @wildworks
7 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.


6 months ago

#4 @wildworks
5 months ago

  • Keywords gutenberg-merge added

#5 @wildworks
5 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
5 months ago

Styles not applied to the Command Palette UI

#6 @wildworks
5 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
5 months ago

  • Owner set to cbravobernal
  • Resolution set to fixed
  • Status changed from new to closed

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.