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:
These shifts can be updated to be pending and accepted entirely though clicking the buttons that appear on the shift modals
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
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:
These shifts can be updated to be pending and accepted entirely though clicking the buttons that appear on the shift modals
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