chore: removed sync engine since we go for filesystem based syncing

This commit is contained in:
2026-02-14 18:15:28 +01:00
parent daac97824d
commit 34eb0d3781
17 changed files with 766 additions and 838 deletions

View File

@@ -117,11 +117,6 @@ interface AppState {
// Confirm delete modal
confirmDeleteModal: ConfirmDeleteDetails | null;
// Sync
syncStatus: 'idle' | 'syncing' | 'error';
syncConfigured: boolean;
pendingChanges: { posts: number; media: number };
// Loading states
isLoading: boolean;
@@ -178,10 +173,7 @@ interface AppState {
setTasks: (tasks: TaskProgress[]) => void;
updateTask: (taskId: string, task: Partial<TaskProgress>) => void;
setSyncStatus: (status: 'idle' | 'syncing' | 'error') => void;
setSyncConfigured: (configured: boolean) => void;
setPendingChanges: (changes: { posts: number; media: number }) => void;
// Loading Actions
setLoading: (loading: boolean) => void;
setError: (error: string | null) => void;
}
@@ -222,11 +214,6 @@ export const useAppStore = create<AppState>()(
// Confirm delete modal
confirmDeleteModal: null,
// Initial Sync State
syncStatus: 'idle',
syncConfigured: false,
pendingChanges: { posts: 0, media: 0 },
// Initial Loading State
isLoading: false,
@@ -397,11 +384,6 @@ export const useAppStore = create<AppState>()(
return { tasks: [...state.tasks, { taskId, status: 'running', progress: 0, message: '', startTime: new Date().toISOString(), ...task } as TaskProgress] };
}),
// Sync Actions
setSyncStatus: (syncStatus) => set({ syncStatus }),
setSyncConfigured: (syncConfigured) => set({ syncConfigured }),
setPendingChanges: (pendingChanges) => set({ pendingChanges }),
// Loading Actions
setLoading: (isLoading) => set({ isLoading }),
setError: (error) => set({ error }),