Anki/proto/anki
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
..
ankidroid.proto More service generation refactoring 2023-06-22 09:46:09 +10:00
ankihub.proto Integrate AnkiHub Sign-in (#3232) 2024-08-17 10:58:23 +07:00
ankiweb.proto Change Anki's version scheme; bump to 23.09 (#2640) 2023-09-07 12:37:15 +10:00
backend.proto Flag server messages so AnkiDroid can handle them separately 2024-11-08 22:54:15 +10:00
card_rendering.proto Modify card rendering output to specify if rendered card is empty (#3890) 2025-03-31 17:51:28 +07:00
cards.proto Add last_review_time to card data for performance and accuracy (#4124) 2025-07-08 00:41:01 +07:00
collection.proto Refactor: Make Load Balancer Optional Throughout Codebase (#3860) 2025-03-26 23:19:28 +10:00
config.proto Feat/Add legacy evaluate config bool (#4149) 2025-07-04 15:32:09 +07:00
deck_config.proto Feat/per-deck desired retention (#4194) 2025-07-28 18:22:35 +10:00
decks.proto Feat/per-deck desired retention (#4194) 2025-07-28 18:22:35 +10:00
frontend.proto Deck options without bridge (#3571) 2025-01-08 21:30:30 +11:00
generic.proto Add java_multiple_files option to proto files 2022-06-27 15:16:04 +10:00
i18n.proto More service generation refactoring 2023-06-22 09:46:09 +10:00
image_occlusion.proto Fix IO editor always starting in "hide all, guess one" mode (#3709) 2025-01-09 23:14:02 +11:00
import_export.proto Allow creating deck via #deck:... if non-existent when importing (#4154) 2025-07-08 00:46:04 +07:00
links.proto Remove remaining remnants of unused error; fix CI 2024-11-19 15:26:02 +10:00
media.proto Add a backend method to extract static media references (#2716) 2023-10-11 14:10:02 +10:00
notes.proto Add a backend method to add notes in bulk (#2659) 2023-09-16 13:51:32 +10:00
notetypes.proto Cloze button get disabled outside of cloze field (#3879) 2025-04-24 18:37:41 +10:00
scheduler.proto Fix/FSRS simulator fallback to memory_state_from_sm2 when converting cards (#4189) 2025-07-09 16:22:59 +07:00
search.proto Possible to show “last” subdeck name in Browser? (#3387) 2024-09-20 20:33:28 +10:00
stats.proto Feat/FSRS-6 (#3929) 2025-04-25 16:44:34 +10:00
sync.proto Add support for custom certificates (#3203) 2024-05-24 10:57:54 +01:00
tags.proto More service generation refactoring 2023-06-22 09:46:09 +10:00