diff --git a/web/ui/mantine-ui/src/RuleDefinition.tsx b/web/ui/mantine-ui/src/RuleDefinition.tsx index 95249f2d6..d8546b395 100644 --- a/web/ui/mantine-ui/src/RuleDefinition.tsx +++ b/web/ui/mantine-ui/src/RuleDefinition.tsx @@ -22,7 +22,7 @@ const RuleDefinition: FC<{ rule: Rule }> = ({ rule }) => { return ( <> - + { return ( - + diff --git a/web/ui/mantine-ui/src/pages/ConfigPage.tsx b/web/ui/mantine-ui/src/pages/ConfigPage.tsx index 644ed5d88..a8419a8db 100644 --- a/web/ui/mantine-ui/src/pages/ConfigPage.tsx +++ b/web/ui/mantine-ui/src/pages/ConfigPage.tsx @@ -13,11 +13,11 @@ export default function ConfigPage() { ); } diff --git a/web/ui/mantine-ui/src/pages/FlagsPage.tsx b/web/ui/mantine-ui/src/pages/FlagsPage.tsx index 2ba8459d4..d90328f96 100644 --- a/web/ui/mantine-ui/src/pages/FlagsPage.tsx +++ b/web/ui/mantine-ui/src/pages/FlagsPage.tsx @@ -124,7 +124,7 @@ export default function FlagsPage() { )); return ( - + ({ path: `/rules` }); return ( - <> + {data.data.groups.map((g, i) => ( ))} - + ); } diff --git a/web/ui/mantine-ui/src/pages/StatusPage.tsx b/web/ui/mantine-ui/src/pages/StatusPage.tsx index 43aef6dca..5555e74ef 100644 --- a/web/ui/mantine-ui/src/pages/StatusPage.tsx +++ b/web/ui/mantine-ui/src/pages/StatusPage.tsx @@ -36,8 +36,8 @@ export default function StatusPage() { }); return ( - - + + @@ -55,7 +55,7 @@ export default function StatusPage() { - + diff --git a/web/ui/mantine-ui/src/pages/TSDBStatusPage.tsx b/web/ui/mantine-ui/src/pages/TSDBStatusPage.tsx index 0b3aaae24..5da498e0d 100644 --- a/web/ui/mantine-ui/src/pages/TSDBStatusPage.tsx +++ b/web/ui/mantine-ui/src/pages/TSDBStatusPage.tsx @@ -35,7 +35,7 @@ export default function TSDBStatusPage() { ]; return ( - + {[ { title: "TSDB Head Status", @@ -64,7 +64,7 @@ export default function TSDBStatusPage() { formatAsCode: true, }, ].map(({ title, unit = "Count", stats, formatAsCode }) => ( - + {title} diff --git a/web/ui/mantine-ui/src/pages/query/QueryPage.tsx b/web/ui/mantine-ui/src/pages/query/QueryPage.tsx index d80c8d548..cb2a75c21 100644 --- a/web/ui/mantine-ui/src/pages/query/QueryPage.tsx +++ b/web/ui/mantine-ui/src/pages/query/QueryPage.tsx @@ -1,4 +1,4 @@ -import { Alert, Button, Notification, Stack, rem } from "@mantine/core"; +import { Alert, Box, Button, Notification, Stack, rem } from "@mantine/core"; import { IconAlertCircle, IconAlertTriangle, @@ -40,13 +40,12 @@ export default function QueryPage() { const browserTime = new Date().getTime() / 1000; const serverTime = timeResult.data.result[0]; - console.log(browserTime, serverTime, Math.abs(browserTime - serverTime)); setTimeDelta(Math.abs(browserTime - serverTime)); } }, [timeResult]); return ( - <> + {metricNamesError && ( Add query - + ); } diff --git a/web/ui/mantine-ui/src/pages/query/QueryPanel.tsx b/web/ui/mantine-ui/src/pages/query/QueryPanel.tsx index 67467648a..3319d2eb6 100644 --- a/web/ui/mantine-ui/src/pages/query/QueryPanel.tsx +++ b/web/ui/mantine-ui/src/pages/query/QueryPanel.tsx @@ -47,7 +47,7 @@ const QueryPanel: FC = ({ idx, metricNames }) => { const dispatch = useAppDispatch(); return ( - +