Repository navigation
feat(dashboard): 完成 P2 Pair Programming Control Center - #7
Merged
Merged
Conversation
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.
/pair dashboard原先缺少完整命令路由、导出模块和安装文件,用户也难以从状态快照判断下一步。本 PR 修复生成入口,并在同一个 PR 中完成 P2-01 至 P2-06,将其升级为只读 Pair Programming Control Center。变更
Step 1 · ID: 01。源状态矛盾显示对账建议;workspace 项目读取失败时,详情同步显示 stale 或未知,恢复后正常更新。pair dashboard --watch --interval 1使用 pathlib polling,监控全部已消费的状态、sessions 和 operations;显示步骤变化。输入无效时保留上次有效业务数据、标注 stale 并重试,恢复后清除提示。浏览器需手动刷新。manifest.steps.dependencies与progress.steps生成本地 SVG 依赖图,点击节点定位步骤;检测缺失依赖、重复 ID、环,派生 readiness/blocked_by,不改源 status。pair dashboard --workspace ~/workspace浅层扫描直接子项目,跳过隐藏目录、依赖目录及符号链接;提供项目总览和详情导航,单项目故障隔离,不计算跨项目平均百分比。保持纯静态 HTML、本地资源、无前端构建链和额外 Watch 依赖。
scripts/dashboard负责生成,.pair/dashboard为产物;生成器不修改源状态,浏览器不执行建议命令。/pair命令的 Mermaid 流程图,包含设计审批、Human 评审循环、渐进提示、事务接管、重规划及只读观察入口;补充字号可读性调整。验证
PYTHONDONTWRITEBYTECODE=1 python3 -m pytest -p no:cacheprovider:93 项通过,涵盖依赖/指标语义、会话兼容与历史重建、故障隔离、Watch 重试/退出、只读生成、资源/转义及安装后入口。PYTHONDONTWRITEBYTECODE=1 python3 scripts/validate-package.py、bash -n scripts/install.sh、git diff --cached --check:通过。临时 DEMO workspace 实际运行 Watch:确认
Step: graph -> tests,无效 YAML 触发 stale 并保留数据,修复后恢复 fresh。浏览器验证真实依赖图节点导航、历史 JSON 链接、项目详情往返、故障项目未知状态、恢复/审批/takeover 建议、深浅色及 320px/390px 布局;无页面横向溢出或 console warning/error。
README 图按规范命令表核对覆盖,Mermaid 语法解析、两种语言的实际渲染及包校验通过。
步骤切换实测
0% → 33% → 67% → 100%;顶部、图、竖向列表和 workspace 总览一致,review 不提前计完成,全部完成后清除当前标记。回归覆盖重排 ID、矛盾状态及详情故障/恢复。演示数据和截图仅保留本地,未提交。PowerShell 安装脚本通过包静态校验,尚未在 Windows 执行。详细记录见
specs/p2-dashboard-enhancement/verification.md。