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

Split overnight shifts into two events #154

Closed S-P-R closed 5 months ago

S-P-R commented 5 months ago

Sean Reilly & David Chen Time Spent: 2 hours

Splits normal shifts that span two days into two different events so that they don't look like on-call shifts on the Calendar. Ex. If a shift is from 10:00 PM Friday - 3:00 AM Saturday it will be split into two events, one 10:00 PM - 11:59 Friday and one 12:00 AM Saturday - 3:00 AM Saturday. Note: This will not work for shifts that span 3 or more days

Testing:

Scheduling a shift:

Screenshot 2024-04-07 at 1 36 08 PM

Here are the two segments:

Screenshot 2024-04-07 at 1 36 21 PM Screenshot 2024-04-07 at 1 37 22 PM

Modifying one part of the shift, such as by clicking on it and cancelling it, will also modify the other part