-
Notifications
You must be signed in to change notification settings - Fork 11
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
Onboarding modal refactor #558
Conversation
[diff-counting] Significant lines: 148. |
Visit the preview URL for this PR (updated for commit d932744): https://cornelldti-courseplan-dev--pr558-onboarding-modal-ref-vlp3jype.web.app (expires Tue, 02 Nov 2021 23:59:06 GMT) 🔥 via Firebase Hosting GitHub Action 🌎 |
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.
Looks really good! Thanks for taking imitative in improving our Onboarding code 😄 it can get a bit messy.
Tested functionality and transfer credits seem to still work as expected! Just left one comment with a suggested code change
required: false, | ||
default: undefined, | ||
}, | ||
removeExam: { |
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.
Do all of these functions need to be passed down as properties to this new component? It might be cleaner to just $emit
from this component and call the functions in OnboardingTransfer
if the function definitions are going to remain in that file. I could see wanting to still pass down selectSubject
and selectScore
since there are different function definitions depending on exam type, but those could also be refactored to be 1 function that takes in an exam type parameter? What do you think?
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.
Yep that definitely makes sense! Shouldn't be too hard to change
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.
LGTM!
Summary
This pull request refactors the transfer credit onboarding modal by factoring out the frontend code for AP and IB score input into one component. I'm going to add another input for CASE exams, so I thought it would be better to get this refactor out of the way now (instead of having to duplicate the same code used for AP/IB). No changes are visible to the client, and the modal looks the same as it did before.