diff --git a/web/ui/mantine-ui/src/pages/query/ExplainViews/Aggregation.tsx b/web/ui/mantine-ui/src/pages/query/ExplainViews/Aggregation.tsx index 1a2c1554f..3facd692c 100644 --- a/web/ui/mantine-ui/src/pages/query/ExplainViews/Aggregation.tsx +++ b/web/ui/mantine-ui/src/pages/query/ExplainViews/Aggregation.tsx @@ -46,20 +46,34 @@ const describeAggregationType = ( ); case "bottomk": if (param === null || param.type !== "numberLiteral") { - return <>returns the bottom K series by value; + return ( + <> + returns the bottom{" "} + K series by value + + ); } return ( <> - returns the bottom {param.val} series by value + returns the bottom{" "} + {param.val} series + by value ); case "topk": if (param === null || param.type !== "numberLiteral") { - return <>returns the top K series by value; + return ( + <> + returns the top K{" "} + series by value + + ); } return ( <> - returns the top {param.val} series by value + returns the top{" "} + {param.val} series + by value ); case "quantile": @@ -77,20 +91,30 @@ const describeAggregationType = ( case "limitk": if (param === null || param.type !== "numberLiteral") { - return <>limits the output to K series; + return ( + <> + limits the output to{" "} + K series + + ); } return ( <> - limits the output to {param.val} series + limits the output to{" "} + {param.val} series ); case "limit_ratio": if (param === null || param.type !== "numberLiteral") { return "limits the output to a ratio of the input series"; } - return `limits the output to a ratio of ${param.val} (${ - parsePrometheusFloat(param.val) * 100 - }%) of the input series`; + return ( + <> + limits the output to a ratio of{" "} + {param.val} ( + {parsePrometheusFloat(param.val) * 100}%) of the input series + + ); default: throw new Error(`invalid aggregation type ${aggrType}`); }