feat(experiments): use PersonModal for funnel instead of SampledSessionsModal.#53363
feat(experiments): use PersonModal for funnel instead of SampledSessionsModal.#53363rodrigoi wants to merge 4 commits intoexperiments/experiment-actors-queryfrom
Conversation
|
Warning This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
This stack of pull requests is managed by Graphite. Learn more about stacking. |
|
Size Change: +1.11 kB (0%) Total Size: 127 MB ℹ️ View Unchanged
|
|
🎭 Playwright report · View test results →
These issues are not necessarily caused by your changes. |
57325f2 to
286943e
Compare
63cc64d to
e5107cd
Compare
286943e to
d8a8270
Compare
|
…erson modal function.
e402a96 to
d444bf2
Compare
d806ab0 to
00c24f5
Compare
| // - Step 0 with legacy: can use sampled sessions, show hint if sessionData exists | ||
| // - Step > 0 with new feature: can use actors query, show hint | ||
| // - Step > 0 with legacy: can use sampled sessions, show hint if sessionData exists | ||
| const hasClickableData = hasActorsQueryFeature ? stepIndex > 0 : !!sessionData |
There was a problem hiding this comment.
The hasClickableData logic doesn't verify that experimentQuery exists when the feature flag is enabled. This will show the "Click to inspect actors" tooltip hint even when experimentQuery is undefined, causing the click handlers to do nothing (lines 133-134 check for experimentQuery existence).
// Should be:
const hasClickableData = hasActorsQueryFeature ? (stepIndex > 0 && !!experimentQuery) : !!sessionDataSimilarly, the cursor styles at lines 188-194 and 201-207 should also check for experimentQuery existence to avoid showing a pointer cursor when clicks won't work.
Spotted by Graphite
Is this helpful? React 👍 or 👎 to let us know.

Problem
When a user clicks a funnel metric or a details visualization, we show the corresponding
step_sessionsin the bespokeSampledSessionsModaldialog. This only shows information about persons who completed the step. This information is coming with the query results.Changes
We've updated the
StepBarcomponent to show different copy in the tooltip and to open aPersonsModalthat uses the newExperimentActorsQueryto show the correct group of persons based on the funnel step and the conversion condition. We are intentionally excluding the exposure event.This is hidden under a feature flag. Disabling the feature flag loads the original
SampledSessionsModal.How did you test this code?
👉 Stay up-to-date with PostHog coding conventions for a smoother review.
Publish to changelog?
Docs update