feat(ui): add SyncIndicator to all 19 app layouts

Add <SyncIndicator /> from @manacore/shared-ui to every app layout.
Shows floating pill when browser goes offline ("Offline") and briefly
when reconnecting ("Wieder online"). Auto-fades after 3 seconds.

Simplified component: uses browser online/offline events instead of
sync engine coupling. Works universally without any props.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Till JS 2026-03-28 18:27:30 +01:00
parent b91d4fb663
commit bda77cbcb7
19 changed files with 83 additions and 87 deletions

View file

@ -4,6 +4,7 @@
import { setContext } from 'svelte';
import { locale } from 'svelte-i18n';
import { PillNavigation, InputBarHelpModal, ImmersiveModeToggle } from '@manacore/shared-ui';
import { SyncIndicator } from '@manacore/shared-ui';
import {
SplitPaneContainer,
setSplitPanelContext,
@ -47,6 +48,7 @@
import { format } from 'date-fns';
import { de } from 'date-fns/locale';
import type { CreatePreview } from '@manacore/shared-ui';
import { SyncIndicator } from '@manacore/shared-ui';
import {
parseEventInput,
resolveEventIds,
@ -620,6 +622,7 @@
{#if authStore.isAuthenticated}
<SessionExpiredBanner locale={$locale || 'de'} loginHref="/login" />
{/if}
<SyncIndicator />
</AuthGate>
<style>