: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): two questions in, a reviewable scanner out (#88905)
Kim Svatos Duganbd523ba22db5
diff --git a/frontend/snapshots.yml b/frontend/snapshots.ymlindex 69d85d68c42e..01ecab48be24 100644--- a/frontend/snapshots.yml+++ b/frontend/snapshots.yml@@ -7880,6 +7880,14 @@ snapshots:hash: v1.k794b7964.b432270f77e7780bf7c0d1a0cbabfe3a6dcc4fcebbf2311f64a92f113f5ec8c2.N1ufgn3U8jNJTWVtd9YsSvOK6qxo8Kb-7Jkux2YeVdkscenes-app-replay-vision--scanner-editor-details--light:hash: v1.k794b7964.fc73906f3b66cea6854d196cbe65bf5e8a3586447dc9f56ba14490e9de8a3c1c.P1hBJpz_cfTllUtTdJSrgFOPNdIC106H6eAl0hswbCQ+ scenes-app-replay-vision--scanner-editor-goal-flow--dark:+ hash: v1.k794b7964.01e74d02bd3a9b91238032d92b59dc625c4533e25368a447a9981e84ca7f6497.6x8gPcdWdR5iYJWuJU4x6pGkreBIyozVkudsbJEJqro+ scenes-app-replay-vision--scanner-editor-goal-flow--light:+ hash: v1.k794b7964.57c4ffe514b4843a8cc3e5926c6ad3405b8050cc815e145b6218b0d8a2972e34.Zz-O4ewSTvBQAFZYRjUnNROD1yz9krDk7IXR-9pKclU+ scenes-app-replay-vision--scanner-editor-goal-overview--dark:+ hash: v1.k794b7964.4ef60f727ace235099b7180e0b8e6e96a81e3626ce2ccae46f74c29508f85c15.Mp6FnYUKmqMQBB2sni9IukHvqlxQSXt5l1F91H6F8Zg+ scenes-app-replay-vision--scanner-editor-goal-overview--light:+ hash: v1.k794b7964.2820672a63528051df5cbb805e984c645eaf35a5f3437b59eaa70e90f1a5f118.S63d60T6vwVkop1Z_-KvK0rTZiRymODAiDvjaaJD7Doscenes-app-replay-vision--scanner-editor-triggers--dark:hash: v1.k794b7964.5bc5dc77d7346163d92585657a949d38938bdbabf11a2a0341bc3a6b9c980c80.AL7y75QUTSwtUvG6XKJvD4CPhbEXC4TmNPkxG_57CQ4scenes-app-replay-vision--scanner-editor-triggers--light:diff --git a/frontend/src/lib/constants.tsx b/frontend/src/lib/constants.tsxindex ac86a0c027d8..03699f95c62b 100644--- a/frontend/src/lib/constants.tsx+++ b/frontend/src/lib/constants.tsx@@ -202,8 +202,8 @@ export const FEATURE_FLAGS = {PERSON_PROPERTY_INCIDENT_ANNOTATION_JAN_2026: 'person-property-incident-annotation-jan-2026', // owner: #team-platform-features, shows system annotation for Jan 6-7 2026 person property incidentREPLAY_EXCLUDE_FROM_HIDE_RECORDINGS_MENU: 'replay-exclude-from-hide-recordings-menu', // owner: #team-replay, used to exclude what other people are seeing in ReplaySHOW_UPGRADE_TO_MANAGED_ACCOUNT: 'show-upgrade-to-managed-account', // owner: #team-billing, used to give free accounts a way to force upgrade to managed account- WEBHOOKS_DENYLIST: 'webhooks-denylist', // owner: #team-ingestion, used to disable webhooks for certain companiesSQL_BOX_PLOT_INSIGHT: 'sql-box-plot-insight', // owner: @pauldambra #team-product-analytics+ WEBHOOKS_DENYLIST: 'webhooks-denylist', // owner: #team-ingestion, used to disable webhooks for certain companies// Legacy flags, TBD if they need to be removedBATCH_EXPORTS_POSTHOG_HTTP: 'posthog-http-batch-exports', // owner: #team-batch-exports@@ -530,6 +530,7 @@ export const FEATURE_FLAGS = {USER_INTERVIEWS: 'user-interviews', // owner: @Twixes @jurajmajerikUX_REMOVE_SIDEPANEL: 'ux-remove-sidepanel', // owner: #team-surveysVISION_ENTRYPOINT_EXPERIMENTS: 'vision-entrypoint-experiments', // owner: #team-replay, cross-sell entry points from experiments+ VISION_GOAL_BASED_CREATION_FLOW: 'vision-goal-based-creation-flow', // owner: #team-replay multivariate=control,test — gate on === 'test'; a truthy check turns on for control tooVISUAL_REVIEW: 'visual-review', // owner: #team-devexWAREHOUSE_ACCOUNT_PROPERTIES_S3_SYNC: 'warehouse-account-properties-s3-sync', // owner: @arthurdedeus #team-customer-analytics, gates staged account-property sync and its run historyWAREHOUSE_PERSON_PROPERTIES: 'warehouse-person-properties', // owner: @tomowers #team-warehouse-sources, gates warehouse -> person properties (person-target custom property sources)diff --git a/frontend/src/products.tsx b/frontend/src/products.tsxindex 1ec0b80d3888..16bfa07fa5f4 100644--- a/frontend/src/products.tsx+++ b/frontend/src/products.tsx@@ -210,6 +210,7 @@ export const productRoutes: Record<string, [string, string]> = {'/replay-vision/actions/:actionId': ['ReplayVisionAction', 'replayVisionAction'],'/replay-vision/:scannerId/actions/new': ['ReplayVisionActionEditor', 'replayVisionActionNew'],'/replay-vision/:id/template': ['ReplayVisionScannerEditor', 'replayVisionScannerTemplate'],+ '/replay-vision/:id/overview': ['ReplayVisionScannerEditor', 'replayVisionScannerOverview'],'/replay-vision/:id/details': ['ReplayVisionScannerEditor', 'replayVisionScannerDetails'],'/replay-vision/:id/configure': ['ReplayVisionScannerEditor', 'replayVisionScannerConfigure'],'/replay-vision/:id/triggers': ['ReplayVisionScannerEditor', 'replayVisionScannerTriggers'],@@ -1429,6 +1430,7 @@ export const productUrls = {replayVision: (id?: string): string => (id ? `/replay-vision/${id}` : '/replay-vision'),replayVisionTemplates: (): string => '/replay-vision/new/template',replayVisionScannerTemplate: (id: string): string => `/replay-vision/${id}/template`,+ replayVisionScannerOverview: (id: string): string => `/replay-vision/${id}/overview`,replayVisionScannerDetails: (id: string): string => `/replay-vision/${id}/details`,replayVisionScannerConfigure: (id: string): string => `/replay-vision/${id}/configure`,replayVisionScannerTriggers: (id: string): string => `/replay-vision/${id}/triggers`,diff --git a/products/replay_vision/frontend/replay_scanners/ReplayScannersScene.stories.tsx b/products/replay_vision/frontend/replay_scanners/ReplayScannersScene.stories.tsxindex 58c3679b92db..03a4aba9f63d 100644--- a/products/replay_vision/frontend/replay_scanners/ReplayScannersScene.stories.tsx+++ b/products/replay_vision/frontend/replay_scanners/ReplayScannersScene.stories.tsx@@ -6,9 +6,11 @@ import { urls } from 'scenes/urls'import { mswDecorator } from '~/mocks/browser'import { billingJson } from '~/mocks/fixtures/_billing'+import { RecordingsQuery } from '~/queries/schema/schema-general'import { StartupProgramLabel } from '~/types'import type {+ DraftScannerResponseApi,ObservationStatsApi,ReplayObservationApi,ReplayScannerApi,@@ -18,6 +20,8 @@ import type {VisionActionApi,VisionQuotaApi,} from '../generated/api.schemas'+import { replayScannerLogic } from './replayScannerLogic'+import type { SamplingMode, ScannerConfig, ScannerType } from './types'const alice: UserBasicApi = {id: 1,@@ -690,3 +694,68 @@ export const StartupProgramCap: StoryObj = {}),],}++// The goal-based creation flow's two questions replace the template gallery when the flag's test+// variant is on.+export const ScannerEditorGoalFlow: StoryObj = {+ parameters: {+ pageUrl: urls.replayVisionScannerTemplate('new'),+ featureFlags: { [FEATURE_FLAGS.VISION_GOAL_BASED_CREATION_FLOW]: 'test' },+ },+}++const goalDraft: DraftScannerResponseApi = {+ name: 'Billing give-up monitor',+ description: 'Flags sessions where a user reaches billing and leaves without finishing.',+ scanner_type: 'monitor',+ scanner_config: {+ prompt: 'Did the user reach a billing page and leave without completing what they started there? Answer yes or no with a one-sentence reason.',+ allow_inconclusive: true,+ },+ rationale:+ 'You want to catch people who give up around billing, so this watches sessions that touch your billing pages and asks a yes/no question about each one. Giving up looks unremarkable, so it watches all matching replays rather than only the eventful ones.',+ query: {+ kind: 'RecordingsQuery',+ properties: [+ {+ type: 'recording',+ key: 'visited_page',+ value: ['/organization/billing/overview', '/organization/billing/plans', '/checkout'],+ operator: 'icontains',+ },+ ],+ },+ sampling_mode: 'comprehensive',+ sampling_rate: 0.25,+ model: 'gemini-3-flash-preview',+ credit_limit: 5000,+ estimated_monthly_observations: 1000,+}++// The landing step after a goal draft: the whole config ordered by comprehension, each section+// deep-linking into the wizard step that edits it. Seeded through the same action the loader fires.+export const ScannerEditorGoalOverview: StoryObj = {+ parameters: {+ pageUrl: urls.replayVisionScannerOverview('new'),+ featureFlags: { [FEATURE_FLAGS.VISION_GOAL_BASED_CREATION_FLOW]: 'test' },+ },+ decorators: [+ (StoryFn) => {+ const logic = replayScannerLogic({ id: 'new' })+ logic.mount()+ // The success listener's stale-navigation guard sees the overview URL and skips its own+ // reset + redirect, so only the goalDraft reducer applies; the form is seeded by hand.+ logic.actions.draftScannerFromGoalSuccess(goalDraft)+ logic.actions.setScannerValues({+ name: goalDraft.name,+ description: goalDraft.description,+ scanner_type: goalDraft.scanner_type as ScannerType,+ scanner_config: goalDraft.scanner_config as ScannerConfig,+ query: goalDraft.query as RecordingsQuery,+ sampling_mode: goalDraft.sampling_mode as SamplingMode,+ sampling_rate: goalDraft.sampling_rate ?? 1,+ })+ return <StoryFn />+ },+ ],+}diff --git a/products/replay_vision/frontend/replay_scanners/ScannerEditorScene.tsx b/products/replay_vision/frontend/replay_scanners/ScannerEditorScene.tsxindex cf2b757b0a84..32e6ca89458e 100644--- a/products/replay_vision/frontend/replay_scanners/ScannerEditorScene.tsx+++ b/products/replay_vision/frontend/replay_scanners/ScannerEditorScene.tsx@@ -44,6 +44,8 @@ import { ReplayVisionFeedbackButton } from '../components/ReplayVisionFeedbackBuimport { getReplayVisionEditDisabledReason } from '../utils/accessControl'import { ScannerBudget } from './components/ScannerBudget'import { ScannerGoalDraft } from './components/ScannerGoalDraft'+import { ScannerGoalFlow } from './components/ScannerGoalFlow'+import { ScannerGoalOverview } from './components/ScannerGoalOverview'import { ScannerTemplatePicker } from './components/ScannerTemplatePicker'import { ScannerTriggers } from './components/ScannerTriggers'import { ScannerTypeConfigEditor } from './components/ScannerTypeConfigEditor'@@ -75,9 +77,9 @@ export const scene: SceneExport = {productKey: ProductKey.REPLAY_VISION,}-// Template renders its own header, so only the form steps need one here.+// Template renders its own header, and overview renders none, so only the form steps need one here.const STEP_HEADERS: Record<- Exclude<ScannerEditorStep, 'template'>,+ Exclude<ScannerEditorStep, 'template' | 'overview'>,{ hedgehog: JSX.Element; title: string; subtitle: string }> = {details: {@@ -105,6 +107,14 @@ const STEP_HEADERS: Record<export function ScannerEditorSceneComponent(): JSX.Element {const { scannerId, step, isNew } = useValues(scannerEditorSceneLogic)const { searchParams } = useValues(router)+ const { featureFlags } = useValues(featureFlagLogic)+ // Multivariate flag; a truthy check would turn the goal flow on for control too.+ const goalFlow = featureFlags[FEATURE_FLAGS.VISION_GOAL_BASED_CREATION_FLOW] === 'test'+ const [manualMode, setManualMode] = useState(false)+ const showGoalEntry = step === 'template' && goalFlow && !manualMode+ // Reached a form step by clicking Edit on the goal overview: the overview is home, not a wizard+ // stop, so the linear stepper is hidden and the footer returns there instead of marching on.+ const fromOverview = searchParams.from === 'overview'const scannerLogic = replayScannerLogic({ id: scannerId })useAttachedLogic(scannerLogic, scannerEditorSceneLogic)@@ -170,30 +180,54 @@ export function ScannerEditorSceneComponent(): JSX.Element {resourceType={{ type: 'replay_vision' }}actions={<ReplayVisionFeedbackButton />}/>- <ScannerEditorStepper- currentStep={step}- steps={SCANNER_EDITOR_STEPS}- onStepClick={goToStep}- stepErrors={stepErrors}- disabledSteps={- isNew ? undefined : { template: 'A saved scanner keeps the template it was created from' }- }- />+ {showGoalEntry || step === 'overview' || fromOverview ? null : (+ <ScannerEditorStepper+ currentStep={step}+ steps={SCANNER_EDITOR_STEPS}+ onStepClick={goToStep}+ stepErrors={stepErrors}+ disabledSteps={+ isNew+ ? undefined+ : { template: 'A saved scanner keeps the template it was created from' }+ }+ />+ )}{step === 'template' ? (- <>- <div className="text-center space-y-3">- <div className="flex justify-center mb-2">- <HedgehogXRay className="w-32 h-32" />+ showGoalEntry ? (+ <>+ <div className="text-center space-y-3">+ <div className="flex justify-center mb-2">+ <HedgehogXRay className="w-32 h-32" />+ </div>+ <h1 className="text-2xl font-bold m-0">What should the scanner find out?</h1>+ <p className="text-base text-secondary max-w-2xl mx-auto m-0">+ Describe the goal, set a monthly budget, and the agent drafts the whole scanner+ for you to review.+ </p></div>- <h1 className="text-2xl font-bold m-0">Choose a scanner template</h1>- <p className="text-base text-secondary max-w-2xl mx-auto m-0">- Pick a pre-configured template to get started quickly, or create a fully custom- scanner from scratch.- </p>- </div>- <ScannerTemplatePicker />- <ScannerGoalDraft />- </>+ <ScannerGoalFlow onManual={() => setManualMode(true)} />+ </>+ ) : (+ <>+ <div className="text-center space-y-3">+ <div className="flex justify-center mb-2">+ <HedgehogXRay className="w-32 h-32" />+ </div>+ <h1 className="text-2xl font-bold m-0">Choose a scanner template</h1>+ <p className="text-base text-secondary max-w-2xl mx-auto m-0">+ Pick a pre-configured template to get started quickly, or create a fully custom+ scanner from scratch.+ </p>+ </div>+ <ScannerTemplatePicker />+ <ScannerGoalDraft />+ </>+ )+ ) : step === 'overview' ? (+ <div className="max-w-4xl w-full mx-auto">+ <ScannerGoalOverview scannerId={scannerId} />+ </div>) : (<Formlogic={replayScannerLogic}@@ -460,6 +494,10 @@ function EditorFooter({const ownsDurationFilter = step === 'triggers' || step === 'budget'const durationError = ownsDurationFilter ? durationValidationError : nullconst saveDisabledReason = getReplayVisionEditDisabledReason(scanner?.user_access_level) ?? durationError+ // Editing one section from the goal overview: the edit is already in the form state, so the only+ // action needed is to return to the overview, where the whole draft is reviewed and created.+ const { from, ...overviewParams } = searchParams+ const fromOverview = from === 'overview'const cancel = (): void => {// Resetting first leaves nothing unsaved, so the leave guard can't prompt on top of this.@@ -485,66 +523,87 @@ function EditorFooter({<div className="flex flex-col gap-2">{/* The duration field lives on the recordings step, so budget needs the error spelled out. */}{step === 'budget' && durationError ? <div className="text-danger text-sm">{durationError}</div> : null}- <div className="flex flex-wrap items-center justify-between gap-2">- {prevStep ? (- <LemonButton- type="tertiary"- to={scannerStepUrlWithParams(prevStep, scannerId, searchParams)}- data-attr="vision-editor-back"- >- Back- </LemonButton>- ) : null}- <div className="flex flex-wrap items-center gap-2 ml-auto">+ {fromOverview ? (+ <div className="flex flex-wrap items-center justify-end gap-2"><LemonButtontype="tertiary"onClick={handleCancel}disabledReason={isSubmitting ? 'Saving…' : undefined}data-attr="vision-editor-cancel">- Cancel+ Discard scanner+ </LemonButton>+ <LemonButton+ type="primary"+ to={scannerStepUrlWithParams('overview', scannerId, overviewParams)}+ disabledReason={saveDisabledReason ?? undefined}+ data-attr="vision-editor-back-to-overview"+ >+ Back to overview</LemonButton>- {nextStep ? (+ </div>+ ) : (+ <div className="flex flex-wrap items-center justify-between gap-2">+ {prevStep ? (<LemonButton- type="primary"- loading={isSubmitting}- disabledReason={saveDisabledReason}- onClick={onAdvance}- data-attr="vision-editor-next"+ type="tertiary"+ to={scannerStepUrlWithParams(prevStep, scannerId, searchParams)}+ data-attr="vision-editor-back">- Next: {STEP_LABELS[nextStep]}+ Back</LemonButton>- ) : (- <AIConsentPopoverWrapper- placement="top-end"- showArrow- ignoreDismissal- hideTrainingDisclaimer- hidden={!consentRequested}- onApprove={() => {- setConsentRequested(false)- onSave()- }}- onDismiss={() => setConsentRequested(false)}+ ) : null}+ <div className="flex flex-wrap items-center gap-2 ml-auto">+ <LemonButton+ type="tertiary"+ onClick={handleCancel}+ disabledReason={isSubmitting ? 'Saving…' : undefined}+ data-attr="vision-editor-cancel">+ Cancel+ </LemonButton>+ {nextStep ? (<LemonButtontype="primary"loading={isSubmitting}disabledReason={saveDisabledReason}- onClick={() => (needsConsent ? setConsentRequested(true) : onSave())}- data-attr="vision-editor-save"- data-ph-capture-attribute-scanner-type={scanner?.scanner_type}+ onClick={onAdvance}+ data-attr="vision-editor-next">- {needsConsent- ? 'Allow AI analysis and create scanner'- : isNew- ? 'Create scanner'- : 'Save changes'}+ Next: {STEP_LABELS[nextStep]}</LemonButton>- </AIConsentPopoverWrapper>- )}+ ) : (+ <AIConsentPopoverWrapper+ placement="top-end"+ showArrow+ ignoreDismissal+ hideTrainingDisclaimer+ hidden={!consentRequested}+ onApprove={() => {+ setConsentRequested(false)+ onSave()+ }}+ onDismiss={() => setConsentRequested(false)}+ >+ <LemonButton+ type="primary"+ loading={isSubmitting}+ disabledReason={saveDisabledReason}+ onClick={() => (needsConsent ? setConsentRequested(true) : onSave())}+ data-attr="vision-editor-save"+ data-ph-capture-attribute-scanner-type={scanner?.scanner_type}+ >+ {needsConsent+ ? 'Allow AI analysis and create scanner'+ : isNew+ ? 'Create scanner'+ : 'Save changes'}+ </LemonButton>+ </AIConsentPopoverWrapper>+ )}+ </div></div>- </div>+ )}</div>)}diff --git a/products/replay_vision/frontend/replay_scanners/components/ScannerGoalFlow.tsx b/products/replay_vision/frontend/replay_scanners/components/ScannerGoalFlow.tsxnew file mode 100644index 000000000000..2ca664058220--- /dev/null+++ b/products/replay_vision/frontend/replay_scanners/components/ScannerGoalFlow.tsx@@ -0,0 +1,150 @@+import { useActions, useValues } from 'kea'+import { useState } from 'react'++import { IconSparkles } from '@posthog/icons'+import { LemonButton, LemonInput, LemonTextArea, Link } from '@posthog/lemon-ui'++import { aiConsentLogic } from 'scenes/settings/organization/aiConsentLogic'+import { AIConsentPopoverWrapper } from 'scenes/settings/organization/AIConsentPopoverWrapper'++import { getReplayVisionEditDisabledReason } from '../../utils/accessControl'+import { creditsToUsd } from '../../utils/credits'+import { replayScannerLogic } from '../replayScannerLogic'++// Credits, not recordings: the agent picks the model, so a fixed recording count no longer maps to+// a fixed cost. The budget is what the user actually controls, and matches how we bill.+const MIN_SCAN_BUDGET = 1+const MAX_SCAN_BUDGET = 100000000++/** The goal-based creation flow's two questions (goal, monthly budget): drafts a full scanner+ * and lands the user on the overview step to review it. */+export function ScannerGoalFlow({ onManual }: { onManual: () => void }): JSX.Element {+ const logic = replayScannerLogic({ id: 'new' })+ const { goalDraftInput, goalBudgetInput, goalDraftLoading } = useValues(logic)+ const { draftScannerFromGoal, setGoalDraftInput, setGoalBudgetInput } = useActions(logic)++ // Drafting creates a scanner, so it needs the same editor access as the rest of the wizard.+ const editDisabledReason = getReplayVisionEditDisabledReason()+ const { dataProcessingAccepted } = useValues(aiConsentLogic)+ const [consentRequested, setConsentRequested] = useState(false)++ const budgetValid =+ goalBudgetInput != null && goalBudgetInput >= MIN_SCAN_BUDGET && goalBudgetInput <= MAX_SCAN_BUDGET++ const submit = (): void => {+ draftScannerFromGoal(goalDraftInput.trim(), goalBudgetInput ?? undefined)+ }+ const handleSubmit = (): void => {+ if (editDisabledReason || !goalDraftInput.trim() || !budgetValid || goalDraftLoading) {+ return+ }+ // Drafting calls an AI endpoint the backend rejects without org consent; interpose the+ // popover instead of letting the request 400.+ if (!dataProcessingAccepted) {+ setConsentRequested(true)+ return+ }+ submit()+ }++ return (+ <div className="space-y-4">+ <div className="rounded-xl border-2 border-[var(--color-ai)] p-4 flex flex-col gap-4">+ <div className="flex flex-col gap-1">+ <label htmlFor="vision-goal-flow-goal" className="text-sm font-medium">+ What do you want to find out?+ </label>+ <LemonTextArea+ id="vision-goal-flow-goal"+ value={goalDraftInput}+ onChange={setGoalDraftInput}+ placeholder="e.g. Find out where people give up in billing"+ minRows={2}+ maxRows={5}+ data-attr="vision-goal-flow-goal"+ />+ <div className="text-xs text-muted">+ Say what to learn and which part of the product to watch. The agent maps it onto your real+ pages.+ </div>+ </div>++ <div className="flex flex-col gap-1">+ <label htmlFor="vision-goal-flow-budget" className="text-sm font-medium">+ About how much do you want to spend a month?+ </label>+ <div className="flex items-center gap-3">+ <LemonInput+ id="vision-goal-flow-budget"+ type="number"+ min={MIN_SCAN_BUDGET}+ max={MAX_SCAN_BUDGET}+ value={goalBudgetInput ?? undefined}+ onChange={(value) => setGoalBudgetInput(value ?? null)}+ suffix={<span className="text-muted">credits</span>}+ className="w-40"+ data-attr="vision-goal-flow-budget"+ />+ {budgetValid && goalBudgetInput != null ? (+ <span className="text-xs text-muted">≈ {creditsToUsd(goalBudgetInput)} a month</span>+ ) : null}+ </div>+ <div className="text-xs text-muted">+ 1,000 credits ≈ $10. The agent picks the model and fits the scanner to this.+ </div>+ </div>++ <div className="flex items-center justify-between">+ <div className="flex items-center gap-1.5 text-xs text-tertiary">+ <IconSparkles className="text-ai size-3.5" />+ <span>PostHog AI</span>+ </div>+ <AIConsentPopoverWrapper+ placement="bottom-end"+ showArrow+ ignoreDismissal+ hideTrainingDisclaimer+ hidden={!consentRequested}+ onApprove={() => {+ setConsentRequested(false)+ submit()+ }}+ onDismiss={() => setConsentRequested(false)}+ >+ <LemonButton+ type="primary"+ loading={goalDraftLoading}+ onClick={handleSubmit}+ // The button is the popover's reference, so Lemon would add a dropdown+ // chevron; it submits rather than opening a menu, so suppress it.+ sideIcon={null}+ disabledReason={+ editDisabledReason ??+ (!goalDraftInput.trim()+ ? 'Describe what you want to find out'+ : !budgetValid+ ? 'Enter a monthly credit budget'+ : undefined)+ }+ data-attr="vision-goal-flow-submit"+ >+ Draft my scanner+ </LemonButton>+ </AIConsentPopoverWrapper>+ </div>+ </div>++ <div className="flex items-center gap-4">+ <div className="flex-1 border-t border-border" />+ <span className="text-xs text-tertiary uppercase tracking-wide">or</span>+ <div className="flex-1 border-t border-border" />+ </div>++ <div className="text-center">+ <Link onClick={onManual} data-attr="vision-goal-flow-manual">+ Set it up manually+ </Link>+ </div>+ </div>+ )+}diff --git a/products/replay_vision/frontend/replay_scanners/components/ScannerGoalOverview.tsx b/products/replay_vision/frontend/replay_scanners/components/ScannerGoalOverview.tsxnew file mode 100644index 000000000000..f23e410d8e38--- /dev/null+++ b/products/replay_vision/frontend/replay_scanners/components/ScannerGoalOverview.tsx@@ -0,0 +1,313 @@+import { useActions, useValues } from 'kea'+import { router } from 'kea-router'+import { useEffect } from 'react'++import { IconInfo } from '@posthog/icons'+import { LemonBanner, LemonButton, LemonSkeleton, LemonSnack, LemonTag, Spinner, Tooltip } from '@posthog/lemon-ui'++import { pluralize } from 'lib/utils/strings'+import { urls } from 'scenes/urls'++import { getReplayVisionEditDisabledReason } from '../../utils/accessControl'+import { creditsToUsd, formatCreditCount } from '../../utils/credits'+import { replayScannerLogic } from '../replayScannerLogic'+import { ScannerEditorStep, scannerStepUrlWithParams } from '../scannerEditorSceneLogic'+import { OBSERVATION_CREDITS_BY_MODEL, SCANNER_TYPE_TAG_TYPE, modelName, scannerTypeLabel } from '../types'++/** Why the draft chose this model, doubling as the guidance on when each tier fits. Keyed by the+ * concrete model id so a retired model just falls through to the generic line. */+function modelRoleLabel(model: string): string {+ if (model === 'gemini-3.5-flash-lite') {+ return 'Cheapest tier. Best for simple yes/no checks.'+ }+ if (model === 'gemini-3.7-flash') {+ return 'Most capable tier. Best for nuanced scoring or summaries.'+ }+ if (model === 'gemini-3-flash-preview') {+ return 'Balanced tier. A good default for everyday scanners.'+ }+ return 'Change the model on the Configure step to trade cost for capability.'+}++/** The activity-filter badge label for each quality mode: how much of the eligible pool it keeps by+ * how eventful each recording is. */+function activityFilterLabel(mode: string): string {+ if (mode === 'balanced') {+ return 'Skip least active'+ }+ if (mode === 'focused') {+ return 'Only most active'+ }+ return 'All recordings'+}++/** One label:value row in the sampling and budget block. */+function StatRow({ label, children }: { label: string; children: React.ReactNode }): JSX.Element {+ return (+ <>+ <span className="text-muted">{label}</span>+ <span>{children}</span>+ </>+ )+}++function OverviewSection({+ label,+ info,+ editStep,+ scannerId,+ children,+}: {+ label: string+ /** Tooltip on an info icon beside the label, for a caveat the numbers below need. */+ info?: string+ editStep?: ScannerEditorStep+ scannerId: string+ children: React.ReactNode+}): JSX.Element {+ const { searchParams } = useValues(router)+ return (+ <div className="bg-bg-light border rounded-lg p-4 flex items-start justify-between gap-4">+ <div className="flex-1 min-w-0 space-y-2">+ <div className="flex items-center gap-1 text-xs text-tertiary uppercase tracking-wide">+ <span>{label}</span>+ {info ? (+ <Tooltip title={info}>+ <IconInfo className="text-sm" />+ </Tooltip>+ ) : null}+ </div>+ {children}+ </div>+ {editStep ? (+ <LemonButton+ size="small"+ type="secondary"+ onClick={() =>+ router.actions.push(+ scannerStepUrlWithParams(editStep, scannerId, { ...searchParams, from: 'overview' })+ )+ }+ data-attr={`vision-goal-overview-edit-${editStep}`}+ >+ Edit+ </LemonButton>+ ) : null}+ </div>+ )+}++/** The landing step after a goal-based draft: the whole drafted config, ordered by comprehension,+ * with each section deep-linking into the wizard step that edits it. */+export function ScannerGoalOverview({ scannerId }: { scannerId: string }): JSX.Element {+ const logic = replayScannerLogic({ id: scannerId })+ const {+ scanner,+ goalDraft,+ goalDraftLoading,+ goalBudgetInput,+ scannerEstimate,+ scannerEstimateLoading,+ isScannerSubmitting,+ } = useValues(logic)+ const { submitScanner, loadScannerEstimate } = useActions(logic)++ useEffect(() => {+ // On a reload the in-memory draft is gone but the form was restored, so count what it holds.+ // On the live path the draft-success listener already triggered the count.+ if (!goalDraftLoading && !goalDraft) {+ loadScannerEstimate()+ }+ // eslint-disable-next-line react-hooks/exhaustive-deps+ }, [])++ const firstProperty = scanner.query?.properties?.[0]+ const pageValues =+ firstProperty &&+ 'value' in firstProperty &&+ Array.isArray(firstProperty.value) &&+ firstProperty.value.length > 0+ ? firstProperty.value+ : null++ const eventValues =+ scanner.query && 'events' in scanner.query && Array.isArray(scanner.query.events)+ ? scanner.query.events.map((e) => String(e.name ?? e.id)).filter(Boolean)+ : []++ // The draft is still generating: show the page's shape so the wait reads as progress.+ if (goalDraftLoading) {+ return <ScannerGoalOverviewSkeleton />+ }++ const zeroMatches = scannerEstimate !== null && scannerEstimate.matched_sessions_in_window === 0+ // Read the projection and credits from the live estimate, not the in-memory draft: the estimate+ // is loaded on this page, priced at the form's model and rate, and survives a reload; the draft+ // fields do not. It also matches the eligible count above, since both come from one estimate.+ const monthlyObservations = scannerEstimate?.estimated_observations_per_month ?? null+ const monthlyCredits = scannerEstimate?.estimated_credits_per_month ?? null+ const samplingPct = Math.round(scanner.sampling_rate * 100)+ const creditsPerObservation =+ scannerEstimate?.credits_per_observation ?? OBSERVATION_CREDITS_BY_MODEL[scanner.model] ?? null+ // The budget is credits, so compare the projected credit cost against the cap (which the draft+ // set to the stated budget). The rate cannot go below the minimum, so a budget under that floor+ // projects above it.+ const budgetCredits = scanner.credit_limit ?? goalBudgetInput+ const overBudget = monthlyCredits != null && budgetCredits != null && monthlyCredits > budgetCredits++ const saveDisabledReason =+ getReplayVisionEditDisabledReason(scanner.user_access_level) ??+ (zeroMatches ? 'No recordings are eligible. Change the filter first.' : undefined)++ return (+ <div className="flex flex-col gap-3">+ <OverviewSection label="What it understood" scannerId={scannerId}>+ <div className="text-sm">{goalDraft?.rationale?.trim() || scanner.description}</div>+ </OverviewSection>++ <OverviewSection label="Name" editStep="details" scannerId={scannerId}>+ <div className="text-sm font-medium">{scanner.name}</div>+ {scanner.description ? <div className="text-sm text-muted">{scanner.description}</div> : null}+ </OverviewSection>++ <OverviewSection label="What it will ask" editStep="configure" scannerId={scannerId}>+ <div className="space-y-3">+ <LemonTag type={SCANNER_TYPE_TAG_TYPE[scanner.scanner_type]}>+ {scannerTypeLabel(scanner.scanner_type)}+ </LemonTag>+ <div className="text-sm whitespace-pre-wrap">{scanner.scanner_config.prompt}</div>+ <div className="grid grid-cols-[auto_1fr] items-center gap-x-3 gap-y-1 text-sm border-t pt-3">+ <StatRow label="Model">+ <span className="inline-flex items-center gap-2">+ <LemonTag type="muted">{modelName(scanner.model)}</LemonTag>+ {creditsPerObservation != null ? (+ <span className="text-muted">+ {formatCreditCount(creditsPerObservation)} / observation+ </span>+ ) : null}+ </span>+ </StatRow>+ </div>+ <div className="text-xs text-muted">{modelRoleLabel(scanner.model)}</div>+ </div>+ </OverviewSection>++ <OverviewSection label="Eligible recordings" editStep="triggers" scannerId={scannerId}>+ {pageValues || eventValues.length > 0 ? (+ <div className="flex flex-wrap gap-1">+ {(pageValues ?? []).map((page) => (+ <LemonSnack key={`page-${String(page)}`}>{String(page)}</LemonSnack>+ ))}+ {eventValues.map((event) => (+ <LemonSnack key={`event-${event}`}>{event}</LemonSnack>+ ))}+ </div>+ ) : (+ <div className="text-sm">Every recording (no filter)</div>+ )}+ {scannerEstimateLoading ? (+ <div className="flex items-center gap-2 text-sm text-muted">+ <Spinner />+ <span>Counting eligible recordings…</span>+ </div>+ ) : zeroMatches ? (+ <LemonBanner type="warning">+ No recordings match these filters for the last {pluralize(scannerEstimate.window_days, 'day')}.+ Change the filter, or the scanner may never run.+ </LemonBanner>+ ) : scannerEstimate ? (+ <div className="text-sm text-muted">+ {scannerEstimate.matched_sessions_in_window.toLocaleString()} in the last{' '}+ {pluralize(scannerEstimate.window_days, 'day')}+ </div>+ ) : null}+ </OverviewSection>++ <OverviewSection+ label="Sampling and budget"+ info="Estimated from your last 7 days of recordings, projected to a month. Your real volume follows your future traffic, so treat this as a guide."+ editStep="budget"+ scannerId={scannerId}+ >+ <div className="grid grid-cols-[auto_1fr] items-center gap-x-3 gap-y-2 text-sm">+ <StatRow label="Goal">+ {monthlyObservations != null ? (+ <span className="font-medium">+ about {monthlyObservations.toLocaleString()} recordings a month+ </span>+ ) : scannerEstimateLoading ? (+ <Spinner />+ ) : (+ <span className="text-muted">Not available</span>+ )}+ </StatRow>+ <StatRow label="Sampling">+ <LemonTag type="muted">{samplingPct}%</LemonTag>+ </StatRow>+ <StatRow label="Activity filter">+ <LemonTag type="muted">{activityFilterLabel(scanner.sampling_mode)}</LemonTag>+ </StatRow>+ <StatRow label="Cost estimate">+ {monthlyCredits != null ? (+ <span>+ about {formatCreditCount(monthlyCredits)} a month (≈ {creditsToUsd(monthlyCredits)})+ </span>+ ) : scannerEstimateLoading ? (+ <Spinner />+ ) : (+ <span className="text-muted">Not available</span>+ )}+ </StatRow>+ {scanner.credit_limit != null ? (+ <StatRow label="Monthly cap">+ <span className="text-muted">{formatCreditCount(scanner.credit_limit)}</span>+ </StatRow>+ ) : null}+ </div>+ {overBudget ? (+ <LemonBanner type="warning">+ This is already at the lowest sampling rate, so it will watch about{' '}+ {monthlyObservations?.toLocaleString()} recordings a month, more than your budget covers. To+ watch fewer, narrow which recordings are eligible above, for example by device type or country.+ </LemonBanner>+ ) : null}+ </OverviewSection>++ <div className="flex items-center justify-end gap-2">+ <LemonButton+ type="secondary"+ onClick={() => router.actions.push(urls.replayVisionScannerTemplate('new'))}+ data-attr="vision-goal-overview-start-over"+ >+ Start over+ </LemonButton>+ <LemonButton+ type="primary"+ onClick={() => submitScanner()}+ loading={isScannerSubmitting}+ disabledReason={saveDisabledReason}+ data-attr="vision-goal-overview-create"+ >+ Create scanner+ </LemonButton>+ </div>+ </div>+ )+}++/** The overview's shape while the draft is still generating, so navigating there reads as progress. */+function ScannerGoalOverviewSkeleton(): JSX.Element {+ return (+ <div className="flex flex-col gap-3">+ {['What it understood', 'Name', 'What it will ask', 'Eligible recordings', 'Sampling and budget'].map(+ (label) => (+ <div key={label} className="bg-bg-light border rounded-lg p-4 space-y-2">+ <div className="text-xs text-tertiary uppercase tracking-wide">{label}</div>+ <LemonSkeleton className="h-4 w-3/4" />+ <LemonSkeleton className="h-4 w-1/2" />+ </div>+ )+ )}+ </div>+ )+}diff --git a/products/replay_vision/frontend/replay_scanners/replayScannerLogic.ts b/products/replay_vision/frontend/replay_scanners/replayScannerLogic.tsindex c1cfdac9c51e..640eff431501 100644--- a/products/replay_vision/frontend/replay_scanners/replayScannerLogic.ts+++ b/products/replay_vision/frontend/replay_scanners/replayScannerLogic.ts@@ -87,6 +87,7 @@ import { availableTagsFromStats, daysFromDateRange, deriveObservationStatusStatsimport { findScannerTemplate, newScanner } from './scannerTemplates'import {MAX_CREDIT_LIMIT,+ SamplingMode,ScannerConfig,defaultScannerName,ScannerFormValues,@@ -297,6 +298,7 @@ export interface replayScannerLogicValues {durationValidationError: string | nullestimateRequestVersion: numberexperimentContext: ExperimentScannerContext | null+ goalBudgetInput: number | nullgoalDraft: DraftScannerResponseApi | nullgoalDraftInput: stringgoalDraftLoading: boolean@@ -384,8 +386,12 @@ export interface replayScannerLogicActions {dismissTagSuggestions: () => {value: true}- draftScannerFromGoal: (goal: string) => {+ draftScannerFromGoal: (+ goal: string,+ monthlyCreditBudget?: number+ ) => {goal: string+ monthlyCreditBudget: number | undefined}draftScannerFromGoalFailure: (error: string,@@ -398,11 +404,13 @@ export interface replayScannerLogicActions {goalDraft: DraftScannerResponseApi | null,payload?: {goal: string+ monthlyCreditBudget: number | undefined}) => {goalDraft: DraftScannerResponseApi | nullpayload?: {goal: string+ monthlyCreditBudget: number | undefined}}loadObservationStats: () => {@@ -552,6 +560,9 @@ export interface replayScannerLogicActions {setExperimentVariant: (variantKey: string | null) => {variantKey: string | null}+ setGoalBudgetInput: (budget: number | null) => {+ budget: number | null+ }setGoalDraftInput: (goal: string) => {goal: string}@@ -734,8 +745,9 @@ export const replayScannerLogic = kea<replayScannerLogicType>([acceptTagSuggestion: (tag: string) => ({ tag }),acceptAllTagSuggestions: true,dismissTagSuggestions: true,- draftScannerFromGoal: (goal: string) => ({ goal }),+ draftScannerFromGoal: (goal: string, monthlyCreditBudget?: number) => ({ goal, monthlyCreditBudget }),setGoalDraftInput: (goal: string) => ({ goal }),+ setGoalBudgetInput: (budget: number | null) => ({ budget }),loadObservations: (background = false) => ({ background }),loadObservationsSuccess: (observations: ReplayObservationApi[], total: number) => ({ observations, total }),loadObservationsFailure: true,@@ -845,7 +857,10 @@ export const replayScannerLogic = kea<replayScannerLogicType>([// A non-final step only ever offers "Next", so any submit there advances rather than persisting.// Enter would otherwise save an existing scanner and leave the wizard from the middle of it.const currentStep = scannerEditorSceneLogic.findMounted()?.values.step ?? 'configure'- const nextStep = SCANNER_EDITOR_STEPS[SCANNER_EDITOR_STEPS.indexOf(currentStep) + 1]+ // The overview step sits outside the manual wizard's step list (indexOf -1), so its+ // submit must persist rather than resolve to the list's first step and navigate there.+ const currentStepIndex = SCANNER_EDITOR_STEPS.indexOf(currentStep)+ const nextStep = currentStepIndex === -1 ? undefined : SCANNER_EDITOR_STEPS[currentStepIndex + 1]if (nextStep) {router.actions.push(scannerStepUrlWithParams(nextStep, props.id, router.values.searchParams))return@@ -936,12 +951,17 @@ export const replayScannerLogic = kea<replayScannerLogicType>([null as DraftScannerResponseApi | null,{// Errors surface through draftScannerFromGoalFailure; kea-loaders dispatches it for us.- draftScannerFromGoal: async ({ goal }) => {+ draftScannerFromGoal: async ({ goal, monthlyCreditBudget }) => {const teamId = teamLogic.values.currentTeamIdif (!teamId || !goal.trim()) {return values.goalDraft}- return await visionScannersDraftCreate(String(teamId), { goal: goal.trim() })+ return await visionScannersDraftCreate(String(teamId), {+ goal: goal.trim(),+ ...(typeof monthlyCreditBudget === 'number' && monthlyCreditBudget > 0+ ? { monthly_credit_budget: monthlyCreditBudget }+ : {}),+ })},},],@@ -990,6 +1010,14 @@ export const replayScannerLogic = kea<replayScannerLogicType>([startFromTemplate: () => '',},],+ // The monthly credit budget input on the goal-based creation flow. Default 5,000 credits+ // (~$50): the round anchor the budget question shows, and enough for a real first scanner.+ goalBudgetInput: [+ 5000 as number | null,+ {+ setGoalBudgetInput: (_, { budget }) => budget,+ },+ ],// A template pick replaces the drafted form, so its rationale no longer describes the config.goalDraft: [null as DraftScannerResponseApi | null,@@ -1683,13 +1711,19 @@ export const replayScannerLogic = kea<replayScannerLogicType>([},// Fires on request rather than result, so failed drafts still count as entering the AI path.- draftScannerFromGoal: ({ goal }) => {+ draftScannerFromGoal: ({ goal, monthlyCreditBudget }) => {posthog.capture('replay_vision_scanner_creation_started', {creation_method: 'ai',template_key: null,// The goal is customer text, so only its length is captured.goal_length: goal.trim().length,})+ // Goal flow: land on the overview immediately, in its skeleton state, so the wait+ // reads as progress rather than a stuck button. A budget marks the goal flow; the+ // legacy AI box passes none and keeps opening the details step on success.+ if (monthlyCreditBudget != null) {+ router.actions.push(urls.replayVisionScannerOverview('new'))+ }},// A successful AI draft seeds the wizard form, then the configure step opens for review.@@ -1699,10 +1733,12 @@ export const replayScannerLogic = kea<replayScannerLogicType>([}// The model call can take a while; if the user picked a template or navigated away// meanwhile, their newer state wins and the stale draft is dropped. The box lives on- // the template step and the zero-scanner empty state, so both count as still there.+ // the template step and the zero-scanner empty state; the goal flow has already moved+ // to the overview skeleton, so all three count as still there.const pathname = router.values.location.pathnameif (!pathname.endsWith(urls.replayVisionScannerTemplate('new')) &&+ !pathname.endsWith(urls.replayVisionScannerOverview('new')) &&!pathname.endsWith(urls.replayVision())) {return@@ -1718,12 +1754,35 @@ export const replayScannerLogic = kea<replayScannerLogicType>([// The drafted session filter (when the goal mapped to real screens or events); the// triggers step shows it for review like any hand-picked filter....(goalDraft.query ? { query: goalDraft.query as RecordingsQuery } : {}),+ // A goal-flow draft also solves the budget dials; legacy drafts keep the wizard defaults.+ ...(goalDraft.sampling_mode ? { sampling_mode: goalDraft.sampling_mode as SamplingMode } : {}),+ ...(goalDraft.sampling_rate != null ? { sampling_rate: goalDraft.sampling_rate } : {}),+ // The model the draft chose for the goal, and the credit cap set to the stated+ // budget. credit_limit_enabled is UI-only form state, so turn it on alongside.+ ...(goalDraft.model ? { model: goalDraft.model } : {}),+ ...(goalDraft.credit_limit != null+ ? { credit_limit: goalDraft.credit_limit, credit_limit_enabled: true }+ : {}),})- router.actions.push(urls.replayVisionScannerDetails('new'))+ // Solved dials mark a goal-flow draft, which reviews on the overview; legacy drafts+ // open the details step. The goal flow is already on the overview (pushed on request),+ // so this only navigates the legacy path.+ const isGoalFlowDraft = goalDraft.sampling_mode != null || goalDraft.sampling_rate != null+ if (isGoalFlowDraft) {+ // The form now carries the drafted filter, so count what it will actually watch.+ actions.loadScannerEstimate()+ } else {+ router.actions.push(urls.replayVisionScannerDetails('new'))+ }},draftScannerFromGoalFailure: ({ errorObject }) => {lemonToast.error(`Couldn't draft a scanner${errorObject?.detail ? `: ${errorObject.detail}` : ''}`)+ // The goal flow moved to the overview skeleton on request; with no draft to show,+ // send the user back to the questions to try again.+ if (router.values.location.pathname.endsWith(urls.replayVisionScannerOverview('new'))) {+ router.actions.push(urls.replayVisionScannerTemplate('new'))+ }},// Merge AI-suggested tags into the vocabulary: keep existing tags, append new ones, dedupe case-insensitively.@@ -2213,6 +2272,8 @@ export type ObservationsUrlParams = Partial<Record<(typeof TABLE_URL_PARAM_KEYS)function scannerEditorPaths(scannerId: string): string[] {return [...SCANNER_EDITOR_STEPS.map((step) => scannerStepUrl(step, scannerId)),+ // The goal flow's overview step is editor territory too, though it sits outside the manual stepper.+ scannerStepUrl('overview', scannerId),// Retired step: the redirect off it must not trip the unsaved-changes guard.urls.replayVisionScannerSelfDriving(scannerId),]diff --git a/products/replay_vision/frontend/replay_scanners/scannerEditorSceneLogic.ts b/products/replay_vision/frontend/replay_scanners/scannerEditorSceneLogic.tsindex 60bdb864b546..c5426a068477 100644--- a/products/replay_vision/frontend/replay_scanners/scannerEditorSceneLogic.ts+++ b/products/replay_vision/frontend/replay_scanners/scannerEditorSceneLogic.ts@@ -8,7 +8,8 @@ import { Breadcrumb } from '~/types'import { VISION_ROOT_BREADCRUMB, scannerBreadcrumb } from '../utils/breadcrumbs'-export type ScannerEditorStep = 'template' | 'details' | 'configure' | 'triggers' | 'budget'+export type ScannerEditorStep = 'template' | 'overview' | 'details' | 'configure' | 'triggers' | 'budget'+// The manual wizard's stepper; overview belongs to the goal-based flow only, so it stays out.export const SCANNER_EDITOR_STEPS: readonly ScannerEditorStep[] = ['template','details',@@ -18,13 +19,15 @@ export const SCANNER_EDITOR_STEPS: readonly ScannerEditorStep[] = []export const SCANNER_EDITOR_STEP_ORDER: Record<ScannerEditorStep, number> = {template: 0,- details: 1,- configure: 2,- triggers: 3,- budget: 4,+ overview: 1,+ details: 2,+ configure: 3,+ triggers: 4,+ budget: 5,}export const STEP_LABELS: Record<ScannerEditorStep, string> = {template: 'Template',+ overview: 'Overview',details: 'Details',configure: 'Configure',triggers: 'Recordings',@@ -45,6 +48,7 @@ export const UNVALIDATED_SCANNER_STEPS: readonly ScannerEditorStep[] = ['templatexport function scannerStepErrors(errors: ScannerFieldErrors): Record<ScannerEditorStep, boolean> {return {template: false,+ overview: false,details: false,configure: !!errors.scanner_config,triggers: !!errors.duration,@@ -74,6 +78,8 @@ export function scannerStepUrl(step: ScannerEditorStep, scannerId: string): striswitch (step) {case 'template':return urls.replayVisionScannerTemplate(scannerId)+ case 'overview':+ return urls.replayVisionScannerOverview(scannerId)case 'details':return urls.replayVisionScannerDetails(scannerId)case 'configure':@@ -171,6 +177,16 @@ export const scannerEditorSceneLogic = kea<scannerEditorSceneLogicType>([path: scannerStepUrlWithParams('template', scannerId, searchParams),})if (step !== 'template') {+ // Editing a section reached from the goal overview: slot the overview in as the+ // back target, so leaving the edit returns there rather than to the template.+ if (searchParams.from === 'overview' && step !== 'overview') {+ const { from: _from, ...overviewParams } = searchParams+ crumbs.push({+ key: 'new-scanner-overview',+ name: STEP_LABELS.overview,+ path: scannerStepUrlWithParams('overview', scannerId, overviewParams),+ })+ }crumbs.push({ key: 'new-scanner-step', name: STEP_LABELS[step] })}return crumbs@@ -201,6 +217,15 @@ export const scannerEditorSceneLogic = kea<scannerEditorSceneLogicType>([actions.setStep('template')}},+ [urls.replayVisionScannerOverview(':id')]: ({ id }) => {+ const scannerId = id || 'new'+ if (scannerId !== values.scannerId) {+ actions.setScannerId(scannerId)+ }+ if (values.step !== 'overview') {+ actions.setStep('overview')+ }+ },[urls.replayVisionScannerDetails(':id')]: ({ id }) => {const scannerId = id || 'new'if (scannerId !== values.scannerId) {diff --git a/products/replay_vision/manifest.tsx b/products/replay_vision/manifest.tsxindex 53a2ae5dee52..a8b305f9aaa9 100644--- a/products/replay_vision/manifest.tsx+++ b/products/replay_vision/manifest.tsx@@ -67,6 +67,7 @@ export const manifest: ProductManifest = {'/replay-vision/actions/:actionId': ['ReplayVisionAction', 'replayVisionAction'],'/replay-vision/:scannerId/actions/new': ['ReplayVisionActionEditor', 'replayVisionActionNew'],'/replay-vision/:id/template': ['ReplayVisionScannerEditor', 'replayVisionScannerTemplate'],+ '/replay-vision/:id/overview': ['ReplayVisionScannerEditor', 'replayVisionScannerOverview'],'/replay-vision/:id/details': ['ReplayVisionScannerEditor', 'replayVisionScannerDetails'],'/replay-vision/:id/configure': ['ReplayVisionScannerEditor', 'replayVisionScannerConfigure'],'/replay-vision/:id/triggers': ['ReplayVisionScannerEditor', 'replayVisionScannerTriggers'],@@ -83,6 +84,7 @@ export const manifest: ProductManifest = {(id?: string): string => (id ? `/replay-vision/${id}` : '/replay-vision'),replayVisionTemplates: (): string => '/replay-vision/new/template',replayVisionScannerTemplate: (id: string): string => `/replay-vision/${id}/template`,+ replayVisionScannerOverview: (id: string): string => `/replay-vision/${id}/overview`,replayVisionScannerDetails: (id: string): string => `/replay-vision/${id}/details`,replayVisionScannerConfigure: (id: string): string => `/replay-vision/${id}/configure`,replayVisionScannerTriggers: (id: string): string => `/replay-vision/${id}/triggers`,diff --git a/services/mcp/src/tools/links/app-url-manifest.json b/services/mcp/src/tools/links/app-url-manifest.jsonindex 64e7473ecee4..9309db194dd5 100644--- a/services/mcp/src/tools/links/app-url-manifest.json+++ b/services/mcp/src/tools/links/app-url-manifest.json@@ -1339,6 +1339,11 @@"params": ["id"],"scope": "project"},+ "replayVisionScannerOverview": {+ "template": "/replay-vision/{id}/overview",+ "params": ["id"],+ "scope": "project"+ },"replayVisionScannerSelfDriving": {"template": "/replay-vision/{id}/self-driving","params": ["id"],diff --git a/services/mcp/tests/unit/__snapshots__/tool-schemas/generate-app-url.json b/services/mcp/tests/unit/__snapshots__/tool-schemas/generate-app-url.jsonindex 52ce6e63f842..2ec2ddce0c6e 100644--- a/services/mcp/tests/unit/__snapshots__/tool-schemas/generate-app-url.json+++ b/services/mcp/tests/unit/__snapshots__/tool-schemas/generate-app-url.json@@ -13,7 +13,7 @@"type": "object"},"url": {- "description": "A path template copied verbatim from the catalog below (e.g. `/persons/{uuid}`). Its `{placeholders}` are filled from `params`. These slugs come from PostHog's canonical route table, so they are always correct — never pass a path that is not in this list.\n\n/account-connected/{kind}\n/account/credential-review\n/account/social-connected\n/activity-logs\n/activity/{tab}\n/agentic/account-mismatch\n/agentic/authorize\n/ai\n/ai-enrichment\n/ai-evals/datasets\n/ai-evals/datasets/{id}\n/ai-evals/evaluations\n/ai-evals/evaluations/offline/experiments\n/ai-evals/evaluations/offline/experiments/{experimentId}\n/ai-evals/evaluations/templates\n/ai-evals/evaluations/{id}\n/ai-evals/taggers\n/ai-evals/taggers/{id}\n/ai-gateway\n/ai-observability/clusters\n/ai-observability/clusters/{runId}/{clusterId}\n/ai-observability/dashboard\n/ai-observability/errors\n/ai-observability/generations\n/ai-observability/playground\n/ai-observability/reviews\n/ai-observability/self-driving\n/ai-observability/sentiment\n/ai-observability/sessions\n/ai-observability/sessions/{id}\n/ai-observability/tools\n/ai-observability/traces\n/ai-observability/traces/{id}\n/ai-observability/users\n/ai/history\n/alerts\n/approvals/{id}\n/billing/authorization_status\n/business-knowledge\n/canvas\n/cli/authorize\n/cli/live\n/code-review\n/code/canvas/{channelId}/{dashboardId}\n/code/channel/{channelId}\n/code/task/{taskId}\n/cohorts\n/cohorts/{id}\n/cohorts/{id}/calculation-history\n/connect/vercel/link\n/coupons/{campaign}\n/create-organization\n/customer_analytics\n/customer_analytics/accounts\n/customer_analytics/accounts/{accountId}\n/customer_analytics/announcements\n/customer_analytics/configuration\n/customer_analytics/dashboard\n/customer_analytics/feature-requests\n/customer_analytics/feed\n/customer_analytics/journeys\n/customer_analytics/journeys/new\n/customer_analytics/journeys/templates\n/customer_analytics/journeys/{id}/edit\n/customer_analytics/notes\n/dashboard\n/dashboard/templates/{templateId}/copy-to-project\n/dashboard/{id}\n/dashboard/{id}/button-tiles/{buttonTileId}\n/dashboard/{id}/sharing\n/dashboard/{id}/subscriptions\n/dashboard/{id}/subscriptions/{subscriptionId}\n/dashboard/{id}/text-tiles/{textTileId}\n/data-catalog\n/data-catalog/metrics/{name}\n/data-management/actions\n/data-management/actions/new\n/data-management/actions/new/\n/data-management/actions/{id}\n/data-management/annotations\n/data-management/annotations/{id}\n/data-management/comments\n/data-management/comments/{id}\n/data-management/core-events\n/data-management/database\n/data-management/destinations\n/data-management/event-filtering\n/data-management/events\n/data-management/events/{id}\n/data-management/events/{id}/edit\n/data-management/history\n/data-management/ingestion-warnings\n/data-management/ingestion-warnings-v2\n/data-management/managed-viewsets\n/data-management/materialized-columns\n/data-management/properties\n/data-management/properties/{id}\n/data-management/properties/{id}/edit\n/data-management/revenue\n/data-management/schema\n/data-management/sources\n/data-management/sources/{id}/schemas\n/data-management/sources/{sourceId}/schemas/{schemaId}\n/data-management/transformations\n/data-management/variables\n/data-management/variables/{id}\n/data-management/variables/{id}/edit\n/data-management/warehouse-properties\n/data-ops\n/data-warehouse/connect\n/data-warehouse/new-source\n/debug\n/debug/hog\n/early_access_features\n/early_access_features/{id}\n/embedded/{token}\n/endpoints\n/endpoints/{name}\n/engineering-analytics/authors/{handle}\n/engineering-analytics/overview\n/engineering-analytics/pull-requests\n/engineering-analytics/repos/{repoOwner}/{repoName}/actions/runs/{runId}\n/engineering-analytics/repos/{repoOwner}/{repoName}/actions/workflows/{workflowName}\n/engineering-analytics/repos/{repoOwner}/{repoName}/pull-requests/{number}\n/engineering-analytics/teams\n/engineering-analytics/teams/{ownerTeam}\n/engineering-analytics/test-health\n/engineering-analytics/workflows\n/error_tracking\n/error_tracking/alerts/new/{templateId}\n/error_tracking/alerts/{id}\n/error_tracking/fingerprint/{fingerprint}\n/error_tracking/{id}\n/error_tracking/{id}/fingerprints\n/events/{id}/{timestamp}\n/experiments\n/experiments/shared-metrics\n/experiments/shared-metrics/{id}\n/experiments/staff\n/experiments/{id}\n/exports\n/feature_flags\n/feature_flags/new\n/feature_flags/staff\n/feature_flags/staff/cohorts\n/feature_flags/templates\n/feature_flags/{id}\n/functions/new/{templateId}\n/functions/{id}\n/games/368hedgehogs\n/games/flappyhog\n/groups/{groupTypeIndex}\n/groups/{groupTypeIndex}/new\n/groups/{groupTypeIndex}/{groupKey}\n/health\n/health/alerts\n/health/pipeline-status\n/health/sdk-health\n/health/{category}\n/heatmaps\n/heatmaps/new\n/heatmaps/recording\n/heatmaps/{id}\n/home\n/identity-matching\n/inbox\n/inbox/reports/triage\n/inbox/scouts/findings\n/inbox/scouts/runs\n/inbox/scouts/scratchpad\n/inbox/scouts/{skillName}\n/inbox/{tab}/{reportId}\n/insights\n/insights/new\n/insights/quick-start\n/insights/{id}\n/insights/{id}/edit\n/insights/{id}/sharing\n/insights/{id}/subscriptions\n/insights/{id}/subscriptions/{subscriptionId}\n/insights/{insightShortId}/alerts\n/instance/async_migrations\n/instance/async_migrations/future\n/instance/async_migrations/settings\n/instance/dead_letter_queue\n/instance/kafka_inspector\n/instance/metrics\n/instance/settings\n/instance/staff_users\n/instance/status\n/integrations/stripe/confirm-install\n/integrations/vercel/link-error\n/integrations/{kind}/callback\n/integrations/{slug}\n/legal\n/legal/new/{type}\n/link/{id}\n/links\n/live-debugger\n/login\n/login/2fa\n/login/2fa_setup\n/logs\n/logs/alerts/{alertId}/notifications/{hogFunctionId}\n/logs/alerts/{id}\n/logs/drop-rules/new\n/logs/drop-rules/{id}\n/logs/retention-rules/new\n/logs/retention-rules/{id}\n/managed_migrations\n/managed_migrations/new\n/marketing\n/mcp-analytics/activity\n/mcp-analytics/dashboard\n/mcp-analytics/intent-clustering\n/mcp-analytics/notifications\n/mcp-analytics/sessions\n/mcp-analytics/tool-quality\n/mcp-analytics/tool-quality/{toolName}\n/mcp-servers\n/mcp-servers/agent/{id}\n/mcp-servers/member/{id}\n/mcp-servers/server/{id}\n/mcp-servers/{tab}\n/metrics\n/models\n/models/{id}\n/move-to-cloud\n/my-tickets\n/notebooks\n/notebooks/{shortId}\n/oauth/authorize\n/onboarding\n/organization-deactivated\n/organization-pending-deletion\n/organization/billing\n/organization/billing/overview\n/organization/confirm-creation\n/organization/create-project\n/person/{id}\n/persons\n/persons/{uuid}\n/pipeline/batch-exports/new/{service}\n/pipeline/batch-exports/{id}\n/pipeline/new/\n/pipeline/plugins/{id}\n/preflight\n/product_tours\n/product_tours/{id}\n/project-pending-deletion\n/prompt-management/prompts\n/prompt-management/prompts/{name}\n/pulse\n/replay-vision\n/replay-vision/actions/{actionId}\n/replay-vision/actions/{actionId}/edit\n/replay-vision/actions/{actionId}/runs/{runId}\n/replay-vision/new/template\n/replay-vision/observations/{observationId}\n/replay-vision/{id}/budget\n/replay-vision/{id}/configure\n/replay-vision/{id}/details\n/replay-vision/{id}/self-driving\n/replay-vision/{id}/template\n/replay-vision/{id}/triggers\n/replay-vision/{scannerId}/actions/new\n/replay/file-playback\n/replay/home\n/replay/kiosk\n/replay/playlists/{id}\n/replay/settings\n/replay/{id}\n/reset\n/reset/{userUuid}/{token}\n/reset_2fa/{userUuid}/{token}\n/resource-transfer/{resourceKind}/{resourceId}\n/sessions/{id}\n/settings/environment-approvals\n/settings/project\n/settings/user-feature-previews\n/shared/{token}\n/shared_dashboard/{shareToken}\n/signup\n/signup/{id}\n/site/{url}\n/skills\n/skills/community\n/skills/{categoryTab}\n/skills/{name}\n/slack-task-context\n/sql\n/stamphog\n/stamphog/digests\n/stamphog/install/callback\n/stamphog/runs\n/startups\n/streamlit-apps\n/streamlit-apps/new\n/streamlit-apps/{id}\n/streamlit-apps/{id}/edit\n/subscriptions\n/subscriptions/new\n/subscriptions/{id}\n/subscriptions/{id}/edit\n/support\n/support/settings\n/support/tickets\n/support/tickets/{ticketId}\n/surveys\n/surveys/form/new\n/surveys/guided/new\n/surveys/{id}\n/tasks\n/tasks/new\n/tasks/{taskId}\n/themes/custom-css\n/toolbar\n/tracing\n/unsubscribe\n/user_research\n/user_research/{id}\n/user_research/{topicId}/response/{responseId}\n/verify_email\n/visual_review\n/visual_review/repos/{repoId}/flakiness\n/visual_review/repos/{repoId}/runs\n/visual_review/repos/{repoId}/snapshots\n/visual_review/repos/{repoId}/{runType}/snapshots/{identifier}\n/visual_review/runs/{runId}\n/visual_review/settings\n/web\n/web-scripts\n/web-scripts/new\n/web/bots\n/web/health\n/web/live\n/web/marketing\n/web/page-performance\n/web/page-reports\n/web/recap\n/web/session-attribution-explorer\n/web/web-vitals\n/wizard\n/workflows\n/workflows/library/messages/{id}\n/workflows/library/templates/new\n/workflows/library/templates/{id}\n/workflows/new/workflow\n/workflows/{id}/{tab}",+ "description": "A path template copied verbatim from the catalog below (e.g. `/persons/{uuid}`). Its `{placeholders}` are filled from `params`. These slugs come from PostHog's canonical route table, so they are always correct — never pass a path that is not in this list.\n\n/account-connected/{kind}\n/account/credential-review\n/account/social-connected\n/activity-logs\n/activity/{tab}\n/agentic/account-mismatch\n/agentic/authorize\n/ai\n/ai-enrichment\n/ai-evals/datasets\n/ai-evals/datasets/{id}\n/ai-evals/evaluations\n/ai-evals/evaluations/offline/experiments\n/ai-evals/evaluations/offline/experiments/{experimentId}\n/ai-evals/evaluations/templates\n/ai-evals/evaluations/{id}\n/ai-evals/taggers\n/ai-evals/taggers/{id}\n/ai-gateway\n/ai-observability/clusters\n/ai-observability/clusters/{runId}/{clusterId}\n/ai-observability/dashboard\n/ai-observability/errors\n/ai-observability/generations\n/ai-observability/playground\n/ai-observability/reviews\n/ai-observability/self-driving\n/ai-observability/sentiment\n/ai-observability/sessions\n/ai-observability/sessions/{id}\n/ai-observability/tools\n/ai-observability/traces\n/ai-observability/traces/{id}\n/ai-observability/users\n/ai/history\n/alerts\n/approvals/{id}\n/billing/authorization_status\n/business-knowledge\n/canvas\n/cli/authorize\n/cli/live\n/code-review\n/code/canvas/{channelId}/{dashboardId}\n/code/channel/{channelId}\n/code/task/{taskId}\n/cohorts\n/cohorts/{id}\n/cohorts/{id}/calculation-history\n/connect/vercel/link\n/coupons/{campaign}\n/create-organization\n/customer_analytics\n/customer_analytics/accounts\n/customer_analytics/accounts/{accountId}\n/customer_analytics/announcements\n/customer_analytics/configuration\n/customer_analytics/dashboard\n/customer_analytics/feature-requests\n/customer_analytics/feed\n/customer_analytics/journeys\n/customer_analytics/journeys/new\n/customer_analytics/journeys/templates\n/customer_analytics/journeys/{id}/edit\n/customer_analytics/notes\n/dashboard\n/dashboard/templates/{templateId}/copy-to-project\n/dashboard/{id}\n/dashboard/{id}/button-tiles/{buttonTileId}\n/dashboard/{id}/sharing\n/dashboard/{id}/subscriptions\n/dashboard/{id}/subscriptions/{subscriptionId}\n/dashboard/{id}/text-tiles/{textTileId}\n/data-catalog\n/data-catalog/metrics/{name}\n/data-management/actions\n/data-management/actions/new\n/data-management/actions/new/\n/data-management/actions/{id}\n/data-management/annotations\n/data-management/annotations/{id}\n/data-management/comments\n/data-management/comments/{id}\n/data-management/core-events\n/data-management/database\n/data-management/destinations\n/data-management/event-filtering\n/data-management/events\n/data-management/events/{id}\n/data-management/events/{id}/edit\n/data-management/history\n/data-management/ingestion-warnings\n/data-management/ingestion-warnings-v2\n/data-management/managed-viewsets\n/data-management/materialized-columns\n/data-management/properties\n/data-management/properties/{id}\n/data-management/properties/{id}/edit\n/data-management/revenue\n/data-management/schema\n/data-management/sources\n/data-management/sources/{id}/schemas\n/data-management/sources/{sourceId}/schemas/{schemaId}\n/data-management/transformations\n/data-management/variables\n/data-management/variables/{id}\n/data-management/variables/{id}/edit\n/data-management/warehouse-properties\n/data-ops\n/data-warehouse/connect\n/data-warehouse/new-source\n/debug\n/debug/hog\n/early_access_features\n/early_access_features/{id}\n/embedded/{token}\n/endpoints\n/endpoints/{name}\n/engineering-analytics/authors/{handle}\n/engineering-analytics/overview\n/engineering-analytics/pull-requests\n/engineering-analytics/repos/{repoOwner}/{repoName}/actions/runs/{runId}\n/engineering-analytics/repos/{repoOwner}/{repoName}/actions/workflows/{workflowName}\n/engineering-analytics/repos/{repoOwner}/{repoName}/pull-requests/{number}\n/engineering-analytics/teams\n/engineering-analytics/teams/{ownerTeam}\n/engineering-analytics/test-health\n/engineering-analytics/workflows\n/error_tracking\n/error_tracking/alerts/new/{templateId}\n/error_tracking/alerts/{id}\n/error_tracking/fingerprint/{fingerprint}\n/error_tracking/{id}\n/error_tracking/{id}/fingerprints\n/events/{id}/{timestamp}\n/experiments\n/experiments/shared-metrics\n/experiments/shared-metrics/{id}\n/experiments/staff\n/experiments/{id}\n/exports\n/feature_flags\n/feature_flags/new\n/feature_flags/staff\n/feature_flags/staff/cohorts\n/feature_flags/templates\n/feature_flags/{id}\n/functions/new/{templateId}\n/functions/{id}\n/games/368hedgehogs\n/games/flappyhog\n/groups/{groupTypeIndex}\n/groups/{groupTypeIndex}/new\n/groups/{groupTypeIndex}/{groupKey}\n/health\n/health/alerts\n/health/pipeline-status\n/health/sdk-health\n/health/{category}\n/heatmaps\n/heatmaps/new\n/heatmaps/recording\n/heatmaps/{id}\n/home\n/identity-matching\n/inbox\n/inbox/reports/triage\n/inbox/scouts/findings\n/inbox/scouts/runs\n/inbox/scouts/scratchpad\n/inbox/scouts/{skillName}\n/inbox/{tab}/{reportId}\n/insights\n/insights/new\n/insights/quick-start\n/insights/{id}\n/insights/{id}/edit\n/insights/{id}/sharing\n/insights/{id}/subscriptions\n/insights/{id}/subscriptions/{subscriptionId}\n/insights/{insightShortId}/alerts\n/instance/async_migrations\n/instance/async_migrations/future\n/instance/async_migrations/settings\n/instance/dead_letter_queue\n/instance/kafka_inspector\n/instance/metrics\n/instance/settings\n/instance/staff_users\n/instance/status\n/integrations/stripe/confirm-install\n/integrations/vercel/link-error\n/integrations/{kind}/callback\n/integrations/{slug}\n/legal\n/legal/new/{type}\n/link/{id}\n/links\n/live-debugger\n/login\n/login/2fa\n/login/2fa_setup\n/logs\n/logs/alerts/{alertId}/notifications/{hogFunctionId}\n/logs/alerts/{id}\n/logs/drop-rules/new\n/logs/drop-rules/{id}\n/logs/retention-rules/new\n/logs/retention-rules/{id}\n/managed_migrations\n/managed_migrations/new\n/marketing\n/mcp-analytics/activity\n/mcp-analytics/dashboard\n/mcp-analytics/intent-clustering\n/mcp-analytics/notifications\n/mcp-analytics/sessions\n/mcp-analytics/tool-quality\n/mcp-analytics/tool-quality/{toolName}\n/mcp-servers\n/mcp-servers/agent/{id}\n/mcp-servers/member/{id}\n/mcp-servers/server/{id}\n/mcp-servers/{tab}\n/metrics\n/models\n/models/{id}\n/move-to-cloud\n/my-tickets\n/notebooks\n/notebooks/{shortId}\n/oauth/authorize\n/onboarding\n/organization-deactivated\n/organization-pending-deletion\n/organization/billing\n/organization/billing/overview\n/organization/confirm-creation\n/organization/create-project\n/person/{id}\n/persons\n/persons/{uuid}\n/pipeline/batch-exports/new/{service}\n/pipeline/batch-exports/{id}\n/pipeline/new/\n/pipeline/plugins/{id}\n/preflight\n/product_tours\n/product_tours/{id}\n/project-pending-deletion\n/prompt-management/prompts\n/prompt-management/prompts/{name}\n/pulse\n/replay-vision\n/replay-vision/actions/{actionId}\n/replay-vision/actions/{actionId}/edit\n/replay-vision/actions/{actionId}/runs/{runId}\n/replay-vision/new/template\n/replay-vision/observations/{observationId}\n/replay-vision/{id}/budget\n/replay-vision/{id}/configure\n/replay-vision/{id}/details\n/replay-vision/{id}/overview\n/replay-vision/{id}/self-driving\n/replay-vision/{id}/template\n/replay-vision/{id}/triggers\n/replay-vision/{scannerId}/actions/new\n/replay/file-playback\n/replay/home\n/replay/kiosk\n/replay/playlists/{id}\n/replay/settings\n/replay/{id}\n/reset\n/reset/{userUuid}/{token}\n/reset_2fa/{userUuid}/{token}\n/resource-transfer/{resourceKind}/{resourceId}\n/sessions/{id}\n/settings/environment-approvals\n/settings/project\n/settings/user-feature-previews\n/shared/{token}\n/shared_dashboard/{shareToken}\n/signup\n/signup/{id}\n/site/{url}\n/skills\n/skills/community\n/skills/{categoryTab}\n/skills/{name}\n/slack-task-context\n/sql\n/stamphog\n/stamphog/digests\n/stamphog/install/callback\n/stamphog/runs\n/startups\n/streamlit-apps\n/streamlit-apps/new\n/streamlit-apps/{id}\n/streamlit-apps/{id}/edit\n/subscriptions\n/subscriptions/new\n/subscriptions/{id}\n/subscriptions/{id}/edit\n/support\n/support/settings\n/support/tickets\n/support/tickets/{ticketId}\n/surveys\n/surveys/form/new\n/surveys/guided/new\n/surveys/{id}\n/tasks\n/tasks/new\n/tasks/{taskId}\n/themes/custom-css\n/toolbar\n/tracing\n/unsubscribe\n/user_research\n/user_research/{id}\n/user_research/{topicId}/response/{responseId}\n/verify_email\n/visual_review\n/visual_review/repos/{repoId}/flakiness\n/visual_review/repos/{repoId}/runs\n/visual_review/repos/{repoId}/snapshots\n/visual_review/repos/{repoId}/{runType}/snapshots/{identifier}\n/visual_review/runs/{runId}\n/visual_review/settings\n/web\n/web-scripts\n/web-scripts/new\n/web/bots\n/web/health\n/web/live\n/web/marketing\n/web/page-performance\n/web/page-reports\n/web/recap\n/web/session-attribution-explorer\n/web/web-vitals\n/wizard\n/workflows\n/workflows/library/messages/{id}\n/workflows/library/templates/new\n/workflows/library/templates/{id}\n/workflows/new/workflow\n/workflows/{id}/{tab}","type": "string"}},