Anki/ftl/core
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
..
actions.ftl Allow full screen mode on new Qt6 drivers (#2660) 2023-09-16 11:28:20 +10:00
adding.ftl Make missing cloze a warning again 2021-06-15 08:43:00 +02:00
browsing.ftl Add Rust bin to deprecate unused ftl entries (#2364) 2023-02-07 11:56:14 +10:00
card-stats.ftl Integrate FSRS into Anki (#2654) 2023-09-16 16:09:26 +10:00
card-template-rendering.ftl Template err improvements (#1953) 2022-07-09 13:00:03 +10:00
card-templates.ftl Clarify warning in notetype reset 2023-04-26 16:08:48 +10:00
change-notetype.ftl Change Notetype UI Rework (#1499) 2021-11-24 12:09:55 +10:00
custom-study.ftl Add Rust bin to deprecate unused ftl entries (#2364) 2023-02-07 11:56:14 +10:00
database-check.ftl Fix invalid ids on db check (#2445) 2023-03-19 10:58:35 +10:00
deck-config.ftl Button to set desired FSRS retention to optimal/calculated (#2685) 2023-09-27 16:12:49 +10:00
decks.ftl run ftl/remove-unused.sh 2021-11-24 14:44:02 +10:00
editing.ftl Add a "no image found on clipboard" string 2023-09-20 15:48:52 +10:00
empty-cards.ftl automatically format/check ftl files 2020-11-22 15:30:59 +10:00
errors.ftl Add Rust bin to deprecate unused ftl entries (#2364) 2023-02-07 11:56:14 +10:00
exporting.ftl Change "unique note identifier" to "unique identifier" 2022-06-11 10:11:29 +10:00
fields.ftl Add support for tagging + protecting fields 2023-09-17 14:03:42 +10:00
findreplace.ftl automatically format/check ftl files 2020-11-22 15:30:59 +10:00
help.ftl Minor wording tweaks to help.ftl; remove an unused entry 2022-10-27 08:24:38 +10:00
importing.ftl Tooltips for CSV import and import page refactoring (#2655) 2023-09-14 09:06:15 +10:00
keyboard.ftl Add getPlatformString for making shortcuts to platform string 2021-04-22 13:04:24 +02:00
media-check.ftl Extract inline images as part of media check 2023-07-31 12:23:16 +10:00
media.ftl remove format separator from recording string 2020-12-16 19:44:47 +10:00
network.ftl automatically format/check ftl files 2020-11-22 15:30:59 +10:00
notetypes.ftl Use field tags instead of hard-coding occlusion fields 2023-09-18 10:10:11 +10:00
preferences.ftl Implement "stop timer on answer" as a preset option (#2686) 2023-09-27 16:10:14 +10:00
profiles.ftl Backup improvements (#1728) 2022-03-21 19:40:42 +10:00
scheduling.ftl Reset->change in due date prompt 2022-06-01 19:44:51 +10:00
search.ftl search-invalid-flag -> search-invalid-flag-2 2021-06-02 21:49:33 +02:00
statistics.ftl UI tweaks 2023-09-25 15:54:18 +10:00
studying.ftl Fix bury count (more) (#1712) 2022-03-07 11:03:14 +10:00
sync.ftl tweak sync conflict message 2021-09-08 19:19:23 +10:00
undo.ftl move action names out of undo.ftl into actions.ftl 2021-05-08 17:11:54 +10:00