Skip to content

feat(shell): Cmd+K command palette#136

Merged
bndct-devops merged 1 commit into
feat/library-hygienefrom
feat/command-palette
Jul 19, 2026
Merged

feat(shell): Cmd+K command palette#136
bndct-devops merged 1 commit into
feat/library-hygienefrom
feat/command-palette

Conversation

@bndct-devops

Copy link
Copy Markdown
Owner

Overnight run PR 5/12 — stacked on #135; merge in order.

Cmd+K (Ctrl+K) anywhere opens a palette that jumps to books, series, authors, and pages:

  • Books: the existing full-text search (GET /books?q=&limit=6), 150ms debounce, rows show cover + series/author context.
  • Series / Authors: filtered client-side from the facets list (fetched once per palette session), ranked startsWith > substring > shorter-name; series land on the series detail view, authors on the filtered book grid.
  • Actions: plain navigation (Home, All Books, Series, Stats, Highlights, Wishlist, Settings; Admin for admins) — deliberately no side-effectful actions in v1.
  • Full keyboard driving (arrows/Enter/Esc), mouse works too. Registered in the ? shortcuts modal under "Everywhere".
  • No backend changes.

Implementation note: portals to document.body — same backdrop-blur containing-block gotcha as the What's New panel in #134.

Verification: drove it headlessly — Cmd+K opens, typing "berserk" returns 6 book rows with covers plus the series group, Enter navigates to the book page (screenshot in run log). Frontend build/typecheck clean.

Global palette mounted from the shared header: full-text book search via
GET /books?q= (debounced, covers in rows), series/authors ranked from the
facets list client-side (startsWith > includes > shorter), and plain
navigation actions (admin sees Admin). Arrow keys + Enter, Esc closes,
portaled past the header's backdrop-blur containing block. Registered in
the "?" shortcuts help.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@bndct-devops
bndct-devops merged commit a33d9f4 into feat/library-hygiene Jul 19, 2026
@bndct-devops
bndct-devops deleted the feat/command-palette branch July 19, 2026 10:09
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