-
-
Notifications
You must be signed in to change notification settings - Fork 51
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make due date selection chips take "Aktive Wochentage" (custom school…
…days) into account. (#1279) Users can select "aktive Wochentage" ("active weekdays" -> custom schooldays) to customize on which days they'll have school. With this PR selecting the "Nächster Schultag" due date chip when creating a homework will take the "aktive Wochentage" into account. If e.g. the user has selected monday, wednesday and thursday as "aktive Wochentage" then selecting "Nächster Schultag" on mondays will set the due date to the next wednesday since tuesday is not an "aktiver Wochentag". Fixes #1180 <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **New Features** - Introduced customization for enabled weekdays in the homework scheduling feature, allowing users to specify which days are considered school days. - **Enhancements** - Improved the logic for calculating the next school day based on user-defined enabled weekdays. - **Tests** - Added tests to ensure the correct handling of custom and empty school day settings. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
- Loading branch information
1 parent
72ee75e
commit ae40192
Showing
6 changed files
with
570 additions
and
197 deletions.
There are no files selected for viewing
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
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
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
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
Oops, something went wrong.