Skip to content

Commit

Permalink
chore(experiments): add Exposure column tooltip (#27643)
Browse files Browse the repository at this point in the history
Co-authored-by: Daniel Bachhuber <[email protected]>
  • Loading branch information
jurajmajerik and danielbachhuber authored Jan 18, 2025
1 parent 30a62c9 commit 921b310
Showing 1 changed file with 17 additions and 2 deletions.
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

0 comments on commit 921b310

Please sign in to comment.