docs: update dev status log for round 3 - frontend enum sync
This commit is contained in:
Submodule HarborForge.Backend updated: 9e14df921e...9e22c97ae8
Submodule HarborForge.Frontend updated: 7587554fd8...e60763b128
@@ -71,6 +71,37 @@
|
|||||||
- P1.5 数据库迁移骨架:编写 Alembic 或手写 SQL 迁移脚本,处理 MySQL enum 列的 ALTER 和旧数据映射
|
- P1.5 数据库迁移骨架:编写 Alembic 或手写 SQL 迁移脚本,处理 MySQL enum 列的 ALTER 和旧数据映射
|
||||||
- 或者先做前端 TypeScript 类型定义更新(影响面小、独立性强)
|
- 或者先做前端 TypeScript 类型定义更新(影响面小、独立性强)
|
||||||
|
|
||||||
|
### 2026-03-17 01:00 UTC(第 3 轮:前端状态枚举全量替换)
|
||||||
|
|
||||||
|
本轮做了什么:
|
||||||
|
- 将前端所有 TypeScript 类型定义和组件中的旧状态枚举替换为新值
|
||||||
|
- Task status: `progressing` → `undergoing` + 新增 `completed`
|
||||||
|
- Milestone status: `pending/deferred/progressing` → `freeze/undergoing/completed` + 新增 `started_at` 字段
|
||||||
|
- 更新 TaskDetailPage 状态流转映射表,匹配新状态机
|
||||||
|
- 更新 MilestoneFormModal 下拉选项
|
||||||
|
- 清理 MilestoneDetailPage / MilestonesPage 中的 badge class 映射
|
||||||
|
|
||||||
|
改了哪些关键文件:
|
||||||
|
- `HarborForge.Frontend/src/types/index.ts` — Task/Milestone 接口类型
|
||||||
|
- `HarborForge.Frontend/src/components/MilestoneFormModal.tsx` — status 下拉选项
|
||||||
|
- `HarborForge.Frontend/src/pages/MilestoneDetailPage.tsx` — isProgressing→isUndergoing, badge class
|
||||||
|
- `HarborForge.Frontend/src/pages/MilestonesPage.tsx` — badge class
|
||||||
|
- `HarborForge.Frontend/src/pages/TaskDetailPage.tsx` — statusActions 流转表
|
||||||
|
|
||||||
|
验证结果:
|
||||||
|
- `npx tsc --noEmit` 零错误通过
|
||||||
|
- `grep -rn "progressing|deferred"` 确认前端无旧枚举残留
|
||||||
|
- 已 commit: `e60763b`
|
||||||
|
|
||||||
|
当前阻塞/风险:
|
||||||
|
- 数据库迁移脚本仍未编写(MySQL enum 列 ALTER)
|
||||||
|
- 前端 CSS badge class 可能需要新增 `status-freeze` / `status-undergoing` / `status-completed` 样式
|
||||||
|
- 没有本地运行环境做视觉验证
|
||||||
|
|
||||||
|
下一轮最建议继续做什么:
|
||||||
|
- P1.5 数据库迁移骨架:编写 SQL 迁移脚本处理 MySQL enum 列 ALTER + 旧数据映射(milestone: pending→open, deferred→closed, progressing→undergoing; task: progressing→undergoing)
|
||||||
|
- 或 P1.3 Propose 模型新增(后端新建 propose model + schema)
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
## 1. 背景
|
## 1. 背景
|
||||||
|
|||||||
Reference in New Issue
Block a user