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

merge collection frontend and backend #951

Merged
merged 15 commits into from
Oct 29, 2024
Merged

Conversation

plumshum
Copy link
Contributor

@plumshum plumshum commented Oct 28, 2024

Summary

This pull request is one of the final steps in implementing saved courses

  • merge collections side bar with backend
  • make course draggable

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 GK.enableSavedCourses(); in the console.
image
Now you should be able to see the saved icon on the sidebar :)
image

Please run in terminal 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 firestore
image

Notes

Blockers

  • A newly discovered dependency that hasn’t been addressed

Breaking Changes

  • Database schema change (anything that changes Firestore collection structure)
  • Other change that could cause problems (Detailed in notes)

plumshum and others added 7 commits October 2, 2024 18:10
- 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
@dti-github-bot
Copy link
Member

dti-github-bot commented Oct 28, 2024

[diff-counting] Significant lines: 800.

Copy link
Contributor

github-actions bot commented Oct 28, 2024

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

@plumshum plumshum self-assigned this Oct 28, 2024
@plumshum plumshum marked this pull request as ready for review October 28, 2024 07:21
@plumshum plumshum requested a review from a team as a code owner October 28, 2024 07:21
@plumshum plumshum merged commit 2d1970e into saved-courses Oct 29, 2024
11 checks passed
@plumshum plumshum deleted the hannah--merge-collection branch October 29, 2024 21:19
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