: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
feat(replay-vision): show observation thumbnails in the watch feed (#103816)
Tue Haulund814c49bf1b2a
diff --git a/frontend/snapshots.yml b/frontend/snapshots.ymlindex 2353eb662370..7ae59f2668bc 100644--- a/frontend/snapshots.yml+++ b/frontend/snapshots.yml@@ -10145,9 +10145,9 @@ snapshots:scenes-app-project-homepage--project-homepage--light:hash: v1.k794b7964.45567c13e93e1def5dabfea7b6a4a5a47253482e6dd5c587be257ae5b9374639.IC346vxEHrTKcFor0vVTajrOk8lCGCu3C5pdFW2iTOQscenes-app-replay-vision--home-watch-feed--dark:- hash: v1.k794b7964.22279d36c1bfffe869426e3ff46a04fd8ecb86d23583a48a9abb14ef349020b5.p2vh9sQxAIkkqJfzQ3V8AZn9rVUa11zMRLm23MVqppo+ hash: v1.k794b7964.ba35d07f2e854eb9babb15b72c37b3ba3866903b3e563bc325a5300f1aab24a0.hkqPKVLRDXp1A3DTGlwRrQaJwLSEwrUrH-VDgR9CL3Ascenes-app-replay-vision--home-watch-feed--light:- hash: v1.k794b7964.48eaa73ef214aee024a250acc3132c5ca5e6435a45829db8b818b1e998ec2796.RuTKkzL4QVHg0ksX9rf7ahVB-uR_qksiQJwWGD4J5pY+ hash: v1.k794b7964.fc47453fe8d0dfb4ba4061ca3caada95c18c3a2cb58e128dcf3608cfc417a548.eBb1it9dG-OgovPJ1MWnuif2zxjIzBNZqe2Im56ZH-cscenes-app-replay-vision--home-watch-feed-empty--dark:hash: v1.k794b7964.c8b63e7c03105a6a22c7dfecc5fa98afb410af14180977eeb9907c2e57f43e29.9d0B-LDyKHrQ75wpveOo913SMTZvi2fe4RTJOrFtDM0scenes-app-replay-vision--home-watch-feed-empty--light:diff --git a/products/replay_vision/frontend/replay_scanners/components/WatchFeedCard.tsx b/products/replay_vision/frontend/replay_scanners/components/WatchFeedCard.tsxindex cb234a9fca11..4d57a67448c2 100644--- a/products/replay_vision/frontend/replay_scanners/components/WatchFeedCard.tsx+++ b/products/replay_vision/frontend/replay_scanners/components/WatchFeedCard.tsx@@ -1,7 +1,7 @@import { useActions } from 'kea'import { combineUrl, router } from 'kea-router'-import { IconPlay } from '@posthog/icons'+import { IconPlay, IconPlayFilled } from '@posthog/icons'import { LemonButton, LemonDivider, Link, Tooltip } from '@posthog/lemon-ui'import { TZLabel } from 'lib/components/TZLabel'@@ -11,6 +11,7 @@ import { sessionPlayerModalLogic } from 'scenes/session-recordings/player/modal/import { urls } from 'scenes/urls'import { CitedText, ObservationResultSummary, readResult } from '../../components/ObservationCard'+import { ObservationThumbnail } from '../../components/ObservationThumbnail'import { ScannerTypeBadge } from '../../components/ScannerTypeBadge'import type { ReplayObservationApi, WatchFeedItemApi, WatchFeedReasonApi } from '../../generated/api.schemas'import { OBSERVATION_ORIGIN_PARAM, WATCH_FEED_ORIGIN } from '../../utils/breadcrumbs'@@ -178,8 +179,11 @@ export function WatchFeedCard({ item, position }: WatchFeedCardProps): JSX.Eleme>{/* The thumbnail column spans the card's full height; everything else stacks beside it. */}<div className="hidden @md:flex w-48 shrink-0 flex-col gap-1">- <div className="h-24 rounded bg-surface-secondary border flex items-center justify-center relative">- <IconPlay className="text-2xl text-muted" />+ {/* The dot and the duration sit outside the poster, which clips its own overflow. */}+ <div className="relative">+ <ObservationThumbnail observation={observation}>+ <IconPlayFilled className="text-2xl text-brand-red drop-shadow" aria-hidden />+ </ObservationThumbnail>{!observation.viewed && (<Tooltip title="You haven't opened this observation yet"><span