CRITICAL story-bulk-registration-proxy-reporting-coordinator-001 8 pts
8
Story Points
Critical
Priority
Bulk Registration & Proxy Reporting
Feature

User Story

As a Coordinator
I want to select multiple peer mentors, configure a shared activity template, and submit all registrations in a single batch action
So that So that I can register recurring fixed activities (such as weekly group sessions) for many peer mentors in seconds instead of entering each record individually

Acceptance Criteria

  • Given the coordinator is authenticated with coordinator role, when they navigate to the Bulk Registration Screen, then the screen is accessible and the peer mentor selection widget renders a filterable list of all peer mentors in their scope
  • Given multiple peer mentors are selected and a shared activity template is filled in, when the coordinator taps Submit, then the Bulk Registration Service issues a single Supabase RPC call inside a database transaction
  • Given the batch is submitted, when all inserts succeed, then each peer mentor row shows a success state in the batch progress widget and a delegation_grants record is created linking the coordinator to each activity
  • Given a shared activity template is submitted for N mentors, when the transaction completes successfully, then exactly N activity records exist in the database each owned by the respective peer mentor's user_id
  • Given the coordinator has not selected at least one peer mentor, when they attempt to submit, then the form is invalid and submission is blocked with a clear validation message

Business Value

NHF and HLF explicitly requested bulk registration to handle recurring weekly activities attended by many participants. Without this capability, coordinators managing even a moderately sized peer mentor pool face hours of repetitive data entry per week. Bulk registration compresses this to a single multi-select + submit interaction, directly removing the primary coordinator pain point of unsustainable manual data aggregation. This is a prerequisite for coordinator adoption of the app over paper/Excel workflows.