feat: 添加起始日期功能并更新相关组件与测试用例
CI / verify (push) Successful in 1m57s
CI / 部署到服务器 (push) Successful in 29s

- 在任务创建和编辑界面中新增起始日期字段,默认值为当天。
- 更新任务卡片展示逻辑,仅在起始日期不是当天时显示相关信息。
- 修改相关测试用例以覆盖起始日期的功能,包括批量创建和编辑任务的场景。
- 数据库模式版本更新至4,以支持起始日期字段的存储与迁移。
This commit is contained in:
chenshoulin
2026-11-02 00:17:14 +08:00
parent 6cbc0cfc0f
commit 6d58227614
25 changed files with 204 additions and 13 deletions
+2
View File
@@ -28,6 +28,8 @@ export interface Task {
tags: string[]
/** 仅日期,格式 YYYY-MM-DD;无截止日期时为 null */
dueDate: string | null
/** 仅日期,格式 YYYY-MM-DD;任务尚未排期时为 null */
startDate: string | null
/** 同列内排序用的浮点数,采用相邻中点插入 */
sortOrder: number
createdAt: string