You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: add contact search to command bar (Spotlight-style)
Transform the command bar from a simple phone dialer into a full
contact search bar. Users can now type a name to search the phonebook
and local operators, navigate results with arrow keys, and call with
Enter.
- Search phonebook via API with 250ms debounce and stale-request
cancellation
- Local operator matching (name + extension) displayed first, deduped
against phonebook results
- Operator results show avatar and presence indicator
- Keyboard navigation: ArrowUp/Down to select, Enter to call, Escape
to close
- Dynamic window resize via new COMMAND_BAR_RESIZE IPC event with full
setBounds rect (avoids DPI issues on Windows)
- Cache operators/avatars with 30s TTL to avoid redundant API calls
- Memoize expensive computations (operator filtering, result merging)
- Fix IPC listener leak: proper cleanup on effect re-run
- Non-mutating mapContact for safer data handling
0 commit comments