Commit graph

16 commits

Author SHA1 Message Date
Dusk
e2f973dc46 refactor: 切换 manual-sync 主链到 ID noteId / refactor manual-sync mainline to ID noteId
- 将 marker、state、writeback 的 durable identity 改为 noteId
- Switch marker, state, and writeback durable identity to noteId

- 支持满足标题规则的旧 ID 卡片重接进并按当前 renderer 重渲染
- Reconnect legacy ID cards that match heading rules and rerender them with the current renderer

- 补充 schema migration、测试、构建验证与插件同步
- Add schema migration, tests, build verification, and plugin sync
2026-04-19 11:46:37 +08:00
Dusk
d4d73487a0 fix(deck-cleanup): detect empty decks correctly and improve selection modal
中文: 修复空牌组清理时错误读取 Anki deck 统计的问题,改为按真实返回结构识别空牌组;同时增强清理弹窗,新增全选、全部不选、反选、已选计数和删除按钮禁用逻辑。

English: Fix empty-deck cleanup by matching Anki deck stats from the real response shape, and improve the cleanup modal with select all, clear all, invert selection, selection counts, and disabled delete when nothing is selected.
2026-04-19 00:03:07 +08:00
Dusk
1682ce5fa0 fix(sync): fix deck stats structure, empty deck identification, and test false positives
修复了 deck stats 返回结构读取错误、修复了空牌组候选识别错误、修复了对应测试的假阳性问题。
2026-04-18 22:53:17 +08:00
Dusk
a5056dd71c fix: prevent treating unknown deck stats as cleanup candidates | 修复:防止把未知 deck 统计当成空牌组 cleanup candidates
English: Ensure that decks with unknown statistics are not incorrectly treated as empty candidates for cleanup.
中文:确保统计信息未知的牌组不会被错误地视为待清理的空牌组。
2026-04-18 22:37:08 +08:00
Dusk
412fddebc1 feat(management): add commands to clear synced cards and cleanup empty decks | 新增清空已同步卡片与清理空牌组管理命令
Introduced two new management commands: 'Clear currently synced cards' to reset sync state for the current file, and 'Cleanup empty decks' to remove unused decks from Anki. Both commands improve plugin maintenance and synchronization flow.

新增两个管理命令:'清空当前文件已同步卡片'用于重置当前文件的同步状态,'清理空牌组'用于从 Anki 中移除未使用的牌组。这两个命令改进了插件的维护和同步流程。
2026-04-18 22:21:10 +08:00
Dusk
bd149b9d11 fix(deck): migrate existing cards when deck rules change 2026-04-18 21:39:15 +08:00
Dusk
960b87103d feat(deck): add configurable deck resolution modes
中文: 新增 deck 模式选择、文件级 deck 解析、文件夹映射、模板插入与 warning 汇总

English: Add deck mode selection, file-level deck parsing, folder mapping, template insertion, and warning aggregation
2026-04-18 20:14:29 +08:00
Dusk
f0b8063270 fix(settings): always refresh folder tree on display to show newly-created folders 2026-04-18 15:16:25 +08:00
Dusk
cb968b1d17 feat: redesign folder scope settings 2026-04-18 13:42:01 +08:00
Dusk
a0ac404712 fix: tighten module 3 indexing identity and caching 2026-04-18 10:20:16 +08:00
Dusk
d3d356fb10 feat: implement module 3 manual sync architecture 2026-04-18 10:07:49 +08:00
Dusk
be0277d089 fix: harden marker writeback failures 2026-04-18 08:23:12 +08:00
Dusk
63aaf5f438 fix: stabilize batch AHS writeback 2026-04-18 08:16:30 +08:00
Dusk
7c2c6776bd feat: Module2 — AHS 写回与相关测试 2026-04-18 00:08:46 +08:00
Dusk
5099b39d3f chore: commit Module 1 changes — add NoteFieldMapping, mapping service, persistence, tests 2026-04-16 23:02:07 +08:00
Dusk
f854a3b581 chore: rebuild dist and sync 2026-04-16 18:02:02 +08:00