feat(task-management): add all_labels support and improve label handling
- Introduced all_labels property in task management to provide a complete list of labels for selection logic. - Updated TasksControllerV2, TaskRow, and LabelsSelector components to utilize all_labels for enhanced label management. - Improved checkbox handling in LabelsSelector to prevent event propagation and ensure better user interaction. - Enhanced useTaskSocketHandlers to manage temporary subtasks effectively, preventing duplication during optimistic updates.
This commit is contained in:
@@ -271,6 +271,11 @@ export const fetchTasksV3 = createAsyncThunk(
|
||||
end: l.end,
|
||||
names: l.names,
|
||||
})) || [],
|
||||
all_labels: task.all_labels?.map((l: { id: string; label_id: string; name: string; color_code: string }) => ({
|
||||
id: l.id || l.label_id,
|
||||
name: l.name,
|
||||
color_code: l.color_code || '#1890ff',
|
||||
})) || [],
|
||||
dueDate: task.dueDate,
|
||||
startDate: task.startDate,
|
||||
timeTracking: {
|
||||
|
||||
Reference in New Issue
Block a user