From c2eb4007bbcc98dd97f45e2171773f410d2830d8 Mon Sep 17 00:00:00 2001 From: Julius Volz Date: Wed, 3 Apr 2024 14:47:38 +0200 Subject: [PATCH] Better top nav page titles, clickable Prometheus brand logo Signed-off-by: Julius Volz --- web/ui/mantine-ui/src/App.tsx | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) diff --git a/web/ui/mantine-ui/src/App.tsx b/web/ui/mantine-ui/src/App.tsx index c7189bfda..b97ba9184 100644 --- a/web/ui/mantine-ui/src/App.tsx +++ b/web/ui/mantine-ui/src/App.tsx @@ -8,6 +8,7 @@ import PrometheusLogo from "./images/prometheus-logo.svg"; import { ActionIcon, Affix, + Anchor, AppShell, Box, Burger, @@ -44,6 +45,7 @@ import { } from "@tabler/icons-react"; import { BrowserRouter, + Link, NavLink, Navigate, Route, @@ -92,13 +94,13 @@ const mainNavPages = [ const monitoringStatusPages = [ { - title: "Targets", + title: "Target health", path: "/targets", icon: , element: , }, { - title: "Rules", + title: "Rule health", path: "/rules", icon: , element: , @@ -300,10 +302,15 @@ function App() { - - - Prometheus{agentMode && " Agent"} - + + + + Prometheus{agentMode && " Agent"} + + {navLinks}