feat(reminders): threshold filters - #19156
ericli3690 wants to merge 1 commit into
Conversation
1ca08cc to
0793e7a
Compare
0793e7a to
f2c9dde
Compare
|
5a3ddeb to
a390cfb
Compare
|
a390cfb to
9a53408
Compare
|
9a53408 to
ae683e5
Compare
|
Forgot to stage some code. Fixed. |
ae683e5 to
e128d8a
Compare
|
Rebased, fully unblocked, and ready for review! |
GSoC 2025: Review Reminders Add a group of new advanced review reminder options: count new cards, count cards in learning, and count cards in review. When the review reminder is about to send a notification and checks to see if the amount of cards in the deck is greater than the card trigger threshold, it examines these options to check if it should count and consider new cards, cards in learning, and cards in review. Adds three new checkboxes to the AddEditReminderDialog to toggle these booleans on or off, with colored text for the corresponding review state boolean. Edits some logic in NotificationService to add up cards only from selected card type when determining whether the card trigger threshold is met. Adds three new boolean fields to store the states of these settings to ReviewReminder. Adds unit tests. Modifies some unit test utilities for convenience.
|
I've decided to keep the existing text ("Include [type] cards for card threshold") for now and will create an issue later to address possibly changing it to be more precise. I think that we should probably err on the side of verbosity to ensure users and translators understand what the string is supposed to mean. I've implemented making the text lowercase, too. Due to #20163, we're putting this PR on hold until migrations on the main branch are stable. I'll also change this code to have the proper migration. |
This comment was marked as resolved.
This comment was marked as resolved.
|
Hi @bhavESH-CHAWLA ! Thanks for the offer, but I've got it under control -- I'm currently writing a new PR to improve the backend database file and then I'm planning to rebase this one on top of it. Sorry but good luck! I know it can sometimes be hard to find an open issue to work on in this project haha |
This comment was marked as resolved.
This comment was marked as resolved.
|
Hello 👋, this PR has had no activity for more than 2 weeks and needs a reply from the author. If you think this is a mistake please comment and ping a maintainer to get this merged ASAP! Thanks for contributing! You have 7 days until this gets closed automatically |
|
Working on a major refactor of the database! Then this guy will be rebased on top |
|
Blocked behind: |
|
Dependency merged; will revise soon, please give me a few days. |
f4af44f to
b21499c
Compare
|
Important Maintainers: This PR contains Strings changes
|
Purpose / Description
Add a group of new advanced review reminder options: count new cards, count cards in learning, and count cards in review. When the review reminder is about to send a notification and checks to see if the amount of cards in the deck is greater than the card trigger threshold, it examines these options to check if it should count and consider new cards, cards in learning, and cards in review.
Adds three new checkboxes to the AddEditReminderDialog to toggle these booleans on or off. Edits some logic in NotificationService to add up cards only from selected card type when determining whether the card trigger threshold is met.
Adds three new boolean fields to store the states of these settings to ReviewReminder. Adds unit tests.
UI
Fixes
Approach
One of the two planned review reminder advanced options! Just needs some extra checks when handling the
Countobjects.How Has This Been Tested?
Checklist