Cmd+K palette: jump to any bot, room, or message - #206
Conversation
⌘K / Ctrl+K from anywhere opens a centered switcher: bots and rooms answer instantly from local state, transcript hits ride the existing /api/search endpoint a 150ms debounce later (same stale-response guard as the sidebar search). Empty query is pure switcher mode — every bot and room, no message section. Ranking lives in src/lib/palette-rank.ts as a pure helper: prefix matches outrank substring matches, matching is case-insensitive, and each tier preserves the caller's order so pinned-first lists survive. Arrow keys move one flat cursor across the sections, Enter selects (message hits open the owning bot or room, switching to the hit's task like the sidebar does), Esc closes. Row hover tracks mousemove rather than mouseenter so hits arriving under a resting pointer can't steal the keyboard selection. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
|
Warning Review limit reached
Next review available in: 33 minutes Limit details: You’ve used all 3 included reviews currently available under your plan. Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available. How can I continue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews. How do review limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window. Please refer docs for additional details. Review details⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (4)
Comment |
main의 milind-soni#207(긴 대화 Show-earlier), milind-soni#206(Cmd+K 팔레트), milind-soni#204(iOS 컴패니언), milind-soni#203(스트리밍 코드 하이라이트) 병합. 충돌은 테스트 파일의 node:fs import union뿐이었다. Tested: pnpm typecheck, pnpm vitest run (94 files, 905 passed, 8 skipped) Confidence: high Scope-risk: narrow Reversibility: clean
In plain terms
⌘K (Ctrl+K) opens a command palette: type a few letters to jump to any bot or room, or search across every transcript — message hits open the exact task they live in. Empty query = a quick switcher list.
Notes
/api/searchendpoint with the sidebar's debounce-and-drop-stale pattern; names answer instantly from local state.src/lib/palette-rank.ts): prefix matches outrank substring matches, input order preserved within tiers (the caller's order already means something).mousemoverather thanmouseenterso async hits arriving under a resting pointer can't steal the keyboard cursor; Esc closes withstopPropagationso modals underneath don't also react.Test plan
src/lib/palette-rank.test.ts— 5 cases: prefix-beats-substring, case-insensitivity, tie order, no-match filtering, empty-query passthroughpnpm typecheckclean; fullpnpm vitest rungreen (741 passed); touched files zero oxlint diagnostics🤖 Generated with Claude Code