: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(flags): point the feedback buttons at open-feedback surveys instead of NPS (#97058)
ruby childs7ee3b2f2a7f0
diff --git a/frontend/src/scenes/feature-flags/FeatureFlags.tsx b/frontend/src/scenes/feature-flags/FeatureFlags.tsxindex 06f4fef79ee1..12760f9455f1 100644--- a/frontend/src/scenes/feature-flags/FeatureFlags.tsx+++ b/frontend/src/scenes/feature-flags/FeatureFlags.tsx@@ -69,9 +69,9 @@ import { BULK_ARCHIVE_MAX_FLAGS, flagSelectionLogic } from './flagSelectionLogicimport { OverlayForNewFeatureFlagMenu } from './NewFeatureFlagMenu'import ProjectsGrid from './projects-grid/ProjectsGrid'-// "NPS - Feature Flags" in project 2: https://us.posthog.com/project/2/surveys/018bcec8-6cf5-0000-c724-a51a86a4e8b1-// The survey also self-triggers as a popover on feature flag URLs; this is the on-demand path.-const FEATURE_FLAGS_NPS_SURVEY_ID = '018bcec8-6cf5-0000-c724-a51a86a4e8b1'+// "Feature Flags open feedback" in project 2: https://us.posthog.com/project/2/surveys/01a08364-0b1f-0000-5d00-170b29838bc5+// Button-only: its URL condition never matches, so this button is the survey's sole entry point.+const FEATURE_FLAGS_FEEDBACK_SURVEY_ID = '01a08364-0b1f-0000-5d00-170b29838bc5'function FlagDescription({ name }: { name: string }): JSX.Element {const ref = useRef<HTMLDivElement | null>(null)@@ -789,7 +789,7 @@ export function FeatureFlags(): JSX.Element {actions={<><FeedbackSurveyButton- surveyId={FEATURE_FLAGS_NPS_SURVEY_ID}+ surveyId={FEATURE_FLAGS_FEEDBACK_SURVEY_ID}data-attr="feature-flags-feedback-button"/><AccessControlActiondiff --git a/products/experiments/frontend/scenes/ExperimentsScene.tsx b/products/experiments/frontend/scenes/ExperimentsScene.tsxindex b934ca01d444..21afe55aa591 100644--- a/products/experiments/frontend/scenes/ExperimentsScene.tsx+++ b/products/experiments/frontend/scenes/ExperimentsScene.tsx@@ -74,9 +74,9 @@ import {import { ExperimentsSettingsScene } from 'products/experiments/frontend/scenes/ExperimentsSettingsScene'import { ExperimentsSharedMetricsScene } from 'products/experiments/frontend/scenes/ExperimentsSharedMetricsScene'-// "NPS - Experiments" in project 2: https://us.posthog.com/project/2/surveys/01902c1f-6675-0000-913b-686c40c3a957-// The survey also self-triggers as a popover on experiment URLs; this is the on-demand path.-const EXPERIMENTS_NPS_SURVEY_ID = '01902c1f-6675-0000-913b-686c40c3a957'+// "Experiments open feedback" in project 2: https://us.posthog.com/project/2/surveys/01a08364-270e-0000-585b-147d32bf96ed+// Button-only: its URL condition never matches, so this button is the survey's sole entry point.+const EXPERIMENTS_FEEDBACK_SURVEY_ID = '01a08364-270e-0000-585b-147d32bf96ed'export const scene: SceneExport = {component: ExperimentsScene,@@ -577,7 +577,7 @@ export function ExperimentsScene(): JSX.Element {actions={<><FeedbackSurveyButton- surveyId={EXPERIMENTS_NPS_SURVEY_ID}+ surveyId={EXPERIMENTS_FEEDBACK_SURVEY_ID}data-attr="experiments-feedback-button"/>{tab !== ExperimentsTabs.SharedMetrics && tab !== ExperimentsTabs.Holdouts ? (