refactor: userpreferences are now in the DB
This commit is contained in:
29
lib/types.ts
29
lib/types.ts
@@ -46,6 +46,35 @@ export interface Tag {
|
||||
isPinned?: boolean; // Tag pour objectifs principaux
|
||||
}
|
||||
|
||||
// Types pour les préférences utilisateur
|
||||
export interface KanbanFilters {
|
||||
search?: string;
|
||||
tags?: string[];
|
||||
priorities?: TaskPriority[];
|
||||
showCompleted?: boolean;
|
||||
sortBy?: string;
|
||||
}
|
||||
|
||||
export interface ViewPreferences {
|
||||
compactView: boolean;
|
||||
swimlanesByTags: boolean;
|
||||
swimlanesMode?: 'tags' | 'priority';
|
||||
showObjectives: boolean;
|
||||
showFilters: boolean;
|
||||
objectivesCollapsed: boolean;
|
||||
theme: 'light' | 'dark';
|
||||
}
|
||||
|
||||
export interface ColumnVisibility {
|
||||
hiddenStatuses: TaskStatus[];
|
||||
}
|
||||
|
||||
export interface UserPreferences {
|
||||
kanbanFilters: KanbanFilters;
|
||||
viewPreferences: ViewPreferences;
|
||||
columnVisibility: ColumnVisibility;
|
||||
}
|
||||
|
||||
// Interface pour les logs de synchronisation
|
||||
export interface SyncLog {
|
||||
id: string;
|
||||
|
||||
Reference in New Issue
Block a user