feat: add user preferences for filter and objective visibility in HomePageClient

- Implemented state management for filter and objective visibility using `useState`.
- Integrated `userPreferencesService` to load and save user preferences on component mount and toggle actions.
- Updated `KanbanBoardContainer` to conditionally render filters and objectives based on user preferences.
- Enhanced UI with buttons for toggling visibility, improving user experience and customization.
This commit is contained in:
Julien Froidefond
2025-09-15 21:31:34 +02:00
parent cb2e8e9c9f
commit 44df8c89b8
7 changed files with 235 additions and 131 deletions

View File

@@ -14,6 +14,7 @@ export interface ViewPreferences {
swimlanesByTags: boolean;
swimlanesMode?: 'tags' | 'priority';
showObjectives: boolean;
showFilters: boolean;
}
export interface ColumnVisibility {
@@ -37,7 +38,8 @@ const DEFAULT_PREFERENCES: UserPreferences = {
viewPreferences: {
compactView: false,
swimlanesByTags: false,
showObjectives: true
showObjectives: true,
showFilters: true
},
columnVisibility: {
hiddenStatuses: []