docs: update dev-log - AnsibleManager split
This commit is contained in:
1 parent
30cc899268
commit
23fe742cc2
1 file changed
+22
@@ -889,3 +889,25 @@ cd ~/devops/aiops
|
||||
- AlertCenter.tsx(726行) 略超700行限制,可考虑拆分
|
||||
- 监控告警模块(AgentAlerts/GrafanaDashboard/TraceView)主题色排查
|
||||
- 各模块前后端联调验证(脚本管理/Ansible 等自动化运维模块)
|
||||
|
||||
|
||||
## 2026-06-15 自动推进
|
||||
|
||||
- **任务**: AnsibleManager.tsx 拆分(740行超700限制 -> 535行 + 4个子文件)
|
||||
- **修改**:
|
||||
- `frontend/src/components/automation/ansible-helpers.tsx` — **新建**(114行): Playbook/ExecutionRecord 类型、mapPlaybook、categories、samplePlaybook、getStatusBadge、formatDate
|
||||
- `frontend/src/components/automation/AnsibleFormDialog.tsx` — **新建**(111行): 新建/编辑 Playbook 弹窗(名称/分类/描述/标签/超时/YAML编辑器)
|
||||
- `frontend/src/components/automation/AnsibleDetailDialog.tsx` — **新建**(47行): 查看 Playbook 内容弹窗(终端风格滚动区)
|
||||
- `frontend/src/components/automation/AnsibleLogsDialog.tsx` — **新建**(38行): 执行日志弹窗(任务名+状态Badge+日志输出)
|
||||
- `frontend/src/components/automation/AnsibleManager.tsx` — 740->535行: 移除内联类型/helpers/三个Dialog的JSX,改import子组件
|
||||
- **结果**:
|
||||
- tsc --noEmit 零错误 ✅
|
||||
- npm run build 通过(3.10s)✅
|
||||
- 浏览器验证: 统计卡片(4个)正常渲染、Playbook管理Tab(搜索+分类筛选+新建按钮)正常、新建弹窗(名称/分类下拉/描述/标签/超时/YAML模板)完整渲染、执行记录Tab(表格+空状态"暂无执行记录")正常 ✅
|
||||
- console 零错误零警告 ✅
|
||||
- git push 成功 (commit 30cc899) ✅
|
||||
|
||||
**下一步建议**:
|
||||
- ScriptManager.tsx(730行) 略超700行限制,可考虑拆分
|
||||
- AlertCenter.tsx(726行) 略超700行限制,可考虑拆分
|
||||
- 监控告警模块(AgentAlerts/GrafanaDashboard/TraceView)主题色排查
|
||||
Reference in new issue
Block a user