diff --git a/frontend/src/store/userPreferencesStore.ts b/frontend/src/store/userPreferencesStore.ts index f02aad81..835f0453 100644 --- a/frontend/src/store/userPreferencesStore.ts +++ b/frontend/src/store/userPreferencesStore.ts @@ -5,6 +5,7 @@ type ExportFormat = 'markdown' | 'text' | 'html' | 'psa' type TreeLibraryView = 'grid' | 'list' | 'table' type TreeSortBy = 'usage_count' | 'updated_at' | 'created_at' | 'name' | 'name_desc' | 'version' type EditorMode = 'form' | 'code' +type FlowPilotView = 'flowpilot' | 'cockpit' interface UserPreferencesState { defaultExportFormat: ExportFormat @@ -21,6 +22,8 @@ interface UserPreferencesState { toggleSidebarPinned: () => void dashboardMyFlowsView: TreeLibraryView setDashboardMyFlowsView: (view: TreeLibraryView) => void + preferredFlowPilotView: FlowPilotView + setPreferredFlowPilotView: (view: FlowPilotView) => void } export const useUserPreferencesStore = create()( @@ -40,6 +43,8 @@ export const useUserPreferencesStore = create()( toggleSidebarPinned: () => set({ sidebarPinned: !get().sidebarPinned }), dashboardMyFlowsView: 'grid', setDashboardMyFlowsView: (view) => set({ dashboardMyFlowsView: view }), + preferredFlowPilotView: 'flowpilot', + setPreferredFlowPilotView: (view) => set({ preferredFlowPilotView: view }), }), { name: 'user-preferences-storage',