Skip to content

fix(ui): 设置面板内可直接更新并重启 - #110

Merged
ranger1112 merged 1 commit into
mainfrom
fix/inline-update-button
Nov 4, 2026
Merged

ranger1112 merged 1 commit into
mainfrom
fix/inline-update-button

Conversation

@ranger1112

Copy link
Copy Markdown
Owner

改动

  • 设置面板的版本行新增「立即更新」按钮:手动或后台检查到新版本后直接显示,不需要关闭设置。
  • 复用底部更新横幅的下载、安装、失败重试与重启逻辑;安装完成后按钮变为「重启」。
  • 新增 3 个 DOM 测试:发现版本→立即更新→重启、已是最新时按钮隐藏、安装失败→重试。

验证

  • npm test:72 passed
  • npm run build:通过

替代已关闭的 #107(原 base fix/security-hardening 合并后被删除,GitHub 无法重开)。#106 已合入 main,本 PR 现在直接基于 main。

- 检查到新版本后在版本行显示「立即更新」,无需关闭设置
- 下载、安装、失败重试与重启复用底部横幅的状态机
- 新增 3 个 DOM 测试覆盖检查、安装、失败重试

Co-Authored-By: Claude Code <noreply@anthropic.com>
Copilot AI balanced review requested due to automatic review settings November 4, 2026 05:37

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.

@ranger1112
ranger1112 merged commit 3b01f77 into main Nov 4, 2026
2 checks passed
@ranger1112
ranger1112 deleted the fix/inline-update-button branch November 4, 2026 05:41
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.

2 participants