Skip to content

Download a csv with Send failures#505

Merged
michelleyeoh merged 4 commits intomainfrom
504-bulk-invite-judges-download-csv-for-failed-judges
Apr 28, 2026
Merged

Download a csv with Send failures#505
michelleyeoh merged 4 commits intomainfrom
504-bulk-invite-judges-download-csv-for-failed-judges

Conversation

@ReehalS
Copy link
Copy Markdown
Member

@ReehalS ReehalS commented Apr 27, 2026

For judges/mentors, on failure, download a csv with list of failures.

This will download a csv with columns
First Name, Last Name, Email, Failure

This same csv can be uploaded to the "Upload CSV" and will be accepted

@ReehalS ReehalS linked an issue Apr 27, 2026 that may be closed by this pull request
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds an admin UX improvement for bulk judge/mentor invites by letting users download a CSV containing invite failures (intended to be re-uploadable into the existing “Upload CSV” flow).

Changes:

  • Added a new CSV generator + filename helper for “invite failures” downloads.
  • Updated judge/mentor bulk invite forms to use csv-parse for preview parsing and to track the uploaded filename.
  • Added “Download Failures CSV” actions/buttons when failures occur.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 5 comments.

File Description
app/(pages)/admin/_utils/generateInviteFailuresCSV.ts New utility to generate a failure-focused CSV and a timestamped download filename.
app/(pages)/admin/_components/MentorInvites/MentorBulkInviteForm.tsx Uses csv-parse for preview parsing; stores uploaded filename; adds failures CSV download button/handler.
app/(pages)/admin/_components/JudgeInvites/JudgeBulkInviteForm.tsx Uses csv-parse for preview parsing; stores uploaded filename; adds failures CSV download button/handler.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread app/(pages)/admin/_utils/generateInviteFailuresCSV.ts Outdated
Comment thread app/(pages)/admin/_components/MentorInvites/MentorBulkInviteForm.tsx Outdated
Comment thread app/(pages)/admin/_components/JudgeInvites/JudgeBulkInviteForm.tsx Outdated
Comment thread app/(pages)/admin/_utils/generateInviteFailuresCSV.ts Outdated
Comment thread app/(pages)/admin/_utils/generateInviteFailuresCSV.ts Outdated
@michelleyeoh michelleyeoh merged commit dc93934 into main Apr 28, 2026
2 checks passed
@michelleyeoh michelleyeoh deleted the 504-bulk-invite-judges-download-csv-for-failed-judges branch April 28, 2026 02:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Bulk invite Judges download CSV for failed judges

3 participants