Skip to content

feat(Parity-Batch2): Git 提交图 Webview + Console - #10

Merged
ThreeFish-AI merged 1 commit into
feature/1.x.xfrom
ThreeFish-AI/parity-recovery-batch2
Jun 27, 2026
Merged

feat(Parity-Batch2): Git 提交图 Webview + Console#10
ThreeFish-AI merged 1 commit into
feature/1.x.xfrom
ThreeFish-AI/parity-recovery-batch2

Conversation

@ThreeFish-AI

Copy link
Copy Markdown
Owner

交付(补齐最显眼的 UI 差距)

  • Git 提交图(WebviewPanel):git log --graph --oneline --decorate --all(CLI)→ 语义着色渲染(graph 连线/refs/hash)。补齐 IDEA Log 提交图的可视化拓扑。
  • Console:OutputChannel 记录所有 execGit 命令与输出(对齐 IDEA Console 标签页)。

验收

check-types/lint/package ✅ · test:unit 52/52 ✅ · test:integration 3/3 ✅

后续

Batch 3(行级 partial commit + editor inline commit + 3-way diff)—— 最难,需 diff hunk 算法 + 编辑器装饰。

🤖 Generated with Claude Code

@ThreeFish-AI
ThreeFish-AI merged commit ffc0d47 into feature/1.x.x Jun 27, 2026
4 checks passed
@ThreeFish-AI
ThreeFish-AI deleted the ThreeFish-AI/parity-recovery-batch2 branch June 27, 2026 15:31
ThreeFish-AI added a commit that referenced this pull request Jul 4, 2026
留存本次角标更新不及时问题的表因/根因/处理/防范,并交叉引用 #8 关于 badge 承载与 pendingBadge 时序的预警。

🤖 Generated with [Claude Code](https://github.com/claude), [CodeX](https://openai.com), [Gemini](https://github.com/apps/gemini-code-assist)
Co-Authored-By: Aurelius Huang<threefish.ai@gmail.com>
ThreeFish-AI added a commit that referenced this pull request Jul 4, 2026
* fix(Badge): 修复活动栏未提交数角标更新不及时;

- 根因:角标挂在 Commit WebviewView 上,VS Code 在 resolveWebviewView(用户打开过面板)前无法显示 webview 角标(vscode#164974/#146330),故面板未打开时新变更不点亮、提交/撤销后不清除;
- 承载迁移:改由隐藏 TreeView(hyperGit.changesBadge, when:false)承载,createTreeView 于 activate 即实例化,其 badge 无论面板是否打开都可靠聚合到容器图标;
- 单一事实源:新增 engine 纯函数 change-count(toRelKey/countUniqueChanges)与 GitRepositoryService.getChangeCount(),getChanges 复用同一去重逻辑,避免双实现漂移;
- 及时且高效:角标走独立 40ms 微防抖快路径,与 150ms 重刷新解耦、合并事件风暴;释放期清理悬挂定时器;
- 熵减:移除 Commit webview 死代码(updateBadge/pendingBadge)杜绝容器求和 2× 计数;补充 change-count 单元测试锁定计数等值不变式。

🤖 Generated with [Claude Code](https://github.com/claude), [CodeX](https://openai.com), [Gemini](https://github.com/apps/gemini-code-assist)
Co-Authored-By: Aurelius Huang<threefish.ai@gmail.com>

* docs(Issue): 补录 #10 活动栏角标 WebviewView.badge resolve 前不显示的根因与处理;

留存本次角标更新不及时问题的表因/根因/处理/防范,并交叉引用 #8 关于 badge 承载与 pendingBadge 时序的预警。

🤖 Generated with [Claude Code](https://github.com/claude), [CodeX](https://openai.com), [Gemini](https://github.com/apps/gemini-code-assist)
Co-Authored-By: Aurelius Huang<threefish.ai@gmail.com>
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