Skip to contentVibraUI
Dashboards

Engineering navigation

The Engineering dashboard's sidebar as plain data: its brand, its 6 routes and the shared footer.

Every Engineering page imports NAV and ROUTES from here and passes activeHref={ROUTES.<page>}; install it alone to put the dashboard's sidebar on a page of your own. ROUTES is the one place the dashboard's routes are spelled, HOME is the overview's.

Install

npx shadcn@latest add @vibra/nav-engineering

Needs the @vibra registry in your components.json — set it up once.

Dependencies

Source

lib/dashboards/engineering/nav.ts
import { type NavConfig } from "@/lib/nav-config"

/** Every route of this dashboard, by page — what a page passes as activeHref. */
export const ROUTES = {
  overview: "/engineering",
  monitoring: "/engineering/monitoring",
  incidents: "/engineering/incidents",
  alerts: "/engineering/alerts",
  logs: "/engineering/logs",
  status: "/status",
} as const

export const HOME = ROUTES.overview

/**
 * The Engineering dashboard's navigation, as plain data. AppShell resolves the
 * icon names and works out which item is current from the pathname; every
 * page of the dashboard passes this NAV and its own ROUTES entry. The same
 * pages are listed in ./manifest.ts, which the registry reads and this file
 * must not import — the manifest does not ship, and this file does.
 */
export const NAV: NavConfig = {
  brand: { name: "Northwind Platform", initial: "N", href: HOME },
  groups: [
    {
      label: "Engineering",
      items: [
        { title: "Overview", href: ROUTES.overview, icon: "layout-dashboard" },
        { title: "Monitoring", href: ROUTES.monitoring, icon: "activity" },
        { title: "Incidents", href: ROUTES.incidents, icon: "alert-triangle" },
        { title: "Alerts", href: ROUTES.alerts, icon: "bell" },
        { title: "Logs", href: ROUTES.logs, icon: "server" },
        { title: "Status", href: ROUTES.status, icon: "activity" },
      ],
    },
  ],
  footer: [
    { title: "Settings", href: "/settings", icon: "settings" },
    { title: "Support", href: "/support", icon: "life-buoy" },
  ],
}