feat: enhance Kanban components with swimlane context support
- Added `context` prop to `PrioritySwimlanesBoard`, `SwimlanesBoard`, and `DroppableColumn` to provide swimlane context for task creation. - Updated `QuickAddTask` to pre-fill form data based on the swimlane context, improving user experience during task addition. - Enhanced task handling in `SwimlanesBoard` to include context for tags, ensuring better organization and task management.
This commit is contained in:
@@ -53,7 +53,11 @@ export function PrioritySwimlanesBoard({
|
||||
label: priority.label,
|
||||
icon: priority.icon,
|
||||
color: priority.color,
|
||||
tasks: grouped[priority.key] || []
|
||||
tasks: grouped[priority.key] || [],
|
||||
context: {
|
||||
type: 'priority' as const,
|
||||
value: priority.key
|
||||
}
|
||||
}));
|
||||
}, [tasks]);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user