: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(experiments): make exposure-event tooltip link reachable (#58261)
Paul D'Ambra8628e4b9acf5
diff --git a/frontend/src/scenes/experiments/ExperimentMetricForm.tsx b/frontend/src/scenes/experiments/ExperimentMetricForm.tsxindex de5d6366ecb6..02a922fd0f39 100644--- a/frontend/src/scenes/experiments/ExperimentMetricForm.tsx+++ b/frontend/src/scenes/experiments/ExperimentMetricForm.tsx@@ -313,6 +313,7 @@ export function ExperimentMetricForm({</>)}<Tooltip+ docLink="https://posthog.com/docs/experiments/exposures"title={<div className="space-y-2"><p>@@ -324,9 +325,6 @@ export function ExperimentMetricForm({? 'The exposure event is shared across all metrics in this experiment.': 'The exposure event will be configured at the experiment level and shared across all metrics.'}</p>- <Link to="https://posthog.com/docs/experiments/exposures">- Learn more in the docs- </Link></div>}>diff --git a/frontend/src/scenes/experiments/Metrics/Selectors.tsx b/frontend/src/scenes/experiments/Metrics/Selectors.tsxindex 552bb30e456e..022fc9816b42 100644--- a/frontend/src/scenes/experiments/Metrics/Selectors.tsx+++ b/frontend/src/scenes/experiments/Metrics/Selectors.tsx@@ -1,7 +1,7 @@import { useValues } from 'kea'import { IconInfo } from '@posthog/icons'-import { LemonInput, LemonSelect, LemonSelectOption, LemonSelectSection, Link } from '@posthog/lemon-ui'+import { LemonInput, LemonSelect, LemonSelectOption, LemonSelectSection } from '@posthog/lemon-ui'import { HogQLEditor } from 'lib/components/HogQLEditor/HogQLEditor'import { TaxonomicFilterGroupType } from 'lib/components/TaxonomicFilter/types'@@ -189,7 +189,7 @@ export function FunnelAttributionSelect({<div className="flex"><span>Attribution type</span><Tooltip- closeDelayMs={200}+ docLink="https://posthog.com/docs/product-analytics/funnels#attribution-types"title={<div className="deprecated-space-y-2"><div>@@ -210,12 +210,6 @@ export function FunnelAttributionSelect({</li><li>Specific step: only the property value seen at the selected step is chosen.</li></ul>- <div>- Read more in the{' '}- <Link to="https://posthog.com/docs/product-analytics/funnels#attribution-types">- documentation.- </Link>- </div></div>}>diff --git a/frontend/src/scenes/experiments/legacy/components/LegacyDataCollection.tsx b/frontend/src/scenes/experiments/legacy/components/LegacyDataCollection.tsxindex 8dd3200f1530..1eb56609b40b 100644--- a/frontend/src/scenes/experiments/legacy/components/LegacyDataCollection.tsx+++ b/frontend/src/scenes/experiments/legacy/components/LegacyDataCollection.tsx@@ -1,7 +1,7 @@import { useValues } from 'kea'import { IconInfo } from '@posthog/icons'-import { LemonDivider, Link, Tooltip } from '@posthog/lemon-ui'+import { LemonDivider, Tooltip } from '@posthog/lemon-ui'import { dayjs } from 'lib/dayjs'import { LemonProgress } from 'lib/lemon-ui/LemonProgress'@@ -221,6 +221,7 @@ export function LegacyDataCollection(): JSX.Element {<div className="deprecated-space-x-1 text-sm flex"><span>Minimum detectable effect</span><Tooltip+ docLink="https://posthog.com/docs/experiments/sample-size-running-time#minimum-detectable-effect-mde"title={<div className="deprecated-space-y-2"><div>@@ -231,15 +232,8 @@ export function LegacyDataCollection(): JSX.Element {To make things easier, we initially set this value to a reasonable default.However, we encourage you to review and adjust it based on your specific goals.</div>- <div>- Read more in the{' '}- <Link to="https://posthog.com/docs/experiments/sample-size-running-time#minimum-detectable-effect-mde">- documentation.- </Link>- </div></div>}- closeDelayMs={200}><IconInfo className="text-secondary text-base" /></Tooltip>diff --git a/frontend/src/scenes/experiments/legacy/components/LegacyFunnelAttributionSelect.tsx b/frontend/src/scenes/experiments/legacy/components/LegacyFunnelAttributionSelect.tsxindex 9e3ef3465560..2c6d0dba90d1 100644--- a/frontend/src/scenes/experiments/legacy/components/LegacyFunnelAttributionSelect.tsx+++ b/frontend/src/scenes/experiments/legacy/components/LegacyFunnelAttributionSelect.tsx@@ -1,6 +1,5 @@import { IconInfo } from '@posthog/icons'import { Tooltip } from '@posthog/lemon-ui'-import { Link } from '@posthog/lemon-ui'import { LemonSelect } from '@posthog/lemon-ui'import { FUNNEL_STEP_COUNT_LIMIT } from '~/scenes/insights/EditorFilters/FunnelsQuerySteps'@@ -28,7 +27,7 @@ export function LegacyFunnelAttributionSelect({<div className="flex"><span>Attribution type</span><Tooltip- closeDelayMs={200}+ docLink="https://posthog.com/docs/product-analytics/funnels#attribution-types"title={<div className="deprecated-space-y-2"><div>@@ -49,12 +48,6 @@ export function LegacyFunnelAttributionSelect({</li><li>Specific step: only the property value seen at the selected step is chosen.</li></ul>- <div>- Read more in the{' '}- <Link to="https://posthog.com/docs/product-analytics/funnels#attribution-types">- documentation.- </Link>- </div></div>}>diff --git a/frontend/src/scenes/feature-flags/FeatureFlagEvaluationContexts.tsx b/frontend/src/scenes/feature-flags/FeatureFlagEvaluationContexts.tsxindex 3e4e9d942982..87efc9b7ab51 100644--- a/frontend/src/scenes/feature-flags/FeatureFlagEvaluationContexts.tsx+++ b/frontend/src/scenes/feature-flags/FeatureFlagEvaluationContexts.tsx@@ -5,7 +5,6 @@ import { IconCheck, IconInfo, IconPencil, IconPlus, IconX } from '@posthog/iconsimport { LemonInputSelect } from 'lib/lemon-ui/LemonInputSelect'import { LemonTag } from 'lib/lemon-ui/LemonTag'-import { Link } from 'lib/lemon-ui/Link'import { Tooltip } from 'lib/lemon-ui/Tooltip'import { ButtonPrimitive } from 'lib/ui/Button/ButtonPrimitives'import { colorForString } from 'lib/utils'@@ -176,18 +175,8 @@ export function FeatureFlagEvaluationContexts({Evaluation contexts{(context === 'form' || isEditingContexts) && (<Tooltip- interactive- title={- <>- Control where this flag evaluates by matching SDK-declared contexts.{' '}- <Link- to="https://posthog.com/docs/feature-flags/evaluation-contexts"- target="_blank"- >- Learn more- </Link>- </>- }+ docLink="https://posthog.com/docs/feature-flags/evaluation-contexts"+ title="Control where this flag evaluates by matching SDK-declared contexts."><IconInfo className="text-xl text-secondary shrink-0" /></Tooltip>diff --git a/frontend/src/scenes/persons/GroupActorDisplay.tsx b/frontend/src/scenes/persons/GroupActorDisplay.tsxindex 1836f9512309..51fd229cfeb0 100644--- a/frontend/src/scenes/persons/GroupActorDisplay.tsx+++ b/frontend/src/scenes/persons/GroupActorDisplay.tsx@@ -18,17 +18,8 @@ export function GroupActorDisplay({ actor }: GroupActorDisplayProps): JSX.Elemen<div>Unidentified group{' '}<Tooltip- title={- <>- Group wasn't identified at the time of the event.{' '}- <Link- to="https://posthog.com/docs/product-analytics/group-analytics#how-to-create-groups"- target="_blank"- >- Learn more- </Link>- </>- }+ docLink="https://posthog.com/docs/product-analytics/group-analytics#how-to-create-groups"+ title="Group wasn't identified at the time of the event."><IconInfo className="text-secondary" /></Tooltip>diff --git a/frontend/src/scenes/persons/RelatedFeatureFlags.tsx b/frontend/src/scenes/persons/RelatedFeatureFlags.tsxindex 0751b41a93f3..b2ba3f563da6 100644--- a/frontend/src/scenes/persons/RelatedFeatureFlags.tsx+++ b/frontend/src/scenes/persons/RelatedFeatureFlags.tsx@@ -1,7 +1,7 @@import { useActions, useValues } from 'kea'import { IconInfo } from '@posthog/icons'-import { LemonInput, LemonSelect, LemonSnack, LemonTable, LemonTag, Link, Tooltip } from '@posthog/lemon-ui'+import { LemonInput, LemonSelect, LemonSnack, LemonTable, LemonTag, Tooltip } from '@posthog/lemon-ui'import { LemonTableColumns } from 'lib/lemon-ui/LemonTable'import { LemonTableLink } from 'lib/lemon-ui/LemonTable/LemonTableLink'@@ -93,6 +93,7 @@ export function RelatedFeatureFlags({ distinctId, groupTypeIndex, groups }: Prop<div className="inline-flex items-center deprecated-space-x-1"><div>Match evaluation</div><Tooltip+ docLink="https://posthog.com/docs/feature-flags/local-evaluation#step-3-evaluate-your-feature-flag"title={<div className="deprecated-space-y-2"><div>@@ -103,14 +104,10 @@ export function RelatedFeatureFlags({ distinctId, groupTypeIndex, groups }: Prop<div>If you are using local flag evaluation, you must ensure that you provide any personproperties, groups, or group properties used to evaluate the release conditions of- the flag. Read more in the{' '}- <Link to="https://posthog.com/docs/feature-flags/local-evaluation#step-3-evaluate-your-feature-flag">- documentation.- </Link>+ the flag.</div></div>}- closeDelayMs={200}><IconInfo className="text-secondary text-base ml-1" /></Tooltip>diff --git a/frontend/src/scenes/settings/organization/InviteModal.tsx b/frontend/src/scenes/settings/organization/InviteModal.tsxindex 00218b292edf..67ba8e91310d 100644--- a/frontend/src/scenes/settings/organization/InviteModal.tsx+++ b/frontend/src/scenes/settings/organization/InviteModal.tsx@@ -83,16 +83,8 @@ export function ProjectAccessSelector({ inviteIndex }: { inviteIndex: number }):<div className="flex items-center gap-2"><h4 className="text-sm font-medium mb-0">Project access</h4><Tooltip- title={- <span>- Give this user access to specific projects. These access controls will be applied when the- user accepts the invite and joins the organization. Learn more about{' '}- <Link to="https://posthog.com/docs/settings/access-control" target="_blank">- access controls- </Link>{' '}- in our docs.- </span>- }+ docLink="https://posthog.com/docs/settings/access-control"+ title="Give this user access to specific projects. These access controls will be applied when the user accepts the invite and joins the organization."><IconInfo className="text-muted-alt" /></Tooltip>