Skip to content

feat(timetable): restore customizable timetables#3483

Open
zwliew wants to merge 8 commits into
masterfrom
zwliew/feat/ta-timetable
Open

feat(timetable): restore customizable timetables#3483
zwliew wants to merge 8 commits into
masterfrom
zwliew/feat/ta-timetable

Conversation

@zwliew

@zwliew zwliew commented Aug 4, 2023

Copy link
Copy Markdown
Member

Context

This brings back PRs #3420 and #3434, which were reverted as part of PR #3435.

This re-resolves issue #3404.

Implementation

The original schema migration is faulty, so I added a minor fix for that.

Other Information

TODOs:

  1. Some tests would be good.
  2. Hide in exam schedule.
  3. Add a tally for how many course units are customized.
  4. Deconflict activeLessons and customiseModule in the app state.

@vercel

vercel Bot commented Aug 4, 2023

Copy link
Copy Markdown

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 Aug 11, 2023 1:01pm
nusmods-website ✅ Ready (Inspect) Visit Preview 💬 Add feedback Aug 11, 2023 1:01pm

@codecov

codecov Bot commented Aug 4, 2023

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 45.45455% with 72 lines in your changes missing coverage. Please review.
✅ Project coverage is 53.01%. Comparing base (71f0fbd) to head (551c8e1).
⚠️ Report is 368 commits behind head on master.

Files with missing lines Patch % Lines
website/src/views/timetable/TimetableContent.tsx 16.00% 21 Missing ⚠️
website/src/reducers/timetables.ts 55.81% 19 Missing ⚠️
...site/src/views/timetable/TimetableModulesTable.tsx 34.61% 17 Missing ⚠️
website/src/actions/timetables.ts 44.44% 10 Missing ⚠️
website/src/reducers/app.ts 0.00% 2 Missing ⚠️
website/src/selectors/timetables.ts 33.33% 2 Missing ⚠️
website/src/views/settings/BetaToggle.tsx 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #3483      +/-   ##
==========================================
- Coverage   53.22%   53.01%   -0.21%     
==========================================
  Files         271      271              
  Lines        5860     5964     +104     
  Branches     1398     1436      +38     
==========================================
+ Hits         3119     3162      +43     
- Misses       2741     2802      +61     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@zwliew
zwliew force-pushed the zwliew/feat/ta-timetable branch from d28ce08 to 3d05c4f Compare August 4, 2023 03:27
@zwliew
zwliew force-pushed the zwliew/feat/ta-timetable branch from 3d05c4f to 6aae1ec Compare August 4, 2023 03:38
@zwliew
zwliew force-pushed the zwliew/feat/ta-timetable branch from 6aae1ec to eeeb60f Compare August 4, 2023 03:44
@zwliew
zwliew force-pushed the zwliew/feat/ta-timetable branch from 55f46f0 to 2e9a608 Compare August 4, 2023 03:59
@zwliew
zwliew force-pushed the zwliew/feat/ta-timetable branch from 6e901db to bbf2756 Compare August 4, 2023 08:43
@zwliew
zwliew force-pushed the zwliew/feat/ta-timetable branch from bbf2756 to 0faf6e1 Compare August 4, 2023 08:53
zhoukerrr and others added 6 commits August 10, 2023 21:14
* feat: update lesson to array

* chore: fix lint

* fix: update test cases

* chore: format lint

* chore: update test cases

* feat: update timetable redux schema

* feat: fix lint

* chore: fix lint

* chore: add timetable schema migration test

* fix: add comment for test version

---------

Co-authored-by: Christopher Goh <chrisgzf@gmail.com>
* feat: fix lint

* feat: add customise module button

* feat: add redux actions

* feat: connect button to redux action

* feat: enter and edit module

* feat: exit customising state

* cahnge customisemod default state to empty string

* feat: add timetable state for custimised mods

* feat: remove validation for custom mods

* feat: add TA label to cells

* feat: hide and disable other edit buttons when editing

* feat: add support for changing lessons after customisation

* chore: fix test cases

* chore: fox lint

* chore: fix schema migration test
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.

2 participants