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:
@@ -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: []
|
||||
|
||||
Reference in New Issue
Block a user