]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-22728 Show Split line in activity for every new metric
authorViktor Vorona <viktor.vorona@sonarsource.com>
Fri, 23 Aug 2024 13:17:04 +0000 (15:17 +0200)
committersonartech <sonartech@sonarsource.com>
Mon, 26 Aug 2024 20:03:08 +0000 (20:03 +0000)
server/sonar-web/src/main/js/components/charts/AdvancedTimeline.tsx

index 42d786fd4db1c017126550fcc3a7fd4301779305..632410a237018f8b057676779a9fba0fd2f2fa39 100644 (file)
@@ -634,7 +634,6 @@ export class AdvancedTimelineClass extends React.PureComponent<Props, State> {
       hideXAxis,
       showAreas,
       graphDescription,
-      metricType,
       splitPointDate,
     } = this.props as PropsWithDefaults;
     const { xScale, yScale } = this.state;
@@ -664,18 +663,14 @@ export class AdvancedTimelineClass extends React.PureComponent<Props, State> {
             {this.renderDots()}
             {this.renderSelectedDate()}
             {this.renderMouseEventsOverlay(zoomEnabled)}
-            {metricType === MetricType.Rating && (
-              <SplitLine splitPointDate={splitPointDate} xScale={xScale} yScale={yScale} />
-            )}
+            <SplitLine splitPointDate={splitPointDate} xScale={xScale} yScale={yScale} />
           </g>
         </svg>
-        {metricType === MetricType.Rating && (
-          <SplitLinePopover
-            paddingLeft={padding[3]}
-            splitPointDate={splitPointDate}
-            xScale={xScale}
-          />
-        )}
+        <SplitLinePopover
+          paddingLeft={padding[3]}
+          splitPointDate={splitPointDate}
+          xScale={xScale}
+        />
       </div>
     );
   }