: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): truncate observation id in details panel (#112844)
Kim Svatos Duganae51fca9b9e8
diff --git a/products/replay_vision/frontend/observations/ObservationDetails.tsx b/products/replay_vision/frontend/observations/ObservationDetails.tsxindex 1b10ac3c08d0..84b4504fcfcc 100644--- a/products/replay_vision/frontend/observations/ObservationDetails.tsx+++ b/products/replay_vision/frontend/observations/ObservationDetails.tsx@@ -42,14 +42,20 @@ export function ObservationDetails({ observation }: { observation: ReplayObserva{expanded && (<FactList><Fact label="Observation ID">- <CopyToClipboardInline- data-attr="vision-observation-copy"- explicitValue={observation.id}- iconSize="xsmall"- className="min-w-0"- >- <span className="font-mono text-xs truncate">{observation.id}</span>- </CopyToClipboardInline>+ {/* CopyToClipboardInline children cannot shrink, so the ID sits outside it to truncate. */}+ <div className="flex items-center min-w-0">+ <span className="font-mono text-xs truncate min-w-0" title={observation.id}>+ {observation.id}+ </span>+ <span className="shrink-0">+ <CopyToClipboardInline+ data-attr="vision-observation-copy"+ explicitValue={observation.id}+ description="observation ID"+ iconSize="xsmall"+ />+ </span>+ </div></Fact><Fact label="Session"><Link