certifications
Component Detail
Description
Drift-backed repository managing the certifications table, providing CRUD access to certification records that store user name, organization, certification type, issue date, expiry date, and issuing coordinator. Used by both the Certificate Display Screen and the Certification Expiry Auto-Pause feature, making it a shared data component. Handles offline caching so the certificate is available without network access.
certifications-repository
Sources & reasoning
Shared data layer required by both this feature (reading and displaying the certificate) and certification-expiry-auto-pause (reading expiry date to trigger auto-pause). Drift offline caching is required per the feature's implementation notes so the certificate is accessible without connectivity.
No source references — this artifact was included based on reasoning alone (see above).
Responsibilities
- Read and cache certification records for the current user via Drift
- Support offline reads of the last-synced certificate
- Persist certification records received from the REST API
- Expose expiry date for consumption by the Certification Expiry Auto-Pause service
Interfaces
getCertification(String userId): Future<CertificationRecord?>
upsertCertification(CertificationRecord record): Future<void>
watchCertification(String userId): Stream<CertificationRecord?>
getCertificationExpiry(String userId): Future<DateTime?>
Relationships
Dependents (2)
Components that depend on this component
Related Data Entities (2)
Data entities managed by this component