Monitor Per-Mentor Batch Submission Progress in Real Time
During and after a bulk registration submission, the Batch Submission Progress Widget is rendered inline within the Bulk Registration Screen. It maintains a map keyed by mentor ID and updates each entry as the Bulk Registration Service receives results from the Supabase RPC. Pending mentors show a loading indicator, successful ones show a checkmark with the activity date, and failed ones show an error icon with a brief reason (e.g., validation failure, duplicate detection). The coordinator can see the full outcome without leaving the screen.
User Story
Acceptance Criteria
- Given a bulk submission is in progress, when the coordinator views the Batch Submission Progress Widget, then each selected mentor is listed with a pending indicator until their result is received
- Given a mentor's activity insert succeeds, when the result is returned, then that mentor's row transitions to a success state showing a confirmation and the activity date
- Given a mentor's activity insert fails, when the error is returned, then that mentor's row transitions to an error state with a human-readable reason and the row is visually distinguished from successful rows
- Given the full batch completes, when all results are received, then a summary line shows the total count of successes and failures
- Given there are zero failures, when the batch completes, then the coordinator sees a single clear success confirmation without needing to scan individual rows
Business Value
Silent partial failures are unacceptable in activity reporting because missing records corrupt Bufdir grant data. Per-row progress visibility ensures coordinators can verify completeness immediately after submission and act on failures before leaving the screen, preventing data integrity issues that would only surface during report generation.