diff --git a/components/HomePageClient.tsx b/components/HomePageClient.tsx index 743774f..709145a 100644 --- a/components/HomePageClient.tsx +++ b/components/HomePageClient.tsx @@ -26,6 +26,8 @@ function HomePageContent() { // Extraire les préférences du context const showFilters = preferences.viewPreferences.showFilters; const showObjectives = preferences.viewPreferences.showObjectives; + const compactView = preferences.viewPreferences.compactView; + const swimlanesByTags = preferences.viewPreferences.swimlanesByTags; // Handlers pour les toggles (sauvegarde automatique via le context) const handleToggleFilters = () => { @@ -36,6 +38,14 @@ function HomePageContent() { updateViewPreferences({ showObjectives: !showObjectives }); }; + const handleToggleCompactView = () => { + updateViewPreferences({ compactView: !compactView }); + }; + + const handleToggleSwimlanes = () => { + updateViewPreferences({ swimlanesByTags: !swimlanesByTags }); + }; + // Handler pour la création de tâche depuis la barre de contrôles const handleCreateTask = async (data: CreateTaskData) => { await createTask(data); @@ -86,6 +96,46 @@ function HomePageContent() { +
+ + + +
+ {/* Bouton d'ajout de tâche */} diff --git a/components/kanban/KanbanFilters.tsx b/components/kanban/KanbanFilters.tsx index 52c1abe..a94fd75 100644 --- a/components/kanban/KanbanFilters.tsx +++ b/components/kanban/KanbanFilters.tsx @@ -90,12 +90,6 @@ export function KanbanFilters({ filters, onFiltersChange, hiddenStatuses: propsH }); }; - const handleCompactViewToggle = () => { - onFiltersChange({ - ...filters, - compactView: !filters.compactView - }); - }; const handleSwimlanesToggle = () => { onFiltersChange({ @@ -243,27 +237,6 @@ export function KanbanFilters({ filters, onFiltersChange, hiddenStatuses: propsH )} - {/* Bouton vue compacte */} - {/* Bouton de tri */}