From b4dc52cfa232b1fe45322abc75a2559403936bc4 Mon Sep 17 00:00:00 2001 From: Kyrylo Shmidt Date: Wed, 29 Jan 2025 10:27:37 +0100 Subject: [PATCH 1/2] Update Excessive API Calls insight icon --- .../components/common/InsightIcon/utils.ts | 3 ++- .../icons/TwoHorizontalEndpointsIcon.tsx | 20 ------------------- 2 files changed, 2 insertions(+), 21 deletions(-) delete mode 100644 packages/jaeger-ui/src/components/common/icons/TwoHorizontalEndpointsIcon.tsx diff --git a/packages/jaeger-ui/src/components/common/InsightIcon/utils.ts b/packages/jaeger-ui/src/components/common/InsightIcon/utils.ts index a3ee7b9b2c..dba9cddd2f 100644 --- a/packages/jaeger-ui/src/components/common/InsightIcon/utils.ts +++ b/packages/jaeger-ui/src/components/common/InsightIcon/utils.ts @@ -16,6 +16,7 @@ import ClockWithTicksIcon from '../icons/ClockWithTicksIcon'; import PieChartIcon from '../icons/PieChartIcon'; import PulseIcon from '../icons/PulseIcon'; import TwoHorizontalEndpointsIcon from '../icons/TwoHorizontalEndpointsIcon'; +import SoundWaveIcon from '../icons/SoundWaveIcon'; export const getInsightTypeInfo = ( type: InsightType @@ -101,7 +102,7 @@ export const getInsightTypeInfo = ( label: 'Session in View Query Detected', }, [InsightType.EndpointChattyApiV2]: { - icon: TwoHorizontalEndpointsIcon, + icon: SoundWaveIcon, label: 'Excessive API Calls Detected', }, [InsightType.EndpointHighNumberOfQueries]: { diff --git a/packages/jaeger-ui/src/components/common/icons/TwoHorizontalEndpointsIcon.tsx b/packages/jaeger-ui/src/components/common/icons/TwoHorizontalEndpointsIcon.tsx deleted file mode 100644 index 6d4701831f..0000000000 --- a/packages/jaeger-ui/src/components/common/icons/TwoHorizontalEndpointsIcon.tsx +++ /dev/null @@ -1,20 +0,0 @@ -import React from 'react'; -import { useIconProps } from './hooks'; -import { IIconProps } from './types'; - -const TwoHorizontalEndpointsIconComponent = (props: IIconProps) => { - const { size, color } = useIconProps(props); - - return ( - - - - ); -}; - -const TwoHorizontalEndpointsIcon = React.memo(TwoHorizontalEndpointsIconComponent); - -export default TwoHorizontalEndpointsIcon; From 5c53edb6c4e3b3ebfd60dd30b5cb4a269e6c55b2 Mon Sep 17 00:00:00 2001 From: Kyrylo Shmidt Date: Wed, 29 Jan 2025 10:41:05 +0100 Subject: [PATCH 2/2] Remove unused import --- packages/jaeger-ui/src/components/common/InsightIcon/utils.ts | 1 - 1 file changed, 1 deletion(-) diff --git a/packages/jaeger-ui/src/components/common/InsightIcon/utils.ts b/packages/jaeger-ui/src/components/common/InsightIcon/utils.ts index dba9cddd2f..a8d7478620 100644 --- a/packages/jaeger-ui/src/components/common/InsightIcon/utils.ts +++ b/packages/jaeger-ui/src/components/common/InsightIcon/utils.ts @@ -15,7 +15,6 @@ import { InsightType } from './types'; import ClockWithTicksIcon from '../icons/ClockWithTicksIcon'; import PieChartIcon from '../icons/PieChartIcon'; import PulseIcon from '../icons/PulseIcon'; -import TwoHorizontalEndpointsIcon from '../icons/TwoHorizontalEndpointsIcon'; import SoundWaveIcon from '../icons/SoundWaveIcon'; export const getInsightTypeInfo = (