Annual Summary Service
Component Detail
Service Layer
high complexity
mobilebackend
3
Dependencies
2
Dependents
5
Entities
0
Integrations
Description
Core service that orchestrates retrieval and presentation logic for the peer mentor's annual summary. Fetches pre-computed summary data from the backend, triggers on-demand computation if the cache is stale, and structures the data into ordered slide content for the UI. Handles push notification triggering at the start of each year and manages the share asset generation pipeline.
annual-summary-service
Responsibilities
- Fetch pre-computed annual summary from backend or trigger recomputation
- Structure raw aggregated data into ordered slide payloads for the presentation layer
- Request server-side shareable image or PDF generation
- Coordinate with push notification service for annual summary availability alert
Interfaces
getAnnualSummary(userId, year)
refreshSummary(userId, year)
buildSlidePayloads(summaryData)
requestShareAsset(summaryId, format)
getSummaryStatus(userId, year)
markSummaryViewed(summaryId)
getAvailableYears(userId)
Relationships
Dependencies (3)
Components this component depends on
Dependents (2)
Components that depend on this component
Related Data Entities (5)
Data entities managed by this component