diff --git a/apps/web/src/common/components/buttons/ActionMenuButton.vue b/apps/web/src/common/components/buttons/ActionMenuButton.vue new file mode 100644 index 0000000000..5342cc512e --- /dev/null +++ b/apps/web/src/common/components/buttons/ActionMenuButton.vue @@ -0,0 +1,69 @@ + + + + + diff --git a/apps/web/src/schema/opsflow/task-category/api-verbs/update.ts b/apps/web/src/schema/opsflow/task-category/api-verbs/update.ts index 0f4c0b2ced..3416088623 100644 --- a/apps/web/src/schema/opsflow/task-category/api-verbs/update.ts +++ b/apps/web/src/schema/opsflow/task-category/api-verbs/update.ts @@ -6,7 +6,7 @@ export interface TaskCategoryUpdateParameters { category_id: string; name?: string; description?: string; - status_options: TaskStatusOptions; + status_options?: TaskStatusOptions; fields?: TaskField[]; force?: boolean; tags?: Tags; diff --git a/apps/web/src/schema/opsflow/task-type/api-verbs/create.ts b/apps/web/src/schema/opsflow/task-type/api-verbs/create.ts index 0643987823..964b11a175 100644 --- a/apps/web/src/schema/opsflow/task-type/api-verbs/create.ts +++ b/apps/web/src/schema/opsflow/task-type/api-verbs/create.ts @@ -5,6 +5,7 @@ export interface TaskTypeCreateParameters { name: string; description?: string; fields?: TaskField[]; + assignee_pool?: string[]; tags?: Tags; category_id: string; } diff --git a/apps/web/src/schema/opsflow/task-type/api-verbs/update.ts b/apps/web/src/schema/opsflow/task-type/api-verbs/update.ts index 222322242b..73a4a8e376 100644 --- a/apps/web/src/schema/opsflow/task-type/api-verbs/update.ts +++ b/apps/web/src/schema/opsflow/task-type/api-verbs/update.ts @@ -6,6 +6,7 @@ export interface TaskTypeUpdateParameters { name?: string; description?: string; fields?: TaskField[]; + assignee_pool?: string[]; tags?: Tags; category_id?: string; } diff --git a/apps/web/src/schema/opsflow/task-type/model.ts b/apps/web/src/schema/opsflow/task-type/model.ts index 5bd439638a..537215f1ce 100644 --- a/apps/web/src/schema/opsflow/task-type/model.ts +++ b/apps/web/src/schema/opsflow/task-type/model.ts @@ -6,7 +6,7 @@ export interface TaskTypeModel { name: string; description: string; fields: TaskField[]; - assignee?: string; + assignee_pool?: string[]; tags: Tags; category_id: string; domain_id: string; diff --git a/apps/web/src/services/ops-flow/components/CategoryForm.vue b/apps/web/src/services/ops-flow/components/CategoryForm.vue index c25ac98108..f0e71f5beb 100644 --- a/apps/web/src/services/ops-flow/components/CategoryForm.vue +++ b/apps/web/src/services/ops-flow/components/CategoryForm.vue @@ -47,14 +47,14 @@ const handleConfirm = async () => { try { loading.value = true; if (taskManagementPageState.editTargetCategoryId) { - await taskCategoryStore.updateCategory({ + await taskCategoryStore.update({ category_id: taskManagementPageState.editTargetCategoryId, name: name.value, description: description.value, }); } else { if (!taskManagementPageGetters.defaultPackage) throw Error('Default package is not found'); - await taskCategoryStore.createCategory({ + await taskCategoryStore.create({ name: name.value, description: description.value, package_id: taskManagementPageGetters.defaultPackage.package_id, diff --git a/apps/web/src/services/ops-flow/components/PackageForm.vue b/apps/web/src/services/ops-flow/components/PackageForm.vue index 5efde013e0..029bd6805d 100644 --- a/apps/web/src/services/ops-flow/components/PackageForm.vue +++ b/apps/web/src/services/ops-flow/components/PackageForm.vue @@ -1,6 +1,6 @@