: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(replay-vision): show the popover's recordings as a headed section with pills (#127716)
Kim Svatos Dugan039bd1a31231
diff --git a/frontend/snapshots.yml b/frontend/snapshots.ymlindex e659e982c5de..8524c314de68 100644--- a/frontend/snapshots.yml+++ b/frontend/snapshots.yml@@ -15275,13 +15275,13 @@ snapshots:scenes-app-replay-vision-recordingtimeline--very-long-recording--light:hash: v1.k794b7964.a04715d7aa78cff8fcfb049420139f30f87ac31872679219f3ee7f4be8475cf2.RW9X9AswVQmbJBWPH6SLAV52RPjoUy5MIcCOXDIGeBMscenes-app-replay-vision-replayfiltersscannerpopover--all-new-recordings--dark:- hash: v1.k794b7964.08cc8aa558a5de23f4ed1306ad96af14729761554fce4cb505c6bf77e4360174.UfBYc1JFK9vfM6_t3rnC6RKmG8K_EXmySNpk0Ka19sg+ hash: v1.k794b7964.15592011f5c06432864a949f721e9580a8c9f0763e7cd1fe8c0804e0c9d0781e.dwsurkPHhS63bVQNopCI4naGPcoVzC2-aCUu9QguZ8sscenes-app-replay-vision-replayfiltersscannerpopover--all-new-recordings--light:- hash: v1.k794b7964.ad2fa34bb32b8f83ddd9dff95548bb82f9ea24b58c9502b620633e7ed1fd26fa.CItre1_4DH5y_Ewg62HwBoYBlJi4u49h7JGqvs5Deuw+ hash: v1.k794b7964.de4a3cb351a61cf07311748096107dbe8dc211cfea65cdec9024bf6121b3b6a7.eg65GNz1KuC-2Z3G0jn12-oyDZTAVPDl-c-plnYGTZwscenes-app-replay-vision-replayfiltersscannerpopover--with-filters--dark:- hash: v1.k794b7964.2a6736d2a3ec4972e36d3d0a4b9b693cd6c1301c4542fcb35b2108c6ebe39ed2.KDhm67EpypyqZcTOqmy5izF4WJaVokAdhf2eYmRI0wY+ hash: v1.k794b7964.059eac9c88afe5f0b25add080231ba1671ad32fc76d0b7ec970f3d8e317cd9c6.5dF_s3MTqRDIdgGou0Y5B3k76aqbh5L24z949PL1k4wscenes-app-replay-vision-replayfiltersscannerpopover--with-filters--light:- hash: v1.k794b7964.498913275afda254c5b42c2969da4f4b4521ef9850ee19fd666ca52595f6fde2.1fwBcq3d4CeG70mWC6BIPkQ-Zvvrn7NGtbV-g8JFO3k+ hash: v1.k794b7964.32069c3c2b71b3345dca1832585da07024e9ef7542abcdc8d74fd87d94f836dc._mjTc5-muU4PakvZcVs4LicyaBjIQIlNcab1JLgRKNwscenes-app-replay-vision-spendtrajectorychart--hits-the-limit--dark:hash: v1.k794b7964.cf96414912c6d8f0d73808db3f1d833c661d12b3b0449cdd49b95d4dc8059e80.3sA2mn18MksUWQQ4mq6wEPbkJhGP3O258Y6Q2fTWhgMscenes-app-replay-vision-spendtrajectorychart--hits-the-limit--light:diff --git a/products/replay_vision/frontend/replay_scanners/components/ReplayFiltersScannerPopover.tsx b/products/replay_vision/frontend/replay_scanners/components/ReplayFiltersScannerPopover.tsxindex d6b8ab7ca37a..23b7f8eff95b 100644--- a/products/replay_vision/frontend/replay_scanners/components/ReplayFiltersScannerPopover.tsx+++ b/products/replay_vision/frontend/replay_scanners/components/ReplayFiltersScannerPopover.tsx@@ -46,8 +46,8 @@ export function ReplayFiltersScannerPopover({ handoff }: { handoff: ScannerHando: null,} as unknown as ReplayScanner): []+ // The date range is never kept either, but "new recordings only" already says so.const notKept = [- 'the date range',...(handoff.pinnedSessionCount > 0 ? [pluralize(handoff.pinnedSessionCount, 'pinned recording')] : []),...(handoff.droppedCommentSearch ? ['the comment search'] : []),].join(', ')@@ -70,15 +70,12 @@ export function ReplayFiltersScannerPopover({ handoff }: { handoff: ScannerHando: 'Create a Replay vision scanner'}</div><div className="text-xs text-secondary">- A Replay vision scanner watches new session recordings for you.{' '}- {handoff.narrowsSessions- ? 'It starts from these filters, and PostHog AI can narrow them to fit what you ask.'- : 'With no filters, it starts from every new recording, and PostHog AI can narrow that to fit what you ask.'}+ A Replay vision scanner watches new session recordings for you.</div></div>- <div className="flex flex-col gap-1.5 rounded border border-dashed border-primary p-2">- <div className="text-xxs font-semibold uppercase text-secondary">Starts from these recordings</div>+ <div className="flex flex-col gap-1.5">+ <span className="text-sm font-semibold">Which recordings it watches</span><div className="flex flex-wrap gap-1">{filterGroups.length > 0 ? (filterGroups.flatMap((group) =>@@ -96,13 +93,9 @@ export function ReplayFiltersScannerPopover({ handoff }: { handoff: ScannerHando)}</div><div className="text-xs text-secondary">- Not kept: {notKept}. The Replay vision scanner starts from now.+ New recordings only. PostHog AI can narrow them to fit your goal.+ {notKept ? <span> Not kept: {notKept}.</span> : null}</div>- {!handoff.narrowsSessions ? (- <div className="text-xs text-secondary">- To watch only some recordings, close this and add a filter.- </div>- ) : null}</div><div className="flex flex-col gap-1">