Commit graph

12126 commits

Author SHA1 Message Date
medProgAyat
8fe30446e9
Merge c7bcde589e into 8f2144534b 2025-12-22 07:10:26 +03:00
SelfishPig
8f2144534b
Start decoding images immediately (#4471)
* Start decoding images immediately

* Start decoding images immediately (revised)

* New contributor
2025-12-20 20:27:13 +03: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
GithubAnon0000
4c7b343231
CHANGE: use minus sign instead of hyphen (#4437) 2025-12-16 19:26:43 +03:00
Lee Doughty
4e8c992be1
fix: prevent <br> from appearing as text in error message (#4451)
* Update error text format to use RichText rather than PlainText

* Set CardTypeError messages as rich text to allow HTML formatting

* Use CardTypeError from anki.errors module
2025-12-16 19:23:40 +03:00
llama
cb7a8dbc10
fix(ci): bump cargo-deny to 0.18.6 (#4447) 2025-12-16 19:22:18 +03:00
llama
26751f2207
fix(io): remove incorrect error toast shown when saving twice (#4458) 2025-12-15 19:09:51 +03:00
Lee Doughty
2d4de33cf3
Ensure trailing spaces are placed outside cloze deletions (#4446) 2025-12-01 21:54:46 +03: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
llama
dda192f24c
fix(import): support variable field count with notetype column (#4421) 2025-11-19 22:48:14 +03:00
Lee Doughty
9facea0a66
feat(tts): fallback to Apple Samantha voice for TTS on macOS (#4420)
* Fallback to Apple Samantha voice for en_US TTS on macOS

* Use prefix match for Apple Samantha voice fallback
2025-11-12 22:55:47 +03:00
Nechaiter
c2fddcaf42
Fix FindDuplicates dialog size exceeding screen bounds (#4426) 2025-11-10 16:18:57 +03: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
medProgAyat
c7bcde589e
Merge branch 'main' into main 2025-11-01 22:13:30 +03:30
medProgAyat
3e63ff34b0
Update ts/lib/generated/post.ts
Co-authored-by: Damien Elmes <dae@users.noreply.github.com>
2025-11-01 22:12:52 +03:30
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
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
llama
739e41ce16
fix(launcher): apply cache settings to all uv invocations (#4404) 2025-10-27 19:42:45 +07: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
jcznk
23d0657a01
(UI polish) Filtered decks: replace maximumSize with sizePolicy in "Limit to" QSpinBox (#4398)
* Fix (UI) / Increase width of "Limit to" QSpinBox (Filtered Decks)

Increased the width from 60 px to 75 px, so that there is always enough space, even in the case of large numbers (e.g., 99999).

* Update filtered_deck.ui (replace maximumSize with sizePolicy)
2025-10-27 19:35:07 +07:00
Abdo
510a3b3533
Update VS Code config (#4397) 2025-10-27 19:31:59 +07:00
Abdo
d3ca0cd0b3
Update PyCharm docs (#4389)
* Add .idea.dist

* Update PyCharm docs
2025-10-27 19:27:50 +07:00
user1823
62c950120c
Fix(launcher)/Exclude pre-release if a newer major_minor exists (#4388)
The current main produces a list like "25.09.2, 25.08b5, 25.07.5, 25.06b7, 25.02.7"
Here, 25.08b5 and 25.06b7 should be filtered out for the same reason this code filters out the older patch releases.
2025-10-27 19:26:09 +07:00
llama
a05c90cbce
fix: make uv use system certstore (#4386) 2025-10-27 19:19:28 +07:00
llama
23263caea2
feat: show launcher if different version was installed (#4381) 2025-10-27 19:08:40 +07:00
dependabot[bot]
9f9bafa66c
Bump vite from 6.3.6 to 6.4.1 (#4405)
Bumps [vite](https://github.com/vitejs/vite/tree/HEAD/packages/vite) from 6.3.6 to 6.4.1.
- [Release notes](https://github.com/vitejs/vite/releases)
- [Changelog](https://github.com/vitejs/vite/blob/main/packages/vite/CHANGELOG.md)
- [Commits](https://github.com/vitejs/vite/commits/create-vite@6.4.1/packages/vite)

---
updated-dependencies:
- dependency-name: vite
  dependency-version: 6.4.1
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-10-27 18:30:23 +07:00
Ranjit Odedra
d24d2e3394
Fix sync login dialog not using newly-set custom sync server #4395 (#4396)
* Fix sync login with custom server URL

Call update_network() before showing login dialog to ensure
the custom sync server URL is saved before attempting login.

Previously, the custom URL was only saved when closing the
preferences dialog, causing login to fail on first attempt.

Fixes #4395

* Add contributor info
2025-10-18 01:11:50 +03:00
medProgAyat
d9190f9abd fix: unneccessary null check for actionclose() removed 2025-10-13 13:43:25 +03:30
medProgAyat
c589d95d7f
Merge branch 'main' into main 2025-10-13 13:40:23 +03:30
Lee Doughty
321e23acb2
Replace custom UUID function with crypto.randomUUID (#4384) 2025-10-13 09:37:30 +03:00
nav1s
ab2fe98c54
feat: add tooltips for sidebar items in the browse cards window (#4385)
* feat: add tooltips for all of the sidabar items in the browse cards window

* fix: add name to CONTRIBUTORS
2025-10-13 09:27:40 +03:00
medProgAyat
c73f9f5706 fix: make error page got it button using translation 2025-10-09 17:57:16 +03:30
medProgAyat
327a472728
Merge branch 'main' into main 2025-10-09 17:43:32 +03:30
medProgAyat
49924c4e8f fix: use bridgeCommand instead pycmd for now "till add rpc in future" 2025-10-09 17:42:23 +03:30
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
medProgAyat
4e8997d497 format using dprint 2025-10-07 19:56:22 +03:30
medProgAyat
654537c669 fix style again because the last one was using pretier not dprint 2025-10-07 19:51:37 +03:30
medProgAyat
021d0cd968 format post.ts to meet ninja check 2025-10-07 19:47:27 +03:30
medProgAyat
63803e0ff3 format using ninja format 2025-10-06 19:05:34 +03:30
medProgAyat
bc08907f14 i forgot to add my self to contributers 2025-10-06 18:58:01 +03:30
medProgAyat
b536a497bb solved issue: error code removed and error page styled and close button added 2025-10-06 18:35:17 +03:30
Arold0
d11b74fd38
Fix fatal error when double clicking Add button (#4377)
Prevent adding a note that has already been added by checking if
note.id is set before attempting to add it. This fixes a race
condition when the Add button is clicked multiple times quickly.

Fixes #4376
2025-10-05 15:58:16 +03: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
user1823
1ba4512011
Fix launcher strings (#4375)
* Fix launcher strings

* Add prompt to press enter for installation

* Prompt should appear after ensuring that the OS is supported
2025-10-02 21:50:44 +07:00
GithubAnon0000
969c2b43b5
CHANGE launcher strings to clarify installing for novices (#4327)
* CHANGE strings to clarify for novices

* Update launcher.ftl including suggestions from @dae
2025-10-02 17:00:09 +07:00
matbe766
b2bb85b1a2
Avoid QProgressBar overflow by normalizing to kilobytes (fixes #4341) (#4354)
* qt: normalize large progress totals to kilobytes to avoid QProgressBar overflow (#4341); docs: update CONTRIBUTORS

* update

* revert: keep ProgressManager generic; no autoscaling in progress.py

* revert: keep ProgressManager generic; do scaling only in full sync

* Simplify sync progress update by scaling to KB, fix CONTRIBUTORS
2025-10-02 16:59:09 +07:00
Dan
0986af4f81
fix(Occlusion): remember toggle translucency setting (#4366)
* remember translucency

Adding myself to contributors

Added braces surrounding if statement to comply with ninja checks

* ninja fix format
2025-09-30 20:18:26 +03:00
llama
a842ba1498
replace more hardcoded strings in the launcher with translations (#4368) 2025-09-30 00:13:09 +10:00
llama
f28018c5c6
fix(ci): pin cargo-license to 0.7.0 (#4367)
* pin cargo-license to 0.7.0

* ./ninja fix:minilints
2025-09-30 00:12:24 +10:00