: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): make replay vision scenes usable on mobile (#76378)
Arno Hillen542a47f989a4
diff --git a/frontend/snapshots.yml b/frontend/snapshots.ymlindex 2b30ae8086cd..12c9f18fbb13 100644--- a/frontend/snapshots.yml+++ b/frontend/snapshots.yml@@ -6946,18 +6946,70 @@ snapshots:hash: v1.k794b7964.224e8a5e493e290b4ae4bbc2e03034a73b2ecfce20c86bcde08eab86b57b712e.xYn7md33k3lh0Oj7If1WzYPDgW9aiqbZ4aux_4bhOUcscenes-app-project-homepage--project-homepage--light:hash: v1.k794b7964.2eafc7385bf39f5be7d4d6d0ad1b70897952bcf37a16bd3ae6c644716cd16d25.25OmRYioQX_VF2kc2AVnvYlE0yve6YNcY2FDdJwV5kE+ scenes-app-replay-vision--action-detail--dark:+ hash: v1.k794b7964.d76000a1feb3f28082551e89f3a02340040ed744c0edeb35c6cca25cb795e41d._M8t2vwEIBIVzcpgxphGPL8penTin9Rx5dFneAP3f1I+ scenes-app-replay-vision--action-detail--light:+ hash: v1.k794b7964.fddd31bad32538bf10702607095b988829efd15e59cac6be49b6e66cd6195c7b.mPfMwarDBO9E3fSs_hJMQImG6fzXNdfFuPKDgeuhrgM+ scenes-app-replay-vision--action-editor-alert--dark:+ hash: v1.k794b7964.3204d6ae31404bf3f33fcc79f4677be81f38de6f16e8ebd124996326a8030681.D8exff3-Oy2AM-UvFtlhRheKIOOOi162DVIgZcGviQE+ scenes-app-replay-vision--action-editor-alert--light:+ hash: v1.k794b7964.ee28763bea5b87190aa29033f4f606fced20ca3d7801a76ef54cd1c84bf06546.lDUEss5wCkOJco80RWv8QEAYh4cGfSBNZSdzqWTvs3A+ scenes-app-replay-vision--action-editor-digest--dark:+ hash: v1.k794b7964.f10b2e984137ba89cbce769c4a2e70ee63f688a3f34386a6f26ae54e4ada6603.DHaq-zm_hkjuih8RdvRIpEFDWLt2Cafz2QPu1HU5NJM+ scenes-app-replay-vision--action-editor-digest--light:+ hash: v1.k794b7964.ceb59d1eff8444a358ace1fa1be1fb082601fb8e054df969bd356f436f0c3b24.bTS0nweIvrWSkw-h_Q0Uy3UCKYj0MgUOQD_aMHSj1HY+ scenes-app-replay-vision--observation-detail--dark:+ hash: v1.k794b7964.d3fbcea617e7a146ed9e9bac43c3dc05e6a4dceff23ae43777f2d3c3e6a1d8d6.li21N7hWkm5OeaU6HoRR0TXOUFynF6dJWT1kQwsLCpc+ scenes-app-replay-vision--observation-detail--light:+ hash: v1.k794b7964.6fa71e0981942176d54c6c3ae7a408f89a874ffe9f5bd9ebaa5eff0555109b74.Gl2gvSnNMXaaiSoqu5RJIQwa-fe5An65LGg_uh-7R-I+ scenes-app-replay-vision--scanner-calibration--dark:+ hash: v1.k794b7964.466724aa8f93e012ae4eef9408b905ccca0503ad9c3fb83d166404e79e58cf24.iSSmrv7z3isqUmgqRo0TZxcshU-4yNWOF0vzlbCaUn4+ scenes-app-replay-vision--scanner-calibration--light:+ hash: v1.k794b7964.a9c683734afb2c23bed4af6bbb06ff9112a21d24e14c2cd41d7feaf337c1a01a.zoB_kIb2lsCw0fPapFEvjY0_nYuancAA5u7ToyWnlQs+ scenes-app-replay-vision--scanner-configuration--dark:+ hash: v1.k794b7964.743d310929077c6f9536dfc962dce2f27df811003c65cc516fd17d8f0b5eeecd.aW0-0vZESyFTHDpkkwh-h9qMuBPV_vSckCJPimIcCw0+ scenes-app-replay-vision--scanner-configuration--light:+ hash: v1.k794b7964.1206162998fff84813f6229193f0b899b1dd6070278daacf44aecc05221a93e7.ojPoX16jVxawSkCy296WSxvBu8RtOPQBH5RcaNX13hw+ scenes-app-replay-vision--scanner-digests--dark:+ hash: v1.k794b7964.cfb6e46fefd93430d17c650dfceeb62bc813855dd034c2a815db8559686dbeab.4iB6ZrgxCuEO7AoLgZCuqcAMX6eqMa42Fn3j6N6n5Xg+ scenes-app-replay-vision--scanner-digests--light:+ hash: v1.k794b7964.7160d1eb03abff790b4ed77db80e5913c3359d80bca9d7f6863321575816e639.Qq99zfKOxqgP8Eu0DmH_s3K_ekEAOzo8VZe7TZVn67I+ scenes-app-replay-vision--scanner-editor-configure--dark:+ hash: v1.k794b7964.1cc0c27cdf83b15db9f36fcbabf38a692224296826047ac4ec935eb40eeb06a7.RM_48ZnqUmHtmz-X0BsYOYldCPanZJNQ2iyrX-bAUis+ scenes-app-replay-vision--scanner-editor-configure--light:+ hash: v1.k794b7964.1dbf5da39c0ddfb7e3fabe0c3e835afb8877971c217f3b85463a303500232fbc.4VahQ5Y13gd2emGfYNL_ZIau1cICglZszxjAjKeBTig+ scenes-app-replay-vision--scanner-editor-triggers--dark:+ hash: v1.k794b7964.f3ba8840b00d2ad1cadba6bcc7e3394d5327327e2659676525564444c3502b5c.Cbr24do3OGZCDLPDZvcP8QXJnytpytSi4I8WB8cdz5s+ scenes-app-replay-vision--scanner-editor-triggers--light:+ hash: v1.k794b7964.6290a477de19d7988d1382b57a37856deb6dd7da4d84f4b9da7eb055fba9eb15.0GmcdgRPuECrbutxVWwXKFH7lH0FEgWBksR-kGwi8QE+ scenes-app-replay-vision--scanner-observations--dark:+ hash: v1.k794b7964.836bbeb03dc8a6a02c7489875920b0e0098cc696580490eb7163b36eb8e835f3.r_NXe4vOXdXkB7NxFQuoq9N4a3BlD6DMwP5HHCX4c70+ scenes-app-replay-vision--scanner-observations--light:+ hash: v1.k794b7964.1fab12ebf8c2d2d1e08b0e3227e7bad181d9e2ceae48887dc31e9e69a8cbd8bb.sXQJChzPj8ntCrbu1aAZWuxpu9OJYBbOINykErLaeQo+ scenes-app-replay-vision--scanner-on-demand--dark:+ hash: v1.k794b7964.28d2e6262234073c713fa9d589a87c901380463ee20c3a716ef64d61fec1b838.0KN54tARtI6lbifsHuYDgc7wHtMokFDGIEOWVLJ-HSk+ scenes-app-replay-vision--scanner-on-demand--light:+ hash: v1.k794b7964.c7fb3bef0e6746a00dee5acf2ea13684f9ceaafbf719a292c7c83ba6f1e66ce0.wXTvBQVYYqTn1h9VeKathC07umJLHQVSRaSI95Ddupo+ scenes-app-replay-vision--scanner-templates--dark:+ hash: v1.k794b7964.17c86de8d508a20a261eae92f8a15cc20596e99e1db5876faa2d63df29e1ee71.qcH7P7zDlzB08Qjywje_-GwRH7bAIYLeE6VLPkZDoZY+ scenes-app-replay-vision--scanner-templates--light:+ hash: v1.k794b7964.6c5b4b711fb1af56d29b5788348313d5a963e8f90c672a11ebc1d1e059884cb0.5vN5Bjf0TpzXvT_4cvpisjrfxVaveVdzA0_OALSdeEQscenes-app-replay-vision--scanners-list--dark:- hash: v1.k794b7964.c7d4eef5eaeda5b9784039a6b70c0d883567f4003504cdc600672407b846aed9.TmqvlGFuTRANDAG5NUWvJT9qYZ4ixI0t7nlG6Dq7eYQ+ hash: v1.k794b7964.fe74e30886a706a374e6db2af3a0440431d905e3e136264764d7018a3e2d89dc.Hs3f7Da68hnp-yX2tsgGGvdUfUdlxQ42XkUvyNz2s90scenes-app-replay-vision--scanners-list--light:- hash: v1.k794b7964.99f5f4499dca089b44d7bce7dee60424c7bdeefb860a8882d5ca8cbf06abce69.MHJZLg5-Q8USBaHeY-N_hqBMtEfuRArXAsAgnwEk4gs+ hash: v1.k794b7964.f81504d48648f19b21f7ddf2c9442c52455bce5c48588959e5acff070ef8b69b.5pAS22um-Wki-ODtTjOw0D7ovzkk5OnD4lRBF4SbHtUscenes-app-replay-vision--startup-program-cap--dark:- hash: v1.k794b7964.01d5414d5bee2c03544970d601b94f151deb98e471639d0564872cd8f7bba2ed.Rh9iqIwvltkj-mDCKnLOMm6hLerDbP61TvR1mL-hKR0+ hash: v1.k794b7964.8367876fddc832954af0b927548951f2711b7ee98214495d221f30fc989b5e13.2X1TO-5JaluuEgdt2Rc3Qob82PcAh43pY3TXGsgABrkscenes-app-replay-vision--startup-program-cap--light:- hash: v1.k794b7964.e8d4fcf9e0a4ceede4a5de71eedcd1e55f78f575c63c5a03a0e031618a68d3c1.l4eQH8X-BzhBVFmCNPcRiBMT3gGCcP5HgscW8SnPF44+ hash: v1.k794b7964.b2e710513a3149bccd40a22fbe4ffa39df894867fd3effe4f56e62ba5fe83191.dyUpi7RZ_RtETlr2s5fiamCtlRzY7fxcsrn9kGNdXwQscenes-app-replay-vision--summarizer-overview--dark:hash: v1.k794b7964.e5827be3112c9cb7af5526a41eb02da1c5ef1982eb9d2af887e0649119f8def5.-yMhrm4zkIgcYpOcdAKwqy1w5SEDHRXT5pTfaNENKFgscenes-app-replay-vision--summarizer-overview--light:hash: v1.k794b7964.f4cd388175bf16358030e2ad02abff949e1dccb34b702bb9ce8c4ce65ff32dfe.gfKH-mJ2VVS664K3yW1pg4gqSkPEBoFSspoe-446uOc+ scenes-app-replay-vision--usage-tab--dark:+ hash: v1.k794b7964.429ccd5a1e987dcb8a926235ec5fbc42aff44a7e31c4bd77350e1e9973c6a967.MsoyFWWe0o-nRFlSjOPCtN9RZJTumwrf-K2YtavaRUs+ scenes-app-replay-vision--usage-tab--light:+ hash: v1.k794b7964.85d659e73222f0bb92c219a62e3fd528944b726d0552ac8d4033db8a1f61f0f9.jA8LQgrGupRzw_50CApS1Ny8Pqy3-ZoFw7zU7a2oIq4scenes-app-saved-insights--empty-state--dark:hash: v1.k794b7964.43545664c9133c8afd354be6a6ed8f808c35b381101325d9605114632fcdc0c9.l8w9uEOEmrH6Xl1kNd9ueRtg_51cJUSjWLdjWDM0Fkoscenes-app-saved-insights--empty-state--light:diff --git a/frontend/src/lib/components/ProductIntroduction/ProductIntroduction.tsx b/frontend/src/lib/components/ProductIntroduction/ProductIntroduction.tsxindex 3404b9a88538..1306e718fcde 100644--- a/frontend/src/lib/components/ProductIntroduction/ProductIntroduction.tsx+++ b/frontend/src/lib/components/ProductIntroduction/ProductIntroduction.tsx@@ -125,8 +125,9 @@ export const ProductIntroduction = ({)}data-attr={`product-introduction-${thingName}`}>+ {/* Below md the copy starts in the top-right corner (no hog beside it), so only pull it up under the dismiss button from md on. */}{!isEmpty && (- <div className="flex justify-end -mb-6 -mt-2 -mr-2 relative z-10">+ <div className="flex justify-end md:-mb-6 -mt-2 -mr-2 relative z-10"><div><LemonButtonicon={<IconX />}diff --git a/products/replay_vision/frontend/components/ObservationsDock.tsx b/products/replay_vision/frontend/components/ObservationsDock.tsxindex 1e34a5ee432a..71ff53bd5615 100644--- a/products/replay_vision/frontend/components/ObservationsDock.tsx+++ b/products/replay_vision/frontend/components/ObservationsDock.tsx@@ -136,10 +136,10 @@ function ObservationsDockContent({ sessionId }: { sessionId: string }): JSX.Elemdata-attr="vision-observations-dock">{dockOpen && <Resizer {...resizerProps} />}- <div className="flex items-center gap-3 h-11 px-3 shrink-0">+ <div className="flex items-center gap-2 lg:gap-3 h-11 px-3 shrink-0"><ScannerPicker sessionId={sessionId} />{observations.length > 0 && (- <span className="text-muted text-sm">+ <span className="text-muted text-sm min-w-0 truncate">{observations.length} observation{observations.length === 1 ? '' : 's'}</span>)}diff --git a/products/replay_vision/frontend/observations/ReplayObservation.tsx b/products/replay_vision/frontend/observations/ReplayObservation.tsxindex a02da61f277f..fc6d69803ad1 100644--- a/products/replay_vision/frontend/observations/ReplayObservation.tsx+++ b/products/replay_vision/frontend/observations/ReplayObservation.tsx@@ -491,6 +491,7 @@ export function ReplayObservationSceneComponent(): JSX.Element {<LabeledRow label="Session"><Linkto={urls.sessionProfile(observation.session_id)}+ className="break-all lg:break-normal"data-attr="vision-observation-session-link">{observation.session_id}@@ -498,11 +499,14 @@ export function ReplayObservationSceneComponent(): JSX.Element {</LabeledRow><LabeledRow label="Person">{observation.distinct_id ? (- <Link to={urls.personByDistinctId(observation.distinct_id)}>+ <Link+ to={urls.personByDistinctId(observation.distinct_id)}+ className="break-all lg:break-normal"+ >{observation.recording_subject_email ?? observation.distinct_id}</Link>) : observation.recording_subject_email ? (- <span>{observation.recording_subject_email}</span>+ <span className="break-all lg:break-normal">{observation.recording_subject_email}</span>) : (<span className="text-muted">—</span>)}diff --git a/products/replay_vision/frontend/replay_scanners/ActionEditorScene.tsx b/products/replay_vision/frontend/replay_scanners/ActionEditorScene.tsxindex d77a591c45d5..a77f327e2b87 100644--- a/products/replay_vision/frontend/replay_scanners/ActionEditorScene.tsx+++ b/products/replay_vision/frontend/replay_scanners/ActionEditorScene.tsx@@ -109,7 +109,7 @@ function ScheduleSection(): JSX.Element {</LemonButton></div></div>- <div className="flex gap-1">+ <div className="flex flex-wrap gap-1">{WEEKDAY_PILLS.map((label, day) => (<LemonButtonkey={day}@@ -277,6 +277,7 @@ function TargetingSection({ scannerId }: { scannerId: string }): JSX.Element | n<h4 className="mb-0">What to summarize</h4><LemonSegmentedButtonsize="small"+ className="max-w-full overflow-x-auto"value={targetingMode}onChange={(mode) => setTargetingMode(mode)}options={[@@ -436,6 +437,7 @@ function ConditionSection({ scannerId }: { scannerId: string }): JSX.Element {<LemonSegmentedButtonsize="small"+ className="max-w-full overflow-x-auto"value={actionForm.alert_frequency}onChange={(value) => {setActionFormValue('alert_frequency', value)@@ -685,7 +687,7 @@ export function ActionEditorSceneComponent(): JSX.Element {return (<SceneContent><div className="flex flex-col items-center py-8">- <div className="w-full max-w-3xl px-4 flex flex-col gap-6">+ <div className="w-full max-w-3xl px-0 sm:px-4 flex flex-col gap-6"><SceneTitleSectionname={title}description={@@ -703,7 +705,7 @@ export function ActionEditorSceneComponent(): JSX.Element {enableFormOnSubmitclassName="w-full">- <div className="bg-bg-light border rounded-lg shadow-sm p-6 flex flex-col gap-4">+ <div className="bg-bg-light border rounded-lg shadow-sm p-4 sm:p-6 flex flex-col gap-4"><LemonField name="name" label="Name"><LemonInputplaceholder={isAlert ? 'Rage click alert' : 'Daily checkout digest'}diff --git a/products/replay_vision/frontend/replay_scanners/ReplayScannersScene.stories.tsx b/products/replay_vision/frontend/replay_scanners/ReplayScannersScene.stories.tsxindex e4d3886c462b..80fe3f209b2f 100644--- a/products/replay_vision/frontend/replay_scanners/ReplayScannersScene.stories.tsx+++ b/products/replay_vision/frontend/replay_scanners/ReplayScannersScene.stories.tsx@@ -10,9 +10,12 @@ import { StartupProgramLabel } from '~/types'import type {ObservationStatsApi,+ ReplayObservationApi,ReplayScannerApi,+ ReplayScannerPromptSuggestionApi,ScannerStatsResponseApi,UserBasicApi,+ VisionActionApi,VisionQuotaApi,} from '../generated/api.schemas'@@ -52,6 +55,9 @@ const scanner = (overrides: Partial<ReplayScannerApi> = {}): ReplayScannerApi =>updated_at: '2026-05-12T00:00:00Z',created_by: null,credits_this_month: 0,+ observations_this_month: 0,+ credits_per_observation: 1,+ user_access_level: 'editor',...overrides,}) as ReplayScannerApi@@ -64,6 +70,7 @@ const scanners = {id: '00000000-0000-0000-0000-00000000000a',name: 'Confused checkout',credits_this_month: 1250,+ observations_this_month: 1250,description: 'Flags sessions where the user hesitated at payment.',scanner_type: 'monitor',sampling_rate: 1,@@ -83,6 +90,7 @@ const scanners = {id: '00000000-0000-0000-0000-00000000000c',name: 'Session summary',credits_this_month: 5,+ observations_this_month: 5,scanner_type: 'summarizer',scanner_config: { prompt: 'Summarize this session.', length: 'medium' },sampling_rate: 0.05,@@ -92,6 +100,8 @@ const scanners = {id: '00000000-0000-0000-0000-00000000000d',name: 'Intent score',credits_this_month: 320,+ observations_this_month: 160,+ credits_per_observation: 2,scanner_type: 'scorer',scanner_config: { prompt: 'Score this session.', scale: { min: 0, max: 10 } },sampling_rate: 1,@@ -100,6 +110,17 @@ const scanners = {],}+const scannerStats: ScannerStatsResponseApi = {+ total: 4,+ enabled: 3,+ by_type: {+ monitor: { enabled: 1, total: 1 },+ classifier: { enabled: 0, total: 1 },+ scorer: { enabled: 1, total: 1 },+ summarizer: { enabled: 1, total: 1 },+ },+}+const quota: VisionQuotaApi = {credit_limit: 10000,credits_used: 2400,@@ -111,23 +132,12 @@ const quota: VisionQuotaApi = {period_end: '2026-06-01T00:00:00Z',}-const scannerStats: ScannerStatsResponseApi = {- total: 4,- enabled: 3,- by_type: {- monitor: { total: 1, enabled: 1 },- classifier: { total: 1, enabled: 0 },- scorer: { total: 1, enabled: 1 },- summarizer: { total: 1, enabled: 1 },- },-}-const summarizerScanner = scanners.results[2]const summarizerStats: ObservationStatsApi = {status_counts: { total: 148, succeeded: 142, failed: 4, ineligible: 2, in_flight: 0, success_rate: 0.97 },coverage: { recent_sessions: 142, total_sessions: 1840, recent_days: 14 },- labels: { up_total: 0, down_total: 0, by_day: [], by_rating_day: [], version_markers: [] },+ labels: { up_total: 8, down_total: 4, by_day: [], by_rating_day: [], version_markers: [] },available_tags: [],monitor: null,classifier: null,@@ -152,6 +162,251 @@ const summarizerStats: ObservationStatsApi = {},} as ObservationStatsApi+const scannerImpact = {+ affected_sessions: 1284,+ affected_users: 967,+ sessions_without_user: 41,+ window_days: 30,+}++const observation = (overrides: Partial<ReplayObservationApi> = {}): ReplayObservationApi =>+ ({+ id: '00000000-0000-0000-0000-0000000000b1',+ scanner_id: summarizerScanner.id,+ session_id: '01966b3f-70a1-7c52-a4d5-3f9b2e8c1d07',+ status: 'succeeded',+ error_reason: '',+ workflow_id: 'vision-observation-1',+ scanner_snapshot: {+ name: summarizerScanner.name,+ scanner_type: 'summarizer',+ scanner_version: 1,+ model: 'gemini-3.6-flash',+ provider: 'google',+ emits_signals: false,+ scanner_config: { prompt: 'Summarize this session.', length: 'medium' },+ },+ scanner_result: {+ model_output: {+ scanner_type: 'summarizer',+ confidence: 0.9,+ title: 'Checkout hesitation after coupon',+ summary:+ 'The user applied a coupon at checkout, hit a validation error twice, and abandoned the cart after retrying payment.',+ },+ signals_count: 0,+ },+ triggered_by: 'schedule',+ triggered_by_user: null,+ distinct_id: 'user_8f3k2j',+ recording_subject_email: '[email protected]',+ previous_observation_id: null,+ next_observation_id: null,+ label: null,+ started_at: '2026-05-11T09:00:00Z',+ completed_at: '2026-05-11T09:01:00Z',+ created_at: '2026-05-11T09:00:00Z',+ ...overrides,+ }) as ReplayObservationApi++const observations = {+ count: 4,+ next: null,+ previous: null,+ results: [+ observation(),+ observation({+ id: '00000000-0000-0000-0000-0000000000b2',+ session_id: '01966b3f-70a1-7c52-a4d5-3f9b2e8c1d08',+ recording_subject_email: 'very.long.customer.email.address@enterprise-customer-company-name.example.com',+ distinct_id: 'enterprise-user-with-a-very-long-distinct-id-8f3k2j9d2m1x',+ triggered_by: 'on_demand',+ triggered_by_user: alice,+ label: { is_correct: true, feedback: '' },+ }),+ observation({+ id: '00000000-0000-0000-0000-0000000000b3',+ session_id: '01966b3f-70a1-7c52-a4d5-3f9b2e8c1d09',+ status: 'failed',+ error_reason: 'provider_transient:The model timed out before returning a result.',+ scanner_result: null,+ recording_subject_email: null,+ distinct_id: null,+ }),+ observation({+ id: '00000000-0000-0000-0000-0000000000b4',+ session_id: '01966b3f-70a1-7c52-a4d5-3f9b2e8c1d10',+ recording_subject_email: '[email protected]',+ distinct_id: 'user_2m1x9d',+ label: { is_correct: false, feedback: 'Missed the failed payment retry entirely.' },+ }),+ ],+}++// Standalone detail-page observation with long unbroken identifiers, prev/next nav, and a rating.+const observationDetail = observation({+ id: '00000000-0000-0000-0000-0000000000d1',+ session_id: '01966b3f-70a1-7c52-a4d5-3f9b2e8c1d08',+ recording_subject_email: 'very.long.customer.email.address@enterprise-customer-company-name.example.com',+ distinct_id: 'enterprise-user-with-a-very-long-distinct-id-8f3k2j9d2m1x',+ previous_observation_id: '00000000-0000-0000-0000-0000000000b1',+ next_observation_id: '00000000-0000-0000-0000-0000000000b4',+ label: { is_correct: true, feedback: 'Good catch on the coupon error.' },+ scanner_result: {+ model_output: {+ scanner_type: 'summarizer',+ confidence: 0.87,+ title: 'Coupon validation loop at checkout',+ summary:+ 'The user spent most of the session in checkout, retrying an invalid coupon three times before abandoning the cart at the payment step.',+ },+ signals_count: 1,+ },+})++const promptSuggestion: ReplayScannerPromptSuggestionApi = {+ id: '00000000-0000-0000-0000-0000000000e1',+ status: 'pending',+ suggested_prompt:+ 'Summarize this session, calling out any checkout friction: coupon failures, payment retries, or abandoned carts. Keep it under three sentences.',+ base_prompt: 'Summarize this session.',+ base_config: { prompt: 'Summarize this session.', length: 'medium' },+ suggested_config: {+ prompt: 'Summarize this session, calling out any checkout friction: coupon failures, payment retries, or abandoned carts. Keep it under three sentences.',+ length: 'short',+ },+ changes: [+ {+ field: 'prompt',+ kind: 'prompt',+ op: 'set',+ before: 'Summarize this session.',+ after: 'Summarize this session, calling out any checkout friction: coupon failures, payment retries, or abandoned carts. Keep it under three sentences.',+ rationale: 'Thumbs-down ratings cluster on summaries that missed coupon and payment issues.',+ },+ {+ field: 'length',+ kind: 'length',+ op: 'set',+ before: 'medium',+ after: 'short',+ rationale: 'Raters marked longer summaries as less helpful.',+ },+ ],+ rationale:+ 'Ratings show summaries skip checkout friction; the rewrite calls it out explicitly and shortens the output.',+ based_on_up: 8,+ based_on_down: 4,+ scanner_version: 1,+ created_at: '2026-05-11T10:00:00Z',+ created_by: alice,+ applied_at: null,+ applied_by: null,+ evaluation: null,+} as ReplayScannerPromptSuggestionApi++const digestAction: VisionActionApi = {+ id: '00000000-0000-0000-0000-0000000000f1',+ name: 'Daily checkout digest',+ scanner: summarizerScanner.id,+ enabled: true,+ is_scanner_digest: true,+ trigger_type: 'schedule',+ mode: 'group_summary',+ trigger_config: { rrule: 'FREQ=DAILY;BYHOUR=9;BYMINUTE=0', timezone: 'UTC' },+ selection: {},+ synthesis_config: { prompt_guide: 'Lead with the most common friction point.' },+ delivery_config: [{ type: 'webhook', url: 'https://hooks.example.com/replay-vision' }],+ next_run_at: '2026-05-13T09:00:00Z',+ last_run_at: '2026-05-12T09:00:00Z',+ hog_flow_id: null,+ created_at: '2026-05-01T00:00:00Z',+ created_by: alice,+ updated_at: '2026-05-01T00:00:00Z',+} as VisionActionApi++const alertAction: VisionActionApi = {+ ...digestAction,+ id: '00000000-0000-0000-0000-0000000000f2',+ name: 'Coupon friction alert',+ is_scanner_digest: false,+ mode: 'alert',+ alert_config: { frequency: 'on_breach', metric: 'count', threshold: 10, direction: 'above', window_days: 1 },+ created_by: bob,+} as VisionActionApi++const actions = { count: 2, next: null, previous: null, results: [digestAction, alertAction] }++const completedRun = {+ id: '00000000-0000-0000-0000-0000000000a1',+ status: 'completed',+ scheduled_at: '2026-05-12T09:00:00Z',+ observation_count: 12,+ error_reason: null,+ is_recovery: false,+ created_at: '2026-05-12T09:00:05Z',+ updated_at: '2026-05-12T09:01:10Z',+}++const actionRuns = {+ count: 2,+ next: null,+ previous: null,+ results: [+ completedRun,+ {+ ...completedRun,+ id: '00000000-0000-0000-0000-0000000000a2',+ status: 'skipped',+ scheduled_at: '2026-05-11T09:00:00Z',+ observation_count: 0,+ error_reason: 'No new observations in the window.',+ },+ ],+}++const actionRunDetail = {+ ...completedRun,+ synthesized_markdown:+ '## Checkout friction, May 12\n\nCoupon validation failures dominated today [1][2]. Two sessions abandoned the cart after payment retries [3].',+ observations: [+ {+ index: 1,+ id: observations.results[0].id,+ session_id: observations.results[0].session_id,+ recording_subject_email: '[email protected]',+ title: 'Checkout hesitation after coupon',+ created_at: '2026-05-11T09:00:00Z',+ },+ {+ index: 2,+ id: observations.results[1].id,+ session_id: observations.results[1].session_id,+ recording_subject_email: 'very.long.customer.email.address@enterprise-customer-company-name.example.com',+ title: 'Coupon validation loop at checkout',+ created_at: '2026-05-11T10:00:00Z',+ },+ {+ index: 3,+ id: observations.results[3].id,+ session_id: observations.results[3].session_id,+ recording_subject_email: '[email protected]',+ title: 'Cart abandoned after payment retry',+ created_at: '2026-05-11T11:00:00Z',+ },+ ],+}++const estimate = {+ matched_sessions_in_window: 1840,+ window_days: 30,+ estimated_observations_per_month: 92,+ credits_per_observation: 1,+ estimated_credits_per_month: 92,+ other_enabled_scanners_monthly_credits: 5108,+ sampling_rate: 0.05,+}+// A daily observation volume so the chart has something to draw above the panels.const trendDays = ['2026-04-29',@@ -196,7 +451,34 @@ const meta: Meta = {mswDecorator({get: {'/api/projects/:team_id/vision/scanners/': scanners,+ '/api/projects/:team_id/vision/scanners/stats/': scannerStats,+ '/api/projects/:team_id/vision/scanners/creators/': { creators: [alice, bob] },'/api/projects/:team_id/vision/quota/': quota,+ '/api/projects/:team_id/vision/scanners/:id/': summarizerScanner,+ '/api/projects/:team_id/vision/scanners/:id/impact/': scannerImpact,+ '/api/projects/:team_id/vision/scanners/:id/observations/': observations,+ '/api/projects/:team_id/vision/scanners/:id/observations/stats/': summarizerStats,+ '/api/projects/:team_id/vision/scanners/:scannerId/prompt_suggestions/': {+ count: 1,+ next: null,+ previous: null,+ results: [promptSuggestion],+ },+ '/api/projects/:team_id/vision/scanners/:scannerId/prompt_suggestions/current/': {+ suggestion: promptSuggestion,+ stale: false,+ rated_count: 12,+ evaluation_session_cap: 25,+ },+ '/api/projects/:team_id/vision/actions/': actions,+ '/api/projects/:team_id/vision/actions/:id/': digestAction,+ '/api/projects/:team_id/vision/actions/:visionActionId/runs/': actionRuns,+ '/api/projects/:team_id/vision/actions/:visionActionId/runs/:id/': actionRunDetail,+ '/api/projects/:team_id/vision/observations/:id/': observationDetail,+ },+ post: {+ '/api/environments/:team_id/query/:query_kind/': observationsTrend,+ '/api/projects/:team_id/vision/scanners/estimate/': estimate,},}),],@@ -205,28 +487,75 @@ export default metaexport const ScannersList: StoryObj = {}+export const UsageTab: StoryObj = {+ parameters: { pageUrl: `${urls.replayVision()}?tab=usage` },+}+// Nothing else renders the summarizer's friction/keyword panels, so this story is what catches regressions there.export const SummarizerOverview: StoryObj = {+ parameters: { pageUrl: urls.replayVision(summarizerScanner.id) },+}++export const ScannerObservations: StoryObj = {+ parameters: { pageUrl: `${urls.replayVision(summarizerScanner.id)}?tab=observations` },+}++export const ScannerOnDemand: StoryObj = {+ parameters: { pageUrl: `${urls.replayVision(summarizerScanner.id)}?tab=on-demand` },+}++export const ScannerConfiguration: StoryObj = {+ parameters: { pageUrl: `${urls.replayVision(summarizerScanner.id)}?tab=configuration` },+}++// Renders the pending recommendation's diff and change cards plus the rating list.+export const ScannerCalibration: StoryObj = {+ parameters: { pageUrl: `${urls.replayVision(summarizerScanner.id)}?tab=calibration` },+}++export const ScannerDigests: StoryObj = {parameters: {- pageUrl: urls.replayVision(summarizerScanner.id),+ pageUrl: `${urls.replayVision(summarizerScanner.id)}?tab=actions`,+ featureFlags: [FEATURE_FLAGS.REPLAY_VISION, FEATURE_FLAGS.REPLAY_VISION_ACTIONS],},- decorators: [- mswDecorator({- get: {- '/api/projects/:team_id/vision/scanners/:id/': summarizerScanner,- '/api/projects/:team_id/vision/scanners/:id/observations/': {- count: 0,- next: null,- previous: null,- results: [],- },- '/api/projects/:team_id/vision/scanners/:id/observations/stats/': summarizerStats,- },- post: {- '/api/environments/:team_id/query/:query_kind/': observationsTrend,- },- }),- ],+}++export const ScannerTemplates: StoryObj = {+ parameters: { pageUrl: urls.replayVisionTemplates() },+}++export const ScannerEditorConfigure: StoryObj = {+ parameters: { pageUrl: urls.replayVisionScannerConfigure(summarizerScanner.id) },+}++export const ScannerEditorTriggers: StoryObj = {+ parameters: { pageUrl: urls.replayVisionScannerTriggers(summarizerScanner.id) },+}++export const ActionEditorAlert: StoryObj = {+ parameters: {+ pageUrl: urls.replayVisionActionNew(summarizerScanner.id, 'alert'),+ featureFlags: [FEATURE_FLAGS.REPLAY_VISION, FEATURE_FLAGS.REPLAY_VISION_ACTIONS],+ },+}++// Editing the digest exercises the schedule section (weekday pills, time controls).+export const ActionEditorDigest: StoryObj = {+ parameters: {+ pageUrl: urls.replayVisionActionEdit(digestAction.id),+ featureFlags: [FEATURE_FLAGS.REPLAY_VISION, FEATURE_FLAGS.REPLAY_VISION_ACTIONS],+ },+}++export const ActionDetail: StoryObj = {+ parameters: {+ pageUrl: urls.replayVisionAction(digestAction.id),+ featureFlags: [FEATURE_FLAGS.REPLAY_VISION, FEATURE_FLAGS.REPLAY_VISION_ACTIONS],+ },+}++export const ObservationDetail: StoryObj = {+ parameters: { pageUrl: urls.replayVisionObservation(observationDetail.id) },}// Billing hasn't clamped this org's limit yet, so the API still reports it as uncapped.diff --git a/products/replay_vision/frontend/replay_scanners/ReplayScannersScene.tsx b/products/replay_vision/frontend/replay_scanners/ReplayScannersScene.tsxindex 99ca2325f808..1e8c38e8a004 100644--- a/products/replay_vision/frontend/replay_scanners/ReplayScannersScene.tsx+++ b/products/replay_vision/frontend/replay_scanners/ReplayScannersScene.tsx@@ -330,9 +330,9 @@ export function ReplayScannersScene(): JSX.Element {) : null}<div className="flex flex-col gap-3">- <div className="flex items-center gap-2">+ <div className="flex flex-wrap items-center gap-2"><h3 className="font-semibold text-base m-0">Scanners</h3>- <div className="ml-auto flex items-center gap-2">+ <div className="ml-auto flex flex-wrap items-center gap-2"><LemonInputtype="search"placeholder="Search scanners..."diff --git a/products/replay_vision/frontend/replay_scanners/ScannerEditorScene.tsx b/products/replay_vision/frontend/replay_scanners/ScannerEditorScene.tsxindex 65e80b1c8a4d..3d2aca751cae 100644--- a/products/replay_vision/frontend/replay_scanners/ScannerEditorScene.tsx+++ b/products/replay_vision/frontend/replay_scanners/ScannerEditorScene.tsx@@ -64,17 +64,17 @@ const STEP_HEADERS: Record<{ hedgehog: JSX.Element; title: string; subtitle: string }> = {configure: {- hedgehog: <HedgehogMagnifyingGlass className="h-24 w-auto shrink-0" />,+ hedgehog: <HedgehogMagnifyingGlass className="h-16 sm:h-24 w-auto shrink-0" />,title: 'Configure your scanner',subtitle: 'What it looks for and how it analyzes recordings.',},triggers: {- hedgehog: <HedgehogConstruction2 className="h-24 w-auto shrink-0" />,+ hedgehog: <HedgehogConstruction2 className="h-16 sm:h-24 w-auto shrink-0" />,title: 'Set up scan conditions',subtitle: 'Pick which recordings to scan, and how often.',},self_driving: {- hedgehog: <HedgehogImTheDriver className="h-24 w-auto shrink-0" />,+ hedgehog: <HedgehogImTheDriver className="h-16 sm:h-24 w-auto shrink-0" />,title: 'Self-driving',subtitle: 'Close the loop: from findings to shipped fixes.',},@@ -182,7 +182,7 @@ export function ScannerEditorSceneComponent(): JSX.Element {enableFormOnSubmitclassName="max-w-4xl w-full mx-auto">- <div className="bg-bg-light border rounded-lg shadow-sm p-6 flex flex-col gap-6 [&_.Field--error_.input-like]:!border-danger">+ <div className="bg-bg-light border rounded-lg shadow-sm p-4 sm:p-6 flex flex-col gap-6 [&_.Field--error_.input-like]:!border-danger"><div className="flex items-center gap-3">{STEP_HEADERS[step].hedgehog}<div>@@ -297,7 +297,7 @@ function ConfigureStep(): JSX.Element {<div className="flex flex-col gap-1 items-start"><LemonField name="model" label="Model" className="items-start">- <LemonSelect value={scanner.model} options={MODEL_OPTIONS} />+ <LemonSelect className="max-w-full" value={scanner.model} options={MODEL_OPTIONS} /></LemonField><div className="text-xs text-muted">Newer models tend to produce higher-quality observations, but cost more per observation.@@ -373,7 +373,7 @@ function EditorFooter({{step === 'self_driving' && durationError ? (<div className="text-danger text-sm">{durationError}</div>) : null}- <div className="flex items-center justify-between">+ <div className="flex flex-wrap items-center justify-between gap-2">{/* First form step of a new scanner goes back to the template picker; a mid-flow step goes to theprevious visible step; editing's first step (configure, no template) has no back. */}{isNew && step === 'configure' ? (diff --git a/products/replay_vision/frontend/replay_scanners/ScannerEditorStepper.tsx b/products/replay_vision/frontend/replay_scanners/ScannerEditorStepper.tsxindex 1af9a785fada..49d5bd31ef18 100644--- a/products/replay_vision/frontend/replay_scanners/ScannerEditorStepper.tsx+++ b/products/replay_vision/frontend/replay_scanners/ScannerEditorStepper.tsx@@ -28,7 +28,7 @@ export function ScannerEditorStepper({const currentOrder = SCANNER_EDITOR_STEP_ORDER[currentStep]return (- <nav className="flex items-center justify-center" aria-label="Scanner editor progress">+ <nav className="flex flex-wrap items-center justify-center gap-y-1" aria-label="Scanner editor progress">{steps.map((stepKey, index) => {const step = { key: stepKey, label: STEP_LABELS[stepKey] }const stepOrder = SCANNER_EDITOR_STEP_ORDER[step.key]diff --git a/products/replay_vision/frontend/replay_scanners/components/ConfigChangeCards.tsx b/products/replay_vision/frontend/replay_scanners/components/ConfigChangeCards.tsxindex 2c1ed67b1a31..8f9990ad2707 100644--- a/products/replay_vision/frontend/replay_scanners/components/ConfigChangeCards.tsx+++ b/products/replay_vision/frontend/replay_scanners/components/ConfigChangeCards.tsx@@ -52,9 +52,10 @@ function SuggestionDiffPanes({onExpand?: () => void}): JSX.Element {return (- <div className="border rounded overflow-hidden">+ <div className="@container border rounded overflow-hidden"><div className="flex items-center border-b bg-surface-secondary text-xs font-medium">- <div className="flex-1 px-3 py-1.5 border-r">Current prompt</div>+ {/* Shown exactly when Monaco renders side by side: its inline flip is on editor width (renderSideBySideInlineBreakpoint), not the viewport. */}+ <div className="hidden @[480px]:block flex-1 px-3 py-1.5 border-r">Current prompt</div><div className="flex-1 px-3 py-1.5 flex items-center justify-between"><span>{editable ? 'New prompt (edit directly)' : 'New prompt'}</span>{onExpand && (@@ -78,7 +79,8 @@ function SuggestionDiffPanes({height={editorHeight}options={{renderSideBySide: true,- useInlineViewWhenSpaceIsLimited: false,+ useInlineViewWhenSpaceIsLimited: true,+ renderSideBySideInlineBreakpoint: 480,// Keep both panes at exactly half width on resize, in lockstep with the header row.enableSplitViewResizing: false,splitViewDefaultRatio: 0.5,@@ -267,6 +269,7 @@ function FieldValueEditor({if (kind === 'length') {return (<LemonSegmentedButton+ className="max-w-full overflow-x-auto"options={SUMMARIZER_LENGTH_OPTIONS}value={value as SummarizerScannerConfig['length']}onChange={onChange}@@ -464,8 +467,8 @@ export function ConfigChangeCards({)}{structuredFields.length > 0 && (<div className="relative flex flex-col gap-4">- <div className="absolute inset-y-4 left-1/2 border-l" aria-hidden />- <div className="grid grid-cols-2 gap-10 text-xs font-medium text-muted">+ <div className="hidden sm:block absolute inset-y-4 left-1/2 border-l" aria-hidden />+ <div className="hidden sm:grid grid-cols-2 gap-10 text-xs font-medium text-muted"><span>Current</span><span>New</span></div>@@ -477,7 +480,10 @@ export function ConfigChangeCards({? [...((base[field] as string[]) ?? []), ...((suggested[field] as string[]) ?? [])]: []return (- <div key={field} className="grid grid-cols-2 gap-10 items-start">+ <div+ key={field}+ className="grid grid-cols-1 gap-2 sm:grid-cols-2 sm:gap-10 items-start"+ ><div><div className="text-xs text-muted mb-1">{label}</div><FieldCurrentValue kind={kind} value={base[field]} />diff --git a/products/replay_vision/frontend/replay_scanners/components/ScannerCalibrationTab.tsx b/products/replay_vision/frontend/replay_scanners/components/ScannerCalibrationTab.tsxindex 44fe2f51c461..058bfbc9c7f1 100644--- a/products/replay_vision/frontend/replay_scanners/components/ScannerCalibrationTab.tsx+++ b/products/replay_vision/frontend/replay_scanners/components/ScannerCalibrationTab.tsx@@ -397,7 +397,7 @@ function ConfigRecommendationPanel({ scannerId }: { scannerId: string }): JSX.El)}<div className="flex flex-wrap items-center justify-between gap-2"><SuggestionMeta suggestion={currentSuggestion} />- <div className="flex items-center gap-2">+ <div className="flex flex-wrap items-center gap-2">{currentSuggestion.status === 'pending' && evaluationSupported && (<LemonButtonsize="small"@@ -713,7 +713,7 @@ function RatingsOverTimePanel({ scannerId }: { scannerId: string }): JSX.Element<Tooltipkey={badge.version}title={- <div className="space-y-1 max-w-100">+ <div className="space-y-1 max-w-[90vw] sm:max-w-100"><div className="font-semibold">Prompt v{badge.version} · active from {badge.label}</div>@@ -942,7 +942,7 @@ export function ScannerCalibrationTab({ scannerId }: { scannerId: string }): JSX<RatingsOverTimePanel scannerId={scannerId} /><div className="space-y-3">- <div className="flex items-start gap-3">+ <div className="flex flex-wrap items-start gap-3"><div><h3 className="font-semibold text-base m-0">Rate results</h3><p className="text-muted text-xs m-0 mt-0.5">diff --git a/products/replay_vision/frontend/replay_scanners/components/ScannerObservationsTable.tsx b/products/replay_vision/frontend/replay_scanners/components/ScannerObservationsTable.tsxindex 1fb7540d28e9..a2962e8c2e7e 100644--- a/products/replay_vision/frontend/replay_scanners/components/ScannerObservationsTable.tsx+++ b/products/replay_vision/frontend/replay_scanners/components/ScannerObservationsTable.tsx@@ -231,17 +231,18 @@ export function ScannerObservationsTable({ scannerId }: { scannerId: string }):return (<div className="space-y-2">- <div className="flex items-center gap-3">+ {/* The one-line toolbar needs ~1120px of viewport, so it only stops wrapping at xl. */}+ <div className="flex flex-wrap items-center gap-3 xl:flex-nowrap"><h3 className="font-semibold text-base m-0">Observation history</h3>- <span className="text-muted text-sm whitespace-nowrap">+ <span className="text-muted text-sm xl:whitespace-nowrap">{observationStats.total.toLocaleString()} total ·{' '}<span className={observationStats.failed > 0 ? 'text-danger' : undefined}>{observationStats.failed.toLocaleString()} failed</span>{' '}· {observationStats.inFlight.toLocaleString()} in flight</span>- <div className="ml-auto flex items-center gap-3">- <div className="flex items-center gap-2">+ <div className="ml-auto flex flex-wrap items-center gap-3 xl:flex-nowrap">+ <div className="flex flex-wrap items-center gap-2 xl:flex-nowrap">{(observationStats.total > 0 || hasActiveObservationFilters) && (<><LemonInput@@ -250,7 +251,7 @@ export function ScannerObservationsTable({ scannerId }: { scannerId: string }):placeholder="Person email"value={observationSubjectFilter}onChange={setObservationSubjectFilter}- className="w-56"+ className="w-full sm:w-56"/><DateFiltersize="small"diff --git a/products/replay_vision/frontend/replay_scanners/components/ScannerOverview.tsx b/products/replay_vision/frontend/replay_scanners/components/ScannerOverview.tsxindex 7cacda40df5b..585b24356141 100644--- a/products/replay_vision/frontend/replay_scanners/components/ScannerOverview.tsx+++ b/products/replay_vision/frontend/replay_scanners/components/ScannerOverview.tsx@@ -92,7 +92,7 @@ function RankedTermList({{top.map(([term, count]) => (<div key={term} className="flex items-center gap-2">{/* Fixed-width label column so every bar shares the same left edge and their lengths stay comparable. */}- <div className="w-40 shrink-0 flex">+ <div className="w-24 sm:w-40 shrink-0 flex"><LemonTag type="option" title={term} className="max-w-full truncate">{term}</LemonTag>@@ -163,7 +163,7 @@ function ImpactOverview({ scannerId }: { scannerId: string }): JSX.Element | nul}return (<OverviewPanel title="Impact" subtitle={`last ${overviewImpact.window_days} days`} fill>- <div className="flex items-center justify-between gap-4">+ <div className="flex flex-wrap items-center justify-between gap-4"><div className="text-sm">Matched{' '}<strong className="tabular-nums">{overviewImpact.affected_sessions.toLocaleString()}</strong>{' '}@@ -342,7 +342,7 @@ function ScorerOverview({ scannerId }: { scannerId: string }): JSX.Element {theme={theme}/></div>- <div className="flex justify-between gap-4 text-xs text-muted tabular-nums pt-1 border-t">+ <div className="flex flex-wrap justify-between gap-x-4 gap-y-1 text-xs text-muted tabular-nums pt-1 border-t"><span>min {scorerSummary.min.toFixed(1)}</span><span>median {scorerSummary.median.toFixed(1)}</span><span>avg {scorerSummary.mean.toFixed(1)}</span>diff --git a/products/replay_vision/frontend/replay_scanners/components/ScannerQuotaForecast.tsx b/products/replay_vision/frontend/replay_scanners/components/ScannerQuotaForecast.tsxindex 4b19ecf1d091..8bf2b57753e6 100644--- a/products/replay_vision/frontend/replay_scanners/components/ScannerQuotaForecast.tsx+++ b/products/replay_vision/frontend/replay_scanners/components/ScannerQuotaForecast.tsx@@ -105,7 +105,7 @@ export function ScannerQuotaForecast({ scannerId }: Props): JSX.Element | null {)}</div>- <div className="flex items-baseline justify-between gap-3">+ <div className="flex flex-col gap-1 sm:flex-row sm:items-baseline sm:justify-between sm:gap-3">{projectedCredits !== null ? (<div className="text-base font-semibold tabular-nums flex items-center gap-2"><span>@@ -162,7 +162,7 @@ export function ScannerQuotaForecast({ scannerId }: Props): JSX.Element | null {}`}/></Tooltip>- <div className="flex items-center gap-3 text-xs text-muted">+ <div className="flex flex-wrap items-center gap-x-3 gap-y-1 text-xs text-muted"><QuotaMeterLegendItem barClass={QUOTA_METER_FREE_CLASS} width={freeWidth}>Free</QuotaMeterLegendItem>diff --git a/products/replay_vision/frontend/replay_scanners/components/ScannerRunTab.tsx b/products/replay_vision/frontend/replay_scanners/components/ScannerRunTab.tsxindex 2352281e7002..c4e23536dbfc 100644--- a/products/replay_vision/frontend/replay_scanners/components/ScannerRunTab.tsx+++ b/products/replay_vision/frontend/replay_scanners/components/ScannerRunTab.tsx@@ -58,7 +58,7 @@ function ScanBySessionId({ scannerId }: { scannerId: string }): JSX.Element {Paste the recording's session ID below.</p></div>- <div className="flex items-center gap-2">+ <div className="flex flex-col gap-2 sm:flex-row sm:items-center"><LemonInputvalue={sessionId}onChange={setSessionId}diff --git a/products/replay_vision/frontend/replay_scanners/components/ScannerTriggers.tsx b/products/replay_vision/frontend/replay_scanners/components/ScannerTriggers.tsxindex 49bd253a56a5..9a5c685050ef 100644--- a/products/replay_vision/frontend/replay_scanners/components/ScannerTriggers.tsx+++ b/products/replay_vision/frontend/replay_scanners/components/ScannerTriggers.tsx@@ -128,7 +128,7 @@ export function ScannerTriggers({ scannerId }: { scannerId: string }): JSX.Elemeconst durationError = durationFilterError(durationFilter)return (<LemonCard hoverEffect={false} className="p-3 space-y-3">- <div className="flex items-start justify-between gap-2">+ <div className="flex flex-wrap items-start justify-between gap-2"><div className="space-y-1"><LemonLabel>Recording filters</LemonLabel><div className="text-xs text-muted">@@ -307,6 +307,7 @@ export function ScannerTriggers({ scannerId }: { scannerId: string }): JSX.Eleme</div><div className="space-y-1"><LemonSegmentedButton+ className="max-w-full overflow-x-auto"value={mode}onChange={onChange}options={SAMPLING_MODE_OPTIONS.map((o) => ({ value: o.value, label: o.label }))}diff --git a/products/replay_vision/frontend/replay_scanners/components/ScannerTypeConfigEditor.tsx b/products/replay_vision/frontend/replay_scanners/components/ScannerTypeConfigEditor.tsxindex 1f788c616e7d..382840609399 100644--- a/products/replay_vision/frontend/replay_scanners/components/ScannerTypeConfigEditor.tsx+++ b/products/replay_vision/frontend/replay_scanners/components/ScannerTypeConfigEditor.tsx@@ -84,7 +84,7 @@ function ScannerPromptField({return (<div className="space-y-2">- <div className="flex items-center justify-between gap-2">+ <div className="flex flex-wrap items-center justify-between gap-2"><label className="text-sm font-medium">{label}</label>{openMax && (<LemonButton@@ -180,7 +180,7 @@ function ClassifierTagsField({ scannerId }: { scannerId: string }): JSX.Element<LemonFieldname="scanner_config.tags"label={- <span className="flex w-full items-center justify-between gap-2">+ <span className="flex w-full flex-wrap items-center justify-between gap-2">Tag vocabulary<LemonButtonsize="xsmall"@@ -229,7 +229,7 @@ export function ScannerTypeConfigEditor({ scannerId }: { scannerId: string }): Jplaceholder="e.g. This is a B2B analytics tool. Users usually come to build a dashboard — call out where they get stuck in that flow."/><LemonField name="scanner_config.length" label="Summary length">- <LemonSegmentedButton options={SUMMARIZER_LENGTH_OPTIONS} />+ <LemonSegmentedButton className="max-w-full overflow-x-auto" options={SUMMARIZER_LENGTH_OPTIONS} /></LemonField></div>)diff --git a/products/replay_vision/frontend/replay_scanners/components/VisionMetrics.tsx b/products/replay_vision/frontend/replay_scanners/components/VisionMetrics.tsxindex e016a428c603..dd7f37bbf62f 100644--- a/products/replay_vision/frontend/replay_scanners/components/VisionMetrics.tsx+++ b/products/replay_vision/frontend/replay_scanners/components/VisionMetrics.tsx@@ -75,9 +75,9 @@ export function VisionMetrics(): JSX.Element {)return (- <div className="flex flex-col lg:flex-row gap-4 h-96">- <div className="flex-1 bg-bg-light rounded p-4 flex flex-col InsightCard h-full">- <div className="flex items-start justify-between gap-2 mb-1">+ <div className="flex flex-col lg:flex-row gap-4 lg:h-96">+ <div className="flex-1 bg-bg-light rounded p-4 flex flex-col InsightCard h-full min-h-80 lg:min-h-0">+ <div className="flex flex-wrap items-start justify-between gap-2 mb-1"><h3 className="text-base font-semibold m-0">Observations over time</h3><DateFilterdateFrom={chartDateFrom}@@ -186,7 +186,7 @@ export function VisionMetrics(): JSX.Element {label={`Projected ${percentLabel}% of the monthly spend limit`}/></Tooltip>- <div className="flex items-center gap-3 text-xs text-muted mt-1.5">+ <div className="flex flex-wrap items-center gap-3 text-xs text-muted mt-1.5"><QuotaMeterLegendItem barClass={QUOTA_METER_FREE_CLASS} width={freeWidth}>Free</QuotaMeterLegendItem>diff --git a/products/replay_vision/frontend/replay_scanners/components/VisionUsageTab.tsx b/products/replay_vision/frontend/replay_scanners/components/VisionUsageTab.tsxindex b07dd201c9a9..00567ccae980 100644--- a/products/replay_vision/frontend/replay_scanners/components/VisionUsageTab.tsx+++ b/products/replay_vision/frontend/replay_scanners/components/VisionUsageTab.tsx@@ -227,10 +227,10 @@ export function VisionUsageTab(): JSX.Element {return (<div className="flex flex-col gap-4">- <div className="bg-bg-light rounded p-4 flex flex-col InsightCard h-80">- <div className="flex items-center justify-between gap-2 mb-1">+ <div className="bg-bg-light rounded p-4 flex flex-col InsightCard min-h-80 lg:h-80">+ <div className="flex flex-wrap items-center justify-between gap-2 mb-1"><h3 className="text-base font-semibold m-0">Spend over time</h3>- <div className="flex items-center gap-3">+ <div className="flex flex-wrap items-center gap-3">{quota && (<Tooltip title={spendTooltip}><span className="text-xs text-muted tabular-nums">