:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.
Python ab-testingai-analyticsanalyticscdpdata-warehouseexperimentsfeature-flagsjavascriptproduct-analyticspythonreactsession-replaysurveystypescriptweb-analytics
chore(web-analytics): Clean up health feature flag (#61944)
Jordan Mryyan6f50192f056e
diff --git a/frontend/src/lib/constants.tsx b/frontend/src/lib/constants.tsxindex 1521a8790ffb..de0fcb0941a1 100644--- a/frontend/src/lib/constants.tsx+++ b/frontend/src/lib/constants.tsx@@ -505,7 +505,6 @@ export const FEATURE_FLAGS = {WEB_ANALYTICS_EMPTY_ONBOARDING: 'web-analytics-empty-onboarding', // owner: @jordanm-posthog #team-web-analyticsWEB_ANALYTICS_FILTERS_V2: 'web-analytics-filters-v2', // owner: @jordanm-posthog #team-web-analyticsWEB_ANALYTICS_FOCUS_MODE: 'web-analytics-focus-mode', // owner: @jordanm-posthog #team-web-analytics- WEB_ANALYTICS_HEALTH_TAB: 'web_analytics_health_tab', // owner: @jordanm-posthog #team-web-analyticsWEB_ANALYTICS_INCLUDE_HOST: 'web-analytics-include-host', // owner: @lricoy #team-web-analyticsWEB_ANALYTICS_LIVE_CITY_BREAKDOWN: 'web-analytics-live-city-breakdown', // owner: @jordanm-posthog #team-web-analyticsWEB_ANALYTICS_LIVE_EDIT_LAYOUT: 'web-analytics-live-edit-layout', // owner: @jordanm-posthog #team-web-analyticsdiff --git a/frontend/src/scenes/web-analytics/WebAnalyticsDashboard.tsx b/frontend/src/scenes/web-analytics/WebAnalyticsDashboard.tsxindex 018761b2e95e..712584f3496e 100644--- a/frontend/src/scenes/web-analytics/WebAnalyticsDashboard.tsx+++ b/frontend/src/scenes/web-analytics/WebAnalyticsDashboard.tsx@@ -702,11 +702,7 @@ const HealthTabLabel = (): JSX.Element => {)}-const healthTab = (featureFlags: FeatureFlagsSet): { key: ProductTab; label: JSX.Element; link: string }[] => {- if (!featureFlags[FEATURE_FLAGS.WEB_ANALYTICS_HEALTH_TAB]) {- return []- }-+const healthTab = (): { key: ProductTab; label: JSX.Element; link: string }[] => {return [{key: ProductTab.HEALTH,@@ -842,7 +838,6 @@ const WebAnalyticsTabs = (): JSX.Element => {interaction: 'function',callback: () => setProductTab(ProductTab.HEALTH),scope: Scene.WebAnalytics,- disabled: !featureFlags[FEATURE_FLAGS.WEB_ANALYTICS_HEALTH_TAB],})useEffect(() => {@@ -864,7 +859,7 @@ const WebAnalyticsTabs = (): JSX.Element => {{ key: ProductTab.PAGE_REPORTS, label: 'Page reports', link: '/web/page-reports' },...liveTab(featureFlags),...botAnalyticsTab(featureFlags),- ...healthTab(featureFlags),+ ...healthTab(),]}sceneInsetclassName="-mt-4"