diff --git a/apps/staged/src/App.svelte b/apps/staged/src/App.svelte index d5c23794..5c6d1db6 100644 --- a/apps/staged/src/App.svelte +++ b/apps/staged/src/App.svelte @@ -16,7 +16,6 @@ import SettingsPage from './lib/features/settings/SettingsPage.svelte'; import { Toaster } from '$lib/components/ui/sonner'; import { Button } from '$lib/components/ui/button'; - import { TooltipProvider } from '$lib/components/ui/tooltip'; import { preferences, initPreferences, @@ -444,82 +443,80 @@ {#if preferences.loaded} - - {#if storeIncompat && storeIncompat.kind === 'needs_reset'} -
-
-
-
-

Update Required

- v{storeIncompat.appVersion} -
-

- Staged beta updates can require backwards-incompatible changes. The info stored by - Staged (session history, notes) will be cleared, but your - git repos and branches are not affected. -

- + {#if storeIncompat && storeIncompat.kind === 'needs_reset'} +
+
+
+
+

Update Required

+ v{storeIncompat.appVersion}
-
-
- {:else if storeIncompat && storeIncompat.kind === 'too_new'} -
-
-
-
-

Update Staged

- v{storeIncompat.dbAppVersion} -
-

- This database was last used by a newer version of Staged. Please install - v{storeIncompat.dbAppVersion} or newer to continue. +

+ Staged beta updates can require backwards-incompatible changes. The info stored by + Staged (session history, notes) will be cleared, but your + git repos and branches are not affected. +

+ -
- {:else} -
- -
- {#if storeError} -
-

{storeError}

+
+
+ {:else if storeIncompat && storeIncompat.kind === 'too_new'} +
+
+
+
+

Update Staged

+ v{storeIncompat.dbAppVersion} +
+

+ This database was last used by a newer version of Staged. Please install + v{storeIncompat.dbAppVersion} or newer to continue. +

+
-
- {/if} - - {#if showSessionLab} - (showSessionLab = false)} /> - {/if} - - - +
+
+ {:else} +
+ +
+ {#if storeError} +
+

{storeError}

+
+ {:else if navigation.activeView === 'settings'} + + {:else if reposUiEnabled && navigation.showReposList} + + {:else if navigation.selectedProjectId} + + {:else} + + {/if} +
+
+ {/if} + + {#if showSessionLab} + (showSessionLab = false)} /> + {/if} + + {/if}