improvement: task assignment flow added. cases and tasks feature updated accordingly.

This commit is contained in:
2026-07-13 15:47:32 +03:30
parent 0d073f1ec0
commit a391eee15f
21 changed files with 357 additions and 35 deletions

View File

@@ -39,6 +39,8 @@ export interface LabCaseTask {
stepOrder: number;
stepLabel: string;
status: LabTaskStatus;
assignee: LabTaskUser | null;
assignedAt: string | null;
createdAt: string;
lastStatusChangedAt: string | null;
lastStatusChangedBy: LabTaskUser | null;
@@ -150,6 +152,7 @@ export interface ListLabTasksParams {
completed?: boolean;
important?: boolean;
pinImportant?: boolean;
assignedToMe?: boolean;
sentFrom?: string;
sentTo?: string;
stepCompleted?: string;
@@ -167,6 +170,7 @@ export interface LocateTaskPageParams {
status?: LabTaskStatus;
important?: boolean;
pinImportant?: boolean;
assignedToMe?: boolean;
stepCompleted?: string;
sortBy?: TaskSortField;
sortDir?: 'asc' | 'desc';
@@ -192,6 +196,8 @@ export interface LabTaskListItem {
stepLabel: string;
status: LabTaskStatus;
isImportant: boolean;
assignee: LabTaskUser | null;
assignedAt: string | null;
lastStatusChangedAt: string | null;
lastStatusChangedBy: LabTaskUser | null;
createdAt: string;
@@ -205,6 +211,11 @@ export interface TaskFilterOptions {
workflowSteps: { code: string; label: string }[];
}
export interface AssignableTaskStaff {
id: string;
name: string;
}
export interface PaginatedLabTasks {
items: LabTaskListItem[];
pagination: {