Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(experiments): add Exposure column tooltip #27643

Merged
merged 2 commits into from
Jan 18, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 17 additions & 2 deletions frontend/src/scenes/experiments/ExperimentView/SummaryTable.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { IconInfo, IconRewindPlay } from '@posthog/icons'
import { LemonButton, LemonTable, LemonTableColumns, Tooltip } from '@posthog/lemon-ui'
import { LemonButton, LemonTable, LemonTableColumns, LemonTag, Tooltip } from '@posthog/lemon-ui'
import { useValues } from 'kea'
import { router } from 'kea-router'
import { EntityFilterInfo } from 'lib/components/EntityFilterInfo'
Expand Down Expand Up @@ -90,7 +90,22 @@ export function SummaryTable({
})
columns.push({
key: 'exposure',
title: 'Exposure',
title: (
<div className="inline-flex items-center space-x-1">
<div className="">Exposure</div>
<Tooltip
title={
<div>
The number of users who were exposed to this variant. By default, this is measured by
the count of <LemonTag type="option">$feature_flag_called</LemonTag> events per unique
user. Check your metric settings to confirm how this is measured.
</div>
}
>
<IconInfo className="text-muted-alt text-base" />
</Tooltip>
</div>
),
render: function Key(_, variant): JSX.Element {
const exposure = exposureCountDataForVariant(result, variant.key)
if (!exposure) {
Expand Down
Loading