Skip to content
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

Merged
merged 5 commits into from
Oct 29, 2021
Merged

Onboarding modal refactor #558

merged 5 commits into from
Oct 29, 2021

Conversation

zachary-kent
Copy link
Collaborator

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.

Screen Shot 2021-10-25 at 10 26 16 AM

Screen Shot 2021-10-25 at 10 27 29 AM

@zachary-kent zachary-kent requested a review from a team as a code owner October 25, 2021 14:31
@dti-github-bot
Copy link
Member

dti-github-bot commented Oct 25, 2021

[diff-counting] Significant lines: 148.

@github-actions
Copy link
Contributor

github-actions bot commented Oct 25, 2021

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 🌎

Copy link
Member

@willespencer willespencer left a 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: {
Copy link
Member

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?

Copy link
Collaborator Author

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

Copy link
Member

@willespencer willespencer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@zachary-kent zachary-kent merged commit 97d94cc into master Oct 29, 2021
@zachary-kent zachary-kent deleted the onboarding-modal-refactor branch October 29, 2021 18:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants