feat(task-statuses): add category update functionality and enhance localization

- Implemented updateCategory method in TaskStatusesController to allow updating task status categories.
- Added corresponding route for category updates in statusesApiRouter.
- Enhanced task management localization by adding new translation keys for category-related actions in multiple languages.
- Updated TaskGroupHeader component to support category changes with a modal for selecting categories.
This commit is contained in:
chamiakJ
2025-07-06 16:54:11 +05:30
parent 6ba1ff57b2
commit c70f8e7b6d
10 changed files with 332 additions and 13 deletions

View File

@@ -60,6 +60,20 @@ export const statusApiService = {
return response.data;
},
updateStatusCategory: async (
statusId: string,
categoryId: string,
currentProjectId: string
): Promise<IServerResponse<ITaskStatus>> => {
const q = toQueryString({ current_project_id: currentProjectId });
const response = await apiClient.put<IServerResponse<ITaskStatus>>(
`${rootUrl}/category/${statusId}${q}`,
{ category_id: categoryId }
);
return response.data;
},
updateStatusOrder: async (
body: ITaskStatusCreateRequest,
currentProjectId: string