anki/ftl
Michael Eliachevitch 2580399552
Button to set desired FSRS retention to optimal/calculated (#2685)
* Draft set optimal/calculated retention button

Temporarily save the calculated optimal retention and display it with a button
that sets the desired retention above to this value.Don't show button until
attention had been calculated. Disable button when optimal and desired
attention are equal.

I find this nicer than the current alert-popup solution, as it avoids a popup
and gives a choice to the user to accept the calculated retention or not, while
also persisting the calculated retention on the screen for a bit.

TODO: What's still missing is that the `optimalRetention` variable is global and
persists when I change presets. When changing presets the variable should reset to
`undefined`, which would also makes the button disappear. Ideally it should also
disappear when changing the FSRS parameters. So probably it should be made part
of some deck options state and subscribe to some events. But with that I might
need some help. Also I thought whether that variable should go into the deck
options schema but tbh it's not something we want to persist between sessions,
users should recalculate it.

* Add me to contributors for tests so pass

* Add formatting ant type fixes to make tests pass

* Minor fixes (dae)

* Remove the period
2023-09-27 16:12:49 +10:00
..
core Button to set desired FSRS retention to optimal/calculated (#2685) 2023-09-27 16:12:49 +10:00
core-repo@72a2d70cb7 Update translations 2023-09-24 14:31:12 +10:00
qt Expose video driver options for Qt6 (#2643) 2023-09-09 08:59:49 +10:00
qt-repo@ffe4d6fd74 Update translations 2023-09-24 14:31:12 +10:00
src Add updated script for transforming ftl text 2023-07-06 22:27:09 +10:00
usage Add Rust bin to deprecate unused ftl entries (#2364) 2023-02-07 11:56:14 +10:00
.gitignore Add an improved tool for copying/moving FTL strings 2023-07-04 13:39:01 +10:00
Cargo.toml Add an improved tool for copying/moving FTL strings 2023-07-04 13:39:01 +10:00
extract-strings.py Use type narrowing for extract-strings and transform-string 2023-03-31 14:02:50 +10:00
format_check.py run black/isort on Python scripts 2021-04-14 18:22:02 +10:00
format.py Move away from Bazel (#2202) 2022-11-27 15:24:20 +10:00
ftl Add an improved tool for copying/moving FTL strings 2023-07-04 13:39:01 +10:00
move-from-ankimobile Add an improved tool for copying/moving FTL strings 2023-07-04 13:39:01 +10:00
README.md fix documentation links 2021-06-03 16:51:03 +10:00
remove-unused.sh Don't store used FTL keys in git 2022-04-09 12:38:54 +10:00
update-ankidroid-usage.sh Add Rust bin to deprecate unused ftl entries (#2364) 2023-02-07 11:56:14 +10:00
update-ankimobile-usage.sh Add Rust bin to deprecate unused ftl entries (#2364) 2023-02-07 11:56:14 +10:00

Files related to Anki's translations.

Please see https://translating.ankiweb.net/anki/developers