Skip to content

fix(latte): 改进同步冲突解决体验 - #15

Merged
hillsburg merged 4 commits into
mainfrom
fix/conflict-resolution-ux
Jul 21, 2026
Merged

hillsburg merged 4 commits into
mainfrom
fix/conflict-resolution-ux

Conversation

@hillsburg

Copy link
Copy Markdown
Owner

Summary

  • 冲突对话框支持 对照 / 行级 Diff / 可读预览 三种视图(DiffPlex)
  • 展示本地/远端操作类型;删除场景使用更明确的按钮文案
  • 新增 全部保留远端;手动合并改为「只读参考 + 可编辑结果区」(填入本地/远端)
  • 同步语义不变:仍由用户裁决,不做自动三方合并

Test plan

  • dotnet test … --filter Conflict(13 通过)
  • 制造笔记冲突:切换三种视图,核对 Diff 红绿行
  • 删除 vs 更新冲突:按钮文案为「保留本机删除 / 恢复远端内容」等
  • 手动合并:填入远端后确认,仅结果区生效
  • 批量「全部保留远端」后冲突清空

Made with Cursor

hillsburg and others added 4 commits July 21, 2026 15:34
增加行级 Diff、可读预览、全部保留远端、删除场景文案,以及明确合并结果区的手动合并窗口。

Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
InitializeComponent 期间视图切换早于面板字段赋值;改为初始化后再勾选对照,并加固 Diff/打开异常处理。

Co-authored-by: Cursor <cursoragent@cursor.com>
不再依赖 DialogResult==true,避免标题栏关闭时冲突图标残留。

Co-authored-by: Cursor <cursoragent@cursor.com>
@hillsburg
hillsburg merged commit 57ae44d into main Jul 21, 2026
1 check passed
@hillsburg
hillsburg deleted the fix/conflict-resolution-ux branch July 21, 2026 08:47
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