feat: 添加起始日期功能并更新相关组件与测试用例
- 在任务创建和编辑界面中新增起始日期字段,默认值为当天。 - 更新任务卡片展示逻辑,仅在起始日期不是当天时显示相关信息。 - 修改相关测试用例以覆盖起始日期的功能,包括批量创建和编辑任务的场景。 - 数据库模式版本更新至4,以支持起始日期字段的存储与迁移。
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user