: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
feat(flags): clarify release-condition estimate tooltip (#60699)
Ben Leabe432032b4f7
diff --git a/frontend/src/scenes/feature-flags/FeatureFlagReleaseConditions.tsx b/frontend/src/scenes/feature-flags/FeatureFlagReleaseConditions.tsxindex 3fb0bb20b42d..9ce3f8f66235 100644--- a/frontend/src/scenes/feature-flags/FeatureFlagReleaseConditions.tsx+++ b/frontend/src/scenes/feature-flags/FeatureFlagReleaseConditions.tsx@@ -42,6 +42,7 @@ import {PropertyOperator,} from '~/types'+import { MATCHING_ESTIMATE_TOOLTIP } from './constants'import { featureFlagLogic } from './featureFlagLogic'import {FeatureFlagReleaseConditionsLogicProps,@@ -484,20 +485,7 @@ export function FeatureFlagReleaseConditions({})()}{' '}<span>of total {aggregationTargetName(group.aggregation_group_type_index)}.</span>{filters.aggregation_group_type_index == null && (- <Tooltip- title={- <>- A user may have{' '}- <Link- to="https://posthog.com/docs/data/persons#duplicate-person-profiles"- target="_blank"- >- multiple profiles- </Link>- </>- }- interactive- >+ <Tooltip title={MATCHING_ESTIMATE_TOOLTIP} interactive><IconInfo className="text-muted text-xs ml-0.5" /></Tooltip>)}diff --git a/frontend/src/scenes/feature-flags/FeatureFlagReleaseConditionsCollapsible.tsx b/frontend/src/scenes/feature-flags/FeatureFlagReleaseConditionsCollapsible.tsxindex e4c35dffcf11..685c9ae8dfe7 100644--- a/frontend/src/scenes/feature-flags/FeatureFlagReleaseConditionsCollapsible.tsx+++ b/frontend/src/scenes/feature-flags/FeatureFlagReleaseConditionsCollapsible.tsx@@ -71,6 +71,7 @@ import {import { INTENT_METADATA } from 'products/feature_flags/frontend/featureFlagTemplateConstants'+import { MATCHING_ESTIMATE_TOOLTIP } from './constants'import { EarlyExitIndicator } from './EarlyExitIndicator'import { FeatureFlagConditionDragHandle } from './FeatureFlagConditionDragHandle'import { FeatureFlagConditionWarning } from './FeatureFlagConditionWarning'@@ -685,20 +686,7 @@ const ConditionContent = ({})()}{(group.aggregation_group_type_index ??releaseFilters.aggregation_group_type_index) == null && (- <Tooltip- title={- <>- A user may have{' '}- <Link- to="https://posthog.com/docs/data/persons#duplicate-person-profiles"- target="_blank"- >- multiple profiles- </Link>- </>- }- interactive- >+ <Tooltip title={MATCHING_ESTIMATE_TOOLTIP} interactive><IconInfo className="text-muted text-xs ml-0.5" /></Tooltip>)}diff --git a/frontend/src/scenes/feature-flags/constants.ts b/frontend/src/scenes/feature-flags/constants.tsdeleted file mode 100644index 7cab4d283d46..000000000000--- a/frontend/src/scenes/feature-flags/constants.ts+++ /dev/null@@ -1,2 +0,0 @@-export const COHORT_BEHAVIORAL_LIMITATIONS_URL =- 'https://posthog.com/docs/feature-flags/common-questions#why-cant-i-use-a-cohort-with-behavioral-filters-in-my-feature-flag'diff --git a/frontend/src/scenes/feature-flags/constants.tsx b/frontend/src/scenes/feature-flags/constants.tsxnew file mode 100644index 000000000000..9bbab2edceac--- /dev/null+++ b/frontend/src/scenes/feature-flags/constants.tsx@@ -0,0 +1,22 @@+import { Link } from '@posthog/lemon-ui'++export const COHORT_BEHAVIORAL_LIMITATIONS_URL =+ 'https://posthog.com/docs/feature-flags/common-questions#why-cant-i-use-a-cohort-with-behavioral-filters-in-my-feature-flag'++export const MATCHING_ESTIMATE_TOOLTIP = (+ <>+ <div>+ A user may have{' '}+ <Link to="https://posthog.com/docs/data/persons#duplicate-person-profiles" target="_blank">+ multiple profiles+ </Link>+ </div>+ <div className="mt-1">+ Estimated from{' '}+ <Link to="https://posthog.com/docs/data/anonymous-vs-identified-events" target="_blank">+ identified users+ </Link>{' '}+ only. Anonymous visitors can still match this flag, so the actual number may be higher.+ </div>+ </>+)