diff --git a/web/src/components/StatusStrip.tsx b/web/src/components/StatusStrip.tsx
new file mode 100644
index 0000000..28ce510
--- /dev/null
+++ b/web/src/components/StatusStrip.tsx
@@ -0,0 +1,97 @@
+import { Link } from "react-router-dom";
+import { IconAlertTriangle, IconCircleCheck, IconInfoCircle } from "@tabler/icons-react";
+import { alertBadge, useAlertsReport } from "../hooks/useAlertsReport";
+
+const SEVERITY_ORDER = { critical: 0, warning: 1, info: 2 } as const;
+
+/** One line at the top of the dashboard: is anything wrong right now? Reads the same alert report as the Alerts page. */
+export default function StatusStrip() {
+ const { report, failed, reload } = useAlertsReport();
+
+ if (!report) {
+ return (
+
+
+
{failed ? "Couldn't load the alert status." : "Checking status…"}
+ {failed && (
+
+ )}
+
+ );
+ }
+
+ const badge = alertBadge(report);
+ const active = report.alerts
+ .filter((a) => !a.silenced && a.severity !== "info")
+ .sort((a, b) => SEVERITY_ORDER[a.severity] - SEVERITY_ORDER[b.severity]);
+ const silenced = report.counts.silenced;
+ const blind = report.couldntCheck.length;
+
+ const notes: string[] = [];
+ if (silenced > 0) notes.push(`${silenced} silenced by maintenance`);
+ if (blind > 0 && badge) notes.push(`${blind} check${blind === 1 ? "" : "s"} couldn't run`);
+
+ if (!badge) {
+ // Nothing is wrong that we can see — but if some checks couldn't run, "all clear" would claim more than is known.
+ const unsure = blind > 0;
+ return (
+
+
+ {unsure ? : }
+
+ {unsure ? "No active alerts, but some checks couldn't run." : "All clear."}{" "}
+ {unsure ? (
+
+ {report.couldntCheck.map((c) => c.name).join(", ")} — see Alerts for what that leaves unchecked.
+
+ ) : (
+ No active alerts.
+ )}
+ {silenced > 0 && {silenced} silenced by maintenance.}
+
diff --git a/web/src/pages/Dashboard.tsx b/web/src/pages/Dashboard.tsx
index e7ce718..07cd6d2 100644
--- a/web/src/pages/Dashboard.tsx
+++ b/web/src/pages/Dashboard.tsx
@@ -13,6 +13,7 @@ import {
type TailscaleDevicesResponse,
} from "../api/client";
import { formatAgo } from "../utils/duration";
+import StatusStrip from "../components/StatusStrip";
const DNS_TYPE_COLORS: Record = {
A: "#60a5fa",
@@ -180,7 +181,8 @@ function MiniStat({ label, value, accent }: { label: string; value: ReactNode; a
}
/** The single card shape shared by every dashboard widget — DNS, Secrets, and each integration — so they all read as one family: a label + status badge, then whatever stats/breakdown that widget has. */
-function WidgetCard({ label, badge, children }: { label: string; badge?: ReactNode; children: ReactNode }) {
+function WidgetCard({ label, badge, hide, children }: { label: string; badge?: ReactNode; /** Nothing is set up for this yet: it is listed under "Not set up yet" instead of taking a card. */ hide?: boolean; children: ReactNode }) {
+ if (hide) return null;
return (
@@ -535,6 +537,18 @@ export default function Dashboard({ user }: { user: CurrentUser }) {
}, {}),
).map(([type, count]) => ({ label: SECRET_TYPE_LABELS[type as SecretRecord["type"]] ?? type, count }));
+ // What has nothing set up yet. These get one list at the bottom instead of a grey "Not configured" card each.
+ const notSetUp: { label: string; to: string; what: string }[] = [];
+ if (dnsStats?.totalProviders === 0) notSetUp.push({ label: "DNS", to: "/dns", what: "connect a DNS provider to see zones and records" });
+ if (secrets !== null && totalSecrets === 0) notSetUp.push({ label: "Secrets", to: "/secrets", what: "track when a token, certificate or password expires" });
+ if (serverSummary?.total === 0) notSetUp.push({ label: "Servers", to: "/servers", what: "add a server and install its agent" });
+ if (domainList !== null && domains.length === 0) notSetUp.push({ label: "Domains", to: "/domains", what: "appear after a DNS zone is added and the daily check has run" });
+ if (integrations !== null) {
+ for (const { type, label } of WIDGETS) {
+ if (!integrations.some((i) => i.type === type)) notSetUp.push({ label, to: "/integrations", what: "connect it under Integrations" });
+ }
+ }
+
return (
<>
@@ -543,6 +557,7 @@ export default function Dashboard({ user }: { user: CurrentUser }) {