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() { +