Anki/ts/routes/deck-options
Jarrett Ye a6426bebe2
Feat/support load balance and easy days in FSRS simulator (#3829)
* Feat/support load balance and easy days in FSRS simulator

* format

* consider LoadBalancerEnabled

* use fsrs::PostSchedulingFn

* add load balance and easy days to compute_optimal_retention

* move simulator to a pop-over

* fix incorrect simulationNumber when error 500

* Feat: Save to Preset Options

* update tabs when update newPerDay & reviewsPerDay

* don't reset deckSize & daysToSimulate when save options

* fix missing easy days

* plan to support review priority

* Fix graph line rendering with non-scaling stroke

* simplify review priority function with helper wrapper

* fallback to default ReviewPriority for Added & ReverseAdded

* Update ts/routes/deck-options/SimulatorModal.svelte

Co-authored-by: Luc Mcgrady <lucmcgrady@gmail.com>

* Wrap review priority function in Arc for thread-safe sharing

* more granularity for R sorting

* Add graph smoothing option to FSRS simulator

* Improve graph resize handling in FSRS simulator

* simplify review priority calculation

* Add review order selection to FSRS simulator modal

* Refactor review priority function using macro for conciseness

* Add copyright and license header to SimulatorModal.svelte

* cargo clippy

* ./ninja fix:eslint

* update fsrs-rs

* Update FSRS dependencies and refactor load balancing functions

- Update fsrs-rs dependency to latest commit
- Modify retention and simulator modules to use Arc instead of Box
- Update function signatures and imports in simulator module
- Simplify review card order handling with direct enum usage

* resolve reviewed changes

* replace .unwrap() with ?

* move simulating into SimulatorModal

* add (crate) to interval_to_weekday

* Update FsrsOptions.svelte

* format

---------

Co-authored-by: Luc Mcgrady <lucmcgrady@gmail.com>
2025-02-27 10:53:01 +07:00
..
[deckId] Deck options without bridge (#3571) 2025-01-08 21:30:30 +11:00
Addons.svelte Switch to SvelteKit (#3077) 2024-03-31 09:16:31 +01:00
AdvancedOptions.svelte Add percentage to FSRS spinner (#3679) 2025-01-25 18:17:02 +11:00
AudioOptions.svelte Reduce use of type casting (#3723) 2025-01-12 20:05:05 +11:00
AutoAdvance.svelte Reduce use of type casting (#3723) 2025-01-12 20:05:05 +11:00
BuryOptions.svelte Reduce use of type casting (#3723) 2025-01-12 20:05:05 +11:00
CardStateCustomizer.svelte Update to Svelte 5 (#3292) 2024-09-25 18:49:07 +10:00
choices.ts Add descending retrievability (#3559) 2024-11-08 22:53:13 +10:00
ConfigSelector.svelte Clean up #3167 (#3186) 2024-05-01 20:08:19 +10:00
DailyLimits.svelte Reduce use of type casting (#3723) 2025-01-12 20:05:05 +11:00
DateInput.svelte Move 'ignore reviews before' to advanced (#3381) 2024-08-29 19:11:56 +07:00
deck-options-base.scss Fix deck config input's background color regression (#3258) 2024-06-28 18:52:51 +07:00
DeckOptionsPage.svelte Feat/support load balance and easy days in FSRS simulator (#3829) 2025-02-27 10:53:01 +07:00
DisplayOrder.svelte Reduce use of type casting (#3723) 2025-01-12 20:05:05 +11:00
EasyDays.svelte Feat/support load balance and easy days in rescheduling (#3815) 2025-02-18 13:44:00 +07:00
FsrsOptions.svelte Feat/support load balance and easy days in FSRS simulator (#3829) 2025-02-27 10:53:01 +07:00
FsrsOptionsOuter.svelte Feat/support load balance and easy days in FSRS simulator (#3829) 2025-02-27 10:53:01 +07:00
GlobalLabel.svelte Svg icon (#3135) 2024-04-24 02:37:31 +01:00
HtmlAddon.svelte Switch to SvelteKit (#3077) 2024-03-31 09:16:31 +01:00
index.ts Switch to SvelteKit (#3077) 2024-03-31 09:16:31 +01:00
LapseOptions.svelte Reduce use of type casting (#3723) 2025-01-12 20:05:05 +11:00
lib.test.ts Switch to SvelteKit (#3077) 2024-03-31 09:16:31 +01:00
lib.ts Fix "discard changes" appearing on deck options (#3689) 2025-01-07 17:41:52 +03:00
NewOptions.svelte Reduce use of type casting (#3723) 2025-01-12 20:05:05 +11:00
ParamsInput.svelte Rename remaining 'weights' references to 'params' 2024-10-21 18:13:23 +10:00
ParamsInputRow.svelte Rename remaining 'weights' references to 'params' 2024-10-21 18:13:23 +10:00
ParamsSearchRow.svelte Rename remaining 'weights' references to 'params' 2024-10-21 18:13:23 +10:00
SaveButton.svelte Move Optimize All action into main deck options page 2025-01-25 22:57:05 +11:00
SimulatorModal.svelte Feat/support load balance and easy days in FSRS simulator (#3829) 2025-02-27 10:53:01 +07:00
SpinBoxFloatRow.svelte Add percentage to FSRS spinner (#3679) 2025-01-25 18:17:02 +11:00
SpinBoxRow.svelte Switch to SvelteKit (#3077) 2024-03-31 09:16:31 +01:00
steps.test.ts Switch to SvelteKit (#3077) 2024-03-31 09:16:31 +01:00
steps.ts Switch to SvelteKit (#3077) 2024-03-31 09:16:31 +01:00
StepsInput.svelte Switch to SvelteKit (#3077) 2024-03-31 09:16:31 +01:00
StepsInputRow.svelte Switch to SvelteKit (#3077) 2024-03-31 09:16:31 +01:00
TabbedValue.svelte Quick hack to improve minimum deck options width 2025-02-11 16:11:43 +07:00
TextInputModal.svelte Update to Svelte 5 (#3292) 2024-09-25 18:49:07 +10:00
TimerOptions.svelte Reduce use of type casting (#3723) 2025-01-12 20:05:05 +11:00
Warning.svelte Switch to SvelteKit (#3077) 2024-03-31 09:16:31 +01:00