From ef21890c6e1392cb3c5131534834f0f9d2456d4b Mon Sep 17 00:00:00 2001 From: Jarrett Ye Date: Wed, 15 Oct 2025 02:49:16 +0800 Subject: [PATCH] Enable FSRS by default Make FSRS (Free Spaced Repetition Scheduler) enabled by default for new users and users who haven't explicitly configured it. Changes: - Add BoolKey::Fsrs to default-true boolean keys in Rust backend - Set defaultValue to true for FSRS toggle in deck options UI --- rslib/src/config/bool.rs | 1 + ts/routes/deck-options/FsrsOptionsOuter.svelte | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/rslib/src/config/bool.rs b/rslib/src/config/bool.rs index c76787cb0..d9bd31b8a 100644 --- a/rslib/src/config/bool.rs +++ b/rslib/src/config/bool.rs @@ -79,6 +79,7 @@ impl Collection { | BoolKey::RestorePositionReviewer | BoolKey::LoadBalancerEnabled | BoolKey::FsrsHealthCheck + | BoolKey::Fsrs | BoolKey::NormalizeNoteText => self.get_config_optional(key).unwrap_or(true), // other options default to false diff --git a/ts/routes/deck-options/FsrsOptionsOuter.svelte b/ts/routes/deck-options/FsrsOptionsOuter.svelte index 49d4c681d..d7cd5f2d4 100644 --- a/ts/routes/deck-options/FsrsOptionsOuter.svelte +++ b/ts/routes/deck-options/FsrsOptionsOuter.svelte @@ -96,7 +96,7 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html /> - + openHelpModal(Object.keys(settings).indexOf("fsrs"))}