-
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
DOM manipulation removal #170
Conversation
@willespencer when do you think it will be ready? I might want to touch some of the files soon. |
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.
@SamChou19815 I'll get it ready for review by the dev meeting!
[diff-counting] Significant lines: 242. |
[deployment-bot] Deployed to https://cornell-dti.github.io/course-plan/170/index.html |
@willespencer I think it's better for this PR to stop here. It's already start to get big and is blocking some other refactors I plan to do. |
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.
@SamChou19815 Agreed! Just making sure I document the remaining issues and things I have figured tried/figured out in this PR and on Monday, and then I'll mark it ready to review 😄.
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.
tested the features and they all seem to work
Summary
Remove most of the existing bad DOM Manipulation code in the codebase and replace it with event handling per issue #10. This will make it much easier in the future to see and change how data flows between components.
document.getElementByID
or.innerHTML
that grabs and manipulates data poorly, especially in opening/closing modals$parent
references.<semester>
s, NewCustomCourse.vue, etc.)Modal.vue
,NewCourse.vue
, andOnboardingTransfer.vue
(waiting for @hahnbeelee's work to be finished before messing around with this file, will take significant more work than these other elements, see Monday)createCourse
so it is not called with$parent
(@SamChou19815 do you want to take this?)Test Plan
Ensure that everything works on the site compared to master (https://cornelldti-courseplan-dev.web.app/) with the exception of clicking outside of modals closing them.
Check if all of the following modals can be opened, closed, and used as expected
Notes
The rest of the DOM Manipulation should be removed so it is not duplicated in the future like it has been since CoursePlan started.
Breaking Changes
As specified above, just clicking outside of modals.