Skip to content

fix(git): 在设置页显示自动提交失败原因 - #109

Merged
ranger1112 merged 3 commits into
mainfrom
fix/git-backup-status
Nov 4, 2026
Merged

ranger1112 merged 3 commits into
mainfrom
fix/git-backup-status

Conversation

@ranger1112

@ranger1112 ranger1112 commented Nov 4, 2026 •

Copy link
Copy Markdown
Owner

改动

  • 自动提交结果记录到 AppState:最近一次成功时间与最近一次错误。
  • get_git_status 返回 lastSuccess / lastError。
  • 设置页在仓库已初始化时显示「上次自动提交:…」;有失败时显示「最近一次自动提交失败:…」,并用警示色,不再只写日志。
  • 新增 Rust 结果记录测试与 2 个 DOM 测试。

验证

  • cargo fmt --all -- --check
  • cargo clippy --all-targets --locked -- -D warnings
  • cargo test --locked:230 passed / 0 failed / 2 ignored
  • npm test:72 passed
  • npm run build:通过

Closes #102

本 PR 基于 main(#108 合并后)。合并顺序:#106 → #110 → #108 → 本 PR。

🤖 Generated with Claude Code

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

Co-Authored-By: Claude Code <noreply@anthropic.com>
- WebDAV 下载拒绝 HTML 登录页,避免覆盖本地笔记
- GitHub 原始文件流式读取并限制 2 MiB,错误正文限制 8 KiB
- GitHub 连接测试检查仓库写权限
- 仓库地址解析忽略 query/fragment 与 /tree/ 后的目录路径
- 旧密码迁移写入成功后才删除旧凭据

Co-Authored-By: Claude Code <noreply@anthropic.com>
- 把最近一次自动提交结果记录到 AppState
- get_git_status 返回 lastSuccess / lastError
- 设置页显示失败原因或上次提交时间,不再只写日志
- 新增 Rust 与 DOM 测试

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

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 changed the base branch from fix/sync-data-safety to main November 4, 2026 05:37
@ranger1112
ranger1112 merged commit b522f9f into main Nov 4, 2026
1 check passed
@ranger1112
ranger1112 deleted the fix/git-backup-status 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.

bug: 自动 Git 提交失败只在日志里,设置页仍显示备份正常

2 participants