FaqService
Component Detail
Service Layer
medium complexity
mobile
0
Dependencies
0
Dependents
0
Entities
0
Integrations
Description
FaqService handles retrieval and caching of FAQ content, coordinating between the remote backend and the local repository. It exposes methods for fetching all questions, searching by query string, and triggering a background sync after the initial data load. Business logic for category grouping and relevance ranking lives here.
faq-service
Sources & reasoning
FAQ is listed in the help-support area taxonomy. The blueprint marks it v1.0 rather than MVP, consistent with phasing self-service support tooling after core activity registration and auth are stable. Reduces coordinator support burden as the user base scales across organizations with varying digital literacy.
-
docs/source/likeperson.md · line 479| help-support | Help & Support | Contact Us, Privacy Policy, Accessibility Statement, FAQ |
Responsibilities
- Fetch FAQ entries from the backend API and delegate persistence to FaqRepository
- Return locally cached entries when the device is offline
- Filter and rank entries by search query
- Group entries by category for display
- Trigger background refresh on app foreground to keep content current
Interfaces
getFaqs(categoryId?: string): Promise<FaqEntry[]>
searchFaqs(query: string): Promise<FaqEntry[]>
syncFaqs(): Promise<void>
getCategories(): Promise<FaqCategory[]>