-
Notifications
You must be signed in to change notification settings - Fork 91
Feat: Async courses added dialogue on Calendar #1336
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
base: main
Are you sure you want to change the base?
Conversation
alexespejo
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pretty cool 😄
|
@alexespejo I resolved all your comments, lmk if theres anything else ! |
| AppStore.off('clearSchedule', handleUpdate); | ||
| AppStore.off('currentScheduleIndexChange', handleUpdate); | ||
| }; | ||
| }, []); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
issue: Why do we have a flag that forces a rerender when courses change? My interpretation here is that we want tbaSections to be reactive to the value of AppStore.schedule.getCurrentCourses().
If so, we shouldn't "pipe" reactive events across multiple hooks.
suggestion: we can have this useEffect update the value of tbaSections stored in a useState (this means we don't have to go from "course updated" -> "update trigger" -> "update tbaSections" and instead just say "course updated" -> "update tbaSections"
Co-authored-by: Kevin Wu <kevinwu098@gmail.com>
Summary
When a user adds Async sections to their schedule, a collapsible dialogue is now added to the bottom right of their calendar.

Alternative to #1310 that's less blaring to the user.
When screenshotted:

Test Plan
Issues
Closes #1181