Added: Max interval too low warning. (#3847)

* Added: Max interval too low warning.

* Lower threshold to 180

* Add self to about.py
This commit is contained in:
Luc Mcgrady 2025-03-10 09:14:35 +00:00 committed by GitHub
parent 94e90dbf85
commit cad6e0b0bf
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 15 additions and 0 deletions

View file

@ -371,6 +371,7 @@ deck-config-learning-step-above-graduating-interval = The graduating interval sh
deck-config-good-above-easy = The easy interval should be at least as long as the graduating interval. deck-config-good-above-easy = The easy interval should be at least as long as the graduating interval.
deck-config-relearning-steps-above-minimum-interval = The minimum lapse interval should be at least as long as your final relearning step. deck-config-relearning-steps-above-minimum-interval = The minimum lapse interval should be at least as long as your final relearning step.
deck-config-maximum-answer-secs-above-recommended = Anki can schedule your reviews more efficiently when you keep each question short. deck-config-maximum-answer-secs-above-recommended = Anki can schedule your reviews more efficiently when you keep each question short.
deck-config-too-short-maximum-interval = A maximum interval less than 6 months is not recommended.
## Selecting a deck ## Selecting a deck

View file

@ -215,6 +215,7 @@ def show(mw: aqt.AnkiQt) -> QDialog:
"Danika_Dakika", "Danika_Dakika",
"Marcelo Vasconcelos", "Marcelo Vasconcelos",
"Mumtaz Hajjo Alrifai", "Mumtaz Hajjo Alrifai",
"Luc Mcgrady",
"Brayan Oliveira", "Brayan Oliveira",
) )
) )

View file

@ -20,6 +20,7 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
import SpinBoxFloatRow from "./SpinBoxFloatRow.svelte"; import SpinBoxFloatRow from "./SpinBoxFloatRow.svelte";
import SpinBoxRow from "./SpinBoxRow.svelte"; import SpinBoxRow from "./SpinBoxRow.svelte";
import DateInput from "./DateInput.svelte"; import DateInput from "./DateInput.svelte";
import Warning from "./Warning.svelte";
export let state: DeckOptionsState; export let state: DeckOptionsState;
export let api: Record<string, never>; export let api: Record<string, never>;
@ -83,6 +84,13 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
}; };
const helpSections: HelpItem[] = Object.values(settings); const helpSections: HelpItem[] = Object.values(settings);
$: maxIntervalWarningClass =
$config.maximumReviewInterval < 50 ? "alert-danger" : "alert-warning";
$: maxIntervalWarning =
$config.maximumReviewInterval < 180
? tr.deckConfigTooShortMaximumInterval()
: "";
let modal: Modal; let modal: Modal;
let carousel: Carousel; let carousel: Carousel;
@ -121,6 +129,11 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
</SpinBoxRow> </SpinBoxRow>
</Item> </Item>
<Item>
<Warning warning={maxIntervalWarning} className={maxIntervalWarningClass}
></Warning>
</Item>
{#if !$fsrs} {#if !$fsrs}
<Item> <Item>
<SpinBoxFloatRow <SpinBoxFloatRow