Repository navigation
feat(tui): follow school days off and make-up days in every view - #133
Merged
Merged
Conversation
Only class details applied the school calendar. Home, today's agenda, the next-class banner, the shell prompt line, the week grid and agenda, the term recap and both ICS exports still listed classes on holidays such as 国庆节放假 and left make-up days such as 上第七周(周五)的课 empty. Build every schedule through one helper that passes the term's days off and make-up days from the school calendar to nbtcal, so a holiday shows no classes and a make-up day shows the classes it takes over. The schedule page fetches the school calendar when it opens; until then the cached copy, or the plain weekly pattern, is used. `timetable export` reads the same calendar and keeps the weekly pattern when it cannot. This needs the nbtcal release that adds `schoolDays`.
Every schedule now passes `schoolDays` to nbtcal, and class details read `cancelled()` and `rescheduledFrom`. All three arrive in nbtcal 0.4.7.
Merged
This file contains hidden or 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
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.
Only class details applied the school calendar, so Home, the week grid and the ICS exports still showed classes on holidays such as 国庆节放假 and left make-up days such as 上第七周(周五)的课 empty.
eshortcut andnbtca timetable export, drop cancelled classes and move classes onto make-up days.cancelled()andrescheduledFrom, which replaces Prompt's own copy of that logic.