/** * BackendStatusBanner — one honest, app-wide signal of whether the live backend * is reachable. * * Aureon's dashboards are wired to the operator's `/api/...` surface and degrade * to empty/last-known state when it's down (they never fabricate). This strip * makes that state explicit and consistent everywhere: when the operator gateway * is unreachable it tells the user plainly — and how to bring it up — instead of * leaving a silently empty dashboard. When the backend is live it renders nothing. */ import { useState } from "react"; import { AlertTriangle, X } from "lucide-react"; import { useOperatorPulse } from "@/hooks/useOperatorPulse"; export function BackendStatusBanner() { const { offline, loading } = useOperatorPulse(); const [dismissed, setDismissed] = useState(false); // Nothing to say while the first poll is in flight or when the backend is live. if (loading || !offline || dismissed) return null; return (
Operator backend offline.{" "} Dashboards show last-known or empty data — nothing here is fabricated. Start the gateway with{" "} python -m aureon.operator.operator_server .
); } export default BackendStatusBanner;