File tree Expand file tree Collapse file tree 3 files changed +5
-5
lines changed
src/components/Highlights/TopIssues/highlightCards/SpanPerformanceAnomalyHighlightCard Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 11import type { Meta , StoryObj } from "@storybook/react" ;
22import { SpanPerformanceAnomalyHighlightCard } from "." ;
3- import { mockedSpanScalingHighlightData } from "./mockData" ;
3+ import { mockedSpanPerformanceAnomalyHighlightData } from "./mockData" ;
44
55// More on how to set up stories at: https://storybook.js.org/docs/react/writing-stories/introduction
66const meta : Meta < typeof SpanPerformanceAnomalyHighlightCard > = {
@@ -21,6 +21,6 @@ type Story = StoryObj<typeof meta>;
2121
2222export const Default : Story = {
2323 args : {
24- data : mockedSpanScalingHighlightData
24+ data : mockedSpanPerformanceAnomalyHighlightData
2525 }
2626} ;
Original file line number Diff line number Diff line change @@ -46,7 +46,7 @@ export const SpanPerformanceAnomalyHighlightCard = ({
4646 columnHelper . accessor (
4747 ( x ) => x . metrics . find ( ( x ) => x . id === "SlowerByPercentage" ) ,
4848 {
49- header : "5% slower than Median by" ,
49+ header : "The slowest 5% slower than the Median by" ,
5050 cell : ( info ) => {
5151 const metric = info . getValue ( ) ;
5252 const value = metric ? `${ String ( roundTo ( metric . value , 2 ) ) } %` : "" ;
Original file line number Diff line number Diff line change @@ -29,9 +29,9 @@ export const mockedSpanPerformanceAnomalyMetrics: SpanPerformanceAnomalyMetrics
2929 }
3030 ] ;
3131
32- export const mockedSpanScalingHighlightData : HighlightData < SpanPerformanceAnomalyMetrics > =
32+ export const mockedSpanPerformanceAnomalyHighlightData : HighlightData < SpanPerformanceAnomalyMetrics > =
3333 {
34- insightType : InsightType . SpanScaling ,
34+ insightType : InsightType . SpanPerformanceAnomaly ,
3535 asset : {
3636 name : "spanName" ,
3737 displayName : "displayName" ,
You can’t perform that action at this time.
0 commit comments