refactor(quality): Q11 前端巨型组件拆分 — PipelineRunDetail 678L→273L (-60%), 提取 types + StageProgressBar + RunsTable + LogConsole 4 个独立文件

This commit is contained in:
attacker committed 2026-07-07 07:42:03 +08:00
1 parent 2aed2bc218
commit 76aa8817c0
8 files changed
+632 -465

No files matched your search

+16
View File
@@ -1247,3 +1247,19 @@ python3 /srv/aiops/tests/integration_test.py --host 127.0.0.1 --port 8080 | tail
- [x] U5: ESLint errors 保持 **0**(approval-workflow/ 目录零 warnings)
- [x] U6: `go build` 零错误
- [x] U7: 17/17 集成回归测试通过(零回归)
---
## P0-Q11: 前端巨型组件拆分 — PipelineRunDetail
### 通过标准
- [x] PipelineRunDetail.tsx 从 678 行降至 **273 行**(-60%)
- [x] 4 个提取的文件全部 < 185 行(types.ts 119L / StageProgressBar.tsx 89L / RunsTable.tsx 131L / LogConsole.tsx 183L)
- [x] `tsc -b` 零错误
- [x] `npm run build` 零错误(✓ built in 17.39s)
- [x] ESLint errors 保持 **0**(清理 1 个 unused var `stageStats` + 2 个冗余 `eslint-disable` 指令)
- [x] ESLint warnings 保持 **59**(无新增)
- [x] `go build` 零错误
- [x] 17/17 集成回归测试通过(零回归)
- [x] Docker 部署 healthy
- [x] 流水线运行详情页功能不变(阶段进度条点击过滤 / 执行记录表多选+停止 / 实时日志 Console / 文件浏览器)