Skip to content

Conversation

@bengotow
Copy link
Collaborator

@bengotow bengotow commented Jan 3, 2026

Add a fully functional event search bar to the calendar sidebar that allows users to search for events by title, description, location, or participants.

Features:

  • Search input with debounced queries (300ms) to avoid excessive database calls
  • Dropdown suggestions showing matching events with calendar color indicators
  • Keyboard navigation (arrow keys, Enter to select, Escape to clear)
  • Event details display including title, date/time, and location
  • Results sorted by proximity to current date
  • Respects disabled calendars filter
  • Loading indicator during search

The implementation follows the same patterns used by the thread/email search feature, leveraging the existing Event model's FTS5 search capability and the Menu component for the dropdown UI.

claude added 5 commits January 3, 2026 19:13
Add a fully functional event search bar to the calendar sidebar that allows
users to search for events by title, description, location, or participants.

Features:
- Search input with debounced queries (300ms) to avoid excessive database calls
- Dropdown suggestions showing matching events with calendar color indicators
- Keyboard navigation (arrow keys, Enter to select, Escape to clear)
- Event details display including title, date/time, and location
- Results sorted by proximity to current date
- Respects disabled calendars filter
- Loading indicator during search

The implementation follows the same patterns used by the thread/email search
feature, leveraging the existing Event model's FTS5 search capability and
the Menu component for the dropdown UI.
- Move EventSearchBar from calendar sidebar to toolbar location
- Create focusCalendarEvent action for communication between search
  bar and calendar component
- Update styling to match ThreadSearchBar design:
  - Fixed width toolbar appearance
  - Box-shadow border styling
  - Dropdown suggestions matching thread search style
  - Same clear button (searchclear.png) and search icon
- EventSearchBar now gets disabled calendars from config directly
- Calendar component listens to focusCalendarEvent action

The search bar now appears in the same toolbar area as the email
search bar, providing a consistent UX across the application.
- Add 'focused' class to search bar container when input is focused
- Style the container with focus ring instead of the input element
- Use accent-primary color for consistent focus ring appearance
Clear focusedEvent when clicking on other events in the calendar
to prevent the search result event from remaining in a focused state
and continuously re-opening the popover.
@bengotow bengotow merged commit 829c8c3 into master Jan 6, 2026
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.

3 participants