From 8f5638b4f9d8ca78d747707c7a404b6647b7abc8 Mon Sep 17 00:00:00 2001 From: Yashwin Date: Thu, 14 May 2026 14:17:52 +0530 Subject: [PATCH] refactor: simplify workflow assignee types and remove legacy user/role identification fields --- src/components/shared/WorkflowDefinitionModal.tsx | 2 +- src/types/workflow.ts | 3 --- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/src/components/shared/WorkflowDefinitionModal.tsx b/src/components/shared/WorkflowDefinitionModal.tsx index 5eaf509..464b6d5 100644 --- a/src/components/shared/WorkflowDefinitionModal.tsx +++ b/src/components/shared/WorkflowDefinitionModal.tsx @@ -359,7 +359,7 @@ export const WorkflowDefinitionModal = ({ step_type: s.step_type, assignee_type: s.assignee.type, assignee_role_ids: s.assignee.role_ids ?? undefined, - assignee_user_ids: s.assignee.user_ids ?? s.assignee.ids ?? undefined, + assignee_user_ids: s.assignee.user_ids ?? undefined, available_actions: s.available_actions || [], requires_signature: s.requires_signature || false, requires_comment: s.requires_comment || false, diff --git a/src/types/workflow.ts b/src/types/workflow.ts index 47d7f98..c843bda 100644 --- a/src/types/workflow.ts +++ b/src/types/workflow.ts @@ -7,10 +7,7 @@ export interface WorkflowStep { step_type: 'initial' | 'task' | 'approval' | 'terminal'; assignee: { type: 'role' | 'user' | 'originator'; - id?: string | null; - ids?: string[] | null; user_ids?: string[] | null; - role?: string[] | string | null; role_ids?: string[] | null; }; available_actions: string[];