WordPress / gutenberg

The Block Editor project for WordPress and beyond. Plugin is available from the official repository.
https://wordpress.org/gutenberg/
Other
10.53k stars 4.21k forks source link

Mapping Contextual Commands: Clear customizations for template parts #67112

Open rinkalpagdar opened 3 days ago

rinkalpagdar commented 3 days ago

Part of https://github.com/WordPress/gutenberg/issues/50407

What?

Command that will be suggested and prioritized when the Command Center is invoked from specific flows (Site Editor)

Why?

Currently not suggesting "clear customizations" command when palette launch

Testing Instructions

  1. Open the site editor
  2. Open the Command Palette (by pressing Cmd + K on Mac).
  3. Confirm that the command prompt for "Reset template part" is showing without any search for the current template part only if it has some customization available.

Screenshots or screencast

reset-template-part
github-actions[bot] commented 3 days ago

The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the props-bot label.

If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message.

Co-authored-by: rinkalpagdar <rinkalpagdar@git.wordpress.org>

To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook.