: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): update the reasoning sentence (#115383)
Hayne Ryu51472211da74
diff --git a/products/replay_vision/frontend/replay_scanners/components/WatchPickPreview.tsx b/products/replay_vision/frontend/replay_scanners/components/WatchPickPreview.tsxindex ca56a3b5d999..2f3ec08605f6 100644--- a/products/replay_vision/frontend/replay_scanners/components/WatchPickPreview.tsx+++ b/products/replay_vision/frontend/replay_scanners/components/WatchPickPreview.tsx@@ -6,7 +6,7 @@ import { ScannerTypeBadge } from '../../components/ScannerTypeBadge'import type { WatchFeedItemApi } from '../../generated/api.schemas'import { citedTextToPlainText } from '../../utils/citations'import { watchPickSummary } from '../watchPickSummary'-import { watchReasonCopy } from './WatchFeedCard'+import { watchFeedRowWhy } from './WatchFeedCard'export function WatchPickPreview({ item, className }: { item: WatchFeedItemApi; className?: string }): JSX.Element {const { observation, reason } = item@@ -22,7 +22,7 @@ export function WatchPickPreview({ item, className }: { item: WatchFeedItemApi;<span>·</span><TZLabel time={observation.created_at} showPopover={false} noStyles className="whitespace-nowrap" /></span>- <span className="text-xs leading-snug">{citedTextToPlainText(watchReasonCopy(reason), undefined)}</span>+ <span className="text-xs leading-snug">{citedTextToPlainText(watchFeedRowWhy(reason), undefined)}</span></div>)}diff --git a/products/replay_vision/frontend/replay_scanners/components/WatchPickRankedCard.tsx b/products/replay_vision/frontend/replay_scanners/components/WatchPickRankedCard.tsxindex 36a3fef3954c..8d99bd756c9f 100644--- a/products/replay_vision/frontend/replay_scanners/components/WatchPickRankedCard.tsx+++ b/products/replay_vision/frontend/replay_scanners/components/WatchPickRankedCard.tsx@@ -13,7 +13,7 @@ import { citedTextToPlainText } from '../../utils/citations'import { SCANNER_TYPE_TAG_TYPE } from '../types'import { type WatchPickSurface, watchPicksLogic } from '../watchPicksLogic'import { watchPickSummary } from '../watchPickSummary'-import { watchReasonCopy } from './WatchFeedCard'+import { watchFeedRowWhy } from './WatchFeedCard'import { WatchPickPreview } from './WatchPickPreview'import { WatchPickRankBadge } from './WatchPickRankBadge'@@ -46,7 +46,7 @@ export function WatchPickRankedCard({ item, position, surface, rank }: WatchPick<span className={cn('relative block overflow-hidden rounded', observation.viewed && 'opacity-60')}><ObservationThumbnail observation={observation} className="w-full rounded-none border-0"><span className="sr-only">- {title}. {citedTextToPlainText(watchReasonCopy(reason), undefined)}+ {title}. {citedTextToPlainText(watchFeedRowWhy(reason), undefined)}</span></ObservationThumbnail>{rank !== undefined && <WatchPickRankBadge rank={rank} />}diff --git a/products/replay_vision/frontend/replay_scanners/components/WatchPickRow.tsx b/products/replay_vision/frontend/replay_scanners/components/WatchPickRow.tsxindex 3bc0aa5fb8dc..120c0be6d9f0 100644--- a/products/replay_vision/frontend/replay_scanners/components/WatchPickRow.tsx+++ b/products/replay_vision/frontend/replay_scanners/components/WatchPickRow.tsx@@ -10,7 +10,7 @@ import type { WatchFeedItemApi } from '../../generated/api.schemas'import { citedTextToPlainText } from '../../utils/citations'import { type WatchPickSurface, watchPicksLogic } from '../watchPicksLogic'import { watchPickSummary } from '../watchPickSummary'-import { watchReasonCopy } from './WatchFeedCard'+import { watchFeedRowWhy } from './WatchFeedCard'import { WatchPickPreview } from './WatchPickPreview'import { WatchPickRankBadge } from './WatchPickRankBadge'@@ -62,7 +62,7 @@ export function WatchPickRow({ item, position, surface, isActive, rank }: WatchP/></span><span className="truncate text-xs font-normal text-secondary">- {citedTextToPlainText(watchReasonCopy(reason), undefined)}+ {citedTextToPlainText(watchFeedRowWhy(reason), undefined)}</span></span></span>