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:
chamikaJ
2025-07-07 09:40:56 +05:30
parent 2cf91bddea
commit a6f9046b42
6 changed files with 53 additions and 12 deletions

View File

@@ -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: {