From ca5585e1b3fc791fa0a4b3b6324213721e409b7e Mon Sep 17 00:00:00 2001 From: Kyrylo Shmidt Date: Fri, 1 Mar 2024 12:41:39 +0100 Subject: [PATCH 1/2] Add Top Usage insight --- .../PerformanceAtScaleInsight/styles.ts | 6 +- .../RequestBreakdownInsight/styles.ts | 4 +- .../Insights/common/InsightCard/index.tsx | 2 +- .../RequestBreakdownInsight/styles.ts | 4 +- .../insights/SessionInViewInsight/index.tsx | 31 +-- .../insights/SpanNPlusOneInsight/index.tsx | 2 +- .../TopUsageInsight.stories.tsx | 113 ++++++++ .../common/insights/TopUsageInsight/index.tsx | 255 ++++++++++++++++++ .../common/insights/TopUsageInsight/styles.ts | 108 ++++++++ .../common/insights/TopUsageInsight/types.ts | 24 ++ .../common/icons/ArrowDashedLineIcon.tsx | 35 +++ src/components/common/v3/Button/styles.ts | 8 +- src/components/common/v3/JiraButton/index.tsx | 80 +++--- src/components/common/v3/Tooltip/index.tsx | 2 +- src/components/common/v3/Tooltip/styles.ts | 5 +- src/components/common/v3/Tooltip/types.ts | 5 + 16 files changed, 618 insertions(+), 66 deletions(-) create mode 100644 src/components/Insights/common/insights/TopUsageInsight/TopUsageInsight.stories.tsx create mode 100644 src/components/Insights/common/insights/TopUsageInsight/index.tsx create mode 100644 src/components/Insights/common/insights/TopUsageInsight/styles.ts create mode 100644 src/components/Insights/common/insights/TopUsageInsight/types.ts create mode 100644 src/components/common/icons/ArrowDashedLineIcon.tsx diff --git a/src/components/Insights/PerformanceAtScaleInsight/styles.ts b/src/components/Insights/PerformanceAtScaleInsight/styles.ts index ad206066f..d260f5cc7 100644 --- a/src/components/Insights/PerformanceAtScaleInsight/styles.ts +++ b/src/components/Insights/PerformanceAtScaleInsight/styles.ts @@ -44,7 +44,7 @@ export const TableHeaderCell = styled.th` padding: 0; &:last-child { - text-align: right; + text-align: end; } `; @@ -57,11 +57,11 @@ export const TableBodyCell = styled.td` padding: 0; &:first-child { - text-align: left; + text-align: start; } &:last-child { - text-align: right; + text-align: end; } `; diff --git a/src/components/Insights/RequestBreakdownInsight/styles.ts b/src/components/Insights/RequestBreakdownInsight/styles.ts index d03eb11ed..976306801 100644 --- a/src/components/Insights/RequestBreakdownInsight/styles.ts +++ b/src/components/Insights/RequestBreakdownInsight/styles.ts @@ -97,7 +97,7 @@ export const TableHead = styled.thead` `; export const TableHeaderCell = styled.th` - text-align: left; + text-align: start; font-weight: 400; padding-left: 4px; padding-bottom: 8px; @@ -128,7 +128,7 @@ export const TableBodyCell = styled.td` &:last-child { padding: 4px 4px 4px 22px; - text-align: right; + text-align: end; } `; diff --git a/src/components/Insights/common/InsightCard/index.tsx b/src/components/Insights/common/InsightCard/index.tsx index 98b1a4a9e..05102e3a0 100644 --- a/src/components/Insights/common/InsightCard/index.tsx +++ b/src/components/Insights/common/InsightCard/index.tsx @@ -139,7 +139,7 @@ export const InsightCard = (props: InsightCardProps) => { )} {props.onJiraButtonClick && ( - + { const buttons = traceId && config.isJaegerEnabled ? [ -