Contact Search Service
Component Detail
Service Layer
low complexity
mobile
3
Dependencies
1
Dependents
1
Entities
0
Integrations
Description
Orchestrates search execution, routing queries to Supabase when online or to the local Drift SQLite cache when offline. Handles debouncing, query normalization, and merging results from both sources. Exposes a unified search stream to the UI layer.
contact-search-service
Responsibilities
- Route search queries to online or offline data source
- Normalize and sanitize query strings
- Merge and deduplicate results from multiple sources
- Expose reactive search result stream
Interfaces
search(String query)
clearResults()
searchStream()
isOffline()
getLastQuery()
Relationships
Dependencies (3)
Components this component depends on