Skip to content

fix(editor): restore empty-body caret and checklist layout for v0.4.1 - #20

Merged
lucaslus merged 2 commits into
mainfrom
release/0.4.1
Sep 8, 2026
Merged

lucaslus merged 2 commits into
mainfrom
release/0.4.1

Conversation

@lucaslus

@lucaslus lucaslus commented Sep 8, 2026

Copy link
Copy Markdown
Owner

正文为空时,macOS 中的输入光标会消失,直到输入文字才出现;任务清单的 checkbox 也会独占一行。此变更修复这两处编辑体验问题,并准备 v0.4.1(build 13)。

  • 移除根容器、面板及编辑器滚动区域的强制 GPU 合成,恢复正文文本选择与光标颜色;标题进入正文时先聚焦 ProseMirror view,避免 WebKit 同步更新造成事务冲突。
  • 为 Tiptap 编辑态 taskItem 补齐节点属性,使 checkbox 与文字横向对齐;优化圆角、主题色、悬停和键盘焦点,并保留长文本与嵌套任务缩进。
  • 避免将编辑器自身输出的 Markdown 重新作为初始内容载入,保留空任务项和空标题的编辑结构;补充工具栏无障碍名称。
  • 同步前端、Tauri、Cargo 与锁文件版本,增加中英文 Release Notes。

此前已完成前端构建、Chromium/WebKit 输入及任务清单回归、保存重开验证,并通过原生 WKWebView 截图确认空正文光标。用户已在本地桌面版确认问题修复。发布流程将构建并校验 macOS Universal DMG,合并后把同一候选提交标记为 v0.4.1。

Keep the native macOS caret visible before any body text is entered by
removing forced compositing from the root, panel, and editor scroll layer.
Restore text selection and explicit caret color inside the editor, and
focus the ProseMirror view before creating a scroll transaction to avoid
WebKit dispatching against a stale document.

Set taskItem data attributes on Tiptap node views so checklist layout and
checkbox styles apply in edit mode. Align checkboxes with the first text
line, retain indentation for wrapped and nested content, and add rounded
controls with themed checked, hover, and keyboard-focus states. Restrict
completed styling to the item's paragraphs so nested tasks stay readable.

Do not reparse Markdown emitted by the editor as initial content: empty
task items and headings must remain editable. Label toolbar controls for
assistive technology.

Validation performed before commit: frontend production build; Chromium
and WebKit input, selection, task toggle/nesting/wrapping, and save/reopen
checks; native WKWebView empty-body caret screenshots. The user confirmed
the caret and checkbox fixes in the local desktop app.
Bump the frontend package, Tauri configuration, Rust package, and Cargo
lockfile together to 0.4.1, and increment the macOS bundle build to 13.

Document the empty-body caret, WebKit focus, checklist layout and styling,
empty-node synchronization, and toolbar accessibility fixes in bilingual
release notes for the candidate-to-stable publishing workflow.
@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying floatick with  Cloudflare Pages  Cloudflare Pages

Latest commit: e8e89a3
Status: ✅  Deploy successful!
Preview URL: https://083cc369.floatick.pages.dev
Branch Preview URL: https://release-0-4-1.floatick.pages.dev

View logs

@lucaslus
lucaslus merged commit 68e5b23 into main Sep 8, 2026
6 checks passed

This branch was successfully deployed

1 active and 1 inactive deployments
github-pages — e8e89a3d Deployed Sep 8, 2026 by lucaslus via Deploy Sparkle appcast #11
production — e8e89a3d Deployed Sep 8, 2026 by lucaslus via Promote tested draft release #11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant