Skip to content

恢复屏幕便签的创建、移动和删除 - #8

Merged
tiye merged 2 commits into
masterfrom
fix/restore-screen-note-interactions
Nov 21, 2026
Merged

tiye merged 2 commits into
masterfrom
fix/restore-screen-note-interactions

Conversation

@tiye

@tiye tiye commented Nov 20, 2026 •

Copy link
Copy Markdown
Member

对使用者的影响

恢复点击空白处创建便签、拖动便签及删除便签;编辑仍可使用。创建位置跟随点击坐标,新增后自动聚焦,取消拖动不会使下次放置意外移动便签。

改动与风险

  • 使用具名 Action 和类型明确的拖动状态;通过受检浏览器事件接口读取坐标。
  • 使用单调递增的便签 ID,避免删除后新便签与现有便签重名。
  • 便签仍仅保存在当前页面内存,刷新或关闭后不会恢复。迁移前旧版会在离页时写出 screen-notes 存档,但其启动读取代码已注释;本 PR 没有恢复存档读写,也不覆盖旧存档。
  • 尚未验证 Electron 窗口。仓库没有安装 Electron,且其生产入口仍是既有的 r.tiye.me/mvc-works/screen-notes 地址;本 PR 不修改该地址或部署配置。保留草稿以便继续验收。

验证

  • Calcit 0.44 --check-only 与 fix --workflow strict --verify 通过,无待审类型问题。
  • yarn build 通过。
  • 隔离浏览器验证点击创建、编辑、拖动和连续新增时自动聚焦。
  • 对生成的 JS 执行新增、编辑、删除后再新增,以及取消拖动后放置的状态验证。

@tiye
tiye marked this pull request as ready for review November 21, 2026 04:31
@tiye
tiye merged commit ec887ad into master Nov 21, 2026
1 check passed
@tiye
tiye deleted the fix/restore-screen-note-interactions branch November 21, 2026 04:31
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