Data Layer low complexity mobile
0
Dependencies
2
Dependents
2
Entities
0
Integrations

Description

Local data store that caches annual summary responses from the backend API. Stores the pre-computed yearly statistics including activity counts, contact interactions, hours volunteered, events attended, and achievement milestones. Implements cache invalidation based on year boundaries and data freshness.

Feature: Annual Summary (Wrapped)

summary-store

Responsibilities

  • Persist cached annual summary data locally
  • Provide offline access to previously fetched summaries
  • Manage cache invalidation and expiry
  • Store summary state (viewed, shared, available years)

Interfaces

saveSummary(userId, year, summaryData)
getSummary(userId, year)
deleteSummary(userId, year)
isCacheValid(userId, year)
getViewedStatus(userId, year)
setViewedStatus(userId, year)
clearAllSummaries(userId)

Relationships

Dependents (2)

Components that depend on this component

Related Data Entities (2)

Data entities managed by this component