wordpress-mobile / wordpress-mobile/GutenbergKit
Support Command Palette on iPad with hardware keyboard
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 29
- Forks
- 6
- Avg merge
- 1d 9h
- Merged PRs (30d)
- 41
Description
Summary
@wordpress/commands ships a self-contained CommandMenu component that provides a Cmd+K command palette — but GutenbergKit never mounts it. On iPads with hardware keyboards, this means users have no access to the command palette at all.
Context
The package is already a direct dependency (used as a global in wordpress-globals.js), and as of @wordpress/commands 1.43.0 (#450) the palette now includes "Recently Used" command tracking. None of this is reachable today.
What's needed
- Render
<CommandMenu />in the component tree (e.g. insrc/components/layout/index.jsx) — this is the minimal change to makeCmd+Kwork. - Register commands — the palette will be empty unless commands are registered via
useCommand()/useCommandLoader(). Need to determine which commands make sense in the native app context (e.g. block insertion, navigation, settings toggles). - Verify style loading — confirm that
@wordpress/commands/build-style/style.cssis bundled correctly. - Verify preferences persistence — the "recently used" feature writes to
@wordpress/preferences. Need to confirm the persistence layer is wired up so recents survive across sessions.
Scope
This is only relevant for iPad with a hardware keyboard — there's no practical way to trigger Cmd+K on phones or tablets without a keyboard attached.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start in src/components/layout/index.jsx and inspect how @wordpress/commands is exposed through wordpress-globals.js. Determine which native-app commands should be registered, then verify the CommandMenu style.css bundle and @wordpress/preferences persistence. Done means the palette is reachable with Cmd+K on iPad hardware keyboards, has useful commands, and preserves recently used items.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- frontend, mobile
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 48/100