From 0b2d70a5229110969838bb87821b24f56bd11ccc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hanna=20Nils=C3=A9n?= Date: Wed, 17 Sep 2025 12:04:42 +0200 Subject: [PATCH 1/3] stats: link retention help box to "Desired retention" section --- CONTRIBUTORS | 1 + ts/lib/components/HelpModal.svelte | 7 ++----- ts/lib/tslib/help-page.ts | 1 + ts/routes/graphs/TrueRetention.svelte | 3 ++- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/CONTRIBUTORS b/CONTRIBUTORS index 7064c6885..bc00dc432 100644 --- a/CONTRIBUTORS +++ b/CONTRIBUTORS @@ -243,6 +243,7 @@ Lee Doughty <32392044+leedoughty@users.noreply.github.com> memchr Max Romanowski Aldlss +Hannanilsenn ******************** diff --git a/ts/lib/components/HelpModal.svelte b/ts/lib/components/HelpModal.svelte index cf6292537..7ee425950 100644 --- a/ts/lib/components/HelpModal.svelte +++ b/ts/lib/components/HelpModal.svelte @@ -23,6 +23,7 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html export let title: string; export let url: string; + export let linkLabel: string | undefined = undefined; export let startIndex = 0; export let helpSections: HelpItem[]; export let fsrs = false; @@ -106,11 +107,7 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
{@html renderMarkdown( tr.helpForMoreInfo({ - link: `${title}`, + link: `${linkLabel ?? title}`, }), )}
diff --git a/ts/lib/tslib/help-page.ts b/ts/lib/tslib/help-page.ts index e3f209c6a..2e471b3f1 100644 --- a/ts/lib/tslib/help-page.ts +++ b/ts/lib/tslib/help-page.ts @@ -28,6 +28,7 @@ export const HelpPage = { dailyLimits: "https://docs.ankiweb.net/deck-options.html#daily-limits", audio: "https://docs.ankiweb.net/deck-options.html#audio", fsrs: "http://docs.ankiweb.net/deck-options.html#fsrs", + desiredRetention: "http://docs.ankiweb.net/deck-options.html#desired-retention", }, Leeches: { leeches: "https://docs.ankiweb.net/leeches.html#leeches", diff --git a/ts/routes/graphs/TrueRetention.svelte b/ts/routes/graphs/TrueRetention.svelte index 4a9738831..39bfaa2da 100644 --- a/ts/routes/graphs/TrueRetention.svelte +++ b/ts/routes/graphs/TrueRetention.svelte @@ -72,7 +72,8 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html > { modal = e.detail.modal; From 2206984cc777a54f4856110d083e6db342617aea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hanna=20Nils=C3=A9n?= Date: Thu, 18 Sep 2025 09:33:03 +0200 Subject: [PATCH 2/3] docs: use HTTPS for fsrs and desiredRetention links --- ts/lib/tslib/help-page.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ts/lib/tslib/help-page.ts b/ts/lib/tslib/help-page.ts index 2e471b3f1..e2b2e3da4 100644 --- a/ts/lib/tslib/help-page.ts +++ b/ts/lib/tslib/help-page.ts @@ -27,8 +27,8 @@ export const HelpPage = { limitsFromTop: "https://docs.ankiweb.net/deck-options.html#limits-start-from-top", dailyLimits: "https://docs.ankiweb.net/deck-options.html#daily-limits", audio: "https://docs.ankiweb.net/deck-options.html#audio", - fsrs: "http://docs.ankiweb.net/deck-options.html#fsrs", - desiredRetention: "http://docs.ankiweb.net/deck-options.html#desired-retention", + fsrs: "https://docs.ankiweb.net/deck-options.html#fsrs", + desiredRetention: "https://docs.ankiweb.net/deck-options.html#desired-retention", }, Leeches: { leeches: "https://docs.ankiweb.net/leeches.html#leeches", From ea9a8033660b7ed95f60fd5b659b9bf935d76d21 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hanna=20Nils=C3=A9n?= Date: Thu, 18 Sep 2025 09:39:39 +0200 Subject: [PATCH 3/3] =?UTF-8?q?Add=20Hanna=20Nils=C3=A9n=20to=20CONTRIBUTO?= =?UTF-8?q?RS?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CONTRIBUTORS | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CONTRIBUTORS b/CONTRIBUTORS index bc00dc432..36f535187 100644 --- a/CONTRIBUTORS +++ b/CONTRIBUTORS @@ -243,7 +243,7 @@ Lee Doughty <32392044+leedoughty@users.noreply.github.com> memchr Max Romanowski Aldlss -Hannanilsenn +Hanna Nilsén ********************