You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Now that we have the Compare Panel to select schedules to compare, we want to actually connect it to the backend and display those schedules on the Calendar.
### Summary
Resolves#204
<!-- What does this PR change and why? Discuss any breaking changes. -->
Adds some functionality to the compare panel
Known bugs:
- [ ] The .frame class for the selected palette color doesn't work.
- [ ] Colors change when the user swaps schedule versions bc colorMap is
based on whatever version is currently selected. Will have to create a
separate colorMap for friend schedules?
- [x] Removing / editing a friend / schedule (unless you are deleting
the last remaining schedule?) will rerender whole page
To do:
- [x] Let calendar know when compare schedules is turned on and what
schedules are selected.
- [x] Remove section for user's schedules on compare panel (since we are
only going to display the user's current schedule)
- [x] Add `CombinationContainer` back and standardize color when compare
panel is on
- [x] Standardize color in `CourseContainer` when compare panel is on
- [x] Add events from friends schedules to calendar
- [x] Allow users to still use `CourseContainer` when compare panel is
on
### Checklist
#### UI Requirements
- [ ] The list of friend schedules on the Compare Panel view are pulled
from FriendContext.
- [ ] All time blocks show up correctly ("preview" calendars in
`CombinationContainer` and export "fake" calendar should not be
affected)
- [ ] All time blocks of a given schedule have the same color, which is
dictated by the color picker in the compare panel.
- [ ] Disabling compare view removes all friend schedules on the
calendar.
- [ ] Popup for each time block must include the owner's name.
#### Functional Requirements
- [ ] `FriendContext` and the friend collection must be updated when
user removes a friend's schedule
- [ ] `FriendContext` and the friend collection must be updated when
user gives their friend a nickname
### How to Test
In `src\components\Scheduler\index.tsx` line 20, change compare to true.
In `src\components\Calendar\index.tsx` line 53, change the schedules to
whatever schedules you want to show on the Calendar.
---------
Co-authored-by: Nghi Ho <[email protected]>
Co-authored-by: Samarth Chandna <[email protected]>
Co-authored-by: nathangong <[email protected]>
Co-authored-by: EmilyAL001 <[email protected]>
Co-authored-by: Hailey Ho <[email protected]>
Description
Now that we have the Compare Panel to select schedules to compare, we want to actually connect it to the backend and display those schedules on the Calendar.
Refer to Figma for more design details.
Acceptance Criteria
UI Requirements
CombinationContainer
and export "fake" calendar should not be affected)Functional Requirements
FriendContext
and the friend collection must be updated when user removes a friend's scheduleFriendContext
and the friend collection must be updated when user gives their friend a nicknameThe text was updated successfully, but these errors were encountered: