Add status pages (a share link kind) and a downloadable Grafana dashboard

- Share links can open a status page: an admin picks servers, integrations and Uptime Kuma
  monitors and names them; the public sees only those names, Working / Not working /
  Being worked on / Can't tell, an optional message and the 30-day figure (share_links.kind/
  title/message and status_items, migration 0033). A status address doesn't open the wall and
  the other way round; Uptime Kuma is asked at most every 30 seconds
- Grafana dashboard built from code (download in Settings -> API and webhooks); a test checks
  it only uses series /metrics serves
- Tests and docs

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
bobbanandClaude Sonnet 5.5 committed 2026-10-18 15:38:08 +02:00
1 parent 2744a84719
commit 5cc51c57de
24 files changed
+4880 -35

No files matched your search

+3 -1
View File
@@ -53,6 +53,7 @@ import AppShell from "./layout/AppShell";
import DialogHost from "./components/DialogHost";
import Wall from "./pages/Wall";
import SharedWall from "./pages/SharedWall";
import SharedStatus from "./pages/SharedStatus";
import MapPage from "./pages/Map";
import { setDateTimeSettings } from "./utils/date";
import { setPageSize } from "./utils/pageSize";
@@ -80,7 +81,7 @@ function RequireRole({
export default function App() {
const [user, setUser] = useState<CurrentUser | null | undefined>(undefined);
// A share link's page is for someone who isn't signed in: it asks nothing of the app's own session.
const shared = useLocation().pathname.startsWith("/share/wall/");
const shared = useLocation().pathname.startsWith("/share/wall/") || useLocation().pathname.startsWith("/share/status/");
useEffect(() => {
if (shared) return;
@@ -103,6 +104,7 @@ export default function App() {
return (
<Routes>
<Route path="/share/wall/:token" element={<SharedWall />} />
<Route path="/share/status/:token" element={<SharedStatus />} />
</Routes>
);
}