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:
@@ -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;
|
||||
Reference in New Issue
Block a user