Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit cad6e0b

Browse files
authored
Added: Max interval too low warning. (#3847)
* Added: Max interval too low warning. * Lower threshold to 180 * Add self to about.py
1 parent 94e90db commit cad6e0b

File tree

3 files changed

+15
-0
lines changed

3 files changed

+15
-0
lines changed

ftl/core/deck-config.ftl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -371,6 +371,7 @@ deck-config-learning-step-above-graduating-interval = The graduating interval sh
371371
deck-config-good-above-easy = The easy interval should be at least as long as the graduating interval.
372372
deck-config-relearning-steps-above-minimum-interval = The minimum lapse interval should be at least as long as your final relearning step.
373373
deck-config-maximum-answer-secs-above-recommended = Anki can schedule your reviews more efficiently when you keep each question short.
374+
deck-config-too-short-maximum-interval = A maximum interval less than 6 months is not recommended.
374375
375376
## Selecting a deck
376377

qt/aqt/about.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -215,6 +215,7 @@ def on_dialog_destroyed() -> None:
215215
"Danika_Dakika",
216216
"Marcelo Vasconcelos",
217217
"Mumtaz Hajjo Alrifai",
218+
"Luc Mcgrady",
218219
"Brayan Oliveira",
219220
)
220221
)

ts/routes/deck-options/AdvancedOptions.svelte

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
2020
import SpinBoxFloatRow from "./SpinBoxFloatRow.svelte";
2121
import SpinBoxRow from "./SpinBoxRow.svelte";
2222
import DateInput from "./DateInput.svelte";
23+
import Warning from "./Warning.svelte";
2324
2425
export let state: DeckOptionsState;
2526
export let api: Record<string, never>;
@@ -83,6 +84,13 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
8384
};
8485
const helpSections: HelpItem[] = Object.values(settings);
8586
87+
$: maxIntervalWarningClass =
88+
$config.maximumReviewInterval < 50 ? "alert-danger" : "alert-warning";
89+
$: maxIntervalWarning =
90+
$config.maximumReviewInterval < 180
91+
? tr.deckConfigTooShortMaximumInterval()
92+
: "";
93+
8694
let modal: Modal;
8795
let carousel: Carousel;
8896
@@ -121,6 +129,11 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
121129
</SpinBoxRow>
122130
</Item>
123131

132+
<Item>
133+
<Warning warning={maxIntervalWarning} className={maxIntervalWarningClass}
134+
></Warning>
135+
</Item>
136+
124137
{#if !$fsrs}
125138
<Item>
126139
<SpinBoxFloatRow

0 commit comments

Comments
 (0)