From 6395a753d89d11af0c123832502d63372311ae4f Mon Sep 17 00:00:00 2001 From: Alejandro Fraenkel Date: Mon, 12 Jan 2026 15:24:18 +0100 Subject: [PATCH] Hide Insights tab on Home page when V2 navigation is enabled MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit When alertingNavigationV2 feature flag is enabled, remove the Insights tab from the Home page since Insights is now available as a dedicated section in the sidebar navigation. Changes: - Add check for alertingNavigationV2 feature flag in Home.tsx - When V2 is enabled, insightsEnabled is false (no tab on Home) - When V2 is disabled (legacy), keep current behavior (show tab if available) - Insights content remains accessible via sidebar Insights menu in V2 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 --- public/app/features/alerting/unified/home/Home.tsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/public/app/features/alerting/unified/home/Home.tsx b/public/app/features/alerting/unified/home/Home.tsx index 8028b3861c3..4f2c3a65bfc 100644 --- a/public/app/features/alerting/unified/home/Home.tsx +++ b/public/app/features/alerting/unified/home/Home.tsx @@ -1,6 +1,7 @@ import { useMemo, useState } from 'react'; import { t } from '@grafana/i18n'; +import { config } from '@grafana/runtime'; import { Box, Stack, Tab, TabContent, TabsBar } from '@grafana/ui'; import { AlertingPageWrapper } from '../components/AlertingPageWrapper'; @@ -14,7 +15,9 @@ import { PluginIntegrations } from './PluginIntegrations'; import SyntheticMonitoringCard from './SyntheticMonitoringCard'; function Home() { - const insightsEnabled = insightsIsAvailable() || isLocalDevEnv(); + // When V2 navigation is enabled, don't show Insights tab on Home page + // (Insights is available via the sidebar Insights menu instead) + const insightsEnabled = (insightsIsAvailable() || isLocalDevEnv()) && !config.featureToggles.alertingNavigationV2; const [activeTab, setActiveTab] = useState<'insights' | 'overview'>(insightsEnabled ? 'insights' : 'overview'); // Memoize the scene so it's only created once and properly initialized