Repository navigation
[Feature Proposal] Add git controls tab in web UI (like GitHub Desktop) / 在 Web 端增加类 GitHub Desktop 风格的 Git 控制与仓库检查标签页 #2866
Replies: 1 comment
|
The UI direction is useful, but the integration should not execute Git commands directly from the browser or hide mutations behind an unreviewed Host endpoint. Git is workspace-scoped, not conversation-scoped, so this also fits better as a root/workspace page (and would be a strong consumer for the extension point proposed in #2873). A safe delivery sequence would be:
The test matrix should include a non-repo directory, dirty tree, detached HEAD, renames/deletes, binary and very large diffs, submodules, checkout conflicts, cancellation, and unavailable credentials. A branch switch must fail without modifying the tree when local changes would be lost. The screenshots and bilingual UI are a good prototype. Separating the Git capability/service from the tab now will make the UI reusable and keep it inside the repository's plugin + approval architecture. |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
I put together a third tab for the web client to handle Git controls (view changes, commits history, diff viewer, and branch switching) styled like GitHub Desktop.
Links
Main things added
It uses the existing UI components and tokens, supports both
enandzh, and passes all local checks (test:gui,typecheck,lint).Since PRs are currently closed during pre-release, sharing the branch here. Let me know what you think or if you'd like to pull this in!
中文说明 (Chinese)
我在 Web 客户端(Chat 与 Trajectory 旁)新增了第三个标签页,用于提供类似 GitHub Desktop 风格的 Git 控制功能(查看工作区变更、提交历史、代码差异查看器和分支切换)。
相关链接
主要功能
该功能完全遵循 Harness 现有的 UI 基础组件和设计系统 Token,支持中英双语,并通过了全部本地质量检查(
test:gui、typecheck、lint)。由于预发布阶段 PR 暂未开放,在此先行分享该分支。欢迎核心团队提供反馈或在适当时机合入主干!
All reactions