Access Impact Summary Offline After Initial Load
The Impact Summary Repository caches the summary JSON payload locally on the device after the first successful load. Subsequent accesses to the Impact Summary Screen check for a cached payload first and render immediately without a network request. The cache persists across app restarts. When a new summary is generated, the cache is invalidated and the updated payload is fetched on next access. This ensures the feature works reliably in field conditions where peer mentors may operate without reliable internet.
User Story
Acceptance Criteria
- Given the user has previously loaded their impact summary with network access, when they open the summary screen with no network connection, then the cached summary renders without errors
- Given the device has no network and the summary is cached, when the user navigates through all slides, then all content including statistics and animations displays correctly
- Given a new summary is generated by the server, when the user next opens the app with network access, then the stale cache is replaced with the updated summary
- Given the app is uninstalled and reinstalled, when the user loads their summary for the first time after reinstall, then the summary is fetched from the server (cache was cleared)
Business Value
Many peer mentors operate in community settings with unreliable internet. Offline capability ensures that the recognition experience is not degraded by connectivity issues, and that sharing — a key organic marketing action — remains available regardless of network conditions.
Components
- Impact Summary Repository data
- Impact Summary Screen ui
- Supabase Client Service service