PrimeBrickPrimeBrick
  • Docs
  • Contact
  • MIT License
  • Documentation
  • MCP Server
  • API Catalog
  • Services
  • Libraries
PrimeBrickPrimeBrick

© 2026 PrimeBrick. MIT License. v3.8.0

github
Backend
Frontend
    OverviewGetting startedUI stackApp shell & sidebarAuthentication & sessionsSystem settingsUI componentsUI patterns
    Components
      Entity list tableComboSelectDynamicIconColorSelectorAvatarPreviewEventCardCommandPaletteAppShellAppSidebarAppTopbarAppPageLayoutAppPageScaffoldAppPageBreadcrumbAppServerBannerBrowserClientInfoLangSelectThemeToggleSidebarHealthBadgeSidebarModuleSwitcherSidebarOrgSwitcherSidebarProfileMenuSidebarVersionBadgeButton (async)FormPageLayoutFormLabelWithHelpFormLabelWithPriorityHelpPasswordChecklistChoiceboxDateWheelPickerEventToastLoadingBarMetadataLoadingJsonTableViewerDialogBorderedRFCErrorDialogLoginFormPasskeyButtonPasskeyEnrollmentAuthMethodsPromptDialogSessionExpiredDialogInputTooltipForm
    API Reference
Microservices
powered by Zudoku
Components

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
<AppServerBanner />

Conditional rendering logic

The component self-guards on shellNav.unreachable and shellNav.error; you never need to wrap it.

Code
{#if shellNav.unreachable} <!-- destructive banner + Retry --> {:else if shellNav.error} <!-- warning banner + Retry --> {/if}

Retry behavior

Retry calls loadShellNav() directly, which re-fetches module navigation from the backend.

Code
<Button variant="outline" size="sm" onclick={() => loadShellNav()}> {$t('shell.retry')} </Button>

Props

Full prop table: see API reference — appserverbanner.

Key props: none — AppServerBanner takes no props; it reads state from shellNav.

Next steps

  • Component catalog
  • UI stack
  • API reference
Last modified on July 26, 2026
AppPageBreadcrumbBrowserClientInfo
On this page
  • Purpose
  • Origin
  • Usage
    • Default (mounted by AppShell)
    • Conditional rendering logic
    • Retry behavior
  • Props
  • Next steps