JumboCode / casa-myrna

JumboCode 2023-2024 project for Casa Myrna, led by Elizabeth Foster
https://casa-myrna-pumv.vercel.app
4 stars 0 forks source link

Fullstack 80 make frontend shift object #111

Closed S-P-R closed 6 months ago

S-P-R commented 6 months ago

Allows users to request shifts, cancel shift requests, and cancel accepted shifts. Coordinators can approve shift requests and cancel shift requests.

Testing: I'm not sure if this is the case for everyone, but when I sign in currently I don't have a role in my publicMetadata. This required me to manually set my role to coordinator in the Calendar.tsx code: user.publicMetadata = {"role": "Coordinator"}

I tested by changing shift statuses on the Calendar page:

Screen Shot 2024-02-24 at 11 11 56 PM

These shifts can be updated to be pending and accepted entirely though clicking the buttons that appear on the shift modals

Screen Shot 2024-02-24 at 11 12 17 PM

Notes: Sorry for changing so many files, I had to change the userID fields for shifts and on-call-shifts from ints to strings I'm also sorry for moving so much code around in the Calendar page, hopefully the merge conflict isn't too bad