1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-08-27 13:49:10 +02:00

Remove entire row for median time to production (#10034)

Removes the "median time to production" snapshot + graph when the
lifecycleMetrics flag is active.

In other words: this entire box is gone 💨 
<img width="1326" alt="image"
src="https://github.com/user-attachments/assets/929a9097-82a6-493d-b0dd-614000ffcfe7"
/>
This commit is contained in:
Thomas Heartman 2025-05-27 13:00:08 +01:00 committed by GitHub
parent 092c525531
commit 5df074bd14
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -18,6 +18,7 @@ import { allOption } from 'component/common/ProjectSelect/ProjectSelect';
import useUiConfig from 'hooks/api/getters/useUiConfig/useUiConfig';
import { WidgetTitle } from './components/WidgetTitle/WidgetTitle.tsx';
import { ConditionallyRender } from 'component/common/ConditionallyRender/ConditionallyRender';
import { useUiFlag } from 'hooks/useUiFlag.ts';
export interface IChartsProps {
flagTrends: InstanceInsightsSchema['flagTrends'];
@ -104,6 +105,7 @@ export const InsightsCharts: FC<IChartsProps> = ({
const showAllProjects = projects[0] === allOption.id;
const isOneProjectSelected = projects.length === 1;
const { isEnterprise } = useUiConfig();
const showMedianTimeToProduction = !useUiFlag('lifecycleMetrics');
const lastUserTrend = userTrends[userTrends.length - 1];
const lastFlagTrend = flagTrends[flagTrends.length - 1];
@ -205,6 +207,7 @@ export const InsightsCharts: FC<IChartsProps> = ({
/>
</StyledChartContainer>
</StyledWidget>
{showMedianTimeToProduction ? (
<StyledWidget>
<StyledWidgetStats>
<WidgetTitle
@ -225,6 +228,7 @@ export const InsightsCharts: FC<IChartsProps> = ({
/>
</StyledChartContainer>
</StyledWidget>
) : null}
</>
}
/>