Open
Conversation
…ag disply in user profile. Some are temporary as they are based on other PRs and need to be updated later
YoChang410
reviewed
Mar 11, 2026
Contributor
There was a problem hiding this comment.
Volunteer schema should be reverted
Contributor
There was a problem hiding this comment.
Sorry, could you provide more context on what it should be reverted to and why?
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.
Overview
This PR adds a full volunteer profile modal (View + Edit) with backend persistence for profile fields, status/type/event tags, and notes. It also includes post-merge integration fixes so profile edits work with the new auth/tag architecture and do not regress table/profile behavior.
Changes
View tab
VolunteerProfileModal.tsx: Built the View tab UIVolunteerProfileModal.module.css: Added View tab stylingEdit tab
Created edit tab, enabled data to be updated in the backend.
volunteerRoutes.ts: AddedPUT /:idto update volunteer profiles from the edit modal.volunteerValidator.ts: Added full update validation and relaxed phone validation to accept dashed formats.volunteerController.ts: ImplementedupdateVolunteerto persist edits in MongoDB viafindByIdAndUpdate(this is what makes the data store after changes).VolunteerProfileModal.tsx: Built the full Edit tab UI (fields, tag add/remove, save button) and wiredPUT /api/volunteer/:idso edits persist and then refresh the selected volunteer/table.VolunteerProfileModal.module.css: Added styles for the edit/save experience (save button and error state).page.tsx: Updated volunteer state in-place after successful edits to keep the table and selected volunteer synchronized.VolunteerProfileModal.tsx: Built the full Edit tab UI (fields, tag add/remove, save button) and wired saves through the frontend proxyPUT /api/volunteer/:id (auth-aware)so edits persist and UI state stays in sync.Post-merge fixes
volunteers/page.tsx,VolunteerTable.tsx).frontend/src/app/api/volunteer/[id]/route.ts(auth-aware, no hardcoded backend URL).tagswhen explicitly provided (backend/src/controllers/volunteerController.ts).backend/src/controllers/volunteerController.ts).backend/src/scripts/seedVolunteers.ts).Testing
Desktop View

Desktop Edit
Future Considerations
I spoke with the designers, and there might be a change for the Status to make them binary instead of tags, but this has not been decided nor designed yet. So currently, we are just following the original design.