Feat/Health check tooltip

This commit is contained in:
Luc Mcgrady 2025-06-08 23:33:39 +01:00
parent ce6497cd2b
commit 84798aa60a
No known key found for this signature in database
GPG key ID: 4F3D7A0B17CC3D9C
3 changed files with 8 additions and 1 deletions

View file

@ -560,6 +560,8 @@ deck-config-compute-optimal-retention-tooltip =
if it significantly differs from 0.9, it's a sign that the time you've allocated each day is either too low
or too high for the amount of cards you're trying to learn. This number can be useful as a reference, but it
is not recommended to copy it into the desired retention field.
deck-config-health-check-tooltip =
This will show a warning if FSRS struggles to predict your pattern of rating.
deck-config-compute-optimal-retention = Compute minimum recommended retention
deck-config-predicted-optimal-retention = Minimum recommended retention: { $num }

View file

@ -336,7 +336,7 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
{/if}
<SwitchRow bind:value={$healthCheck} defaultValue={false}>
<SettingTitle on:click={() => openHelpModal("deckConfigHealthCheck")}>
<SettingTitle on:click={() => openHelpModal("healthCheck")}>
<GlobalLabel title={tr.deckConfigHealthCheck()} />
</SettingTitle>
</SwitchRow>

View file

@ -59,6 +59,11 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
help: tr.deckConfigComputeOptimalRetentionTooltip4(),
sched: HelpItemScheduler.FSRS,
},
healthCheck: {
title: tr.deckConfigHealthCheck(),
help: tr.deckConfigHealthCheckTooltip(),
sched: HelpItemScheduler.FSRS,
},
};
const helpSections: HelpItem[] = Object.values(settings);