Commit graph

2282 commits

Author SHA1 Message Date
Luc Mcgrady
cdc8ce98b2
Merge 286daac650 into 8f2144534b 2025-12-29 23:19:32 +00:00
Luc Mcgrady
286daac650
Perf: Prevent partial template being sent to frontend 2025-12-29 23:19:07 +00:00
Luc Mcgrady
62252f7216
Fix/Retrievability SQL (#4424)
* Fix/SQL Retrievability Underflow

* Added: Reminder

* ./check

* Apply code diff changes

Co-authored-by: user1823 <92206575+user1823@users.noreply.github.com>

* Slight cleanup

* fix bug again

* extra label comment

* Update rslib/src/storage/sqlite.rs

Co-authored-by: user1823 <92206575+user1823@users.noreply.github.com>

* Fix: Ignore new cards

* use const

---------

Co-authored-by: user1823 <92206575+user1823@users.noreply.github.com>
2025-12-16 19:51:13 +03:00
llama
a245f8ce61
fix(build): treat proto/i18n's implicit outputs as inputs (#4439)
* fix(build): make proto/i18n's implicit outputs explicit

* use option_env! instead of rerun-if-env-changed

> As of 1.46, using env! and option_env! in source code will automatically detect changes and trigger rebuilds.
https://doc.rust-lang.org/cargo/reference/build-scripts.html#rerun-if-env-changed

* ditto for STRINGS_PY and STRINGS_TS

* fix comment

* remove space
2025-12-16 19:38:18 +03:00
Luc Mcgrady
6d35ce61be
Added: Image pre-loading (#4373) 2025-11-27 07:41:11 +00:00
llama
5614d20bed
fix(Import): case-fold media filenames when checking uniqueness (#4435)
* add wrapper struct with case-folding get impl

* use wrapper struct

* restrict case-folding to windows

* Revert "restrict case-folding to windows"

This reverts commit aad01d904f.

* case-fold filenames for newly added media

* add test

* fix incorrect comment
2025-11-20 18:43:14 +03:00
Luc Mcgrady
d8108c93a7
Merge branch 'main' into svelte-reviewer-bottom 2025-11-19 20:56:39 +00:00
llama
dda192f24c
fix(import): support variable field count with notetype column (#4421) 2025-11-19 22:48:14 +03:00
Luc Mcgrady
549c58f3f3
Added: AutoAdvance 2025-11-19 17:54:52 +00:00
Luc Mcgrady
43484e9201
Added: Answer on enter 2025-11-17 21:58:45 +00:00
Luc Mcgrady
f5cdf0f22f
Added: Show Timer + Stop timer on answer 2025-11-14 18:45:16 +00:00
Luc Mcgrady
312cbc2fba
Added: Timer limit 2025-11-14 17:46:41 +00:00
Luc Mcgrady
e663eeb454
Added: Respect "Show remaining count" 2025-11-14 13:10:26 +00:00
Luc Mcgrady
9cee2887a2
Added: More menu mark note 2025-11-12 18:15:50 +00:00
Luc Mcgrady
5d4b00a11d
Fix/Per deck retention not used when card is moved to filtered deck (#4413)
* Fix/Per deck retention not used for filtered decks

* improve error

* Perf: prevent double "home_deck" read

* Perf: prevent duplicate database read when home deck
2025-11-10 16:03:53 +03:00
Luc Mcgrady
e9a02f29f5
./check 2025-11-10 11:02:16 +00:00
Luc Mcgrady
49a65621f2
Added:: ShowIntervalsAboveAnswerButtons 2025-11-10 10:49:31 +00:00
Luc Mcgrady
df58a2b36d
Fix: no "reviewerStorage" config default 2025-11-10 09:06:45 +00:00
Luc Mcgrady
65954cb2a5
Fix: Used wrong ord 2025-11-07 18:41:50 +00:00
Luc Mcgrady
666e22ed42
Better error handling for typed_answer 2025-11-07 18:31:50 +00:00
Luc Mcgrady
75dd53dba8
Fix: extract_cloze_for_typing 2025-11-07 18:15:13 +00:00
Luc Mcgrady
7faa2a26e1
Fix: Typed answers with no arguments dont work 2025-11-07 17:24:49 +00:00
Luc Mcgrady
b80468554a
remove dbg 2025-11-03 23:11:48 +00:00
Luc Mcgrady
7cb7d208c6
Added: nc for typed answers 2025-11-03 23:07:37 +00:00
Luc Mcgrady
e16a49d376
Added: New reviewer config bool 2025-10-31 17:16:31 +00:00
Luc Mcgrady
bbf575e491
Added: TypeAnswer replacement 2025-10-31 12:06:58 +00:00
Luc Mcgrady
cf9c265570
Fix: Respect autoplay setting 2025-10-31 09:01:29 +00:00
Luc Mcgrady
8da0491ae5
Refactor PlayAudio 2025-10-31 08:28:39 +00:00
Luc Mcgrady
4897ea8173
Merge remote-tracking branch 'upstream/main' into svelte-reviewer-bottom 2025-10-30 15:49:29 +00:00
Luc Mcgrady
28d41c8a9c
Revert "Fix/Missing python import in write_header"
This reverts commit 385d487220.
2025-10-30 15:49:01 +00:00
Luc Mcgrady
dac26ce671
Fix/Exclude BackendFrontendService from write_python_interface (#4410)
* Fix/Missing python import in write_header

* Revert "Fix/Missing python import in write_header"

This reverts commit 7c736d984d.

* exclude BackendFrontendService

---------

Co-authored-by: Abdo <abdo@abdnh.net>
2025-10-29 20:15:56 +03:00
Luc Mcgrady
385d487220
Fix/Missing python import in write_header 2025-10-29 14:19:07 +00:00
jariji
da5b8cb5b4
Show text on occlusion cards regardless of occludeInactive (#4387)
* Show text on occlusion cards regardless of `occludeInactive`.

Before this change, on an image occlusion card, a text box was visible
during editing but not visible during review. This change makes text
visible even if other shapes would be hidden.

* Move fix to render_image_occlusion()

---------

Co-authored-by: jariji <jariji>
Co-authored-by: Abdo <abdo@abdnh.net>
2025-10-29 08:51:55 +03:00
Luc Mcgrady
45120aef14
Merge branch 'main' into svelte-reviewer-bottom 2025-10-27 21:08:43 +00:00
Eltaurus
9eb6ec4db8
Fix unescaped HTML in correct type-in answers (#4407)
* Fix unescaped HTML in correct type-in answers

* unit test for correct answer escaping

* fix string conversion
2025-10-27 19:41:40 +07:00
Luc Mcgrady
b0a8c341a1
add bodyclass field 2025-10-21 15:44:19 +01:00
Luc Mcgrady
dc17cb1e81
add css as field 2025-10-21 15:31:21 +01:00
Luc Mcgrady
6d62fcc096
next_card_data mediasrv function 2025-10-21 15:16:08 +01:00
Arold0
76d3237139
Fix notetype original_stock_kind using wrong enum (#4382)
Use OriginalStockKind instead of StockKind when setting
original_stock_kind for basic notetype variants. The two enums
have different numeric values, causing 'Restore to Default' to
restore the wrong template.

For example, StockKind::BasicTyping has value 3, but when read
back as OriginalStockKind, value 3 corresponds to
BasicOptionalReversed instead of BasicTyping (which is 4).

This fixes the off-by-one behavior where:
- Basic (type in the answer) → Basic (optional reversed card)
- Basic (and reversed card) → Basic (optional reversed card)
- Basic (optional reversed card) → Basic (and reversed card)

Fixes #4353
2025-10-09 01:50:50 +03:00
Luc Mcgrady
a48dcb0bb5
encode_iri_paths 2025-10-07 13:11:12 +01:00
Luc Mcgrady
f49d7d5fd7
use QueuedCards 2025-10-04 22:52:47 +01:00
Luc Mcgrady
953e6c9360
Re-implement answer buttons 2025-10-04 20:50:31 +01:00
Luc Mcgrady
44cc5f82e9
Added: Untested easeButtonPressed 2025-10-04 18:02:21 +01:00
Luc Mcgrady
0db28a7101
Add style 2025-10-04 17:08:43 +01:00
Luc Mcgrady
aa42d87558
Added: NextCardData 2025-10-04 16:29:13 +01:00
AmandaSternberg-creator
1f9d943c8d
Localize FSRS error message and update contributors (#4342)
Co-authored-by: Amanda Sternberg <mandis.sternberg@gmail.com>
2025-10-02 21:52:49 +07:00
Toby Penner
72d83ffc98
Add syntax for multi-card cloze deletions (#4333)
* Add multi-card cloze support

* Add Toby Penner to CONTRIBUTORS
2025-09-28 18:56:07 +03:00
llama
e0b0d0d19b
feat: add i18n to launcher (#4361)
* add anki_i18n and locale_config crates to launcher

* add launcher.ftl

* add tr to state

* replace most hardcoded strings with translations

* add support for `launcher` rustcfg to trim translations

* use marker structs to denote type of translations

* move underscores into generated code

* Update cargo-license, which may fix the license order issue (dae)
2025-09-27 16:58:46 +10:00
user1823
b0665a8ef1
Fix/Ensure fuzz doesn't go backward during rescheduling (#4364)
* Fix/Ensure fuzz doesn't go backward during rescheduling

Fixes https://github.com/ankitects/anki/issues/2694

* Fix

* Get previous_interval from LastRevlogInfo

* Fix

* Format

* Format

* Exclude lapses

* Force reconfigure in CI

The cached build.ninja may reference files that don't exist in the PR.
On a local build this tends to auto-fix itself as the build scripts detect
a quick failure and re-run the configure, but CI tends to be too slow.

https://github.com/ankitects/anki/pull/4364#issuecomment-3338026129

* Rename min/max to make it clear they restrict interval, not fuzz

* Wording tweaks/comments for clarity

---------

Co-authored-by: Damien Elmes <gpg@ankiweb.net>
2025-09-27 16:43:34 +10:00
user1823
d8aa244a5a
Export last_interval to Python (#4365)
* Export last_interval to Python

* Add last_interval field to StatsRevlogEntry

* Implement last_interval_secs function

* Update last_interval field type in stats.proto

* Update last_interval to use last_interval_secs
2025-09-27 15:58:41 +10:00