-
Notifications
You must be signed in to change notification settings - Fork 63
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
feat: open an injected course page on course block click in popup main #146
Conversation
…hich may or may not open the calendar
… and i think popupmain opens calendar now when the course block is clicked
…calendar using urlsearchparams
Quick explanation of what is basically left: When calendar.tsx detects a course it (should) open up the course injected popup, so the course just needs to be made on calendar.tsx. The parameter passing is set up now |
(fixing tests real quick ignore that) |
src/views/components/common/PopupCourseBlock/PopupCourseBlock.tsx
Outdated
Show resolved
Hide resolved
src/views/components/injected/CourseCatalogInjectedPopup/HeadingAndActions.tsx
Outdated
Show resolved
Hide resolved
src/views/components/common/PopupCourseBlock/PopupCourseBlock.tsx
Outdated
Show resolved
Hide resolved
src/views/components/common/PopupCourseBlock/PopupCourseBlock.tsx
Outdated
Show resolved
Hide resolved
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.
The changes that I requested looks good to me. Let's just wait on @Razboy20's review.
WE DID IT |
I don't got any courses to show, but this is a description:
(fig 1.)
When we click on a course here, we want to open up calendar, and open up the associated injected popup for that course, shown in fig 2
(fig 2.)
Current implementation is as such:
PopupCourseBlock takes in a function for clicking functionality, defaulting to nothing if we want nothing to happen. I found active schedule in popupmain, so I attached the handleOpenCalendar function to those course block components.
handleOpenCalendar takes in two parameters at the moment, the uniqueId and the associated course.
From there, the intention is to open calendar with parameters. I believe they pass correctly, but right now I'm only passing the uniqueId because I'm not sure what to do with the course.
From the calendar's side, I use URLSearchParams to receive the params (currently only uniqueId)
I saw some work in progress code on calendar so wasn't sure what to do with that. That's where we are for now! Lemme know your thoughts
edit: Looks like we're good to go now!