From bba7a1af8fe4c425b80a5163cfc0d093fc8ee51d Mon Sep 17 00:00:00 2001 From: Kyrylo Shmidt Date: Mon, 4 Mar 2024 17:37:00 +0100 Subject: [PATCH] Add description to empty Duration insight --- .../Insights/common/insights/DurationInsight/index.tsx | 5 +++++ .../Insights/common/insights/DurationInsight/styles.ts | 5 +++++ .../Insights/common/insights/SlowEndpointInsight/index.tsx | 6 ++---- 3 files changed, 12 insertions(+), 4 deletions(-) diff --git a/src/components/Insights/common/insights/DurationInsight/index.tsx b/src/components/Insights/common/insights/DurationInsight/index.tsx index 464ae4b7b..9c983dfa9 100644 --- a/src/components/Insights/common/insights/DurationInsight/index.tsx +++ b/src/components/Insights/common/insights/DurationInsight/index.tsx @@ -265,6 +265,11 @@ export const DurationInsight = (props: DurationInsightProps) => { content={ + {!props.insight.histogramPlot && ( + + Trigger more actions to see the full duration analysis + + )} {spanLastCall && ( ` width: 100%; height: ${({ $height }) => $height}px; diff --git a/src/components/Insights/common/insights/SlowEndpointInsight/index.tsx b/src/components/Insights/common/insights/SlowEndpointInsight/index.tsx index a9d49bdb7..96750140b 100644 --- a/src/components/Insights/common/insights/SlowEndpointInsight/index.tsx +++ b/src/components/Insights/common/insights/SlowEndpointInsight/index.tsx @@ -20,10 +20,8 @@ export const SlowEndpointInsight = (props: SlowEndpointInsightProps) => { - {`On average requests are slower than other endpoints by ${roundTo( - diff, - 2 - )}%`} + On average requests are slower than other endpoints by{" "} + {roundTo(diff, 2)}%