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
+3
View File
@@ -23,6 +23,8 @@ export interface BatchPatch {
priority?: Priority
/** null 表示清空截止日期 */
dueDate?: string | null
/** null 表示清空起始日期 */
startDate?: string | null
addTags?: readonly string[]
removeTags?: readonly string[]
/** true 归档,false 取消归档 */
@@ -78,6 +80,7 @@ export function isBatchPatchEmpty(patch: BatchPatch): boolean {
patch.status === undefined &&
patch.priority === undefined &&
patch.dueDate === undefined &&
patch.startDate === undefined &&
!patch.addTags?.length &&
!patch.removeTags?.length &&
patch.archived === undefined