Compare commits

..

5 commits

Author SHA1 Message Date
Hanni614
3d038506ac
Merge 3929df8962 into 3890e12c9e 2025-09-17 12:25:51 +05:30
Hanna Nilsén
3929df8962 Fix: restore retention help link text 2025-09-11 15:24:09 +02:00
Hanna Nilsén
3ee673eb9c stats: remove manual link from retention tooltip only 2025-09-11 08:51:28 +02:00
Hanna Nilsén
2d26e675c2 add myself to CONTRIBUTORS 2025-09-10 14:56:09 +02:00
Hanna Nilsén
c83324bf81 Fix: remove visible text for Retention help link 2025-09-10 13:40:45 +02:00
4 changed files with 8 additions and 10 deletions

View file

@ -22,8 +22,7 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
import { type HelpItem, HelpItemScheduler } from "./types";
export let title: string;
export let url: string;
export let linkLabel: string | undefined = undefined;
export let url: string | undefined;
export let startIndex = 0;
export let helpSections: HelpItem[];
export let fsrs = false;
@ -107,7 +106,11 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
<div class="chapter-redirect">
{@html renderMarkdown(
tr.helpForMoreInfo({
link: `<a href="${url}" title="${tr.helpOpenManualChapter({ name: linkLabel ?? title })}">${linkLabel ?? title}</a>`,
link: `<a href="${url}" title="${tr.helpOpenManualChapter(
{
name: title,
},
)}">${title}</a>`,
}),
)}
</div>

View file

@ -42,9 +42,7 @@
<div class="chapter-redirect">
{@html renderMarkdown(
tr.helpForMoreInfo({
link: `<a href="${item.url}" title="${tr.helpOpenManualChapter({
name: item.title,
})}">${item.title}</a>`,
link: `<a href="${item.url}" title="${tr.helpOpenManualChapter({ name: item.title })}">${item.title}</a>`,
}),
)}
</div>

View file

@ -28,7 +28,6 @@ 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",

View file

@ -5,7 +5,6 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
<script lang="ts">
import type { GraphsResponse } from "@generated/anki/stats_pb";
import * as tr from "@generated/ftl";
import { HelpPage } from "@tslib/help-page";
import HelpModal from "$lib/components/HelpModal.svelte";
import type Carousel from "bootstrap/js/dist/carousel";
import type Modal from "bootstrap/js/dist/modal";
@ -72,8 +71,7 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
>
<HelpModal
title={tr.statisticsTrueRetentionTitle()}
url={HelpPage.DeckOptions.desiredRetention}
linkLabel="Desired retention"
url=""
{helpSections}
on:mount={(e) => {
modal = e.detail.modal;