Jarrett Ye
bd490688a3
Feat/align FSRS-rs with PyTorch Implementation ( #3540 )
...
* Feat/align FSRS-rs with PyTorch Implementation
* Update to FSRS-rs v1.4.2
fix https://forums.ankiweb.net/t/anki-24-10-release-candidate/51191/37?u=l.m.sherlock
* Update to FSRS-rs v1.4.3
improve performance: https://github.com/open-spaced-repetition/fsrs-rs/pull/252
2024-11-05 18:20:28 +10:00
Ben Nguyen
1a22cce3e8
Enable strict_optional for aqt/clayout, changenotetype, fields ( #3544 )
...
* Enable strict_optional for clayout
* Fix mypy errors
* Enable strict_optional for changenotetype
* Fix mypy errors
* Enable strict_optional for fields
* Fix mypy errors
2024-10-30 13:40:40 +03:00
Ben Nguyen
4a894e7342
Enable strict_optional for aqt/studydeck, tts, mediasrv ( #3542 )
...
* Enable strict_optional for studydeck
* Fix mypy errors
* Enable strict_optional for tts
* Fix mypy errors in tts
* Enable strict_optional for mediasrv
* Fix mypy errors in mediasrv
2024-10-29 12:05:54 +03:00
Ben Nguyen
1f2e014f2c
Enable strict_optional for aqt/modelchooser.py ( #3539 )
...
* Enable strict_optional
* Fix mypy errors
2024-10-28 14:19:31 +10:00
Ben Nguyen
b6e04f2625
Enable strict_optional for aqt/deckdescription.py ( #3538 )
...
* Enable strict_optional
* Fix mypy errors
2024-10-28 14:18:16 +10:00
Ben Nguyen
612fc8c0c0
Enable strict_optional for aqt/deckbrowser.py ( #3537 )
...
* Enable strict_optional
* Fix mypy errors
2024-10-28 14:16:42 +10:00
Jarrett Ye
7676d438b4
Fix/buried new cards shouldn't be counted in daily load ( #3530 )
...
* Fix/buried new cards shouldn't be counted in daily load
* exclude new cards by its type
* ./ninja format
2024-10-28 14:10:10 +10:00
Abdo
a0be4de1d2
Merge pull request #3535 from bpnguyen107/aqt-strict-optional-taglimit
...
Enable strict_optional for aqt/taglimit.py
2024-10-27 17:12:48 +03:00
Abdo
0c82fcad20
Merge branch 'main' into aqt-strict-optional-taglimit
2024-10-27 17:10:21 +03:00
Abdo
077380a8ec
Merge pull request #3533 from bpnguyen107/aqt-strict-optional-overview
...
Enable strict_optional for aqt/overview.py
2024-10-27 17:08:57 +03:00
Abdo
9133d86eca
Merge branch 'main' into aqt-strict-optional-overview
2024-10-27 17:06:58 +03:00
Abdo
6168ab8a3d
Merge pull request #3534 from bpnguyen107/aqt-strict-optional-customstudy
...
Enable strict_optional for aqt/customstudy.py
2024-10-27 17:04:07 +03:00
bpnguyen107
1340bd6718
Fix mypy errors
2024-10-26 19:33:04 -07:00
bpnguyen107
c516e26d98
Enable strict_optional
2024-10-26 19:27:00 -07:00
bpnguyen107
88b2213b55
Fix mypy errors
2024-10-26 19:19:20 -07:00
bpnguyen107
daec4de919
Enable strict_optional
2024-10-26 19:17:25 -07:00
bpnguyen107
a7619d8d9a
Fix mypy errors
2024-10-26 19:07:43 -07:00
bpnguyen107
639e5f8ec2
Enable strict_optional for aqt/overview.py
2024-10-26 19:07:35 -07:00
Damien Elmes
d2e5e2902f
Remove FSRS client warning
...
https://forums.ankiweb.net/t/anki-24-10-beta/49989/290
2024-10-26 20:38:05 +10:00
Damien Elmes
a11be54f83
Fix due date showing incorrectly in filtered deck
...
Regressed in #3471
Closes #3515
2024-10-26 20:13:24 +10:00
Damien Elmes
3d9fbb8976
Update translations
2024-10-26 20:03:04 +10:00
Damien Elmes
356df5fac9
Rust 1.82
2024-10-26 20:02:53 +10:00
a.r
15352603bc
template_filters: make {{type:}} forwards compatible ( #3525 )
...
Make Anki treat {{type:unknown:field}} field replacements as {{type:field}} instead of {{field}}.
The previous behavior was seriously inconvenient for several reasons, including:
* Updated client aren't all released at the same time, causing an unavoidable mismatch period. Now it causes the least friction.
* Devs couldn't readily test new in-dev variants without breaking/inconveniencing their own mobile experience.
* Some users will have (potentially perpetually) outdated Anki clients and likely complain, wasting both dev & deck creator time.
This way users always get to type and especially: The front side will always render as intended.
2024-10-26 19:58:52 +10:00
Ben Nguyen
4572f63cba
Enable strict_optional for aqt/importing.py ( #3527 )
...
* Enable strict_optional
* Fix mypy errors
2024-10-26 19:56:34 +10:00
Damien Elmes
0cf5179ff0
Fix another non reactive property warning
...
I waited for the PR check to pass first, but it failed to catch this,
presumably as newly-added files don't trigger the existing checks to
re-run.
2024-10-26 19:48:48 +10:00
Jarrett Ye
85075d129f
Feat/add a toggle in the simulator to display time or review count ( #3523 )
...
Co-authored-by: Damien Elmes <dae@users.noreply.github.com>
2024-10-26 19:42:57 +10:00
Jarrett Ye
85c1c3bc35
Fix/set default easyDaysPercentages when switch preset ( #3526 )
2024-10-26 19:38:37 +10:00
Jarrett Ye
688c6d4d1b
export revlogs where the rating is between 1 and 4 for research ( #3524 )
2024-10-26 19:38:17 +10:00
Jarrett Ye
6762addef8
Update to FSRS-rs v1.3.5 (FSRS-5 model update) && keep three decimals for stability ( #3520 )
...
* Update to FSRS-rs v1.3.5 (FSRS-5 model update)
* keep three decimals for stability
fix https://forums.ankiweb.net/t/fsrs-5-1d-scheduling-and-learning-steps/50242/122?u=l.m.sherlock
2024-10-26 19:36:27 +10:00
Ben Nguyen
33704468f3
Enable strict_optional for aqt/preferences.py ( #3519 )
...
* Enable strict_optional for aqt/preferences.py
* Fix mypy errors
2024-10-26 19:33:53 +10:00
Jarrett Ye
542b0e4768
Fix/skip suspended cards in graphs context retrievability ( #3518 )
...
* skip suspended cards in GraphsContext retrievability
* avoid i32 overflow
* avoid u32 overflow
2024-10-26 19:09:20 +10:00
user1823
1f180a0d2d
Fix calculation of daily load ( #3516 )
...
* Fix calculation of daily load
* Daily load in reviews/day
2024-10-26 19:05:01 +10:00
Damien Elmes
d3da6db1d5
Revert "Fix ease button alignment ( #3474 )" ( #3522 )
...
This reverts commit 332fae40ca .
2024-10-26 18:50:02 +10:00
Damien Elmes
ea86130ad6
Update vitest and unpin vite
2024-10-26 18:41:59 +10:00
Damien Elmes
3d5ef238a7
Force cookie update for CVE
...
Sveltekit won't update until 3.0
https://github.com/sveltejs/kit/pull/12768
2024-10-26 18:27:10 +10:00
Damien Elmes
db58798db4
Update to stable Svelte 5 release ( #3513 )
...
* Update to stable Svelte 5 release
This causes a bunch of warnings to be omitted:
ts/routes/graphs/RangeBox.svelte:52:18
Warn: Properties of objects and arrays are not reactive unless in runes mode. Changes to this property will not cause the reactive statement to update (svelte)
break;
case RevlogRange.All:
$days = 0;
They are triggered on enum references, and it appears to be a bug.
May need to report it to Svelte?
* Deps update
* Silence spurious errors + fix a real one
https://github.com/sveltejs/svelte/issues/13811
2024-10-26 18:21:45 +10:00
Damien Elmes
87bf51fbb6
werkzeug CVE
2024-10-26 18:06:27 +10:00
Damien Elmes
2c31bfc159
Add missing translation
...
https://forums.ankiweb.net/t/translation-not-working-for-days-to-simulate/50992/2
2024-10-22 23:58:24 +10:00
Damien Elmes
b74032929f
Fix error when exporting from empty cards screen
...
https://forums.ankiweb.net/t/bug-copy-debug-info-button-crashes-anki-24-04-and-24-06-3/50852
2024-10-22 23:24:27 +10:00
Damien Elmes
cd2d78912a
Update translations
2024-10-21 18:48:37 +10:00
Damien Elmes
0a9990ed77
Rename remaining 'weights' references to 'params'
2024-10-21 18:13:23 +10:00
Damien Elmes
74330c5b34
Use separate field to store FSRS params
...
Will allow the user to keep using old params with older clients
2024-10-21 18:13:23 +10:00
Jarrett Ye
a3df7fe658
Create a new kind of revlog entry for reschedule cards on change ( #3508 )
...
* create a new kind of revlog entry for Reschedule cards on change
* add comments
* exclude the rescheduled case in reviews graph
2024-10-21 16:47:01 +10:00
Damien Elmes
4334ab1ba9
Bump Rust deps
...
Primarily for prost, which had incompatible changes
2024-10-21 15:34:04 +10:00
sorata
e21c9404d9
change sort order name ( #3510 )
2024-10-21 15:20:45 +10:00
Jarrett Ye
f20e5b0e6a
Feat/Estimated Total Knowledge By Note & Daily Load ( #3507 )
...
* Feat/Estimated Total Knowledge By Note & Daily Load
* Update rslib/src/stats/graphs/retrievability.rs
* Update rslib/src/stats/graphs/future_due.rs
2024-10-21 15:19:42 +10:00
Jarrett Ye
75ba49af76
Feat/option to enable FSRS short-term scheduler when (re)learning steps run out && speed up features based on simulation ( #3505 )
...
* Update to FSRS-rs v1.3.2
* add fsrs_short_term_with_steps_enabled to config
* ./ninja fix:minilints
* fix defaults_for_testing
* if current parameters are invalid, skip comparison
fix #3498
* fix redundant_field_names
* cargo clippy --fix
* Update to FSRS-rs v1.3.3
* Update to FSRS-rs v1.3.4
* Avoid an extra config lookup on each card answer (dae)
2024-10-21 15:09:07 +10:00
Jarrett Ye
8635b87610
Feat/export dataset for research ( #3511 )
...
* Feat/export dataset for research
* add comment
Co-authored-by: Damien Elmes <dae@users.noreply.github.com>
* target_path is required
* format
* improve efficiency to look up parent_id
* move `use` down
2024-10-18 18:57:06 +10:00
Damien Elmes
c74086fb95
Revert "NF: Improve typing of AnkiWebView action ( #3475 )" ( #3504 )
...
This reverts commit 5610436c88 .
2024-10-16 03:02:22 +10:00
Han Yeong-woo
1346671f07
Fully switch to File::set_times() from utime crate ( #3503 )
...
* Fully switch to File::set_times() from utime crate
* Switch to open_file()
Future me will end up wondering why we're explicitly declaring read=true
* Fix failing on windows
* Minor tidy-up (dae)
* Fix comment typo
2024-10-16 02:35:37 +10:00