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:
Julien Froidefond
2025-09-15 11:53:47 +02:00
parent 07cd3bde3b
commit c627d1abd3
4 changed files with 58 additions and 22 deletions

View File

@@ -72,7 +72,11 @@ export function SwimlanesBoard({
key: tagName,
label: tagName,
color: getTagColor(tagName),
tasks: tagTasks
tasks: tagTasks,
context: tagName !== 'Sans tag' ? {
type: 'tag' as const,
value: tagName
} : undefined
};
});
}, [tasks, availableTags]);