Skip to content

v1.19.1

Choose a tag to compare

@github-actions github-actions released this 03 Dec 12:16
· 8 commits to main since this release

主要变更

  • 变更记录右键直接打开官方文件页签:文件行右键新增「查看文件」,借用官方侧栏文件页签打开该文件,直接查看与编辑当前磁盘版本,不必先在差异里定位;删除文件、目录折叠等不可读目标由官方禁用或报错,不伪造内容。平铺与树形共用,只作用于右键的那一个文件,不扩大到勾选集合,也不改变左键打开差异、选中行与滑条(#175 #176)
  • 变更记录右键可跳转侧边栏「本地变更」审查:新增「侧边栏审查」,在 retained 会话的实时工作目录与面板 Git 根能证明一致(含已认证 worktree)时开放,一键打开官方审查页签并定位到该文件;官方页签保留自身范围与 head,不保证自动切到右键行那一侧。手动选到别的仓库、缺投影或只已知根下子目录时保守不显示(#175 #176)
  • 修复:连接中断后变更行右键不再整体消失:传输中断时面板按设计保留最后一次有效快照(顶部有提示),此时右键仍提供「查看文件 / 打开差异 / 暂存 / 丢弃」;只有需要最新文件列表的审查入口等下一次成功刷新再出现,不再为一条过期提示丢掉整族操作(#176)

安装

# 正式版(npm)
dsh plugin --profile web add @xbzbing/dsh-git-panel@1.19.1

# 同一版本的 GitHub Release 附件
dsh plugin --profile web add https://github.com/xbzbing/dsh-git-panel/releases/download/v1.19.1/xbzbing-dsh-git-panel-1.19.1.tgz

手动升级时先卸载旧版,再安装新版;直接 add 升级可能需要重启 dsh。

验证

  • npm run check 全绿:lint + typecheck + 1617 单测 + 45 个 e2e runner,0 失败 / 取消 / 跳过;门禁另跑 node build.mjs、npm pack 与 scripts/assert-pack.mjs,75 个发布文件通过路径与许可校验。
  • 断连回归:隔离浏览器让 snapshot 返回 transport,断言变更行右键仍给出「查看文件 / 打开差异 / 暂存 / 丢弃」、审查项隐藏,并真实执行一次打开差异与一次暂存;恢复后审查入口回来。
  • 路径回归:POSIX 名称里的字面反斜线不再被当作 Windows 根分隔符(menu-paths / follow-checkout 单测),Windows drive / UNC 与带空格、Unicode 的绝对路径照常。

完整变更记录 v1.19.0...v1.19.1


English

  • Open the official file tab straight from a Changes row: right-clicking a file row adds View file, borrowing the official sidebar file tab so you can read and edit the current disk version without locating it in a diff first. Unreadable targets such as deleted files and folded directories stay disabled or fail in the official layer; no content is faked. Tree and flat views share it, the entry acts only on the right-clicked file (never the picked batch) and changes neither left-click diff, active row nor row slider (#175 #176)
  • Jump to the sidebar's local-changes review: right-clicking a file row adds Review in sidebar, shown only when the retained session's live working directory provably matches the panel's Git root (certified worktrees included); it opens the official review tab and points it at that file. The official tab keeps its own scope and head, so it may not switch to the clicked row's side. A manually picked repository, a missing projection or only a known subdirectory under the root keeps it hidden (#175 #176)
  • Fix: a connection break no longer empties the change-row menu: the panel keeps its last good sample during a transport outage (with a notice above it), and right-click still offers View file / Open diff / Stage / Discard; only the review entry, which needs a current file list, waits for the next successful refresh (#176)

Install

# Stable (npm)
dsh plugin --profile web add @xbzbing/dsh-git-panel@1.19.1

# The same version as a GitHub Release asset
dsh plugin --profile web add https://github.com/xbzbing/dsh-git-panel/releases/download/v1.19.1/xbzbing-dsh-git-panel-1.19.1.tgz

For a manual upgrade, uninstall the old version before installing this one; upgrading directly with add may require a dsh restart.

Verification

  • npm run check green: lint + typecheck + 1617 unit tests + 45 e2e runners, with no failures, cancellations or skips; the gate additionally runs node build.mjs, npm pack and scripts/assert-pack.mjs, validating the 75 release files, archive paths and license.
  • Outage regression: the isolated browser makes the snapshot endpoint return transport and asserts the change-row menu still offers View file / Open diff / Stage / Discard with the review entry hidden, then really runs one open-diff and one stage; the entry returns after recovery.
  • Path regression: a literal backslash in a POSIX name is no longer treated as a Windows root separator (menu-paths / follow-checkout unit tests), while Windows drive / UNC roots and absolute paths with spaces or Unicode keep working.

Full changelog v1.19.0...v1.19.1