Commit graph

32 commits

Author SHA1 Message Date
Dusk
0d0f04aba2 fix(settings): fix settings-page sticky overlap and add opaque page-header mask
- Fixed settings-page sticky overlap issues.
- Added an opaque mask to the page header.
- Card headers now dock correctly below the page header.

修复设置页吸顶重叠问题并添加不透明页头遮罩

- 修复了设置页面吸顶元素重叠的问题。
- 为页头添加了不透明遮罩。
- 卡片头部现在可以正确停靠在页头下方。
2026-04-25 21:21:01 +08:00
Dusk
33a4d29c4d fix(settings): 固定页面级标题栏 / pin page-level settings header
中文: 将设置页顶部标题改为页面级 sticky 白色标题栏,并取消每个卡片标题的 sticky,修复滚动遮挡、正文重叠和边框异常。

English: Convert the settings page title into a page-level sticky white header and remove sticky behavior from section headers to fix scroll overlap, body occlusion, and border artifacts.
2026-04-25 18:33:58 +08:00
Dusk
496cb0fc09 fix(settings): remove sticky header mask wrapper
中文: 移除设置页标题条的外层 sticky 容器和向上遮罩,避免滚动到底部时出现大面积空白边框;改回单层 sticky 标题按钮,并保留放大字号、灰色粗边框和无阴影样式。

English: Remove the sticky wrapper and upward mask from settings section headers to prevent large blank bordered areas near the bottom of the settings page, while keeping a single-layer sticky button with enlarged text, a thicker gray border, and no shadow.
2026-04-25 15:58:30 +08:00
Dusk
997aa5bc14 fix(settings): mask sticky section headers
中文: 为设置页 sticky 标题条增加向上遮罩,并保持标题字号放大、灰色边框加粗、无阴影,避免滚动时设置内容露到标题上方。

English: Add an upward mask for sticky settings section headers while keeping the enlarged title, thicker gray border, and no-shadow styling so scrolled content cannot bleed above the header.
2026-04-25 15:45:51 +08:00
Dusk
daac6a204a feat(settings): use sticky section header bars
中文: 将设置页卡片标题改为整行 sticky 条幅,滚动时提供有背景遮挡的分组标题效果。

English: Turn settings card toggles into full-width sticky section header bars with background coverage while scrolling.
2026-04-25 14:59:51 +08:00
Dusk
e76c107041 feat(settings): 设置页卡片标题 sticky 悬浮 / make settings card headers sticky
中文: 为五个设置页卡片标题按钮增加 CSS sticky 吸附效果,保持原有折叠展开与局部刷新机制,不引入滚动监听。

English: Add CSS-only sticky behavior to all five settings card headers while preserving the existing collapse/expand and local refresh behavior without scroll listeners.
2026-04-25 13:36:07 +08:00
Dusk
9b692b066d fix(settings): stabilize select border rendering
中文: 进一步稳定设置页下拉框边框显示,避免 Anki 映射行中的 select 控件在选择后被裁剪。

English: Further stabilize select border rendering in the settings Anki mapping rows after note type selection.
2026-04-25 13:21:25 +08:00
Dusk
2c86059baf fix(settings): prevent clipped field control borders
中文: 修复设置页下拉框选中后边框被 grid 容器裁剪的问题,避免 note type 控件边框缺失。

English: Prevent grid containers from clipping field control borders after note type selection.
2026-04-25 11:45:12 +08:00
Dusk
024b5cdc79 fix(settings): align card type mapping columns
中文: 将常规问答题、问答题(多级列表)和填空题的 Anki 映射行统一为相同列宽,让输入框视觉上平齐。

English: Use the same column widths for basic, QA group, and cloze Anki mapping rows so their controls align visually.
2026-04-25 11:36:40 +08:00
Dusk
dc07ca9817 fix(settings): tighten QA group mapping row layout
中文: 缩减问答题(多级列表)设置行中模板和题目字段区域的宽度,并让问题/答案字段识别摘要保持单行显示。

English: Tighten the QA group note type and title field columns, and keep the detected Q/A slot summary on one line.
2026-04-25 11:30:56 +08:00
Dusk
ffad94dd18 feat: 优化设置页模板缓存状态 / improve settings template cache status
- 设置页在有缓存时立即显示缓存摘要,并在打开时只做一次轻量 note type freshness 检查
- 手动读取仍负责完整模板与字段刷新,不会在页面打开时读取所有字段
- Add tests and docs for cache summary, stale-cache warning, and failed background checks
2026-04-25 11:18:11 +08:00
Dusk
d46ddb431d feat(settings): simplify QA group field mapping UI
中文: 将问答题(多级列表)的题目字段改为可选择下拉框,并将问题/答案字段摘要简化为只显示已识别组数;同步逻辑保留用户选择的题目字段。

English: Make the QA group title field selectable, simplify the Q/A slot summary to the detected pair count, and preserve the selected title field during sync and cache refresh.
2026-04-25 10:19:11 +08:00
Dusk
3d82d7fb55 feat: QA Group 重构为用户模板驱动并支持自动字段映射 | Refactor QA Group to user-template-driven route with auto field mapping 2026-04-24 23:47:09 +08:00
Dusk
d8bd1ebf12 fix(settings): keep Anki field row inside cards
中文: 将 Anki 模板、问题字段、答案字段改为三个整体自适应分组,避免最后一组被卡片边界裁切。

English: Group the Anki template, question field, and answer field controls into three adaptive columns so the row stays inside each card.
2026-04-24 18:59:04 +08:00
Dusk
ba04320926 fix(settings): make card field controls fluid
中文: 设置页卡片类型行的模板和字段控件改为自适应宽度,保留同一行布局并减少过宽下拉框。

English: Make card type template and field controls fluid while preserving the single-row settings layout and reducing oversized dropdowns.
2026-04-24 18:50:39 +08:00
Dusk
043a207149 perf(settings): batch cache Anki model fields
中文: 设置页手动读取 Anki 模板时改为批量读取字段并缓存到 data.json,重新打开设置页可直接使用缓存字段。

中文: 修复字段缓存 loadedAt 类型收窄和测试 fake 缺少批量字段接口导致的 production build 失败。

English: Batch-load Anki model fields for settings, cache them in data.json, and reuse cached fields when reopening the settings page.

English: Fix production build failures by narrowing cached loadedAt values and adding the batch field API to test fakes.
2026-04-24 18:38:10 +08:00
Dusk
06492948d9 fix(settings): cache Anki note templates
中文: 优化设置页卡片类型布局,隐藏语义问答题与 AnkiConnect URL;允许多级列表问答题从 Anki 模板中选择笔记类型和字段。

中文: 将手动读取到的 Anki 笔记模板列表缓存到 data.json,设置页重新打开后下拉菜单可直接使用上次读取结果。

English: Refine the settings card-type layout, hide Semantic Q&A and the AnkiConnect URL, and let nested-list Q&A use selectable Anki note types and fields.

English: Cache loaded Anki note templates in data.json so settings dropdowns can reuse the last loaded list after reopening.
2026-04-24 14:59:22 +08:00
Dusk
0fdf9c8ef3 重构设置页为五卡片并统一识别配置 / Cardize settings page and unify recognition config
重构设置页采用五个卡片外壳,提升布局稳定性和局部刷新体验;通过 cardTypeConfigs 驱动各卡片的识别配置,并完成初步的功能测试与验证。 / Refactored settings page into five cards for better stability and partial refresh; unified recognition configurations via cardTypeConfigs with initial testing and verification.
2026-04-24 12:12:10 +08:00
Dusk
c367a772c7 fix(settings): preserve explicit folder selections
中文: 修复设置页文件夹树半选逻辑,子文件夹选择不再自动提升为父文件夹;补充 Anki Heading Sync 插件同步路径说明。

English: Keep child folder selections explicit in the settings tree, render parent folders as indeterminate, and document the Anki Heading Sync plugin sync target.
2026-04-24 10:10:34 +08:00
Dusk
b82e1dd53d feat: 支持可配置 Obsidian 回链显示名称与位置 / configurable Obsidian backlink label and placement
覆盖普通卡、Cloze、语义 QA 与 QA Group 12,新增回链名称与放置位置设置、渲染位置控制、QA Group 模板漂移更新与 renderConfigHash 失效。

Cover normal cards, cloze, semantic QA, and QA Group 12 with configurable backlink label and placement, placement-aware rendering, QA Group template drift updates, and renderConfigHash invalidation.
2026-04-23 23:08:00 +08:00
Dusk
579899f7c8 feat: sync Obsidian tags and pure tag line cleanup / 功能:同步 Obsidian 标签并清理纯标签行
EN: Implement one-way Obsidian to Anki tag sync, nested tag normalization, pure tag-line body cleanup, and QA Group coverage.\nZH: 实现 Obsidian 到 Anki 的单向标签覆盖、嵌套标签规范化、正文纯标签行清理,并补齐 QA Group 覆盖。
2026-04-23 16:43:06 +08:00
Dusk
4052eff0e7 feat: 新增 cardAnswerCutoffMode 卡片正文截止模式,支持 heading-block / double-blank-lines,并统一 marker/GI 写回归整规则
feat: add cardAnswerCutoffMode with heading-block / double-blank-lines and unify marker/GI writeback normalization.
2026-04-23 10:16:41 +08:00
Dusk
67854cf154 feat: implement full bilingual i18n and structured error rendering
- 新增完整双语 i18n 支持,支持按 Obsidian 语言自动切换
- 实现结构化 warning / user error 渲染
- Added full bilingual i18n support with automatic switching based on Obsidian language settings
- Implemented structured warning and user error rendering
2026-04-21 13:34:27 +08:00
Dusk
472011c32f fix(qa-group): harden sync and backlink behavior
中文: 修复 QA Group 同步链路中的多处稳定性问题,包括可点击回链、丢失 noteId 时自动重建、避免在未指定目标 deck 时误调用 changeDeck,以及统一设置页 note type 下拉行为。

English: Fix multiple QA Group stability issues, including clickable backlinks, self-healing recreation when stored noteIds are missing, skipping changeDeck when no target deck is provided, and unifying note type dropdown behavior in settings.
2026-04-20 22:14:59 +08:00
Dusk
bbe1eece12 QA Group 模型同步修复 / Fix QA Group model sync
- 修复 QA Group model 管理的 AnkiConnect payload 契约,模板与样式更新改为嵌套 model payload
- 修复 QA Group model 自检与更新链路,补充带 action/model 上下文的错误信息与回归测试
- 解耦 QA Group 与旧 semantic-qa mapping 路径,设置页移除保留 model 的旧映射入口并增加只读状态说明
- Fix the AnkiConnect payload contract for QA Group model management by using nested model payloads for template and styling updates
- Repair the QA Group model ensure/update flow with action/model-aware errors and regression tests
- Decouple QA Group from the legacy semantic-qa mapping path by removing the reserved model from old mapping controls and adding read-only status guidance
2026-04-20 15:20:20 +08:00
Dusk
4845c721d5 feat: add #anki-list QA Group 12 route / 新增 #anki-list QA Group 12 路线
Add a parallel QA Group 12 sync path with GI writeback, fixed model management, and GroupId recovery semantics.

新增并行 QA Group 12 同步路径,支持 GI 写回、固定模型管理,以及基于 GroupId 的恢复语义。
2026-04-20 13:42:30 +08:00
Dusk
b1b2051502 feat: add semantic QA list splitting / 支持语义 QA 列表拆卡 2026-04-19 22:00:36 +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
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