feat: update frontend type definitions and status enums to match new backend

- types/index.ts: Task status 'progressing' → 'undergoing' + 'completed'; Milestone status updated to open/freeze/undergoing/completed/closed + started_at field
- MilestoneFormModal: dropdown options updated
- MilestoneDetailPage: isProgressing → isUndergoing, badge class simplified
- MilestonesPage: badge class simplified
- TaskDetailPage: status transition map updated for new state machine
This commit is contained in:
zhi
2026-03-17 01:04:51 +00:00
parent 7587554fd8
commit e60763b128
5 changed files with 15 additions and 13 deletions

View File

@@ -63,9 +63,10 @@ export default function TaskDetailPage() {
if (!task) return <div className="loading">Loading...</div>
const statusActions: Record<string, string[]> = {
open: ['progressing', 'closed'],
pending: ['progressing', 'closed'],
progressing: ['pending', 'closed'],
open: ['undergoing', 'closed'],
pending: ['open', 'closed'],
undergoing: ['completed', 'closed'],
completed: ['open'],
closed: ['open'],
}