-
Notifications
You must be signed in to change notification settings - Fork 0
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
New admin schedule #61
base: main
Are you sure you want to change the base?
Conversation
Really good start, Im getting some errors currently but I think that is due to Jan's changes to moving instructor from a class field to schedule field. I think after he merges his changes in soon you can rebase to fix that. As for the issue of duplicate shifts for each volunteer, I think the best way to do this would be to combine the shifts based on schedule id. So if you had
You could combine on schedule id to get
For now we should combine on the frontend I think. |
Good work so far. I agree with Theo that on the frontend before displaying the list of shifts we can group by shift.fk_schedule_id to remove shift duplicates . Your logic for toggling between shift statuses also makes sense to me, but when logged in as a volunteer I wasn't able to see open coverage requests, aka the shifts with status SHIFT_TYPES.COVERAGE. |
It seems like the DetailsPanel is not rendering properly due to an undefined property "schedules" it's trying to read. I'm thinking this is due to some difference in the values returned upon switching to the new shifts api. Update: nvm seeing the bad field instructors error now... |
I believe that the Details panel just isn't working rn, I've made changes based on the reviews!! |
DRAFT PR - NOT COMPLETE
Changes Made (Previous)
shift_type
but useshift_absence_request.status
for both admin and volunteer accounts to determine the shift type to minimize changes made in codeclass_id
,start_time
,end_time
and display one class, but what if there is an instance where more than one volunteer for a class has requested a coverage request?case statements made into one, used getShifts updated PR