Browse Source

ref(insights): moves web vitals perf landing charts to insights feature flag (#73754)

Moves the web vitals widget charts in the performance landing page to be
under the insights feature flag, along with the other insights modules.
edwardgou-sentry 8 months ago
parent
commit
bd72313c57

+ 1 - 3
static/app/views/performance/landing/views/allTransactionsView.tsx

@@ -50,13 +50,11 @@ export function AllTransactionsView(props: BasePerformanceViewProps) {
       doubleChartRowCharts.unshift(PerformanceWidgetSetting.MOST_CHANGED);
       doubleChartRowCharts.unshift(PerformanceWidgetSetting.MOST_TIME_CONSUMING_DOMAINS);
       doubleChartRowCharts.unshift(PerformanceWidgetSetting.MOST_TIME_SPENT_DB_QUERIES);
+      doubleChartRowCharts.unshift(PerformanceWidgetSetting.OVERALL_PERFORMANCE_SCORE);
     } else {
       doubleChartRowCharts.unshift(PerformanceWidgetSetting.MOST_CHANGED);
       doubleChartRowCharts.unshift(PerformanceWidgetSetting.MOST_RELATED_ISSUES);
     }
-    if (props.organization.features.includes('starfish-browser-webvitals')) {
-      doubleChartRowCharts.unshift(PerformanceWidgetSetting.OVERALL_PERFORMANCE_SCORE);
-    }
   } else {
     doubleChartRowCharts.unshift(PerformanceWidgetSetting.MOST_REGRESSED);
     doubleChartRowCharts.push(PerformanceWidgetSetting.MOST_IMPROVED);

+ 1 - 3
static/app/views/performance/landing/views/frontendOtherView.tsx

@@ -40,11 +40,9 @@ export function FrontendOtherView(props: BasePerformanceViewProps) {
   if (props.organization.features.includes('insights-initial-modules')) {
     doubleChartRowCharts.unshift(PerformanceWidgetSetting.MOST_TIME_CONSUMING_DOMAINS);
     doubleChartRowCharts.unshift(PerformanceWidgetSetting.MOST_TIME_CONSUMING_RESOURCES);
-  }
-
-  if (props.organization.features.includes('starfish-browser-webvitals')) {
     doubleChartRowCharts.unshift(PerformanceWidgetSetting.HIGHEST_OPPORTUNITY_PAGES);
   }
+
   return (
     <PerformanceDisplayProvider
       value={{performanceType: ProjectPerformanceType.FRONTEND_OTHER}}