AppServerBanner
src/lib/components/AppServerBanner.svelte
Purpose
A thin inline alert banner rendered directly beneath AppTopbar. It appears in
two cases driven by shellNav: when the backend is unreachable (destructive
red banner with TriangleAlert), or when module navigation failed to load
but the backend is reachable (warning amber banner with AlertCircle). Both
variants expose a Retry button that re-invokes loadShellNav(). When
neither condition holds, the banner renders nothing.
Origin
Custom — Primebrick-written. Uses the shadcn-svelte™ Button and
@lucide/svelte icons.
Usage
Default (mounted by AppShell)
Code
Conditional rendering logic
The component self-guards on shellNav.unreachable and shellNav.error; you
never need to wrap it.
Code
Retry behavior
Retry calls loadShellNav() directly, which re-fetches module navigation from
the backend.
Code
Props
Full prop table: see API reference — appserverbanner.
Key props: none — AppServerBanner takes no props; it reads state from
shellNav.