Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -265,6 +265,11 @@ export const DurationInsight = (props: DurationInsightProps) => {
content={
<s.Container>
<ColumnsContainer>
{!props.insight.histogramPlot && (
<s.DescriptionColumn label={"Description"}>
Trigger more actions to see the full duration analysis
</s.DescriptionColumn>
)}
{spanLastCall && (
<KeyValue label={"Last call"}>
<CommonTooltip
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import styled from "styled-components";
import { footnoteRegularTypography } from "../../../../common/App/typographies";
import { KeyValue } from "../../InsightCard/KeyValue";
import { ChartContainerProps } from "./types";

export const Container = styled.div`
Expand All @@ -8,6 +9,10 @@ export const Container = styled.div`
gap: 8px;
`;

export const DescriptionColumn = styled(KeyValue)`
flex-grow: 2;
`;

export const ChartContainer = styled.div<ChartContainerProps>`
width: 100%;
height: ${({ $height }) => $height}px;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,8 @@ export const SlowEndpointInsight = (props: SlowEndpointInsightProps) => {
<s.ContentContainer>
<ColumnsContainer>
<s.DescriptionColumn label={"Description"}>
{`On average requests are slower than other endpoints by ${roundTo(
diff,
2
)}%`}
On average requests are slower than other endpoints by{" "}
{roundTo(diff, 2)}%
</s.DescriptionColumn>
<KeyValue label={"Slower by"}>
<Tag content={getDurationString(props.insight.median)} />
Expand Down