diff --git a/panel/dev/mockApi.ts b/panel/dev/mockApi.ts index 6ede726..5da1e51 100644 --- a/panel/dev/mockApi.ts +++ b/panel/dev/mockApi.ts @@ -2176,7 +2176,11 @@ export function mockApiPlugin(): Plugin { const parts = url.pathname.split("/").filter(Boolean); if (method === "GET" && url.pathname === "/config.json") { - sendJSON(res, 200, { apiBase: API_BASE, rootDomain: ROOT_DOMAIN }); + sendJSON(res, 200, { + apiBase: API_BASE, + rootDomain: ROOT_DOMAIN, + build: { version: "v0.4.0+g1a2b3c4", release: "v0.4.0", commit: "1a2b3c4", dev: true }, + }); return; } if (parts[0] !== "api" || parts[1] !== "v1") { diff --git a/panel/src/components/AppShell.tsx b/panel/src/components/AppShell.tsx index d91dbf0..bd1e015 100644 --- a/panel/src/components/AppShell.tsx +++ b/panel/src/components/AppShell.tsx @@ -11,6 +11,7 @@ import { Select, SelectContent, SelectItem } from "@/components/ui/select"; import { useTheme } from "@/lib/theme"; import { api, CONNECTION_EVENT, isConnectionLost } from "@/lib/api"; import { Button } from "@/components/ui/button"; +import { ConfigBanner, VersionBadge } from "@/components/RuntimeStatus"; import { ErrorBoundary } from "@/components/ErrorBoundary"; function SectionGroup({ @@ -225,6 +226,7 @@ function MobileNav({ sections }: { sections: NavSection[] }) {