feat(custom-columns): enhance task management with custom column support

- Added custom column values to task responses in the API for better task management flexibility.
- Implemented custom column components in the frontend, including dropdowns and date pickers, to improve user interaction.
- Updated TaskListV2 and TaskRow components to handle custom columns, ensuring proper rendering and functionality.
- Introduced a new PeopleDropdown component for selecting team members in custom columns, enhancing usability.
- Enhanced styling for custom column components to support both light and dark modes, improving visual consistency.
This commit is contained in:
chamiakJ
2025-07-07 02:04:05 +05:30
parent c70f8e7b6d
commit 174c6bcedf
11 changed files with 1072 additions and 215 deletions

View File

@@ -240,6 +240,7 @@ export const fetchTasksV3 = createAsyncThunk(
isSubtasksInclude: false,
labels: selectedLabels,
priorities: selectedPriorities,
customColumns: true, // Include custom columns in the response
};
const response = await tasksApiService.getTaskListV3(config);
@@ -264,7 +265,7 @@ export const fetchTasksV3 = createAsyncThunk(
labels: task.labels?.map((l: { id: string; label_id: string; name: string; color_code: string; end: boolean; names: string[] }) => ({
id: l.id || l.label_id,
name: l.name,
color: l.color || '#1890ff',
color: l.color_code || '#1890ff',
end: l.end,
names: l.names,
})) || [],
@@ -275,6 +276,7 @@ export const fetchTasksV3 = createAsyncThunk(
logged: convertTimeValue(task.time_spent),
},
customFields: {},
custom_column_values: task.custom_column_values || {}, // Include custom column values
createdAt: task.created_at || now,
updatedAt: task.updated_at || now,
created_at: task.created_at || now,