nusmodifications / nusmods

🏫 Official course planning platform for National University of Singapore.
https://nusmods.com
MIT License
558 stars 270 forks source link

Add new Button on Course Page to Add Course to Planner #3731

Open EssWhyy opened 1 month ago

EssWhyy commented 1 month ago

Context

Implementation for #3399

Implementation

Added a button to each module page to allow a user to save the module to the planner in the Plan to Take section, acting like a save button of sorts.

If it is already added to Plan To Take, the button will remove the module from there instead.

Test Run:

https://github.com/nusmodifications/nusmods/assets/39799639/bb7ccd98-f413-4400-9ca1-12440988319b

Other Information

vercel[bot] commented 1 month ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
nusmods-export ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 16, 2024 4:05pm
nusmods-website ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 16, 2024 4:05pm
vercel[bot] commented 1 month ago

@EssWhyy is attempting to deploy a commit to the modsbot's projects Team on Vercel.

A member of the Team first needs to authorize it.

codecov[bot] commented 1 month ago

Codecov Report

Attention: Patch coverage is 51.21951% with 20 lines in your changes missing coverage. Please review.

Project coverage is 53.62%. Comparing base (7334b07) to head (884b76b). Report is 16 commits behind head on master.

Files Patch % Lines
.../views/components/module-info/SaveModuleButton.tsx 48.71% 20 Missing :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #3731 +/- ## ======================================= Coverage 53.62% 53.62% ======================================= Files 272 273 +1 Lines 5979 6020 +41 Branches 1428 1437 +9 ======================================= + Hits 3206 3228 +22 - Misses 2773 2792 +19 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.