feat: add pinned tag functionality and UI enhancements

- Introduced `isPinned` property to the `Tag` model for marking main objectives.
- Updated `TagForm` to include a checkbox for setting tags as pinned, enhancing user interaction.
- Enhanced `KanbanBoardContainer` to display pinned tasks in a dedicated `ObjectivesBoard`, improving task visibility.
- Modified `KanbanFilters` to support filtering by pinned tags, streamlining task management.
- Adjusted `TasksContext` to separate pinned tasks from regular tasks for better organization.
This commit is contained in:
Julien Froidefond
2025-09-14 22:23:55 +02:00
parent c4f68bb00c
commit a589c0cc2f
10 changed files with 309 additions and 27 deletions

View File

@@ -13,6 +13,7 @@ export interface KanbanFilters {
showCompleted?: boolean;
compactView?: boolean;
swimlanesByTags?: boolean;
pinnedTag?: string; // Tag pour les objectifs principaux
}
interface KanbanFiltersProps {
@@ -66,6 +67,13 @@ export function KanbanFilters({ filters, onFiltersChange }: KanbanFiltersProps)
});
};
const handlePinnedTagChange = (tagName: string | undefined) => {
onFiltersChange({
...filters,
pinnedTag: tagName
});
};
const handleClearFilters = () => {
onFiltersChange({});
};