: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
fix(error-tracking): stop spike detection panel hijacking settings nav (#81215)
posthog[bot]07fe11bc0c67
diff --git a/products/error_tracking/frontend/components/IntegrationsMovedBanner.tsx b/products/error_tracking/frontend/components/IntegrationsMovedBanner.tsxindex ba3bb76bc61c..c8cb69188689 100644--- a/products/error_tracking/frontend/components/IntegrationsMovedBanner.tsx+++ b/products/error_tracking/frontend/components/IntegrationsMovedBanner.tsx@@ -1,17 +1,20 @@-import { LemonBanner, Link } from '@posthog/lemon-ui'+import { LemonBanner } from '@posthog/lemon-ui'import { urls } from 'scenes/urls'export function IntegrationsMovedBanner(): JSX.Element {return (- <LemonBanner type="info" className="mb-2">+ <LemonBanner+ type="info"+ className="mb-2"+ action={{+ children: 'Go to project settings',+ to: urls.settings('environment-error-tracking', 'error-tracking-integrations'),+ }}+ ><p><strong>Looking for integrations?</strong> Integrations for connecting error tracking with external- services like GitHub or Linear have moved to{' '}- <Link to={urls.settings('environment-error-tracking', 'error-tracking-integrations')}>- Project settings → Error tracking- </Link>- .+ services like GitHub or Linear have moved to project settings.</p></LemonBanner>)diff --git a/products/error_tracking/frontend/scenes/ErrorTrackingConfigurationScene/spike_detection/SpikeDetectionSettings.tsx b/products/error_tracking/frontend/scenes/ErrorTrackingConfigurationScene/spike_detection/SpikeDetectionSettings.tsxindex 73215c1c4952..525fda3b5af5 100644--- a/products/error_tracking/frontend/scenes/ErrorTrackingConfigurationScene/spike_detection/SpikeDetectionSettings.tsx+++ b/products/error_tracking/frontend/scenes/ErrorTrackingConfigurationScene/spike_detection/SpikeDetectionSettings.tsx@@ -16,10 +16,13 @@ import { spikeDetectionConfigLogic } from './spikeDetectionConfigLogic'export function SpikeDetectionSettings(): JSX.Element {const { configLoading, configFormChanged, isConfigFormSubmitting, hasSpikeAlerts } =useValues(spikeDetectionConfigLogic)+ // Must match the props the configuration tab mounts settingsLogic with. The logic is keyed on+ // logicKey alone, so a different sectionId here would rebuild the shared instance and break+ // panel navigation for every error tracking setting.const { selectSetting } = useActions(settingsLogic({logicKey: ERROR_TRACKING_LOGIC_KEY,- sectionId: 'environment-error-tracking',+ sectionId: 'environment-error-tracking-configuration',settingId: 'error-tracking-alerting',}))