Commit Graph

97 Commits

Author SHA1 Message Date
bincxz 46aa537c0e test(notes): provide the browser image element constructor 2026-08-30 22:59:52 +08:00
bincxz 611f9cca3e fix(notes): render numeric comparisons without changing source 2026-08-30 22:45:47 +08:00
bincxz b3a7dd4882 fix: address Codex review on PR #3175 2026-08-29 11:37:12 +08:00
bincxz afd382473a fix(notes): match parse failures across outer whitespace 2026-08-28 13:56:35 +08:00
netcatty-bot 9992217832 fix: address Codex review on PR #3175 2026-08-28 05:43:16 +00:00
bincxz bb47a32375 fix(notes): guard stale markdown parse fallback 2026-08-28 12:21:54 +08:00
bincxz 06caab8d28 fix(notes): limit rich retry seed to the stale failed value
Keep the retry markdown override only while the parent prop still contains
the stale body that originally failed MDX import. Once NotesManager's
source-draft debounce catches up, the editor goes back to normal prop
synchronization instead of keeping an old retry seed around.

Co-Authored-By: Claude <noreply@anthropic.com>
2026-08-27 20:30:44 +08:00
bincxz 070a9f0daa fix(notes): retry the rich editor with the latest source draft
Codex review follow-ups for the unrenderable-markdown fallback:

- Retry now seeds the MDX import from the editor's latest accepted source
  draft. NotesManager debounces source drafts (300 ms), so retrying right
  after fixing the markdown could remount the rich editor with the stale
  pre-fix `value` prop and drop straight back into the fallback.
- The read-only preview fallback no longer mutates the note: NoteSourceEditor
  skips its custom Tab insertion, undo/redo handling and imperative
  insertAction when readOnly is set (the DOM readOnly attribute alone did
  not block those paths).

Co-Authored-By: Claude <noreply@anthropic.com>
2026-08-27 20:22:40 +08:00
bincxz 6db5f823ba fix(notes): keep unrenderable markdown visible in the notes editor
The Vault notes rich editor parses note content as MDX. Some valid
CommonMark is not valid MDX — most commonly an unbalanced angle tag such
as `mysql -h <host> -u <user>` written in prose. When mdxeditor fails to
import the markdown it clears the lexical document and only reports the
failure through its onError callback, which netcatty never wired up. The
note then rendered as an empty editor with just the placeholder, while
the content was still intact in the vault (export/copy still worked).

This is exactly the note-view half of #3167: the AI wrote a skill
document into Vault → Notes, the note showed no content, and exporting
it produced a complete markdown file.

The editor now listens to MDXEditor's onError and falls back to the raw
markdown source view with a short notice, so the content is always
visible (and editable) instead of silently blank. Recovery is
deterministic: switching note or editor mode retries the rich import,
and the notice offers an explicit retry.

Co-Authored-By: Claude <noreply@anthropic.com>
2026-08-27 20:13:29 +08:00
bincxz d87a95725d fix(notes): keep mode options on one line 2026-08-25 10:20:24 +08:00
bincxz 2ab2321226 fix(vault): keep inline rename controls visible 2026-08-24 22:45:19 +08:00
bincxz 95e1a147d8 style(notes): align metadata and tree rows 2026-08-24 22:22:54 +08:00
bincxz a1f5181e58 fix(notes): avoid repeated code toolbar mutations 2026-08-24 21:55:11 +08:00
bincxz 971f702c32 refactor(notes): render formulas with katex 2026-08-24 21:43:16 +08:00
bincxz 5dbdf0965a fix(notes): protect raw source drafts 2026-08-24 21:06:36 +08:00
bincxz b24d6dd196 fix(notes): enforce explicit latex fence styles 2026-08-24 20:50:28 +08:00
bincxz b9ba7349c1 fix(notes): normalize modes and latex arguments 2026-08-24 20:42:01 +08:00
bincxz a40c0616d7 fix(notes): isolate selections and matrix scripts 2026-08-24 20:28:05 +08:00
bincxz 71e5c280fd fix(notes): preserve export and quote boundaries 2026-08-24 20:17:53 +08:00
bincxz b92084c477 fix(notes): require explicit latex formula blocks 2026-08-24 19:44:25 +08:00
bincxz 0e74c310d2 fix(notes): cover formula and list edge cases 2026-08-24 18:57:09 +08:00
bincxz 359c2b7690 fix(notes): address latest review findings 2026-08-24 18:42:54 +08:00
bincxz 0fd7bed991 feat(notes): polish editor workflow and presentation 2026-08-24 18:32:56 +08:00
Sammsai ada3d13ca3 修复笔记源码模式光标自动跳到笔记末尾 2026-08-24 00:12:25 +08:00
Sammsai c138e1fc74 修复笔记源码模式光标自动跳到笔记末尾 2026-08-23 19:31:37 +08:00
Sammsai 600544fd7f 修复笔记源码模式光标自动跳到笔记末尾 2026-08-23 14:22:18 +08:00
Sammsai 7e379ea5f5 Update 2026-08-23 13:46:55 +08:00
Sammsai ac3eb88956 清除冗余代码 2026-08-23 13:44:55 +08:00
Sammsai 140d78ae9e 多语言支持 2026-08-23 13:02:05 +08:00
Sammsai dc6d1d9b60 笔记模块工具栏中增加了代码字号配置功能 2026-08-22 20:37:32 +08:00
Sammsai 0bf7e187e6 1 2026-08-22 15:17:49 +08:00
Sammsai 76fd52e85a 1 2026-08-22 14:34:45 +08:00
Sammsai 61b9cf2584 1 2026-08-22 13:22:57 +08:00
Sammsai acfc581719 1 2026-08-22 12:28:01 +08:00
Sammsai ff25cb1a71 1 2026-08-22 09:57:24 +08:00
Sammsai 497afbbe82 11 2026-08-22 07:05:38 +08:00
Sammsai 9b0c07e614 1 2026-08-21 23:35:32 +08:00
Sammsai 53dd8af4c0 12 2026-08-21 22:12:52 +08:00
Sammsai 2c4657016a 11 2026-08-21 21:05:41 +08:00
Sammsai 2568109538 1 2026-08-21 20:18:21 +08:00
Sammsai 49fc6e3fba 1 2026-08-21 19:47:17 +08:00
Sammsai c32646b570 1 2026-08-21 19:19:35 +08:00
Sammsai f034754455 笔记模块优化 2026-08-21 17:23:12 +08:00
Sammsai e6b5b76efb 笔记模块优化 2026-08-21 12:02:31 +08:00
Sammsai 0184d3c34f 笔记模块优化 2026-08-21 10:11:42 +08:00
Sammsai 32afe5bf4b 修复构建报错 2026-08-21 09:23:37 +08:00
Sammsai 1f337d28ed 笔记模块优化 2026-08-21 08:58:43 +08:00
Sammsai 3632b42e8e 修复界面无显示 2026-08-21 08:18:01 +08:00
Sammsai ea2c2ad301 笔记模块功能优化 2026-08-21 07:19:24 +08:00
Sammsai 988783c286 笔记模块功能增强与体验修复 2026-08-20 23:11:41 +08:00