GitHub 集成方案 mockup(Tier 1 + Tier 2)#93
Closed
vaayne wants to merge 3 commits into
Closed
Conversation
两层方案的可视化提案,不嵌 github.com WebView: - Tier 1: gh dash 作为 companion tool 复用 lazygit 架构 - Tier 2: worktree 行下挂 PR 状态条,绑定 branch 仅 mockup,无功能代码。
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
让 Mori 更好地管理 PR。不嵌 github.com 整页 WebView —— 认证两套 token、不 native、脱离 worktree 上下文。
可视化 mockup:
docs/mockups/github-integration.html(浏览器打开,顶部切换 Tier 1 / Tier 2 / 叠加)。Tier 1 —
gh dash作为 companion tool(先做)官方
gh-dashTUI 跑在右侧 ~420pt companion pane,⌥G 唤起,复用现有 lazygit 架构。新增一个CompanionTool枚举值 + 键位,几乎零新 UI。Tier 2 — worktree PR 状态条(小幅 native)
每个 worktree 行下挂 PR 状态条,绑当前 branch:
gh pr view --json number,state,statusCheckRollup,reviewDecision→ 显示 编号/状态/CI checks,点击 checkout 或开浏览器。新建MoriGitHub包,沿用MoriGit的 actor + 轮询模式。暂不做
Tier 3 富 PR WebView(只嵌单个 PR URL)—— 先验证前两层需求。