FAQ Content Service
Component Detail
Service Layer
low complexity
mobile
1
Dependencies
1
Dependents
0
Entities
0
Integrations
Description
Fetches the FAQ JSON dataset from the backend REST endpoint and persists it locally via Drift for offline access. Serves role-filtered and keyword-searched entries from the local cache, enabling FAQ content updates server-side without requiring an app release.
faq-content-service
Sources & reasoning
Service layer required to decouple network fetching and offline caching from the UI screen. Enables server-side FAQ updates without an app release and ensures availability in low-connectivity conditions - critical for volunteers who may be in the field.
No source references — this artifact was included based on reasoning alone (see above).
Responsibilities
- Fetch FAQ entries from backend REST endpoint on foreground refresh
- Persist fetched entries to local Drift table, replacing stale cache
- Return cached entries filtered by role and keyword substring match
- Fall back to stale cache when network is unavailable
Interfaces
fetchAndCache()
getEntries(String roleFilter, String keyword)
getCategories()
clearCache()