improvement: duedate added for shipped cases. cases and tasks ui and ux updated accordingly.

This commit is contained in:
2026-07-13 16:30:36 +03:30
parent a391eee15f
commit 08a1f34c4f
29 changed files with 502 additions and 30 deletions

View File

@@ -32,7 +32,8 @@ export type TaskSortField =
| 'patient'
| 'important'
| 'prosthesis'
| 'taskType';
| 'taskType'
| 'dueDate';
export class ListLabTasksDto {
@IsOptional()
@@ -87,8 +88,14 @@ export class ListLabTasksDto {
@IsBoolean()
assignedToMe?: boolean;
/** Past due date with at least one in-progress task on the case. */
@IsOptional()
@IsIn(['date', 'status', 'clinic', 'patient', 'important', 'prosthesis', 'taskType'])
@Transform(toBoolean)
@IsBoolean()
overdue?: boolean;
@IsOptional()
@IsIn(['date', 'status', 'clinic', 'patient', 'important', 'prosthesis', 'taskType', 'dueDate'])
sortBy?: TaskSortField;
@IsOptional()
@@ -159,8 +166,14 @@ export class LocateTaskPageDto {
@IsBoolean()
assignedToMe?: boolean;
/** Past due date with at least one in-progress task on the case. */
@IsOptional()
@IsIn(['date', 'status', 'clinic', 'patient', 'important', 'prosthesis', 'taskType'])
@Transform(toBoolean)
@IsBoolean()
overdue?: boolean;
@IsOptional()
@IsIn(['date', 'status', 'clinic', 'patient', 'important', 'prosthesis', 'taskType', 'dueDate'])
sortBy?: TaskSortField;
@IsOptional()