Repository navigation
Labels
Description
Parent
What to build
Implement manual check-in: organizer marks a participant as present via Admin panel. Creates a check-in record and transitions enrollment status.
Action: CheckInAction
- Accepts: enrollment, method (enum), payload (array), event_date (Carbon date)
- Validates: enrollment status must be
confirmed - Validates: event_date is within event's starts_at/ends_at date range
- Validates: no existing check-in for this enrollment + date combination
- Creates
events_check_insrecord (method=manual, payload={actor_user_id: ...}, event_date, checked_in_at=now) - If this is the first check-in for this enrollment: transitions status from
confirmed→checked_in, setschecked_in_at - If enrollment is already
checked_in(multi-day, subsequent days): just creates the check-in record, no status transition - Records transition in audit trail (triggered_by=admin, actor_user_id=organizer)
- Dispatches
ParticipantCheckedInimplementingShouldDispatchAfterCommit
Admin panel:
- "Check In" action on enrollment records (only visible when status=confirmed or checked_in)
- Date picker defaulting to today (for multi-day events)
- Bulk action: "Check In Selected" for marking multiple participants at once
- Check-in history visible per enrollment (dates checked in)
Validation rules:
- Cannot check in the same enrollment on the same date twice
- Cannot check in outside event date range
- Cannot check in enrollment that is not
confirmedorchecked_in
Acceptance criteria
- Organizer can mark a participant as checked in from Admin panel
- Check-in record is created in
events_check_inswith method=manual and correct date - First check-in transitions enrollment from
confirmed→checked_in - Subsequent check-ins (multi-day) create records without re-transitioning status
- Duplicate check-in on same date is rejected
- Check-in outside event date range is rejected
- Bulk check-in action works for multiple participants
-
ParticipantCheckedIndomain event is dispatched - Transition audit trail records the organizer who performed check-in
- Feature tests: single check-in, multi-day check-ins, duplicate prevention, date range validation
- Pint passes
Blocked by
- feat(events): RSVP enrollment end-to-end #240 (RSVP Enrollment — needs confirmed enrollments to check in)
Activity
[-]Events: Check-in Manual[/-][+]feat(events): manual check-in[/+]feat(events): implement manual check-in (#278)
feat(events): implement manual check-in (#278)
feat: events module (#309)