Sync Status Store
Component Detail
Data Layer
medium complexity
mobile
1
Dependencies
2
Dependents
0
Entities
0
Integrations
Description
Persists the outcome of each background sync run to a local SQLite status table. Stores sync timestamps, per-entity success and failure counts, and any conflict summaries. The foreground app reads this store on next launch to display non-intrusive user-facing messages about the most recent sync result.
sync-status-store
Responsibilities
- Write sync run results including success/failure counts per entity type
- Store conflict summaries for foreground display
- Track last successful sync timestamp per entity type
- Expose sync status for foreground notification rendering
- Clear stale status records after acknowledgement
Interfaces
saveSyncResult(runId, result)
getLastSyncStatus()
getSyncStatusByEntity(entityType)
saveConflicts(conflicts)
getUnacknowledgedConflicts()
acknowledgeConflicts(conflictIds)
clearOldResults(retentionDays)
Relationships
Dependents (2)
Components that depend on this component