: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(health): remove duplicate sdk doctor from unified health menu (#60316)
Rafael Audibertb62a8a9aa208
diff --git a/frontend/src/lib/components/HealthMenu/HealthMenu.tsx b/frontend/src/lib/components/HealthMenu/HealthMenu.tsxindex 59a0e47f2fb1..4a857f6ee0ad 100644--- a/frontend/src/lib/components/HealthMenu/HealthMenu.tsx+++ b/frontend/src/lib/components/HealthMenu/HealthMenu.tsx@@ -159,21 +159,12 @@ const UnifiedHealthMenu = ({ iconOnly = false }: { iconOnly?: boolean }): JSX.EluseValues(healthMenuLogic)const { setHealthMenuOpen } = useActions(healthMenuLogic)const { triggerBadgeContent, triggerBadgeStatus, totalIssues } = useValues(unifiedHealthMenuLogic)- const { needsAttention, needsUpdatingCount, sdkHealth } = useValues(sdkDoctorLogic)const { featureFlags } = useValues(featureFlagLogic)const pipelineStatusEnabled = !!featureFlags[FEATURE_FLAGS.PIPELINE_STATUS_PAGE]- const sdkDoctorTooltip = needsAttention- ? 'Needs attention'- : needsUpdatingCount > 0- ? 'Outdated SDKs found'- : 'SDK health is good'-- const hasSdkIssues = needsAttention || needsUpdatingCount > 0- const combinedBadgeContent =- postHogStatusBadgeContent === '!' || triggerBadgeContent === '!' || hasSdkIssues ? '!' : '✓'+ const combinedBadgeContent = postHogStatusBadgeContent === '!' || triggerBadgeContent === '!' ? '!' : '✓'const combinedBadgeStatus: 'danger' | 'warning' | 'success' =- postHogStatusBadgeStatus === 'danger' || triggerBadgeStatus === 'danger' || hasSdkIssues+ postHogStatusBadgeStatus === 'danger' || triggerBadgeStatus === 'danger'? 'danger': postHogStatusBadgeStatus === 'warning' || triggerBadgeStatus === 'warning'? 'warning'@@ -233,24 +224,6 @@ const UnifiedHealthMenu = ({ iconOnly = false }: { iconOnly?: boolean }): JSX.El</Link>)}/>- <Menu.Item- render={(props) => (- <Link- {...props}- to={urls.sdkDoctor()}- buttonProps={{ menuItem: true }}- tooltip={sdkDoctorTooltip}- tooltipPlacement="right"- tooltipCloseDelayMs={0}- data-attr="health-menu-sdk-doctor-button"- >- <IconWithBadge size="xsmall" content={needsUpdatingCount > 0 ? '!' : '✓'} status={sdkHealth}>- <IconCode className="size-5" />- </IconWithBadge>- SDK Doctor- </Link>- )}- />{pipelineStatusEnabled && (<Menu.Itemrender={(props) => (