feat(enhanced-kanban): enhance EnhancedKanbanBoard with new task creation options and layout adjustments

- Updated the EnhancedKanbanBoard component to include a new section for creating tasks at both the top and bottom of each group.
- Adjusted the CSS for the kanban groups container to improve layout responsiveness.
- Refactored EnhancedKanbanGroup to manage task creation visibility and interactions more effectively, enhancing user experience during task management.
This commit is contained in:
shancds
2025-06-24 12:24:54 +05:30
parent ad76563543
commit 4f7cbf3527
6 changed files with 424 additions and 74 deletions

View File

@@ -440,6 +440,14 @@ const enhancedKanbanSlice = createSlice({
}, {} as Record<string, ITaskListGroup>);
state.columnOrder = reorderedGroups.map(group => group.id);
},
addTaskToGroup: (state, action) => {
const { sectionId, task } = action.payload;
const group = state.taskGroups.find(g => g.id === sectionId);
if (group) {
group.tasks.push(task);
}
},
},
extraReducers: (builder) => {
builder
@@ -528,6 +536,7 @@ export const {
resetState,
reorderTasks,
reorderGroups,
addTaskToGroup,
} = enhancedKanbanSlice.actions;
export default enhancedKanbanSlice.reducer;