Anki/rslib/src/scheduler/answering
Jarrett Ye 46bcf4efa6
Feat/per-deck desired retention (#4194)
* Feat/per-deck desired retention

* Refactor desired retention logic in Collection implementation

Updated the logic for retrieving deck-specific desired retention in both `memory_state.rs` and `mod.rs` to handle cases where the deck's normal state may not be available. This change ensures that the default configuration is used when necessary, improving the robustness of the retention handling.

* Refactor desired retention handling in FsrsOptions.svelte

Updated the logic for effective desired retention to use the configuration default instead of the deck-specific value. This change improves consistency in the retention value used throughout the component, ensuring that the correct value is bound to the UI elements.

* refactor the logic for obtaining deck-specific desired retention by using method chaining

* support deck-specific desired retention when rescheduling

* Refactor desired retention logic to use a dedicated method for improved clarity and maintainability.
2025-07-28 18:22:35 +10:00
..
current.rs Check if self.card.reps>0 before substracing 1 (#3966) 2025-04-30 21:53:36 +10:00
learning.rs Migrate build system to uv (#4074) 2025-06-19 14:03:16 +07:00
mod.rs Feat/per-deck desired retention (#4194) 2025-07-28 18:22:35 +10:00
preview.rs Feat/grade now (#3840) 2025-03-15 17:30:40 +07:00
relearning.rs Record FSRS difficulty in the review log 2023-09-17 11:50:38 +10:00
review.rs Record FSRS difficulty in the review log 2023-09-17 11:50:38 +10:00
revlog.rs Switch Rust import style (#2330) 2023-01-18 21:39:55 +10:00