-
Notifications
You must be signed in to change notification settings - Fork 0
SSF-92 Volunteer Management Frontend and Add New Volunteer Modal #80
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
Making SSF-92 branch up to date with main
…hub.com/Code-4-Community/ssf into jw/SSF-92-volunteer-management-frontend
amywng
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
one small nit but lgtm!!
dburkhart07
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Few comments, lmk if you have any questions or comments about them! 🎁
| </Link> | ||
| </Button> | ||
| <Table.Cell textAlign="right"> | ||
| <Link color="neutral.700" fontWeight={400} textStyle="p2" variant="underline" href={`/pantry-management/${volunteer.id}`}> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This navigation doesn't make sense to me. Can we confirm with Sam/Priya what we want this flow to be like? I thought users could be assigned to multiple pantries, so to navigate to one pantry here doesn't make sense. If they are only being assigned to one pantry, this should be adjusted to get the pantry id through a pantry lookup by user (in other words, we will need to create a new function to find pantry by pantry_user_id), then use that id for navigation.
Let me know if you have any questions about this.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I assumed it was like a page to see all the pantries of that user.id but to be honest I have no idea what that flow is like. I'll confirm with Sam
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sam said not to worry about that right now, that page isn't implemented but when it is we can refactor this
| {error} | ||
| </Text> | ||
| )} | ||
| <Flex justifyContent="flex-end" mt={12} gap={4}> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe I missed this, but did we confirm that the order ofo the Submit and Cancel button should be reversed from what's in the Figma?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah I confirmed with Priya
ℹ️ Issue
Closes https://vidushimisra.atlassian.net/jira/software/projects/SSF/boards/1?selectedIssue=SSF-92
📝 Description
This PR is another frontend PR to update the design of the volunteer management page to match the figma. It also adds the previously absent add new volunteer modal. There is nothing special regarding code decisions; however I did have to handle invalid phone numbers/emails in the form and I did so via an error message similar to the please fill in all fields message. There might be a better way to handle that but it works currently.
http://localhost:4200/volunteer-management
✔️ Verification
Frontend verification to ensure it matches the figma. Ensured adding new volunteers works properly with the new modal.