chatcn

Search

Command-palette style search across messages. The ChatSearch component provides a full-text search overlay with keyboard navigation, highlighted snippets, and instant navigation to matched messages.

ESC
AC
Alex Chenin Design Team
2:30 PM

The PR is ready for review

SK
Sara Kimin General
1:45 PM

I reviewed it this morning

AC
Alex Chenin Design Team
11:20 AM

Token refresh is rewritten

Basic Usage

The ChatSearch component takes three callback props: onSearch to fetch results, onSelect to handle a chosen result, and onClose to dismiss the overlay.

DT
Design TeamAlex, Sara, and you
Alex Chen
The PR is ready for review
2:30 PM
Sara Kim
I reviewed it this morning
1:45 PM
Alex Chen
Token refresh is rewritten
11:20 AM
Looks good, merging now!
11:25 AM

SearchResult Data Shape

The onSearch callback should return an array of SearchResult objects. Each result contains enough context to display a preview and navigate to the original message.

AC
Alex Chen2:30 PM

The new layout looks great!

in Design Team
SK
Sara Kim11:15 AM

Meeting moved to Thursday

in General

Keyboard Shortcut

By convention, use Cmd+K (macOS) / Ctrl+K (Windows/Linux) to open search, and Escape to close it. The component handles Escape internally, but you need to wire up the open shortcut yourself.

KmacOS
/
Ctrl+KWindows / Linux