CertificateScreen
Component Detail
Description
Displays the peer mentor's verified digital certificate including certified status, expiry date, and issuing organization. Provides share functionality so mentors can export or send proof of certification to third parties. Mirrors the physical 'adelsmerke' card visually to reinforce its badge-of-honor significance.
certificate-screen
Sources & reasoning
HLF explicitly names digital certificates as a deliverable and requires the physical card to coexist with the digital version (line 114). 'Digitalt likepersonsbevis' appears directly in the Phase 3 roadmap (line 360), confirming v1.1 per third-phase normalization. The feature is the primary output artifact of the certification pipeline and logically depends on course completion records created by course-registration.
-
docs/source/likeperson.md · line 114digitale sertifikater. Det fysiske kortet er et «adelsmerke» og skal leve parallelt.
-
docs/source/likeperson.md · line 360Digitalt likepersonsbevis
Responsibilities
- Render certificate details (mentor name, status, expiry, issuing org) fetched from CertificateService
- Provide share/export action (system share sheet or download) for compliance verification
- Show certificate validity state (active, expiring soon, expired) with appropriate visual treatment
- Handle empty/loading states when certificate data is pending or unavailable
Interfaces
CertificateScreen(props: { mentorId: string }): ReactElement
onShareCertificate(certificate: Certificate): void