anki/ts/deck-options
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
..
Addons.svelte Remove untranslated 'see old deck options' notice 2022-11-03 12:05:19 +10:00
AdvancedOptions.svelte Convert FSRS to a global option 2023-09-23 14:41:55 +10:00
AudioOptions.svelte Merging Notetypes on Import (#2612) 2023-09-09 09:00:55 +10:00
BuryOptions.svelte Merging Notetypes on Import (#2612) 2023-09-09 09:00:55 +10:00
CardStateCustomizer.svelte Integrate FSRS into Anki (#2654) 2023-09-16 16:09:26 +10:00
choices.ts Expose deck-then-random option in UI 2023-09-25 11:12:28 +10:00
ConfigSelector.svelte Fix deck options selector not updating the current entry sometimes (#2387) 2023-02-20 22:02:46 +10:00
DailyLimits.svelte Merging Notetypes on Import (#2612) 2023-09-09 09:00:55 +10:00
deck-options-base.scss Add scss formatter 2023-07-03 09:44:38 +10:00
DeckOptionsPage.svelte Integrate FSRS into Anki (#2654) 2023-09-16 16:09:26 +10:00
DisplayOrder.svelte Use FSRS difficulty when sorting by ease 2023-09-23 16:20:36 +10:00
FsrsOptions.svelte Button to set desired FSRS retention to optimal/calculated (#2685) 2023-09-27 16:12:49 +10:00
HtmlAddon.svelte fix deprecation warning in latest svelte-preprocess 2021-10-26 08:43:02 +10:00
icons.ts Merging Notetypes on Import (#2612) 2023-09-09 09:00:55 +10:00
index.ts Merging Notetypes on Import (#2612) 2023-09-09 09:00:55 +10:00
LapseOptions.svelte Convert FSRS to a global option 2023-09-23 14:41:55 +10:00
lib.test.ts deckconfig.proto -> deck_config.proto 2023-07-03 13:44:54 +10:00
lib.ts UI tweaks 2023-09-25 15:54:18 +10:00
NewOptions.svelte Convert FSRS to a global option 2023-09-23 14:41:55 +10:00
SaveButton.svelte Experiment with disabling prettier whitespace sensitivity 2023-06-01 11:11:26 +10:00
SpinBoxFloatRow.svelte Merging Notetypes on Import (#2612) 2023-09-09 09:00:55 +10:00
SpinBoxRow.svelte Merging Notetypes on Import (#2612) 2023-09-09 09:00:55 +10:00
steps.test.ts More uniform file naming 2021-07-01 12:24:16 +02:00
steps.ts Move away from Bazel (#2202) 2022-11-27 15:24:20 +10:00
StepsInput.svelte Refactor Select component | Fix CSV import issue (#2227) 2022-12-01 19:24:26 +10:00
StepsInputRow.svelte Merging Notetypes on Import (#2612) 2023-09-09 09:00:55 +10:00
TabbedValue.svelte Address a11y warning for TabbedValue (#2582) 2023-07-18 22:49:02 +10:00
TextInputModal.svelte Experiment with disabling prettier whitespace sensitivity 2023-06-01 11:11:26 +10:00
TimerOptions.svelte Implement "stop timer on answer" as a preset option (#2686) 2023-09-27 16:10:14 +10:00
tsconfig.json Move away from Bazel (#2202) 2022-11-27 15:24:20 +10:00
Warning.svelte Re-enable formatting for .svelte files 2022-11-28 09:17:39 +10:00
WeightsInput.svelte Integrate FSRS into Anki (#2654) 2023-09-16 16:09:26 +10:00
WeightsInputRow.svelte Merging Notetypes on Import (#2612) 2023-09-09 09:00:55 +10:00