feat(task-management): enhance task grouping and localization support
- Implemented unmapped task grouping for better organization of tasks without valid phases. - Updated task distribution logic to handle unmapped tasks and added a corresponding group in the response. - Enhanced localization by adding translations for "noTasksInGroup" in multiple languages. - Improved task list components to support custom columns and better task management features. - Refactored task management slice to include loading states for columns and custom columns.
This commit is contained in:
@@ -481,18 +481,18 @@ export const useTaskSocketHandlers = () => {
|
||||
// Find target group based on new phase value
|
||||
let targetGroup: any = null;
|
||||
|
||||
if (newPhaseValue) {
|
||||
if (newPhaseValue && newPhaseValue.trim() !== '') {
|
||||
// Find group by phase name
|
||||
targetGroup = groups.find(
|
||||
group => group.groupValue === newPhaseValue || group.title === newPhaseValue
|
||||
);
|
||||
} else {
|
||||
// Find "No Phase" or similar group
|
||||
// Find "Unmapped" group for tasks without a phase or with default phase
|
||||
targetGroup = groups.find(
|
||||
group =>
|
||||
group.groupValue === '' ||
|
||||
group.title.toLowerCase().includes('no phase') ||
|
||||
group.title.toLowerCase().includes('unassigned')
|
||||
group.groupValue === 'Unmapped' ||
|
||||
group.title === 'Unmapped' ||
|
||||
group.title.toLowerCase().includes('unmapped')
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user