feat: proper sidebar and import persistence

This commit is contained in:
hugo committed 2026-02-13 14:09:54 +01:00
1 parent d88fb1d9fa
commit 9169f2a34c
16 files changed
+922 -50

No files matched your search

-16
View File
@@ -127,10 +127,6 @@ interface AppState {
isLoading: boolean;
error: string | null;
// Import Analysis
importAnalysis: unknown | null;
importAnalysisLoading: boolean;
// Project Actions
setProjects: (projects: ProjectData[]) => void;
setActiveProject: (project: ProjectData | null) => void;
@@ -188,10 +184,6 @@ interface AppState {
setLoading: (loading: boolean) => void;
setError: (error: string | null) => void;
// Import Analysis Actions
setImportAnalysis: (report: unknown | null) => void;
setImportAnalysisLoading: (loading: boolean) => void;
}
export const useAppStore = create<AppState>()(
@@ -240,10 +232,6 @@ export const useAppStore = create<AppState>()(
isLoading: false,
error: null,
// Import Analysis State
importAnalysis: null,
importAnalysisLoading: false,
// Project Actions
setProjects: (projects) => set({ projects }),
setActiveProject: (activeProject) => set({ activeProject }),
@@ -417,10 +405,6 @@ export const useAppStore = create<AppState>()(
// Loading Actions
setLoading: (isLoading) => set({ isLoading }),
setError: (error) => set({ error }),
// Import Analysis Actions
setImportAnalysis: (importAnalysis) => set({ importAnalysis }),
setImportAnalysisLoading: (importAnalysisLoading) => set({ importAnalysisLoading }),
}),
{
name: STORAGE_KEY,