feat: sync onboarding status across devices #285

This commit is contained in:
Linus Rath
2026-05-15 15:09:42 +02:00
parent e435356c53
commit 8dbb538c98
21 changed files with 113 additions and 9 deletions
+13
View File
@@ -225,6 +225,11 @@ interface SettingsState {
sidebarApps: SidebarApp[];
keepAppsLoaded: boolean;
// Onboarding
onboardingCompleted: boolean; // Welcome banner dismissed
tourCompleted: boolean; // Interactive tour completed
showOnboardingOnNewDevices: boolean; // When true, onboarding shows again on each new device
// Advanced
debugMode: boolean;
debugCategories: Record<DebugCategory, boolean>;
@@ -404,6 +409,11 @@ const DEFAULT_SETTINGS = {
sidebarApps: [] as SidebarApp[],
keepAppsLoaded: false,
// Onboarding
onboardingCompleted: false,
tourCompleted: false,
showOnboardingOnNewDevices: false,
// Advanced
debugMode: false,
debugCategories: {
@@ -512,6 +522,9 @@ export const useSettingsStore = create<SettingsState>()(
attachmentImagePreviewsEnabled: state.attachmentImagePreviewsEnabled,
sidebarApps: state.sidebarApps,
keepAppsLoaded: state.keepAppsLoaded,
onboardingCompleted: state.onboardingCompleted,
tourCompleted: state.tourCompleted,
showOnboardingOnNewDevices: state.showOnboardingOnNewDevices,
debugMode: state.debugMode,
debugCategories: state.debugCategories,
settingsSyncDisabled: state.settingsSyncDisabled,