feat: ⌘K command palette - #21
Merged
Merged
Conversation
A keyboard-first command palette (the signature herocast power-user feature), from the herocast feature comparison. Press ⌘K / Ctrl+K anywhere to: - navigate to any page (existing g-hotkeys shown inline as hints) - start a new cast, switch accounts, toggle theme - search people + channels (via /api/search-suggestions) and jump to them Built on cmdk for keyboard nav/selection inside the app's Headless UI Dialog shell; mounted once in Layout. shouldFilter=false with manual substring filtering so the static commands and async search results coexist. No backend changes. Verified: typecheck + build green.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The #1 pick from the herocast feature comparison — the signature "power client" feel for a self-contained, no-backend change.
Press ⌘K (or Ctrl+K) anywhere to open a command palette:
g-hotkeys are shown inline as hints (so it also teaches the shortcuts)./api/search-suggestions) and jump straight to them.Implementation
cmdkfor keyboard navigation/selection, rendered inside the app's existing Headless UIDialogshell (full Tailwind styling, dark mode, matches the other modals).Layout, opened viareact-hotkeys-hook(enableOnFormTagsso ⌘K works from anywhere;preventDefaultto beat the browser).shouldFilter={false}with manual substring filtering so the static commands and async search results coexist cleanly;initialFocuson the input.switchAccount, andnext-themes.Verification
npm run typecheck✅,npm run build✅ (138 routes).