Repository navigation
Closed
Labels
Description
Parent
What to build
Implement QR code check-in: system generates a unique QR token per enrollment on confirmation, organizer scans it to check participant in. Token is reusable across event days.
QR Token generation:
- When enrollment transitions to
confirmed: automatically generate a unique token inevents_qr_tokens - Token format: URL-safe random string (32+ chars), unique across all tokens
- Optional
expires_at(nullable — if null, valid for event lifetime) - One token per enrollment (created once, reused per day)
Extend CheckInAction (qr_code path):
- Input: token string + event_date (date derived from scan time)
- Validates: token exists and belongs to an enrollment in this event
- Validates: enrollment status is
confirmedorchecked_in - Validates: token not expired (
expires_at IS NULL OR expires_at > now()) - Validates: no check-in for this enrollment + date yet
- Creates check-in record with method=qr_code, payload={token: "..."}
- Same status transition logic as other methods
- Dispatches
ParticipantCheckedIn
Admin panel — Scan interface:
- "Scan QR" page/action accessible from Event resource
- Input field for token (simulates scan — actual camera integration is frontend concern)
- Shows participant name + status on successful scan
- Error display for invalid/expired tokens
App panel — QR display:
- "My QR Code" section on enrollment detail (visible when status=confirmed or checked_in)
- Renders QR code image from token (using a QR library or inline SVG generation)
- Shows "Present this QR to the organizer" instruction
Token lifecycle:
- Generated on
confirmedtransition - NOT regenerated on subsequent transitions (e.g., checked_in → stays same token)
- If enrollment is cancelled: token can be soft-invalidated (or just check enrollment status on scan)
Acceptance criteria
- QR token is auto-generated when enrollment reaches
confirmedstatus - Token is unique and URL-safe
- Organizer can scan/input token and check participant in
- Same token works across multiple event days (creates new check-in per day)
- Expired token is rejected
- Duplicate scan on same day is rejected
- Cancelled enrollment's token is rejected on scan (status check)
- Participant sees their QR code in App panel
- Check-in record stores method=qr_code with token in payload
-
ParticipantCheckedIndomain event dispatched - Feature tests: generate token, valid scan, expired token, duplicate scan, cancelled enrollment scan, multi-day reuse
- Pint passes
Blocked by
- feat(events): RSVP enrollment end-to-end #240 (RSVP Enrollment — needs confirmed enrollments for token generation)
Activity
[-]Events: Check-in QR Code[/-][+]feat(events): QR code check-in[/+]hefeus commentedon May 29, 2026
Irei pegar essa task para fazer, não consegui colocar me colocar como responsável
davicbtoliveira commentedon Jun 8, 2026
Issue closed by @YuriSouzaDev in #298
feat: events module (#309)