Anki/ts/routes
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
..
card-info Add margin to the bottom of forgetting curve (#3805) 2025-02-11 15:46:36 +07:00
change-notetype Reduce use of type casting (#3723) 2025-01-12 20:05:05 +11:00
congrats Restore the missing external congrats page 2025-01-24 16:21:36 +11:00
deck-options Feat/support load balance and easy days in FSRS simulator (#3829) 2025-02-27 10:53:01 +07:00
graphs Feat/support load balance and easy days in FSRS simulator (#3829) 2025-02-27 10:53:01 +07:00
image-occlusion Remove unfinished polygon when undoing and redoing in IO mode (#3759) 2025-01-25 10:08:47 +03:00
import-anki-package Reduce use of type casting (#3723) 2025-01-12 20:05:05 +11:00
import-csv Cap preview cols to prevent stall when csv is parsed with the wrong delimiter (#3786) 2025-02-06 14:23:43 +07:00
import-page Reduce use of type casting (#3723) 2025-01-12 20:05:05 +11:00
tmp Update to Svelte 5 (#3292) 2024-09-25 18:49:07 +10:00
+error.svelte Include error message text on page 2024-06-24 15:35:47 +07:00
+layout.svelte Switch to SvelteKit (#3077) 2024-03-31 09:16:31 +01:00
+layout.ts Switch to SvelteKit (#3077) 2024-03-31 09:16:31 +01:00
base.scss Fix deck config input's background color regression (#3258) 2024-06-28 18:52:51 +07:00