diff --git a/packages/web-ui/src/lib/components/AppShell.svelte b/packages/web-ui/src/lib/components/AppShell.svelte index f168a0b..204b5be 100644 --- a/packages/web-ui/src/lib/components/AppShell.svelte +++ b/packages/web-ui/src/lib/components/AppShell.svelte @@ -11,6 +11,7 @@ children, class: className = '', currentPath = '', + faviconHref = '/favicon.svg', headerActions, navItems = [], onAbout, @@ -29,6 +30,7 @@ children?: Snippet; class?: string; currentPath?: string; + faviconHref?: string; headerActions?: Snippet; navItems?: NavItem[]; onAbout?: () => void | Promise; @@ -51,10 +53,11 @@
item.label.toLowerCase() === 'about')?.href} + aboutHref={aboutHref ?? navItems.find((item) => item.label.toLowerCase() === 'about')?.href ?? '/about'} {brand} {brandHref} {currentPath} + {faviconHref} actions={headerActions} {navItems} {onAbout} diff --git a/packages/web-ui/src/lib/components/AuthPage.svelte b/packages/web-ui/src/lib/components/AuthPage.svelte index b93afdd..6827fb6 100644 --- a/packages/web-ui/src/lib/components/AuthPage.svelte +++ b/packages/web-ui/src/lib/components/AuthPage.svelte @@ -134,13 +134,18 @@
-
+
{brand}
-

{setupRequired ? 'Create your account' : 'Welcome back'}

+ {#if loading} +

Loading...

+ {:else} +

{setupRequired ? 'Create your account' : 'Welcome back'}

+ {/if} + {#if !loading} {#if tagline}

{tagline}

{/if} @@ -268,5 +273,6 @@ {/if} {/if} + {/if}
diff --git a/packages/web-ui/src/lib/components/Header.svelte b/packages/web-ui/src/lib/components/Header.svelte index d405010..a45b80c 100644 --- a/packages/web-ui/src/lib/components/Header.svelte +++ b/packages/web-ui/src/lib/components/Header.svelte @@ -5,7 +5,6 @@ BarChart3, Bot, Box, - ChevronDown, CircleAlert, CircleHelp, CircleUserRound, @@ -93,11 +92,11 @@ }; let { - aboutHref, + aboutHref = '/about', brand = 'Application', brandHref = '/', - brandIcon, currentPath = '', + faviconHref = '/favicon.svg', navItems = [], actions, onAbout, @@ -111,8 +110,8 @@ aboutHref?: string; brand?: string; brandHref?: string; - brandIcon?: Snippet; currentPath?: string; + faviconHref?: string; navItems?: NavItem[]; actions?: Snippet; onAbout?: () => void | Promise; @@ -162,11 +161,7 @@
{brand} @@ -207,7 +202,6 @@ >