Skip to content

[6.x] Added command palette support - #4400

Draft
lukeholder wants to merge 4 commits into
6.xfrom
feature/command-palette-support
Draft

lukeholder wants to merge 4 commits into
6.xfrom
feature/command-palette-support

Conversation

@lukeholder

Copy link
Copy Markdown
Member

Summary

Adds Commerce pages, actions and search to the Craft CMS 6 command palette.

  • Pages: product types, catalog pricing, store management (shipping, tax, promotions, payment currencies, per store) and Commerce settings (admins), each gated by the permission its route enforces.
  • Actions: create order (per store), create product (per creatable product type), create inventory location, plus search-only create actions for store management and Commerce settings items.
  • Search: completed-orders provider (OrderSearchProvider, excludes carts, searches across sites) and core ElementSearchProvider for products and variants.
  • Registered via HasCommandPalette using PageRegistry, ActionRegistry and SearchProviderRegistry, guarded so nothing queries Commerce tables before install.
  • Added new strings to lang/en/commerce.php and a "Command Palette" section to CHANGELOG-WIP.md.

Testing

New Pest tests are in tests/Feature/CommandPalette/, but they have not been run. The suite and phpstan fail to boot on a clean 6.x because cms-6's latest yii2-adapter commit (8c7e78eaf13) leaves Element::registerEvents undefined. Code style passes. These need running once that is fixed.

🤖 Generated with Claude Code

@lukeholder lukeholder changed the title Added command palette support [6.x] Added command palette support Oct 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant