: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(vision): add dismissable introduction card (#60364)
Kim Svatos Dugan46ad1b47e480
diff --git a/frontend/src/lib/components/ProductIntroduction/ProductIntroduction.tsx b/frontend/src/lib/components/ProductIntroduction/ProductIntroduction.tsxindex a0a6799d7086..2ff7401742b9 100644--- a/frontend/src/lib/components/ProductIntroduction/ProductIntroduction.tsx+++ b/frontend/src/lib/components/ProductIntroduction/ProductIntroduction.tsx@@ -26,6 +26,8 @@ export type ProductIntroductionProps = {/** The name of the thing that they will create, e.g. "cohort" */thingName: stringdescription: string+ /** Overrides the default "Your team is already using {productName}..." copy shown when `isEmpty` is false. */+ secondaryDescription?: string/** If you want to override the title, defaults to "Create your first *thing*" */titleOverride?: string/** If we should show the empty state */@@ -66,6 +68,7 @@ export const ProductIntroduction = ({productKey,thingName,description,+ secondaryDescription,titleOverride,isEmpty,action,@@ -174,8 +177,12 @@ export const ProductIntroduction = ({<p className="ml-0">{description}</p>{!isEmpty && (<p className="ml-0">- Your team is already using {productName}. You can take a look at what they're doing, or get- started yourself.+ {secondaryDescription ?? (+ <>+ Your team is already using {productName}. You can take a look at what they're doing,+ or get started yourself.+ </>+ )}</p>)}<divdiff --git a/products/replay_vision/frontend/replay_scanners/ReplayScannersScene.tsx b/products/replay_vision/frontend/replay_scanners/ReplayScannersScene.tsxindex 6ce8a4432fab..53c51746413b 100644--- a/products/replay_vision/frontend/replay_scanners/ReplayScannersScene.tsx+++ b/products/replay_vision/frontend/replay_scanners/ReplayScannersScene.tsx@@ -14,6 +14,8 @@ import {} from '@posthog/lemon-ui'import { AccessControlAction } from 'lib/components/AccessControlAction'+import { XRayHog } from 'lib/components/hedgehogs'+import { ProductIntroduction } from 'lib/components/ProductIntroduction/ProductIntroduction'import { LemonDialog } from 'lib/lemon-ui/LemonDialog'import { LemonTableColumns } from 'lib/lemon-ui/LemonTable'import { SceneExport } from 'scenes/sceneTypes'@@ -217,6 +219,16 @@ export function ReplayScannersScene(): JSX.Element {<VisionQuotaMeter />+ <ProductIntroduction+ productName="Replay vision"+ productKey={ProductKey.REPLAY_VISION}+ thingName="scanner"+ description="Replay vision runs scanners over completed sessions on a schedule or on demand, using session recordings and events to do anything you can describe — categorize sessions, monitor user behavior, surface frustration or confusion, flag bugs, score intent, or detect any custom pattern. Results land as queryable events you can build insights, alerts, and cohorts on."+ secondaryDescription="You can get started using a template, or create a fully custom scanner yourself."+ customHog={XRayHog}+ action={() => push(urls.replayVision('new'))}+ />+<SceneSectiontitle="Scanners"actions={