FAQ Entries Repository
Component Detail
Data Layer
low complexity
mobile
0
Dependencies
1
Dependents
0
Entities
0
Integrations
Description
Drift-based local data store for cached FAQ entries. Each record holds question, plain-text answer, category tag, and role_filter field (peer_mentor, coordinator, all) to enable fully client-side search and role filtering without any network dependency.
faq-entries-repository
Sources & reasoning
Local persistence layer needed for offline FAQ access via the platform's Drift offline store. Structured storage of question, answer, category, and role_filter fields enables client-side substring search and role filtering without network access.
No source references — this artifact was included based on reasoning alone (see above).
Responsibilities
- Persist FAQ entries fetched from backend into a local Drift table
- Query entries by role filter and keyword substring across question and answer fields
- Replace all cached entries atomically on successful backend fetch
Interfaces
insertOrReplaceAll(List<FAQEntry> entries)
findByRoleAndKeyword(String role, String keyword)
findAll()
clear()