docs: update dev-log - PipelineManager split
This commit is contained in:
1 parent
3f033e9db8
commit
16205fdb2b
1 file changed
+21
@@ -868,3 +868,24 @@ cd ~/devops/aiops
|
||||
- PipelineManager.tsx(776行) 超 700 行限制,需拆分
|
||||
- 监控告警模块(AgentAlerts/GrafanaDashboard/TraceView)主题色排查
|
||||
- 各模块前后端联调验证(脚本管理/Ansible 等自动化运维模块)
|
||||
|
||||
|
||||
## 2026-06-15 20:00 自动推进
|
||||
|
||||
- **任务**: PipelineManager.tsx 拆分(776行超700限制 -> 438行 + 4个子文件)
|
||||
- **修改**:
|
||||
- `frontend/src/components/deploy/pipeline-helpers.tsx` — **新建**(91行): PipelineStage类型/pipelineTemplates/parseStages/nameToCode/getStatusBadge/getStageStatusIcon
|
||||
- `frontend/src/components/deploy/PipelineFormDialog.tsx` — **新建**(135行): 新建/编辑流水线弹窗(表单字段+模板选择卡片)
|
||||
- `frontend/src/components/deploy/PipelineDetailDialog.tsx` — **新建**(178行): 详情弹窗(执行阶段/配置/历史记录三Tab)
|
||||
- `frontend/src/components/deploy/PipelineRunDialog.tsx` — **新建**(63行): 执行弹窗(分支/Commit/环境变量)
|
||||
- `frontend/src/components/deploy/PipelineManager.tsx` — 776->438行: 移除内联helpers和三个Dialog的JSX,改import子组件
|
||||
- **结果**:
|
||||
- tsc --noEmit 零错误 + npm run build 通过 (2,120 KB)
|
||||
- 浏览器验证: 5条流水线列表正常加载、详情弹窗(3 Tab + 6条历史记录)、新建弹窗(4模板卡片)、执行弹窗均正常渲染
|
||||
- console 零错误零警告
|
||||
- git push 成功 (commit 3f033e9)
|
||||
|
||||
**下一步建议**:
|
||||
- AlertCenter.tsx(726行) 略超700行限制,可考虑拆分
|
||||
- 监控告警模块(AgentAlerts/GrafanaDashboard/TraceView)主题色排查
|
||||
- 各模块前后端联调验证(脚本管理/Ansible 等自动化运维模块)
|
||||
Reference in new issue
Block a user