feat(crew): move volunteer CSV import to dedicated wizard page - #614
Draft
zacjones93 wants to merge 2 commits into
Draft
feat(crew): move volunteer CSV import to dedicated wizard page#614zacjones93 wants to merge 2 commits into
zacjones93 wants to merge 2 commits into
Conversation
Replace the Import volunteers dialog with a three-step wizard page at /events/$eventId/volunteers/import (Upload CSV with drag-and-drop → Map fields → Review & apply). Single-add and paste-emails stay as modals on the volunteers page. Reuses the existing import server contract (/api/crew/import preview, mapping presets, applyCrewImportFn). Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Entire-Checkpoint: 2a35186cc852
Contributor
|
Important Review skippedDraft detected. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Entire-Checkpoint: 2a35186cc852
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What changed
/events/$eventId/volunteers/importWhy
The CSV workflow needs more space and clearer progression than a dialog can provide. A dedicated page makes upload, mapping, validation, and application easier to understand without changing the existing backend behavior.
Impact
Organizers now launch CSV imports from the volunteers page and complete them in a focused wizard. Existing manual-add and pasted-email workflows remain unchanged.
Validation
pnpm --filter crew type-checklat checkThe package-wide
pnpm --filter crew checkstill reports 231 existing Biome errors in unrelated files.Summary by cubic
Moved volunteer CSV import from a modal to a dedicated three-step wizard at /events/$eventId/volunteers/import for clearer upload, mapping, and review. Adds validation and guard rails while reusing the existing import API; single-add and paste flows stay unchanged.
New Features
volunteer-import-flow.tsx; addedvolunteer-import-wizard.tsxand routeroutes/events/$eventId/volunteers_.import.tsx(route tree updated). Reuses/api/crew/import, mapping suggestion/preset server functions, andapplyCrewImportFn.Bug Fixes
MAX_CREW_IMPORT_BYTESandisCrewImportCsvUploadinfile-validation.ts, used by the server and/api/crew/import.Written for commit 4d0d394. Summary will update on new commits.