: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): merge triggers into config tab (#60392)
Hayne Ryu0fca48b9abec
diff --git a/products/replay_vision/frontend/replay_scanners/ReplayScanner.tsx b/products/replay_vision/frontend/replay_scanners/ReplayScanner.tsxindex 4f06dc48da21..a31774f3b578 100644--- a/products/replay_vision/frontend/replay_scanners/ReplayScanner.tsx+++ b/products/replay_vision/frontend/replay_scanners/ReplayScanner.tsx@@ -4,6 +4,7 @@ import { Field, Form } from 'kea-forms'import {LemonBanner,LemonButton,+ LemonDivider,LemonInput,LemonSelect,LemonSwitch,@@ -62,16 +63,18 @@ export function ReplayScannerSceneComponent({ tabId }: { tabId: string }): JSX.Elabel: 'Observations',content: <ScannerObservationsTable scannerId={scannerId} tabId={tabId} />,},- {- key: 'triggers',- label: 'Triggers',- content: <ScannerTriggers scannerId={scannerId} tabId={tabId} />,- },{key: 'configuration',label: 'Configuration',content: (<div className="space-y-6 max-w-3xl">+ <div>+ <h3 className="text-base font-semibold mb-1">Details</h3>+ <p className="text-sm text-muted m-0">+ What this scanner looks for and how it analyzes recordings.+ </p>+ </div>+<Field name="name" label="Name"><LemonInput placeholder="e.g. Confused checkout flow" /></Field>@@ -125,6 +128,14 @@ export function ReplayScannerSceneComponent({ tabId }: { tabId: string }): JSX.E</div>)}</Field>++ <LemonDivider />++ <div>+ <h3 className="text-base font-semibold mb-1">Triggers</h3>+ <p className="text-sm text-muted m-0">Which completed recordings this scanner runs against.</p>+ </div>+ <ScannerTriggers scannerId={scannerId} tabId={tabId} /></div>),},diff --git a/products/replay_vision/frontend/replay_scanners/components/ScannerTriggers.tsx b/products/replay_vision/frontend/replay_scanners/components/ScannerTriggers.tsxindex 4a6ed471a5f2..be6ad076adab 100644--- a/products/replay_vision/frontend/replay_scanners/components/ScannerTriggers.tsx+++ b/products/replay_vision/frontend/replay_scanners/components/ScannerTriggers.tsx@@ -29,10 +29,6 @@ export function ScannerTriggers({ scannerId, tabId }: { scannerId: string; tabIdreturn (<div className="space-y-6 max-w-3xl">- <div className="text-sm text-muted">- Sampling and filters control which completed recordings this scanner runs against.- </div>-<Field name="sampling_rate" label="Sampling">{({ value, onChange }) => {const ratio = typeof value === 'number' ? value : 0diff --git a/products/replay_vision/frontend/replay_scanners/types.ts b/products/replay_vision/frontend/replay_scanners/types.tsindex 7ae1f6254980..c46275d3138f 100644--- a/products/replay_vision/frontend/replay_scanners/types.ts+++ b/products/replay_vision/frontend/replay_scanners/types.ts@@ -138,9 +138,9 @@ export const SCANNER_TYPE_OPTIONS: { value: ScannerType; label: string; descript},]-export type EditorTab = 'observations' | 'triggers' | 'configuration'+export type EditorTab = 'observations' | 'configuration'-export const ALL_EDITOR_TABS: EditorTab[] = ['observations', 'triggers', 'configuration']+export const ALL_EDITOR_TABS: EditorTab[] = ['observations', 'configuration']export interface MonitorScannerConfig {prompt: string