Skip to content

feat(ui): CommandPalette (⌘K spotlight) + GitHub-style Callout#3

Open
Srikar Sunchu (srikarsunchu) wants to merge 2 commits into
mainfrom
feat/command-palette-and-callout
Open

feat(ui): CommandPalette (⌘K spotlight) + GitHub-style Callout#3
Srikar Sunchu (srikarsunchu) wants to merge 2 commits into
mainfrom
feat/command-palette-and-callout

Conversation

@srikarsunchu

Copy link
Copy Markdown
Member

Summary

  • CommandPalette — the ⌘K spotlight search overlay from the direction-1b docs mockup. Built on the existing Base UI Dialog primitive (no new dependencies), themed from @elide/tokens. Supports grouped results (Pages / Actions), live query filtering, ↑/↓ keyboard navigation, Enter/click select, and Esc to close. Exported from @elide/ui with CommandGroup/CommandItem types.
  • Stories at Docs/CommandPalette: a default-open state with an a11y play test (dialog role + labelled search input), and a WithGlobalShortcut story wiring a real ⌘K/Ctrl+K listener with a play test that triggers it.
  • Callout restyle — matches the GitHub admonition anatomy: plain 3px left rule (no tinted surface, radius, or outer border), icon + label line tinted in the tone color, body in regular foreground. important now uses the speech-bubble MessageSquareWarning icon. Component API unchanged, so existing stories and consumers work as-is.

Test plan

  • Docs/CommandPalette/Default: filtering, arrow-key navigation, Enter select, Esc close
  • Docs/CommandPalette/WithGlobalShortcut: ⌘K / Ctrl+K toggles the palette
  • Storybook play tests pass (a11y roles/names, shortcut wiring)
  • Docs/Callout/All Tones: all five tones render the new left-rule style in light and dark

Made with Cursor

Builds the command palette from the 1b mockup on the Base UI Dialog
primitive (no new deps): grouped results, query filtering, arrow-key
navigation, Enter/click select. Stories cover the default open state
(with a11y play test) and a global ⌘K/Ctrl+K shortcut wiring.

Co-authored-by: Cursor <cursoragent@cursor.com>
Drops the tinted surface and outer border for a plain 3px left rule;
the icon + label line is tinted in the tone color and the body renders
in the regular foreground. Important now uses the speech-bubble icon
(MessageSquareWarning) instead of duplicating Info. API unchanged.

Co-authored-by: Cursor <cursoragent@cursor.com>
@codecov

codecov Bot commented Jul 7, 2026

Copy link
Copy Markdown

The author of this PR, srikarsunchu, is not an activated member of this organization on Codecov.
Please activate this user on Codecov to display this PR comment.
Coverage data is still being uploaded to Codecov.io for purposes of overall coverage calculations.
Please don't hesitate to email us at support@codecov.io with any questions.

@baasilali Baasil Ali (baasilali) added documentation Improvements or additions to documentation enhancement New feature or request labels Jul 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants