-
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
merge collection frontend and backend #951
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- can save a course when press 'done' - course is saved to an empty collection - add functions for add & edit collection
- can save one course to multiple collections w/ checkbox - saved course will be removed from semester view and from fullfilled requirements - pop up notification
- finished scrollable checkbox frontend - fixed the bug for selecting a singular checkbox - believed its stored in firestore when added to collection - renamed collection to savedCourses for firesetore clarity
- saveCourseModal allow user to name their new collections - moved scss into a separate file
- added updateDoc in backend functions - made edit Collections modal more functional with saveCourse
[diff-counting] Significant lines: 800. |
Visit the preview URL for this PR (updated for commit aa42b8c): https://cornelldti-courseplan-dev--pr951-hannah-merge-collec-k0z28qt0.web.app (expires Thu, 28 Nov 2024 21:16:48 GMT) 🔥 via Firebase Hosting GitHub Action 🌎 Sign: 6d4e0437c4559ed895272bbd63991394f1e0e933 |
Simon draggable saved courses
…rse-plan into hannah--merge-collection
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
This pull request is one of the final steps in implementing saved courses
Small Little Demo:
CoursePlan.and.18.more.pages.-.Personal.-.Microsoft.Edge.2024-10-28.03-00-39.mp4
Demo with firestore:
Screen.Recording.2024-10-27.231911.mp4
Remaining TODOs:
Depends on #{number of PR}
Test Plan
Enable the saved course icon with
![image](https://private-user-images.githubusercontent.com/91917682/380856036-648d8176-3f34-4c28-b32a-f09b5589fd35.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzg5MDgzNjIsIm5iZiI6MTczODkwODA2MiwicGF0aCI6Ii85MTkxNzY4Mi8zODA4NTYwMzYtNjQ4ZDgxNzYtM2YzNC00YzI4LWIzMmEtZjA5YjU1ODlmZDM1LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMDclMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjA3VDA2MDEwMlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTBiYTBkMWRmZmM1OWE3M2NhYmFmMDlkOGM2M2Y4YTBhMmVmNDNkMjkzMTQ2ZmEwMzQ4YTZhZmU2ZTU1NmQ3OTEmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.v7j1lwMU9ZpB59qgibC6fFT1r1FtJCJAkby8tfUOs6k)
![image](https://private-user-images.githubusercontent.com/91917682/380856206-078e7ee6-d429-46cf-a687-447aacf01c27.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzg5MDgzNjIsIm5iZiI6MTczODkwODA2MiwicGF0aCI6Ii85MTkxNzY4Mi8zODA4NTYyMDYtMDc4ZTdlZTYtZDQyOS00NmNmLWE2ODctNDQ3YWFjZjAxYzI3LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMDclMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjA3VDA2MDEwMlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWE0NDViMmIyZjViZTNhYzczMjA4MmE3ZDU5OGMxN2ZhOGE5ZDVmNWNjNGQ3MTgxM2IzMzE2ZWU2MDI0YTk1MDUmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.dS2x2GjXaRi-I7nx5fsTwsgXq7GPFoa7wTppjiqY6XU)
GK.enableSavedCourses();
in the console.Now you should be able to see the saved icon on the sidebar :)
Please run in terminal
![image](https://private-user-images.githubusercontent.com/91917682/380602430-f3313e7c-a6fe-4ed7-8e67-288114c97d92.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzg5MDgzNjIsIm5iZiI6MTczODkwODA2MiwicGF0aCI6Ii85MTkxNzY4Mi8zODA2MDI0MzAtZjMzMTNlN2MtYTZmZS00ZWQ3LThlNjctMjg4MTE0Yzk3ZDkyLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMDclMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjA3VDA2MDEwMlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWNkMDM0YjA0NjZlODUyNjQxMDgwZDEzMzEzZWUzYTI2ZTQ2ZjI3ODJhMTZiODdiMTQ0YTUwODkyODA1MmIzNTAmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.7ph2bZ6X2ZFocH1vukMrB504WEBgq0f4xICPXWDsRWE)
npm run ts-node scripts/migration/savedCourses-migration.ts -- [email protected]
to get a default Collection. if you don't do this courseplan will crash D': (That was me this entire afternoon)Make sure you can see
savedCourses
in firestoreNotes
Blockers
Breaking Changes