Skip to content

v0.2.0 · Native DSH UI and smoother reviews

Choose a tag to compare

@Han-1413141 Han-1413141 released this 30 Sep 07:51

更贴近 DSH 的界面

Visual Edit 现在沿用 DSH 的字体、中性色、圆角和紧凑控件,随宿主的浅色、深色设置切换。去掉独立品牌抬头,把预览与修改意见分开,切换时保留已打开的页面。

  • 意见搜索、待处理/已确认筛选,支持窄侧栏。
  • 实际大小预览、快照放大和叠加比较。
  • 复制源码位置和接入配置,键盘保存,条目内确认删除。
  • 多窗口更新时保留未保存文字,阻止覆盖新版本。
  • 修复隐藏预览导致图片生成暂停的问题;获取结果时短暂显示预览,再返回意见页。
  • 更新中英文说明、升级步骤和真实 DSH 截图。

DSH 深色界面

Install / 安装与升级

DSH Web 侧栏:

dsh plugin --profile web add https://github.com/Han-1413141/dsh-visual-edit/releases/download/v0.2.0/dsh-visual-edit-0.2.0.tgz

在网页项目目录安装 Vite 接入:

npm install -D https://github.com/Han-1413141/dsh-visual-edit/releases/download/v0.2.0/dsh-visual-edit-0.2.0.tgz

升级后重启 DSH 和 Vite。0.2.0 沿用 0.1.0 的本地存储格式,同一浏览器、DSH 地址和会话中的意见与图片继续保留。

中文使用说明 · English guide

Changes

  • DSH theme tokens and compact controls, with separate Preview and Feedback views.
  • Search, status filters, actual-size preview, enlarged snapshots, and an overlay slider.
  • Inline deletion, source/config copying, save shortcuts, and explicit conflict recovery.
  • Unsaved edits retain their starting revision when another tab broadcasts an update. Concurrent actions are guarded; successful composer insertion and a failed status write are reported separately.
  • Capture reveals the live preview temporarily to avoid hidden-frame animation throttling.

Validation

Type checking, four unit tests, seven Chromium workflow scenarios, the production-output check, and Windows/Ubuntu CI passed. Native DSH 0.2.0-rc.2 Web was verified with package installation, English/Chinese, explicit light/dark settings, existing note restoration, real composer insertion, actual source-edit HMR, overlay comparison, and confirmation. The native page reported no runtime errors.

The native source edit was made by the test driver. Live model execution, other DSH versions, and Electron's desktop shell were not part of this validation. The download includes SHA256SUMS.txt for package verification.