diff --git a/frontend/src/component/insights/sections/PerformanceInsights.tsx b/frontend/src/component/insights/sections/PerformanceInsights.tsx index 11e4535c98..f977ff75b3 100644 --- a/frontend/src/component/insights/sections/PerformanceInsights.tsx +++ b/frontend/src/component/insights/sections/PerformanceInsights.tsx @@ -23,7 +23,6 @@ import { StyledWidgetContent, StyledWidgetStats, } from '../InsightsCharts.styles'; -import { useUiFlag } from 'hooks/useUiFlag'; import { NewProductionFlagsChart } from '../componentsChart/NewProductionFlagsChart/NewProductionFlagsChart.tsx'; import { CreationArchiveChart } from '../componentsChart/CreationArchiveChart/CreationArchiveChart.tsx'; import { CreationArchiveStats } from '../componentsStat/CreationArchiveStats/CreationArchiveStats.tsx'; @@ -100,8 +99,6 @@ export const PerformanceInsights: FC = () => { const lastFlagTrend = flagTrends[flagTrends.length - 1]; const flagsTotal = lastFlagTrend?.total ?? 0; - const isLifecycleGraphsEnabled = useUiFlag('lifecycleGraphs'); - return ( { /> } > - {isLifecycleGraphsEnabled && isEnterprise() ? ( + {isEnterprise() ? ( { /> ) : null} - {isLifecycleGraphsEnabled && isEnterprise() ? ( + {isEnterprise() ? ( diff --git a/frontend/src/hooks/api/getters/useInsights/useInsights.ts b/frontend/src/hooks/api/getters/useInsights/useInsights.ts index 6108df701a..575b5fbb5a 100644 --- a/frontend/src/hooks/api/getters/useInsights/useInsights.ts +++ b/frontend/src/hooks/api/getters/useInsights/useInsights.ts @@ -18,7 +18,13 @@ type InstanceInsightsWithLabels = InstanceInsightsSchema & { labels: { date: string; week: string }[]; }; -// todo (lifecycleGraphs): consider moving this to the API instead. +// note: these could be generated on the API instead and returned as part of the +// payload. However, that would require updating the API response, and would +// make it harder to change if we need to. For the time being (Nov 7, 2025), +// I'll leave them here. +// +// If you're working on something relating to this feature later, please +// consider moving this to the API instead. const generateWeekLabels = ( start: string, end: string, diff --git a/frontend/src/interfaces/uiConfig.ts b/frontend/src/interfaces/uiConfig.ts index 42afd5e818..f237a9e913 100644 --- a/frontend/src/interfaces/uiConfig.ts +++ b/frontend/src/interfaces/uiConfig.ts @@ -86,7 +86,6 @@ export type UiFlags = { customMetrics?: boolean; impactMetrics?: boolean; plausibleMetrics?: boolean; - lifecycleGraphs?: boolean; globalChangeRequestList?: boolean; trafficBillingDisplay?: boolean; milestoneProgression?: boolean; diff --git a/src/lib/types/experimental.ts b/src/lib/types/experimental.ts index 01c6f98119..fe41faaefe 100644 --- a/src/lib/types/experimental.ts +++ b/src/lib/types/experimental.ts @@ -53,7 +53,6 @@ export type IFlagKey = | 'edgeObservability' | 'customMetrics' | 'impactMetrics' - | 'lifecycleGraphs' | 'etagByEnv' | 'fetchMode' | 'optimizeLifecycle' @@ -241,10 +240,6 @@ const flags: IFlags = { process.env.UNLEASH_EXPERIMENTAL_IMPACT_METRICS, false, ), - lifecycleGraphs: parseEnvVarBoolean( - process.env.UNLEASH_EXPERIMENTAL_LIFECYCLE_GRAPHS, - false, - ), streaming: { name: 'disabled', enabled: parseEnvVarBoolean( diff --git a/src/server-dev.ts b/src/server-dev.ts index 59b515358d..28976cd91c 100644 --- a/src/server-dev.ts +++ b/src/server-dev.ts @@ -51,7 +51,6 @@ process.nextTick(async () => { strictSchemaValidation: true, customMetrics: true, impactMetrics: true, - lifecycleGraphs: true, globalChangeRequestList: true, trafficBillingDisplay: true, milestoneProgression: true,