: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): banner for launch and cleanup (#75374)
Hayne Ryub66795a7cafe
diff --git a/frontend/snapshots.yml b/frontend/snapshots.ymlindex 14e3a6fc12a1..aa9b8993efd2 100644--- a/frontend/snapshots.yml+++ b/frontend/snapshots.yml@@ -5111,41 +5111,41 @@ snapshots:replay-sharing--public-link--light:hash: v1.k794b7964.d91ab7adfa4ff899dd17edeaa6e5d969b1825cb00be6dc628f9c5d53dc170cb7.jJaRbKyICbUgqqyyBsVfxQw0_z-jptaoZWBTf9yrPV8replay-tabs-collections--recordings-play-lists--dark:- hash: v1.k794b7964.84352769425a46ee086f6b82c5d609529c48f7222542a9ebc09e530cd9ba3644.JBxeBXMDgZon_jirGR75dZdec_ZgEPjEh74aydGhUps+ hash: v1.k794b7964.e6c98b995e5dc2ba18304cbb80364e202c71c306ed541d15415d44a6f9a3d434.fodYlvZQNFSC8eqIV4IGZtRgcAsPXrdHaJiA4F7dtqoreplay-tabs-collections--recordings-play-lists--light:- hash: v1.k794b7964.d051636b78989023128834f7a2274f466ad2d06579bf339e963e4da37a2b6424.RPVJOUKUZK7IVANA-71LPWxbcnVF_p53XyNf3kAK-zs+ hash: v1.k794b7964.6c7ab9fdf07262ea78eeae769f1d887bbd5d608c756403a48d7658314be9f4c0.2RhbKwjf8b_1nF_gMsag7HZO53wUB1QqnEGbyx4hVjoreplay-tabs-home-failure--not-found--dark:- hash: v1.k794b7964.c84b1ebb135f6003270d19ae7b8f790fd023e08a7345fb0aa7ce6d6a0d550979.0omPdc4G926b5nLx94cnymopwnt-A4x7IfLavZkOIIk+ hash: v1.k794b7964.50b2aa64beb9416bfcf08fb4a345e228f4befd9ceca3b3f2c7eefcbccc1d9914.ZYFVnLXghCzY55VxgR5v41eeRcZXOJS2CzRMY3imlfEreplay-tabs-home-failure--not-found--light:- hash: v1.k794b7964.63f4edcf1afa31941d7fd4fe1cf6b2233335e5396691f5abfbeb5f32a5e77079.fT5YLbBCAptU85nyVbgAYp7DeiCCV6_bPb894JVNQFU+ hash: v1.k794b7964.3e243d8c986c40ac65ba7edd6c892973cce31e3aeac00f81f766c301ee25936e.xWQ_Z9Zez4uTIV7MNGsjVpxwzRlO6Nq_3HRcdN5Hl14replay-tabs-home-filters-banner--product-analytics-over-limit--dark:- hash: v1.k794b7964.e43831aab10f34ebb833d39856c8285ca3ec054b018c07a8eea2dc6551d12119.w0JYkgk5ujwBybY8356Xe93bi6ky_z7Skt5wuoRPX1g+ hash: v1.k794b7964.8a032685e18f663b1f70b12d45f50ba56da108de5a84e392029581d72121cc43.dddTK1LadvdgEI1N5so5jdSWMQekhvmZRem7Wfn6YTQreplay-tabs-home-filters-banner--product-analytics-over-limit--light:- hash: v1.k794b7964.e338b80ff0cdbd414dc92b76641efb7560f4be240c814a3ff995914f7a34ac5c.gjqnN9mJx2Z2iF34W3oG_UO6slLlN5qNY3XOfMsm0fY+ hash: v1.k794b7964.f882d38156ccabb73172ffb3a69df78472b7a6832b38b83e5fb0b9e931a003ae.Tv7hfpX1rx9ofpBBe-3jmGq3JUHtpt-InW6vz3cQc-Mreplay-tabs-home-filters-banner--product-analytics-under-limit--dark:- hash: v1.k794b7964.c4cc11f519896f1493409b60c0a04da6023d71a83374094c29c2666c65c205cf.aabEMRgGPdgSlwx4q2x34yULwzqiBwz2CI6LUyV5eak+ hash: v1.k794b7964.1ccc4fe37c735adb22c48d0bf90495e4c4a4a7d2280106f899a9c2c4d9a61a2c.39gfL5B7mmJeFx3BmxjmdycR38iTelvsqbgBciWG40Mreplay-tabs-home-filters-banner--product-analytics-under-limit--light:- hash: v1.k794b7964.1b0064609d6933870d97507fde03a00df873b2fd5c2c5396db1d6b37c4d3cef1._Cm5cCDaX-P4_4PnAI4QSlR13YJcEs85p94DHdhDEGM+ hash: v1.k794b7964.0900e50c7761063f03ce6891d68f710fa40fa8dd7461a52bce5a7827a67e6d67.RUg3fCBfkSoB_qfmh1wllRZUQY0ImY7CBx0_kW2flGQreplay-tabs-home-success--filters-expanded--dark:- hash: v1.k794b7964.7f58d696106b07e8b83f39ceadd4afedd2ea3b9f5f54ee830ac47ef892a491df.oro7TiUySJjhJ8DgIKv2MQa-3bli9EEwFGB4wjvw_Rw+ hash: v1.k794b7964.60e61ce304313fd105de0240b8c997f7097b56d3fc77e0945029e6f9856bd46b.YZ9pJzuMqjVMbGGgfRY1eQYznfQImxN0NIm4Qyz68AIreplay-tabs-home-success--filters-expanded--light:- hash: v1.k794b7964.2c7829688de58fdac4ec7b5a29aad114abe746106b7740199e5bcf6710e93709.XK_CXqwYtAdN3etTCmAxtroSOM0743Qi_s3U8o3H5Bo+ hash: v1.k794b7964.f38e3959f0df9376b2942b7250eceabe5947a2b169261c0cc2df329bc83f2da7.QiaAQ6uvJuDmAiAEcW4cnln2gq-D9gO4u0IIHpgktxUreplay-tabs-home-success--filters-expanded-lots-of-results--dark:- hash: v1.k794b7964.03f4cfafeac55d46708f6535d81f83561cdd5303f21990a0bd7552d734fafcd9.xg6GQwjqNts-8iDh1YHzv_T9wpgC3WWcDfOi4RXrJmY+ hash: v1.k794b7964.e0a394dcdd7b62e597622594e6046dc590f7fca733ec9ff135a93bb006eedcc6.7J4H46Nzy0Pc7c5azzAleYOM1yoR0r8_fxQa02cQhcAreplay-tabs-home-success--filters-expanded-lots-of-results--light:- hash: v1.k794b7964.0c69c90d085a99b0499ef915f1bc4e51e2acb4506a760e01567a9390fbfd8da8.wY2EdNdJ1fIcSR6f8wzWh1iG8n2KiE175tyiS-oY34g+ hash: v1.k794b7964.4990314d75c4f2b8ae5a0adba15c3298d9ec838163c5f1272d0e86b807948adb.0JDQm-7NRp8CgqpWupnvPzHEfpzDvJqIwppaimFNw44replay-tabs-home-success--filters-expanded-lots-of-results-narrow--dark:- hash: v1.k794b7964.6d0369b1097f2c04c5812d3fd97ccc6812e21ff46e96e32d429f387443afda9a.OI2h2E6NjaIBU9qz6FfY1mkhF8G7FLOghGS84giuohQ+ hash: v1.k794b7964.4ac2751aef20625055987641a2cafc3dfc7f08b7af0d8beb4ef4a11c17eaa2ae.iv482StN-opghmfQ_5IQdSj6CdXuZNNnbnj12fTRAZoreplay-tabs-home-success--filters-expanded-lots-of-results-narrow--light:- hash: v1.k794b7964.60afab820198007e72068b2957f7d9829644f7a0d71296878aa0bcb98c296f1e.t5sK2_OrCMUGVB6a_5y0HK94rAF-JbEkfflfAUouKPU+ hash: v1.k794b7964.e948017524b22daaea344443b92a9e8a04e2ff13ce68d078160c9adac97bba11.bpt-dWybFIYBFPLKFA3hLk6BYKLWkEMv1KfdClPUrmUreplay-tabs-home-success--recent-recordings--dark:- hash: v1.k794b7964.1674be6fbb15e43b13462761569849fcadf46d5196c19bffd49258d3150a8856.1J-EStkYw8t1u-ouQ0txgIrfcll4bFrP60Raz75wRvU+ hash: v1.k794b7964.a0021cf27fc31617f6b8aefb81f566da3d40284ba2ba4e3060a596f058bf95e3.DiUSK9Y0hFIN0tJItKpMnVqBn0TfKolrZ1lsI3FF3J8replay-tabs-home-success--recent-recordings--light:- hash: v1.k794b7964.c647497af5dbf5dc0c064c27141f130f04b6bf06ce429ec1138d95e1a9610b07.v1kw27Mv_gJEAACg2LQ2dVohqk_b59d0T4W7H-3fAtc+ hash: v1.k794b7964.e79bbe168a4d5320f94e134078e0486e486c8c647fa8ad2048fe20842c1643bc.IR_c6db81eHpS9w7SrsouqvLJ5NCu6dkXiacgj0nTOAreplay-tabs-home-success--recent-recordings-empty--dark:- hash: v1.k794b7964.2b41bda6698cb737b235d0ba5f3cef942a02e3a6147dd44ea83ed402a635c2fc.tECfuRKh32svBWA0Zu_XW0mvppfoECHJJWFD8M6c0XU+ hash: v1.k794b7964.9202b201349e799c65d2110f96efa6610473f09a31c00908a2cf580d671171ee.hXoNZ1khtqFx65a4cdiLrd4HfWykWHTOv_-m09ut4xUreplay-tabs-home-success--recent-recordings-empty--light:- hash: v1.k794b7964.4d9f295d237552543ddde70db5a4b8c83c93738c3e2345b4255b571e0dde96c5.O_uIUE8gPg7lhQDVQoJVRRxP7mSgft-wJEUzFkNjplI+ hash: v1.k794b7964.0958cdc0b4aad89472b9415e62f13c29d3fe22429dbca67e1752801c953221bc.OBgr9lUpBEInkc1zAaJs8u8sQeh7o37V4TQBt8qPnPMreplay-tabs-home-success--recordings-play-list-no-pinned-recordings--dark:hash: v1.k794b7964.77abb01d4f00305236c2ebd0377e0aee47cd50743c75c68f692ae8fec111371d.iVejWxmTZ4MtP2WYTK-jLSresCBRZ-d57bcPFhoCDlcreplay-tabs-home-success--recordings-play-list-no-pinned-recordings--light:@@ -5593,7 +5593,7 @@ snapshots:scenes-app-dashboards--show-across-viewports--narrow--dark:hash: v1.k794b7964.e919c4955d7113170ab00269c5f628c318afe14f26dc8aafb046b172e17f362e.YDXD84rrb2KR1I36pHMxEsGZ0sN0os_cBBdNIf89Pu8scenes-app-dashboards--show-across-viewports--narrow--light:- hash: v1.k794b7964.6e10178241044f9ce5cc694ee07f537cedb03d84a22e31fcb64e9ff902cc5b6b.FSCAU4UdLmtocgxeRA8SA3iRn4k-oLpk2kPwEQjosbw+ hash: v1.k794b7964.61689120594f7d93205490ecc2d8a6a91cbfca510e0f321cab8de6697c1a30ee.u0YLZQ3GdtApGR6RM-2HDvep5Clj4DAXPHvFtGZAjSYscenes-app-dashboards--show-across-viewports--superwide--dark:hash: v1.k794b7964.9948b52cf842206c1584057a6a16b8caed7a32d95f103dbea07089a02df75a53.AuXGqOvw-P-XuzOL2Zl-BkBPb1-Q3R1949f5-IkTjZAscenes-app-dashboards--show-across-viewports--superwide--light:@@ -6927,9 +6927,9 @@ snapshots:scenes-app-project-homepage--project-homepage--light:hash: v1.k794b7964.2eafc7385bf39f5be7d4d6d0ad1b70897952bcf37a16bd3ae6c644716cd16d25.25OmRYioQX_VF2kc2AVnvYlE0yve6YNcY2FDdJwV5kEscenes-app-replay-vision--scanners-list--dark:- hash: v1.k794b7964.ea15abb4e5defc4511ffbcadca20f2d5568c2d272c112bd08588728fce9325a7.FAVbx6yFt4se4F6rADOjwkqV8yP4ooVPshzDQwh62UY+ hash: v1.k794b7964.c7d4eef5eaeda5b9784039a6b70c0d883567f4003504cdc600672407b846aed9.TmqvlGFuTRANDAG5NUWvJT9qYZ4ixI0t7nlG6Dq7eYQscenes-app-replay-vision--scanners-list--light:- hash: v1.k794b7964.99f5f4499dca089b44d7bce7dee60424c7bdeefb860a8882d5ca8cbf06abce69.MHJZLg5-Q8USBaHeY-N_hqBMtEfuRArXAsAgnwEk4gs+ hash: v1.k794b7964.785bb74cc201022c1cd1a8dca488fb32879c774cbe93193ca26e57e4d77e44f2.c5RK9ubMopTPwQKPOi3QQPOBLnElg0HJis-KcoKPSgAscenes-app-replay-vision--summarizer-overview--dark:hash: v1.k794b7964.e5827be3112c9cb7af5526a41eb02da1c5ef1982eb9d2af887e0649119f8def5.-yMhrm4zkIgcYpOcdAKwqy1w5SEDHRXT5pTfaNENKFgscenes-app-replay-vision--summarizer-overview--light:diff --git a/frontend/src/products.tsx b/frontend/src/products.tsxindex f90201033a59..97de378030de 100644--- a/frontend/src/products.tsx+++ b/frontend/src/products.tsx@@ -2250,7 +2250,6 @@ export const getTreeItemsProducts = (): FileSystemImport[] => ['var(--color-product-session-replay-dark)',] as FileSystemIconColor,href: urls.replayVision(),- tags: ['beta'],flag: FEATURE_FLAGS.REPLAY_VISION,sceneKey: 'ReplayVision',sceneKeys: ['ReplayVision', 'ReplayVisionScanner'],diff --git a/frontend/src/scenes/session-recordings/SessionRecordings.tsx b/frontend/src/scenes/session-recordings/SessionRecordings.tsxindex b827e971f4ea..2611ba0fac73 100644--- a/frontend/src/scenes/session-recordings/SessionRecordings.tsx+++ b/frontend/src/scenes/session-recordings/SessionRecordings.tsx@@ -124,41 +124,31 @@ function Header(): JSX.Element {)}-const REPLAY_VISION_PROMO_DISMISS_KEY = 'replay-vision-waitlist-promo'+const REPLAY_VISION_PROMO_DISMISS_KEY = 'replay-vision-launch-promo'function ReplayVisionPromoBanner(): JSX.Element | null {- // Teams with the flag already have access, so send them to the product instead of the waitlist- const hasReplayVision = useFeatureFlag('REPLAY_VISION')const { isDismissed } = useValues(lemonBannerLogic({ dismissKey: REPLAY_VISION_PROMO_DISMISS_KEY }))+ const hasReplayVision = useFeatureFlag('REPLAY_VISION')+ // Without the flag the CTA would land on a 404, so don't advertise the feature at all.// A dismissed LemonBanner renders null but the viewed tracker would still fire, skewing impressions- if (isDismissed) {+ if (!hasReplayVision || isDismissed) {return null}return (- <PostHogCaptureOnViewed name="replay-vision-waitlist-banner-shown">+ <PostHogCaptureOnViewed name="replay-vision-launch-banner-shown"><LemonBannertype="ai"dismissKey={REPLAY_VISION_PROMO_DISMISS_KEY}- action={- hasReplayVision- ? {- children: 'Try Replay vision',- to: urls.replayVision(),- center: true,- 'data-attr': 'replay-vision-waitlist-banner-cta',- }- : {- children: 'Join the waitlist',- to: 'https://posthog.com/replay-vision?utm_medium=in-product&utm_campaign=replay-vision-waitlist-banner',- targetBlank: true,- center: true,- 'data-attr': 'replay-vision-waitlist-banner-cta',- }- }+ action={{+ children: 'Try Replay vision',+ to: urls.replayVision(),+ center: true,+ 'data-attr': 'replay-vision-launch-banner-cta',+ }}>- Tired of watching replays? Replay vision watches them for you and surfaces what matters.+ Replay vision is here. Scanners watch your recordings for you and surface what matters.</LemonBanner></PostHogCaptureOnViewed>)diff --git a/products/replay_vision/frontend/replay_scanners/ReplayScannersScene.tsx b/products/replay_vision/frontend/replay_scanners/ReplayScannersScene.tsxindex a546fff7d381..ec0500b1d26b 100644--- a/products/replay_vision/frontend/replay_scanners/ReplayScannersScene.tsx+++ b/products/replay_vision/frontend/replay_scanners/ReplayScannersScene.tsx@@ -5,6 +5,7 @@ import { useState } from 'react'import * as xRayPng from '@posthog/brand/hoggies/png/x-ray'import { IconPencil, IconPlus, IconRefresh, IconSearch, IconTrash } from '@posthog/icons'import {+ LemonBanner,LemonButton,LemonInput,LemonSwitch,@@ -284,6 +285,17 @@ export function ReplayScannersScene(): JSX.Element {<IngestionLimitBanner />+ {(scannerStats?.total ?? 0) - (scannerStats?.enabled ?? 0) > 0 && (+ <LemonBanner type="warning" dismissKey="replay-vision-launch-beta-scanners">+ Replay vision is out of beta and scans now use billed credits. Your scanners were turned off for the+ launch, so re-enable the ones you want to keep running. See{' '}+ <Link to="https://posthog.com/docs/replay-vision/quota-and-limits" target="_blank">+ how credits are priced+ </Link>{' '}+ in the docs, or check the Usage tab for current spend.+ </LemonBanner>+ )}+<ProductIntroductionproductName="Replay vision"productKey={ProductKey.REPLAY_VISION}diff --git a/products/replay_vision/frontend/replay_scanners/components/VisionMetrics.tsx b/products/replay_vision/frontend/replay_scanners/components/VisionMetrics.tsxindex 28374383f46b..e6abcc372edc 100644--- a/products/replay_vision/frontend/replay_scanners/components/VisionMetrics.tsx+++ b/products/replay_vision/frontend/replay_scanners/components/VisionMetrics.tsx@@ -117,10 +117,6 @@ export function VisionMetrics(): JSX.Element {</div>{quota ? (<>- {/* TODO(replay-vision): remove when Vision billing goes live with open beta. */}- <div className="text-xs text-accent mb-1">- Estimated spend. You won't be billed during the closed beta.- </div><div className="text-3xl font-semibold tabular-nums">{formatCreditCount(quota.credits_used)}{hasCap && (diff --git a/products/replay_vision/manifest.tsx b/products/replay_vision/manifest.tsxindex 7c4b89a35f34..6afccc9eef75 100644--- a/products/replay_vision/manifest.tsx+++ b/products/replay_vision/manifest.tsx@@ -109,7 +109,6 @@ export const manifest: ProductManifest = {'var(--color-product-session-replay-dark)',] as FileSystemIconColor,href: urls.replayVision(),- tags: ['beta'],flag: FEATURE_FLAGS.REPLAY_VISION,sceneKey: 'ReplayVision',sceneKeys: ['ReplayVision', 'ReplayVisionScanner'],