: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(signals): make the redesigned inbox welcome the default (#90956)
Chris Volzer6571f8861920
diff --git a/frontend/snapshots.yml b/frontend/snapshots.ymlindex f4426fb0b51f..ab450b426f18 100644--- a/frontend/snapshots.yml+++ b/frontend/snapshots.yml@@ -6973,13 +6973,9 @@ snapshots:scenes-app-inbox-scene--scouts--light:hash: v1.k794b7964.2d0a8abc429f43548f00527d3b176b8650f40ed182ba0475e666bb77f061078a.8XXnj_Uvhd1aNxXyol8047E0OIgWl-NqvOqsNlNro7kscenes-app-inbox-scene--self-driving-onboarding--dark:- hash: v1.k794b7964.5e81eb4ec6083b756cf5ab2de1059f4d804887749b0e8b10da4b991c9c755ab3.q6KeUB_9CSA5o4KSzEj8bv0X3J1zlkDmkmIRJx_5-Qw+ hash: v1.k794b7964.6b7b2950c3a0df456074962aada4405283deea5158415e032f0b0f8f25e5dbc2.xg-B8FCyxFnbFGtI5vZxy2htjDbFs0Dms_9sTrA7MwYscenes-app-inbox-scene--self-driving-onboarding--light:- hash: v1.k794b7964.be24516fea0f4ca4eb7751e66ef806f4302320a6fb47e9aede88d098a22b53af.s4WhJldE5gC0unqZ4TYrWRBtjk-Mh9gnzGczMLEpaM0- scenes-app-inbox-scene--self-driving-onboarding-redesign--dark:- hash: v1.k794b7964.6b7b2950c3a0df456074962aada4405283deea5158415e032f0b0f8f25e5dbc2.tm21mB5drTdEcJGDLgLSUiX8Rvel7_-Yt5GbSLLTwsA- scenes-app-inbox-scene--self-driving-onboarding-redesign--light:- hash: v1.k794b7964.5268ad52b39cdc5bb1d699e6a1a839a552ce397134d6773714e1f5a2d95994b6.FhF72MKwXItKEYkZGQPVBzIVP03-mAXJSlwfA5OlL8I+ hash: v1.k794b7964.5268ad52b39cdc5bb1d699e6a1a839a552ce397134d6773714e1f5a2d95994b6.hgkYOJDE9ZNZ0mMtcj9cpcDCtmas-opelntO_tyQ9Igscenes-app-inbox-scene--self-driving-paused--dark:hash: v1.k794b7964.1b72584882245d09b8622723dfc012a7d854b1419ee4d845829e6dfccda6603f.ox548Px_t_Hecz8z9AlksbbedukN5wWQUoxfrfzlTHMscenes-app-inbox-scene--self-driving-paused--light:diff --git a/frontend/src/lib/constants.tsx b/frontend/src/lib/constants.tsxindex 17ea4d0024cc..7e74ea497108 100644--- a/frontend/src/lib/constants.tsx+++ b/frontend/src/lib/constants.tsx@@ -353,7 +353,6 @@ export const FEATURE_FLAGS = {IDENTITY_MATCHING: 'identity-matching', // owner: @fercgomes #team-growth, gates new identity matching scene on marketing analyticsINBOX_REDESIGN: 'inbox-redesign', // owner: #team-self-driving, gates the inbox redesign: report sections, triage mode, the Settings tab, and scout cardsINBOX_SLACK_NOTIFICATIONS: 'inbox-slack-notifications', // owner: #team-self-driving, gates the Slack notifications config card in the inbox- INBOX_WELCOME_REDESIGN: 'inbox-welcome-redesign', // owner: #team-self-driving multivariate=control,test — experiment on the inbox self-driving welcome takeoverINSIGHT_DRAG_TO_ZOOM: 'insight-drag-to-zoom', // owner: @sampennington #team-product-analytics, gates x-axis drag-to-zoom on insight charts (trends today, SQL to follow)INSIGHT_EXPORT_NUDGE: 'insight-export-nudge', // owner: #team-analytics-platform multivariate=control,test, nudges people who just exported an insight toward a recurring subscriptionINSIGHT_SUBSCRIBE_PROMINENT_BUTTON: 'insight-subscribe-prominent-button', // owner: @mattp #team-analytics-platform multivariate=control,testdiff --git a/products/signals/frontend/inbox/InboxScene.stories.tsx b/products/signals/frontend/inbox/InboxScene.stories.tsxindex 949496a17d2e..04272fc576e0 100644--- a/products/signals/frontend/inbox/InboxScene.stories.tsx+++ b/products/signals/frontend/inbox/InboxScene.stories.tsx@@ -210,7 +210,7 @@ export const InstallingSelfDriving: Story = {],}-// Fresh project: nothing watching and nothing in the inbox → the single-command takeover.+// Fresh project: nothing watching and nothing in the inbox → the full-pane welcome page (no tab row).export const SelfDrivingOnboarding: Story = {decorators: [mswDecorator({@@ -223,28 +223,6 @@ export const SelfDrivingOnboarding: Story = {],}-// The same fresh-project state with the welcome-redesign experiment's test arm pinned → the-// full-pane hero welcome (no tab row) instead of the locked "Welcome" tab.-export const SelfDrivingOnboardingRedesign: Story = {- parameters: {- // Story parameters replace the meta's, so the meta-level flag is re-listed here.- featureFlags: {- [FEATURE_FLAGS.PRODUCT_AUTONOMY]: true,- [FEATURE_FLAGS.INBOX_WELCOME_REDESIGN]: 'test',- [FEATURE_FLAGS.INBOX_REDESIGN]: true,- },- },- decorators: [- mswDecorator({- get: {- '/api/projects/:id/signals/reports': () => [200, { results: [], count: 0, next: null, previous: null }],- '/api/projects/:id/signals/source_configs': () => [200, { results: [], count: 0 }],- '/api/projects/:id/signals/scout/configs': () => [200, []],- },- }),- ],-}-// First-ever visit while the set-up verdict is still loading (config + count requests hang, no// cached verdict) → the neutral skeleton, with no tab bar and no welcome page. Guards the// regression where the normal tabbed inbox rendered first and was then swapped for the takeover.diff --git a/products/signals/frontend/inbox/InboxScene.tsx b/products/signals/frontend/inbox/InboxScene.tsxindex c5288931fcbd..02fa02834ae5 100644--- a/products/signals/frontend/inbox/InboxScene.tsx+++ b/products/signals/frontend/inbox/InboxScene.tsx@@ -19,8 +19,8 @@ import { ScoutsRosterActions } from './components/config/scouts/ScoutsRosterActiimport { ReportDetail, ReportDetailSkeleton } from './components/detail/ReportDetail'import { ReportDetailLegacy, ReportDetailSkeletonLegacy } from './components/detail/ReportDetailLegacy'import { FindingsPanel } from './components/findings/FindingsPanel'-import { InboxOnboardingBanner, InboxOnboardingTakeover } from './components/onboarding/InboxOnboarding'-import { InboxWelcomeRedesign } from './components/onboarding/InboxWelcomeRedesign'+import { InboxOnboardingBanner } from './components/onboarding/InboxOnboardingBanner'+import { InboxWelcome } from './components/onboarding/InboxWelcome'import { ScratchpadPanel } from './components/scratchpad/ScratchpadPanel'import { InboxListViewLegacy } from './components/shell/InboxListViewLegacy'import { InboxTabBar } from './components/shell/InboxTabBar'@@ -88,10 +88,9 @@ function ActiveTabBody({ tab }: { tab: InboxTabKey }): JSX.Element | null {*/function InboxListView(): JSX.Element {const { activeTab } = useValues(inboxSceneLogic)- const { onboardingMode, isWelcomeRedesign } = useValues(inboxOnboardingLogic)- // Self-driving isn't set up and the inbox is empty: the inbox becomes a single locked "Welcome"- // tab (the other tabs are visible but disabled) whose body is the onboarding card, so the- // onboarding is the whole story – just run the one command.+ const { onboardingMode } = useValues(inboxOnboardingLogic)+ // Self-driving isn't set up and the inbox is empty: the welcome page replaces the whole list+ // view, tab bar included, so the onboarding is the whole story – just run the one command.const onboarding = onboardingMode === 'takeover'// The takeover verdict is still settling: commit to neither UI. Rendering the tab bar here is// what caused the normal inbox to flash in and get replaced by the welcome page.@@ -115,11 +114,9 @@ function InboxListView(): JSX.Element {return (<div className="flex flex-col min-h-0 flex-1 min-w-0">{/* pl-5 (20px) aligns the first tab label with the SceneTitleSection description above. */}- {/* The redesigned welcome (experiment test arm) is a full-pane page with no tab- row at all; control keeps the locked "Welcome" tab over the disabled real tabs. */}- {!isWelcomeRedesign && !pending && (+ {!onboarding && !pending && (<div className="border-b border-primary pl-5 pr-6 shrink-0">- <InboxTabBar onboarding={onboarding} />+ <InboxTabBar /></div>)}<div className="flex-1 overflow-auto min-h-0">@@ -128,11 +125,7 @@ function InboxListView(): JSX.Element {<CardSkeleton count={4} variant="cards" /></div>) : onboarding ? (- isWelcomeRedesign ? (- <InboxWelcomeRedesign />- ) : (- <InboxOnboardingTakeover />- )+ <InboxWelcome />) : (<ActiveTabBody tab={activeTab} />)}@@ -229,7 +222,7 @@ export function InboxScene(): JSX.Element {isRedesign,} = useValues(inboxSceneLogic)const { setScratchpadOpen, setFindingsOpen, setRunsOpen } = useActions(inboxSceneLogic)- const { onboardingMode, isWelcomeRedesign } = useValues(inboxOnboardingLogic)+ const { onboardingMode } = useValues(inboxOnboardingLogic)const { searchParams } = useValues(router)// Surfaces that embed inbox cards (e.g. the customer analytics feed) set a `?back=` internal path;@@ -279,18 +272,13 @@ export function InboxScene(): JSX.Element {<SceneTitleSectionname="Inbox"// The description explains the active tab so new users can orient themselves.- // In the onboarding takeover the tabs are locked, so keep the overall pitch.- // The redesigned welcome leads with its own full-size pitch, so a description- // here would say the same thing twice. While the verdict is pending neither- // description is safe to show – either would flash and swap.+ // The welcome takeover leads with its own full-size pitch, so a description here+ // would say the same thing twice. While the verdict is pending no description is+ // safe to show – it would flash and swap.description={- onboardingMode === 'pending'+ onboardingMode === 'pending' || onboardingMode === 'takeover'? null- : onboardingMode === 'takeover'- ? isWelcomeRedesign- ? null- : 'Self-driving for your product. Look through code changes and reports from PostHog agents.'- : (isRedesign ? INBOX_TAB_DESCRIPTION : INBOX_LEGACY_TAB_DESCRIPTION)[activeTab]+ : (isRedesign ? INBOX_TAB_DESCRIPTION : INBOX_LEGACY_TAB_DESCRIPTION)[activeTab]}resourceType={{ type: 'inbox' }}// Creating a scout is the Scouts tab's primary action, so it sits in the scene@@ -306,8 +294,8 @@ export function InboxScene(): JSX.Element {<div className="flex flex-col -mx-4 -mt-4 flex-1 min-h-0">{/* The inbox always renders (its own list skeleton covers loading). When self-driving- isn't set up, the list view itself swaps in a locked "Welcome" onboarding tab; the- banner sits above the otherwise-normal inbox when there's already work to keep. */}+ isn't set up, the list view itself swaps in the welcome page; the banner sits+ above the otherwise-normal inbox when there's already work to keep. */}{onboardingMode === 'banner' && <InboxOnboardingBanner />}{isRedesign ? <InboxListView /> : <InboxListViewLegacy />}</div>diff --git a/products/signals/frontend/inbox/components/onboarding/InboxOnboarding.scss b/products/signals/frontend/inbox/components/onboarding/InboxOnboarding.scssdeleted file mode 100644index f90954514424..000000000000--- a/products/signals/frontend/inbox/components/onboarding/InboxOnboarding.scss+++ /dev/null@@ -1,24 +0,0 @@-// Entrance for the onboarding column, which renders in place of the report list as a locked "Welcome"-// tab. A subtle scale + fade so it settles in rather than popping.-.InboxOnboardingTakeover {- transform-origin: top center;- animation: InboxOnboardingTakeover__in 0.28s cubic-bezier(0.22, 1, 0.36, 1) both;-}--@keyframes InboxOnboardingTakeover__in {- from {- opacity: 0;- transform: scale(0.98);- }-- to {- opacity: 1;- transform: scale(1);- }-}--@media (prefers-reduced-motion: reduce) {- .InboxOnboardingTakeover {- animation: none;- }-}diff --git a/products/signals/frontend/inbox/components/onboarding/InboxOnboarding.tsx b/products/signals/frontend/inbox/components/onboarding/InboxOnboarding.tsxdeleted file mode 100644index 1db47cc71b69..000000000000--- a/products/signals/frontend/inbox/components/onboarding/InboxOnboarding.tsx+++ /dev/null@@ -1,238 +0,0 @@-import './InboxOnboarding.scss'--import { useActions } from 'kea'-import { useEffect } from 'react'--import { IconBolt, IconGithub, IconInfo, IconNotebook, IconPause, IconX } from '@posthog/icons'-import { LemonButton, Tooltip } from '@posthog/lemon-ui'--import { Logomark } from 'lib/brand'-import { CommandBlock } from 'lib/components/CommandBlock/CommandBlock'--import {- InboxWelcomeCopySurface,- captureInboxWelcomeCommandCopied,- captureInboxWelcomeViewed,-} from '../../inboxAnalytics'-import { inboxOnboardingLogic } from '../../logics/inboxOnboardingLogic'-import { PullRequestPreview, ReportPreview } from './InboxOnboardingPreviews'-import { ManualSetupAction } from './ManualSetupAction'--/** The one command that sets up self-driving. The whole onboarding orbits this string. */-export const SELF_DRIVING_WIZARD_COMMAND = 'npx -y @posthog/wizard@latest self-driving'--/** What the wizard wires up, shown as a reassuring checklist under the command. */-const WIZARD_SETS_UP: { icon: JSX.Element; label: string }[] = [- { icon: <IconGithub />, label: 'Connects your GitHub, so agents can open pull requests' },- { icon: <IconBolt />, label: 'Picks the signal sources and scouts to watch' },- { icon: <IconNotebook />, label: 'Brings shippable PRs and reports that need input here' },-]--interface Beat {- label: string- description: JSX.Element- subtext: string | JSX.Element- preview: JSX.Element-}--/**- * Info icon explaining PR pricing on hover, kept separate from the sentence it follows so the- * sentiment (why $15, and that it's expected to fall) doesn't have to live in the onboarding copy itself.- */-function PrPricingInfo(): JSX.Element {- return (- <Tooltip- title={- <>- <p className="mb-2">We aim for the $15 cost to go down significantly in the coming months.</p>- <p className="mb-0">- The truth is that capable enough models <em>currently</em> cost quite a bit, so we're pricing- with a very limited margin, similarly to our strategy with other PostHog tools. Like with our- other tools, we will be passing savings along to you.- </p>- </>- }- >- <span className="-m-1 inline-flex cursor-help items-center p-1 align-middle text-sm text-tertiary">- <IconInfo />- </span>- </Tooltip>- )-}--const BEATS: Beat[] = [- {- label: 'Pull requests, ready to merge.',- description: (- <>- Agents read your product data and open a PR for anything safe to ship, with the diff, tests, and- reviewers already lined up.- </>- ),- subtext: (- <>- Your first 3 PRs each month are free, then it's $15 per PR after that. <PrPricingInfo />- </>- ),- preview: <PullRequestPreview />,- },- {- label: 'Reports, when it needs your call.',- description: (- <>- Not everything is a clean code change. When something needs your judgment, agents file a report with the- context and what they'd do. You decide.- </>- ),- subtext: 'Reports without PRs are free.',- preview: <ReportPreview />,- },-]--/**- * The wizard command as a click-to-copy pill – the single call-to-action of the whole onboarding.- * Reuses the shared `CommandBlock` (same one MCP install uses) with the `rainbow` AI gradient, so- * it reads as "enable a capability" rather than a code dump.- */-function SelfDrivingCommand({- size = 'md',- surface,-}: {- size?: 'sm' | 'md'- surface: InboxWelcomeCopySurface-}): JSX.Element {- return (- <CommandBlock- command={SELF_DRIVING_WIZARD_COMMAND}- copyLabel="self-driving setup command"- ariaLabel="Copy self-driving setup command"- decoration="rainbow"- size={size}- // The takeover is the control arm of the welcome experiment; the banner shows one- // fixed layout regardless of arm, so its copies carry no variant.- onCopy={() =>- captureInboxWelcomeCommandCopied({ variant: surface === 'takeover' ? 'control' : null, surface })- }- // rounded-md sits one step inside the rounded-lg card/banner it nests in.- className="!m-0 rounded-md border border-primary bg-surface-secondary hover:border-accent"- />- )-}--function Hero(): JSX.Element {- return (- <div className="flex flex-col items-start gap-3">- <Logomark jumpOnClick size="md" />- <h1 className="m-0 text-2xl font-bold leading-tight tracking-tight sm:text-3xl">- Put your product on self-driving- </h1>- <p className="m-0 max-w-prose text-sm text-secondary leading-relaxed">- <strong>Scouts and Signal Sources identify product issues and opportunities</strong>. Bugs in error- tracking, users expressing their needs in Slack, and more.- <br />- <strong>PostHog then ships quality PRs for you to merge.</strong> Prioritized by impact, assigned to- relevant team members. <u>The work lands right here in your Inbox.</u>- </p>- </div>- )-}--function CommandCard(): JSX.Element {- return (- <div className="flex flex-col gap-3 rounded-lg border border-primary bg-surface-primary p-5">- <div>- <h2 className="-mt-1 mb-1 text-base font-semibold">One command. That's the whole setup.</h2>- <p className="m-0 text-sm text-secondary">- Run it in your project's repo, or set it up yourself below.- </p>- </div>- <SelfDrivingCommand size="md" surface="takeover" />- <ul className="m-0 flex list-none flex-col gap-1.5 p-0">- {WIZARD_SETS_UP.map((item) => (- <li key={item.label} className="flex items-center gap-2.5 text-sm text-secondary">- <span className="flex size-5 shrink-0 items-center justify-center rounded bg-surface-secondary text-default [&_svg]:size-3">- {item.icon}- </span>- <span className="min-w-0">{item.label}</span>- </li>- ))}- </ul>- <ManualSetupAction variant="control" className="border-t border-primary pt-3" />- </div>- )-}--function BeatRow({ beat, index }: { beat: Beat; index: number }): JSX.Element {- return (- <div className="flex flex-col gap-2">- <div className="flex items-baseline gap-3 mb-1">- <span className="font-mono text-xs text-muted tabular-nums">0{index + 1}</span>- <div className="flex min-w-0 flex-1 flex-col gap-0.5">- <span className="text-[15px] font-semibold leading-snug">{beat.label}</span>- <span className="max-w-prose text-[13px] text-secondary leading-snug">{beat.description}</span>- </div>- </div>- {/* Real inbox cards, marked as examples and kept inert by the preview wrapper.- Full-width on mobile; indented to align under the beat text from sm up. */}- <div className="select-none pl-0 sm:pl-8">{beat.preview}</div>- {beat.subtext ? (- <span className="text-[13px] text-secondary leading-snug text-right">{beat.subtext}</span>- ) : null}- </div>- )-}--/**- * Self-driving onboarding, shown when self-driving isn't set up and there's nothing in the inbox- * yet. Sells the payoff (pull requests to ship, reports that need your call) and centers the single- * wizard command. Rendered as the body of a locked "Welcome" tab (see `InboxTabBar`), in place of the- * report list – a plain centered column (not itself a card) that eases in with a subtle scale + fade.- */-export function InboxOnboardingTakeover(): JSX.Element {- useEffect(() => {- captureInboxWelcomeViewed({ variant: 'control' })- }, [])-- return (- <div className="InboxOnboardingTakeover mx-auto flex w-full max-w-3xl flex-col gap-6 px-4 py-6 sm:px-6 sm:py-12">- <Hero />- <CommandCard />- <div className="flex flex-col gap-7">- {BEATS.map((beat, index) => (- <BeatRow key={beat.label} beat={beat} index={index} />- ))}- </div>- </div>- )-}--/**- * Sleek, non-blocking nudge shown above the inbox when self-driving isn't set up but reports or- * PRs already exist (they had sources/scouts before). Keeps full access to existing work while- * enticing a re-enable via the same one command. Styled as an "enable a capability" card (à la the- * MCP use-case hint) rather than a system banner; session-dismissable via the close button.- */-export function InboxOnboardingBanner(): JSX.Element {- const { dismissBanner } = useActions(inboxOnboardingLogic)-- return (- <div className="mx-4 mb-3 mt-2 flex flex-col gap-2 rounded-lg border border-dashed border-primary bg-bg-light p-4">- <div className="flex items-center gap-2 -my-1">- <IconPause className="size-4 shrink-0 text-accent" />- <h4 className="m-0 flex-1 text-sm font-semibold">Self-driving is paused</h4>- <LemonButton- size="xsmall"- icon={<IconX />}- tooltip="Dismiss for now"- aria-label="Dismiss self-driving reminder"- onClick={dismissBanner}- />- </div>- <p className="mb-0.5 text-sm text-tertiary">- No scouts or sources are enabled right now.{' '}- <strong>Switch self-driving back on with one command in your product's repo:</strong>- </p>- <SelfDrivingCommand size="sm" surface="banner" />- </div>- )-}diff --git a/products/signals/frontend/inbox/components/onboarding/InboxOnboardingBanner.tsx b/products/signals/frontend/inbox/components/onboarding/InboxOnboardingBanner.tsxnew file mode 100644index 000000000000..7705d61633ce--- /dev/null+++ b/products/signals/frontend/inbox/components/onboarding/InboxOnboardingBanner.tsx@@ -0,0 +1,53 @@+import { useActions } from 'kea'++import { IconPause, IconX } from '@posthog/icons'+import { LemonButton } from '@posthog/lemon-ui'++import { CommandBlock } from 'lib/components/CommandBlock/CommandBlock'++import { captureInboxWelcomeCommandCopied } from '../../inboxAnalytics'+import { inboxOnboardingLogic } from '../../logics/inboxOnboardingLogic'+import { SELF_DRIVING_WIZARD_COMMAND } from './InboxWelcome'++/**+ * Sleek, non-blocking nudge shown above the inbox when self-driving isn't set up but reports or+ * PRs already exist (they had sources/scouts before). Keeps full access to existing work while+ * enticing a re-enable via the same one command. Styled as an "enable a capability" card (à la the+ * MCP use-case hint) rather than a system banner; session-dismissable via the close button.+ */+export function InboxOnboardingBanner(): JSX.Element {+ const { dismissBanner } = useActions(inboxOnboardingLogic)++ return (+ <div className="mx-4 mb-3 mt-2 flex flex-col gap-2 rounded-lg border border-dashed border-primary bg-bg-light p-4">+ <div className="flex items-center gap-2 -my-1">+ <IconPause className="size-4 shrink-0 text-accent" />+ <h4 className="m-0 flex-1 text-sm font-semibold">Self-driving is paused</h4>+ <LemonButton+ size="xsmall"+ icon={<IconX />}+ tooltip="Dismiss for now"+ aria-label="Dismiss self-driving reminder"+ onClick={dismissBanner}+ />+ </div>+ <p className="mb-0.5 text-sm text-tertiary">+ No scouts or sources are enabled right now.{' '}+ <strong>Switch self-driving back on with one command in your product's repo:</strong>+ </p>+ {/* The wizard command as a click-to-copy pill. Reuses the shared `CommandBlock` (same one+ MCP install uses) with the `rainbow` AI gradient, so it reads as "enable a capability"+ rather than a code dump. */}+ <CommandBlock+ command={SELF_DRIVING_WIZARD_COMMAND}+ copyLabel="self-driving setup command"+ ariaLabel="Copy self-driving setup command"+ decoration="rainbow"+ size="sm"+ onCopy={() => captureInboxWelcomeCommandCopied({ surface: 'banner' })}+ // rounded-md sits one step inside the rounded-lg banner it nests in.+ className="!m-0 rounded-md border border-primary bg-surface-secondary hover:border-accent"+ />+ </div>+ )+}diff --git a/products/signals/frontend/inbox/components/onboarding/InboxOnboardingPreviews.tsx b/products/signals/frontend/inbox/components/onboarding/InboxOnboardingPreviews.tsxdeleted file mode 100644index 75c9064b9a78..000000000000--- a/products/signals/frontend/inbox/components/onboarding/InboxOnboardingPreviews.tsx+++ /dev/null@@ -1,124 +0,0 @@-import { LemonTag, Tooltip } from '@posthog/lemon-ui'--import { dayjs } from 'lib/dayjs'--import { SignalReport, SignalReportStatus } from '../../types'-import { ReportCard } from '../cards/ReportCard'-import { playMeep } from './meep'--/**- * Onboarding previews that render the *real* inbox `ReportCard` (the very component the Pull- * requests / Reports tabs use), fed mock data – so they read as the genuine article rather than a- * lookalike. Because they look real, they're marked plainly as examples: an "Example" tag sits on- * each card, the card itself is made non-interactive (so its Review/Archive buttons don't offer- * live hover states or misleading tooltips), and a single click surface explains that the real work- * arrives once you run the setup command. The meep stays as flair, but it's no longer the only sign- * a click did anything.- *- * The sample work is a wink at Silicon Valley (the show): Pied Piper's middle-out compression and- * the ever-looming Hooli.- */--// Timestamps are relative to "now" at render time (not a fixed calendar date) so `ReportCard`'s-// `TZLabel` always reads as just-landed work ("2 hours ago") instead of drifting to "months ago".-// Subtracting from the current clock also keeps the relative label stable in snapshot/VR runs.-const landedHoursAgo = (hours: number): string => dayjs().subtract(hours, 'hours').toISOString()--// A shippable fix Pied Piper's agents could open against the compression engine.-const PULL_REQUEST_SAMPLE: Omit<SignalReport, 'created_at' | 'updated_at'> = {- id: 'onboarding-preview-pr',- title: 'fix(compression): stop 4K streams dropping to single-threaded encode',- summary:- 'Middle-out throughput fell 41% above 2160p after the Anton migration. The Weissman score slid from 5.2 to 2.9 and p95 encode time tripled. This repins the chunk scheduler and restores both to pre-migration numbers.',- status: SignalReportStatus.READY,- total_weight: 0,- signal_count: 3,- relevant_user_count: null,- artefact_count: 0,- is_suggested_reviewer: false,- priority: 'P1',- source_products: ['session_replay'],- implementation_pr_url: 'https://github.com/PiedPiper/pipernet/pull/486',-}--// A "needs your call" report: no clean code change, a judgment to make.-const REPORT_SAMPLE: Omit<SignalReport, 'created_at' | 'updated_at'> = {- id: 'onboarding-preview-report',- title: 'Hooli traffic is hammering the Pipernet beta. Throttle or let it ride?',- summary:- "Sign-ups from Hooli IP ranges jumped 6× overnight and mostly bounce at onboarding. This could be Gavin's team load-testing us or real interest worth keeping. Review it before we rate-limit.",- status: SignalReportStatus.READY,- total_weight: 0,- signal_count: 5,- relevant_user_count: null,- artefact_count: 0,- is_suggested_reviewer: false,- priority: 'P2',- actionability: 'requires_human_input',- source_products: ['error_tracking', 'session_replay'],-}--/**- * Wraps a real `ReportCard` and makes it legibly a sample. The card is rendered non-interactive- * (`pointer-events-none`, `aria-hidden`) so its Review/Archive buttons and links no longer offer- * live hover states or misleading tooltips ("Archive this report") that invite dead clicks. An- * "Example" tag labels it at a glance, and a single click surface on top plays the meep flair while- * a tooltip explains that real work lands here once the setup command runs.- */-function PreviewCard({- report,- sectionKey,-}: {- report: SignalReport- sectionKey: 'monitoring' | 'needs-decision'-}): JSX.Element {- return (- // `@container` so ReportCard's `@lg:` row layout resolves against the preview width (it has no- // inbox-list container here). `role="presentation"` – the whole thing is decorative.- <div role="presentation" className="@container relative">- {/* The real card in preview mode: no detail link, no focusable actions. That keeps the- sample report id (which 404s) out of reach – nobody can click or tab into it – on top- of the `pointer-events-none` and overlay below. */}- <div aria-hidden className="pointer-events-none">- <ReportCard report={report} sectionKey={sectionKey} preview />- </div>-- {/* Always-visible label so the sample reads as a sample, not live work. Sits on the top- border and stays out of the way of clicks (handled by the overlay below). */}- <LemonTag type="highlight" size="small" className="pointer-events-none absolute -top-2 left-4 z-20">- Example- </LemonTag>-- {/* One interactive surface over the whole card: a click plays the meep flair, and the- tooltip is the real signal – it says this is a preview and how to get the real thing. */}- <Tooltip title="This is an example. Run the command above to get real ones in your inbox.">- <button- type="button"- aria-label="Example card – run the setup command to get real ones in your inbox"- className="absolute inset-0 z-10 h-full w-full cursor-pointer"- onClick={() => playMeep()}- />- </Tooltip>- </div>- )-}--export function PullRequestPreview(): JSX.Element {- const landed = landedHoursAgo(2)- return (- <PreviewCard- report={{ ...PULL_REQUEST_SAMPLE, created_at: landed, updated_at: landed }}- sectionKey="monitoring"- />- )-}--export function ReportPreview(): JSX.Element {- const landed = landedHoursAgo(4)- return (- <PreviewCard- report={{ ...REPORT_SAMPLE, created_at: landed, updated_at: landed }}- sectionKey="needs-decision"- />- )-}diff --git a/products/signals/frontend/inbox/components/onboarding/InboxWelcomeRedesign.scss b/products/signals/frontend/inbox/components/onboarding/InboxWelcome.scsssimilarity index 84%rename from products/signals/frontend/inbox/components/onboarding/InboxWelcomeRedesign.scssrename to products/signals/frontend/inbox/components/onboarding/InboxWelcome.scssindex c46169f8bdba..d4453a0d9411 100644--- a/products/signals/frontend/inbox/components/onboarding/InboxWelcomeRedesign.scss+++ b/products/signals/frontend/inbox/components/onboarding/InboxWelcome.scss@@ -1,8 +1,8 @@-// Styles for the redesigned self-driving welcome takeover (welcome-page experiment, test arm).+// Styles for the self-driving welcome takeover.// The hero CTA is a deliberate terminal-dark block, so its colors are hardcoded rather than// tokenized; everything else leans on the app tokens.-.InboxWelcomeRedesign {+.InboxWelcome {&__cta {background: #18181a;border-radius: 10px;@@ -31,7 +31,7 @@}&__stage {- animation: InboxWelcomeRedesign__stage 9s infinite;+ animation: InboxWelcome__stage 9s infinite;&--pipeline {animation-delay: 3s;@@ -43,7 +43,7 @@}&__arrow {- animation: InboxWelcomeRedesign__arrow 3s ease-in-out infinite;+ animation: InboxWelcome__arrow 3s ease-in-out infinite;&--second {animation-delay: 1.5s;@@ -53,7 +53,7 @@// Each stage lights up in sequence (signals at 0s, pipeline at 3s, inbox at 6s) so the diagram// reads as a loop: signal sources -> scouts & pipeline -> your inbox.-@keyframes InboxWelcomeRedesign__stage {+@keyframes InboxWelcome__stage {0%,30%,100% {@@ -68,7 +68,7 @@}}-@keyframes InboxWelcomeRedesign__arrow {+@keyframes InboxWelcome__arrow {0%,100% {opacity: 0.35;@@ -82,7 +82,7 @@}@media (prefers-reduced-motion: reduce) {- .InboxWelcomeRedesign {+ .InboxWelcome {&__stage,&__arrow {animation: none;diff --git a/products/signals/frontend/inbox/components/onboarding/InboxWelcomeRedesign.tsx b/products/signals/frontend/inbox/components/onboarding/InboxWelcome.tsxsimilarity index 78%rename from products/signals/frontend/inbox/components/onboarding/InboxWelcomeRedesign.tsxrename to products/signals/frontend/inbox/components/onboarding/InboxWelcome.tsxindex c1717015fc7e..d39ad92529e0 100644--- a/products/signals/frontend/inbox/components/onboarding/InboxWelcomeRedesign.tsx+++ b/products/signals/frontend/inbox/components/onboarding/InboxWelcome.tsx@@ -1,5 +1,6 @@-import './InboxWelcomeRedesign.scss'+import './InboxWelcome.scss'+import { useActions } from 'kea'import { useEffect, useRef, useState } from 'react'import { IconRewindPlay, IconWarning } from '@posthog/icons'@@ -10,8 +11,10 @@ import { IconSlack } from 'lib/lemon-ui/icons'import { copyToClipboard } from 'lib/utils/copyToClipboard'import { captureInboxWelcomeCommandCopied, captureInboxWelcomeViewed } from '../../inboxAnalytics'-import { SELF_DRIVING_WIZARD_COMMAND } from './InboxOnboarding'-import { ManualSetupAction } from './ManualSetupAction'+import { inboxOnboardingLogic } from '../../logics/inboxOnboardingLogic'++/** The one command that sets up self-driving. The whole onboarding orbits this string. */+export const SELF_DRIVING_WIZARD_COMMAND = 'npx -y @posthog/wizard@latest self-driving'/** How long the copy button reads "Copied" before flipping back. */const COPIED_RESET_MS = 1600@@ -34,7 +37,7 @@ function CommandCta(): JSX.Element {const handleCopy = (): void => {void copyToClipboard(SELF_DRIVING_WIZARD_COMMAND, 'self-driving setup command', { silent: true })- captureInboxWelcomeCommandCopied({ variant: 'redesign', surface: 'takeover' })+ captureInboxWelcomeCommandCopied({ surface: 'takeover' })setCopied(true)if (resetTimerRef.current !== null) {window.clearTimeout(resetTimerRef.current)@@ -43,14 +46,14 @@ function CommandCta(): JSX.Element {}return (- <div className="InboxWelcomeRedesign__cta flex flex-wrap items-center justify-center gap-x-3 gap-y-2.5 py-2.5 pl-4 pr-2.5">+ <div className="InboxWelcome__cta flex flex-wrap items-center justify-center gap-x-3 gap-y-2.5 py-2.5 pl-4 pr-2.5"><span className="whitespace-nowrap font-mono text-sm text-white"><span className="select-none text-[#6f6f76]">$ </span>{SELF_DRIVING_WIZARD_COMMAND}</span><buttontype="button"- className="InboxWelcomeRedesign__copy-button"+ className="InboxWelcome__copy-button"onClick={handleCopy}aria-label="Copy self-driving setup command">@@ -60,6 +63,29 @@ function CommandCta(): JSX.Element {)}+/** The escape hatch: skip the setup agent and turn sources and scouts on by hand. */+function ManualSetupAction(): JSX.Element {+ const { requestManualSetup } = useActions(inboxOnboardingLogic)++ return (+ <div className="mt-7 flex flex-col items-center gap-2 text-center">+ <LemonButton+ type="secondary"+ // pinned: autocapture data-attr - dashboards and test selectors match on this string+ data-attr="inbox-welcome-set-up-manually"+ className="w-fit"+ onClick={() => requestManualSetup()}+ >+ Set up manually+ </LemonButton>+ <p className="m-0 max-w-prose text-[13px] text-tertiary">+ Turn on sources and scouts yourself in Configuration. You still need to connect GitHub for pull+ requests.+ </p>+ </div>+ )+}+function StageLabel({ children }: { children: string }): JSX.Element {return <div className="text-center text-xs font-semibold text-secondary">{children}</div>}@@ -77,7 +103,7 @@ function StageCard({return (<LemonCardhoverEffect={false}- className={`InboxWelcomeRedesign__stage InboxWelcomeRedesign__stage--${stage} ${className ?? ''}`}+ className={`InboxWelcome__stage InboxWelcome__stage--${stage} ${className ?? ''}`}>{children}</LemonCard>@@ -87,8 +113,8 @@ function StageCard({function Arrow({ second = false }: { second?: boolean }): JSX.Element {return (<div- className={`InboxWelcomeRedesign__arrow ${- second ? 'InboxWelcomeRedesign__arrow--second ' : ''+ className={`InboxWelcome__arrow ${+ second ? 'InboxWelcome__arrow--second ' : ''}hidden pt-5 text-center text-2xl text-border-secondary md:block`}aria-hidden="true">@@ -163,18 +189,18 @@ function LoopDiagram(): JSX.Element {}/**- * Redesigned self-driving welcome takeover (test arm of the `inbox-welcome-redesign` experiment;- * `InboxOnboardingTakeover` is control). Leads with the payoff, makes the wizard command the one- * CTA, and explains signal sources and the scouts & pipeline stage as labels over an animated loop instead of prose.- * Rendered without the tab bar: this variant is a full-pane welcome, not a locked tab.+ * Self-driving welcome takeover, shown when self-driving isn't set up and there's nothing in the+ * inbox yet. Leads with the payoff, makes the wizard command the one CTA, and explains signal+ * sources and the scouts & pipeline stage as labels over an animated loop instead of prose.+ * Rendered in place of the report list and without the tab bar: a full-pane welcome, not a tab.*/-export function InboxWelcomeRedesign(): JSX.Element {+export function InboxWelcome(): JSX.Element {useEffect(() => {- captureInboxWelcomeViewed({ variant: 'redesign' })+ captureInboxWelcomeViewed()}, [])return (- <div className="InboxWelcomeRedesign flex min-h-full flex-col justify-center py-10">+ <div className="InboxWelcome flex min-h-full flex-col justify-center py-10"><div className="px-6 pb-12"><div className="mx-auto flex max-w-[720px] flex-col items-center text-center"><div className="mb-7">@@ -192,7 +218,7 @@ export function InboxWelcomeRedesign(): JSX.Element {Run it in your repo. That's the whole setup: it connects GitHub and picks the signal sources andscouts to watch. PRs start landing in this inbox.</p>- <ManualSetupAction variant="redesign" className="mt-7 items-center text-center" />+ <ManualSetupAction /></div></div><div className="px-6 md:px-12">diff --git a/products/signals/frontend/inbox/components/onboarding/ManualSetupAction.tsx b/products/signals/frontend/inbox/components/onboarding/ManualSetupAction.tsxdeleted file mode 100644index f9d7a154c6b0..000000000000--- a/products/signals/frontend/inbox/components/onboarding/ManualSetupAction.tsx+++ /dev/null@@ -1,41 +0,0 @@-import { useActions } from 'kea'--import { LemonButton } from '@posthog/lemon-ui'--import { InboxWelcomeVariant } from '../../inboxAnalytics'-import { inboxOnboardingLogic } from '../../logics/inboxOnboardingLogic'--/**- * The takeover's escape hatch: skip the setup agent and turn sources and scouts on by hand.- *- * Both welcome arms render it, from here rather than each writing their own, so the label and the- * helper line cannot drift between the arms of a live experiment. `variant` says which arm the- * press came from; the parent places the block with `className`.- */-export function ManualSetupAction({- variant,- className,-}: {- variant: InboxWelcomeVariant- className?: string-}): JSX.Element {- const { requestManualSetup } = useActions(inboxOnboardingLogic)-- return (- <div className={`flex flex-col gap-2 ${className ?? ''}`}>- <LemonButton- type="secondary"- // pinned: autocapture data-attr - dashboards and test selectors match on this string- data-attr="inbox-welcome-set-up-manually"- className="w-fit"- onClick={() => requestManualSetup(variant)}- >- Set up manually- </LemonButton>- <p className="m-0 max-w-prose text-[13px] text-tertiary">- Turn on sources and scouts yourself in Configuration. You still need to connect GitHub for pull- requests.- </p>- </div>- )-}diff --git a/products/signals/frontend/inbox/components/shell/InboxListViewLegacy.tsx b/products/signals/frontend/inbox/components/shell/InboxListViewLegacy.tsxindex 63b36a1eea24..9522919ede2a 100644--- a/products/signals/frontend/inbox/components/shell/InboxListViewLegacy.tsx+++ b/products/signals/frontend/inbox/components/shell/InboxListViewLegacy.tsx@@ -9,8 +9,7 @@ import { inboxOnboardingLogic } from '../../logics/inboxOnboardingLogic'import { InboxTabKey, SignalRun } from '../../types'import { CardSkeleton } from '../cards/CardSkeleton'import { ScoutsRosterLegacy } from '../config/scouts/ScoutsRosterLegacy'-import { InboxOnboardingTakeover } from '../onboarding/InboxOnboarding'-import { InboxWelcomeRedesign } from '../onboarding/InboxWelcomeRedesign'+import { InboxWelcome } from '../onboarding/InboxWelcome'import { ArchivedTab } from '../tabs/ArchivedTab'import { NotActionableTab } from '../tabs/NotActionableTab'import { PullRequestsTab } from '../tabs/PullRequestsTab'@@ -68,15 +67,15 @@ function ActiveTabBody({*/export function InboxListViewLegacy(): JSX.Element {const { activeTab, signalRuns, signalRunsLoading } = useValues(inboxSceneLogic)- const { onboardingMode, isWelcomeRedesign } = useValues(inboxOnboardingLogic)+ const { onboardingMode } = useValues(inboxOnboardingLogic)const { ref: widthRef, size } = useResizeBreakpoints({ 0: 'narrow', [SETUP_RAIL_MIN_PX]: 'wide' },{ initialSize: 'wide' })const wide = size === 'wide'- // Self-driving isn't set up and the inbox is empty: the inbox becomes a single locked "Welcome"- // tab (the other tabs are visible but disabled) whose body is the onboarding card. The setup rail- // is dropped too, so the onboarding is the whole story – just run the one command.+ // Self-driving isn't set up and the inbox is empty: the welcome page replaces the whole list+ // view, tab bar included. The setup rail is dropped too, so the onboarding is the whole story –+ // just run the one command.const onboarding = onboardingMode === 'takeover'// The takeover verdict is still settling: commit to neither UI. Rendering the tab bar or the// rail here is what caused the normal inbox to flash in and get replaced by the welcome page.@@ -114,12 +113,10 @@ export function InboxListViewLegacy(): JSX.Element {<div className="flex flex-col min-h-0 flex-1 min-w-0">{/* pl-5 (20px) aligns the first tab label with the SceneTitleSection description above;pr-6 matches the report list's px-6 so the scope select shares the list's right edge. */}- {/* The redesigned welcome (experiment test arm) is a full-pane page with no tab- row at all; control keeps the locked "Welcome" tab over the disabled real tabs. */}- {!isWelcomeRedesign && !pending && (+ {!onboarding && !pending && (<div className="flex items-end justify-between gap-2 border-b border-primary pl-5 pr-6 shrink-0">- <InboxTabBarLegacy showConfigTab={!wide} onboarding={onboarding} />- {!onboarding && isReportListTab(effectiveTab) && (+ <InboxTabBarLegacy showConfigTab={!wide} />+ {isReportListTab(effectiveTab) && (<div className="pb-1.5"><InboxScopeSelect /></div>@@ -132,11 +129,7 @@ export function InboxListViewLegacy(): JSX.Element {<CardSkeleton count={4} variant="cards" /></div>) : onboarding ? (- isWelcomeRedesign ? (- <InboxWelcomeRedesign />- ) : (- <InboxOnboardingTakeover />- )+ <InboxWelcome />) : (<ActiveTabBodytab={effectiveTab}diff --git a/products/signals/frontend/inbox/components/shell/InboxTabBar.tsx b/products/signals/frontend/inbox/components/shell/InboxTabBar.tsxindex 5601e238364f..178d74f32d88 100644--- a/products/signals/frontend/inbox/components/shell/InboxTabBar.tsx+++ b/products/signals/frontend/inbox/components/shell/InboxTabBar.tsx@@ -8,47 +8,29 @@ import { urls } from 'scenes/urls'import { inboxSceneLogic } from '../../inboxSceneLogic'import { INBOX_TAB_KEYS, INBOX_TAB_LABEL, InboxTabKey } from '../../types'-/** Synthetic key for the onboarding "Welcome" tab – presentational only, never routed to. */-const WELCOME_TAB_KEY = 'welcome'--type InboxTabBarKey = InboxTabKey | typeof WELCOME_TAB_KEY-/*** Page tab bar: Reports / Scouts / Settings. The report sections (Review and merge / Needs a PR /* Resolved) live inside the Reports tab, so no counts sit here.- *- * In `onboarding` mode (self-driving not set up, empty inbox) a locked "Welcome" tab is shown and- * selected, while the real tabs stay visible but disabled – the user can see what's coming, but the- * inbox only opens up once self-driving is set up.*/-export function InboxTabBar({ onboarding }: { onboarding?: boolean }): JSX.Element {+export function InboxTabBar(): JSX.Element {const { activeTab } = useValues(inboxSceneLogic)- const realTabs = INBOX_TAB_KEYS.map((key) => ({- key: key as InboxTabBarKey,+ const tabs = INBOX_TAB_KEYS.map((key) => ({+ key,label: INBOX_TAB_LABEL[key],- disabledReason: onboarding ? 'Set up self-driving to open your inbox' : undefined,content: <></>,}))- const tabs = onboarding- ? [{ key: WELCOME_TAB_KEY as InboxTabBarKey, label: 'Welcome', content: <></> }, ...realTabs]- : realTabs-return (- <LemonTabs<InboxTabBarKey>- activeKey={onboarding ? WELCOME_TAB_KEY : activeTab}+ <LemonTabs<InboxTabKey>+ activeKey={activeTab}// min-w-0 lets the tab bar shrink inside the header row so its own overflow-x scroll// engages on narrow/mobile widths instead of the last tabs overflowing off-screen.className="min-w-0"// Hide LemonTabs' own bottom border + margin so the single full-width border lives on the// scene header row; the active-tab slider then sits directly on that one border.barClassName="before:hidden mb-0"- onChange={(key) => {- if (key !== WELCOME_TAB_KEY) {- router.actions.push(urls.inbox(key))- }- }}+ onChange={(key) => router.actions.push(urls.inbox(key))}tabs={tabs}data-attr="inbox-tabs"/>diff --git a/products/signals/frontend/inbox/components/shell/InboxTabBarLegacy.tsx b/products/signals/frontend/inbox/components/shell/InboxTabBarLegacy.tsxindex a0cab4f6bcdd..dfcb76fe7617 100644--- a/products/signals/frontend/inbox/components/shell/InboxTabBarLegacy.tsx+++ b/products/signals/frontend/inbox/components/shell/InboxTabBarLegacy.tsx@@ -44,36 +44,20 @@ function FlatTabCount({ tabKey }: { tabKey: InboxFlatListTabKey }): JSX.Elementreturn <span className="text-xs text-muted tabular-nums">{count ?? 0}</span>}-/** Synthetic key for the onboarding "Welcome" tab – presentational only, never routed to. */-const WELCOME_TAB_KEY = 'welcome'--type InboxTabBarKey = InboxTabKey | typeof WELCOME_TAB_KEY-/*** Tab bar with the redesign flag off: Pull requests / Reports / Runs (everyone) + Not actionable (staff-only, with a* "Staff" tag). Each flat report tab shows its own server-computed count. The Configuration tab is only* shown when `showConfigTab` is set – i.e. when the scene is too narrow for the setup rail; on wide* viewports the rail replaces it.- *- * In `onboarding` mode (self-driving not set up, empty inbox) a locked "Welcome" tab is shown and- * selected, while the real tabs stay visible but disabled – the user can see what's coming, but the- * inbox only opens up once self-driving is set up. Code review is the exception: it works without- * self-driving, so its tab stays clickable.*/-export function InboxTabBarLegacy({- showConfigTab,- onboarding,-}: {- showConfigTab?: boolean- onboarding?: boolean-}): JSX.Element {+export function InboxTabBarLegacy({ showConfigTab }: { showConfigTab?: boolean }): JSX.Element {const { activeTab, isStaff } = useValues(inboxSceneLogic)const visibleTabKeys = INBOX_LEGACY_TAB_KEYS.filter((key) => (key !== 'config' || showConfigTab) && (!isStaffOnlyTabKey(key) || isStaff))- const realTabs = visibleTabKeys.map((key) => ({+ const tabs = visibleTabKeys.map((key) => ({key,label: (<span className="flex items-center gap-1.5">@@ -86,17 +70,12 @@ export function InboxTabBarLegacy({)}</span>),- disabledReason: onboarding ? 'Set up self-driving to open your inbox' : undefined,content: <></>,}))- const tabs = onboarding- ? [{ key: WELCOME_TAB_KEY as InboxTabBarKey, label: <span>Welcome</span>, content: <></> }, ...realTabs]- : realTabs-return (- <LemonTabs<InboxTabBarKey>- activeKey={onboarding ? WELCOME_TAB_KEY : activeTab}+ <LemonTabs<InboxTabKey>+ activeKey={activeTab}// min-w-0 lets the tab bar shrink inside the header flex row so its own overflow-x scroll// engages on narrow/mobile widths – otherwise it grows to fit every tab and the last ones// (e.g. Configuration) overflow off-screen with no way to reach them.@@ -104,11 +83,7 @@ export function InboxTabBarLegacy({// Hide LemonTabs' own bottom border + margin so the single full-width border lives on the// scene header row; the active-tab slider then sits directly on that one border.barClassName="before:hidden mb-0"- onChange={(key) => {- if (key !== WELCOME_TAB_KEY) {- router.actions.push(urls.inbox(key))- }- }}+ onChange={(key) => router.actions.push(urls.inbox(key))}tabs={tabs}/>)diff --git a/products/signals/frontend/inbox/inboxAnalytics.ts b/products/signals/frontend/inbox/inboxAnalytics.tsindex d97e2c993a8b..0eaf338eaa6d 100644--- a/products/signals/frontend/inbox/inboxAnalytics.ts+++ b/products/signals/frontend/inbox/inboxAnalytics.ts@@ -235,35 +235,24 @@ function actionabilityBreakdown(reports: SignalReport[]): Record<string, number>}}-/** Which welcome takeover a user saw: the original stacked card or the redesigned hero. */-export type InboxWelcomeVariant = 'control' | 'redesign'-/** Where a wizard-command copy happened: the full welcome takeover or the re-enable banner. */export type InboxWelcomeCopySurface = 'takeover' | 'banner'/*** The self-driving welcome takeover rendered. `Inbox viewed` never fires for un-set-up teams (the- * takeover replaces the report list), so this is the top-of-funnel event for setup conversion, and- * the exposure marker for welcome-page experiments (`variant` mirrors the experiment arm).+ * takeover replaces the report list), so this is the top-of-funnel event for setup conversion.*/-export function captureInboxWelcomeViewed(params: { variant: InboxWelcomeVariant }): void {- captureInboxEvent(INBOX_EVENTS.WELCOME_VIEWED, {- variant: params.variant,- })+export function captureInboxWelcomeViewed(): void {+ captureInboxEvent(INBOX_EVENTS.WELCOME_VIEWED, {})}/*** The wizard setup command was copied. Previously only recoverable from autocapture (and* unreliably: `$el_text` is null on about half of clicks), so the setup funnel's first- * conversion step gets its own event. `variant` is null on the banner, which shows one- * fixed layout regardless of the welcome experiment.+ * conversion step gets its own event.*/-export function captureInboxWelcomeCommandCopied(params: {- variant: InboxWelcomeVariant | null- surface: InboxWelcomeCopySurface-}): void {+export function captureInboxWelcomeCommandCopied(params: { surface: InboxWelcomeCopySurface }): void {captureInboxEvent(INBOX_EVENTS.WELCOME_COMMAND_COPIED, {- variant: params.variant,surface: params.surface,})}@@ -273,12 +262,10 @@ export function captureInboxWelcomeCommandCopied(params: {* {@link captureInboxWelcomeCommandCopied} as the other exit from the welcome page, so the two* together say how a team chose to set self-driving up. Without it a manual setup is invisible:* the wizard copy never fires, and the sources and scouts that follow look like they came from- * nowhere. `variant` mirrors the welcome experiment arm, so the split is readable per arm.+ * nowhere.*/-export function captureInboxWelcomeManualSetupClicked(params: { variant: InboxWelcomeVariant }): void {- captureInboxEvent(INBOX_EVENTS.WELCOME_MANUAL_SETUP_CLICKED, {- variant: params.variant,- })+export function captureInboxWelcomeManualSetupClicked(): void {+ captureInboxEvent(INBOX_EVENTS.WELCOME_MANUAL_SETUP_CLICKED, {})}/**diff --git a/products/signals/frontend/inbox/logics/inboxOnboardingLogic.ts b/products/signals/frontend/inbox/logics/inboxOnboardingLogic.tsindex 45de76efb569..e3eba07aa7c5 100644--- a/products/signals/frontend/inbox/logics/inboxOnboardingLogic.ts+++ b/products/signals/frontend/inbox/logics/inboxOnboardingLogic.ts@@ -2,8 +2,7 @@ import { MakeLogicType, actions, afterMount, connect, kea, listeners, path, reduimport { router } from 'kea-router'import { subscriptions } from 'kea-subscriptions'-import { FEATURE_FLAGS } from 'lib/constants'-import { FeatureFlagsSet, featureFlagLogic } from 'lib/logic/featureFlagLogic'+import { featureFlagLogic } from 'lib/logic/featureFlagLogic'import { wizardActiveSessionDetectorLogic } from 'scenes/onboarding/shared/wizard-sync/wizardActiveSessionDetectorLogic'import { SELF_DRIVING_WORKFLOW_ID } from 'scenes/onboarding/shared/wizard-sync/workflows'import { teamLogic } from 'scenes/teamLogic'@@ -11,11 +10,7 @@ import { urls } from 'scenes/urls'import type { SignalScoutConfigApi as SignalScoutConfig } from 'products/signals/frontend/generated/api.schemas'-import {- InboxWelcomeVariant,- captureInboxOnboardingDecided,- captureInboxWelcomeManualSetupClicked,-} from '../inboxAnalytics'+import { captureInboxOnboardingDecided, captureInboxWelcomeManualSetupClicked } from '../inboxAnalytics'import { signalSourcesLogic } from '../signalSourcesLogic'import { INBOX_CONFIG_TAB_KEY, type SignalSourceConfig } from '../types'import { INBOX_REPORT_SECTION_LIST_PARAMS, reportListLogic } from './reportListLogic'@@ -266,7 +261,6 @@ export function resolveDisplayMode(// Generated by kea-typegen. Update if you're an agent, ignore if you're human.export interface inboxOnboardingLogicValues {- featureFlags: FeatureFlagsSet // featureFlagLogicreceivedFeatureFlags: boolean // featureFlagLogicpullsCount: number | null // reportListLogicpullsCountLoading: boolean // reportListLogic@@ -289,7 +283,6 @@ export interface inboxOnboardingLogicValues {isRefetching: booleanisSelfDrivingSetUp: booleanisSetupLoaded: boolean- isWelcomeRedesign: booleanisWizardRunning: booleanisWizardStateResolved: booleanlastSettledUiState: InboxSettledUiState | null@@ -320,8 +313,8 @@ export interface inboxOnboardingLogicActions {refreshSetupState: () => {value: true}- requestManualSetup: (variant: InboxWelcomeVariant) => {- variant: InboxWelcomeVariant+ requestManualSetup: () => {+ value: true}setLastSettledUiState: (teamId: number,@@ -388,7 +381,6 @@ export interface inboxOnboardingLogicMeta {resolvedOnboardingMode: InboxOnboardingMode,lastSettledUiState: InboxSettledUiState | null) => InboxOnboardingMode- isWelcomeRedesign: (onboardingMode: InboxOnboardingMode, featureFlags: FeatureFlagsSet) => boolean}}@@ -437,7 +429,7 @@ export const inboxOnboardingLogic = kea<inboxOnboardingLogicType>([wizardActiveSessionDetectorLogic,['activeWorkflowId', 'hasResolvedSessionState', 'watchedWorkflows'],featureFlagLogic,- ['receivedFeatureFlags', 'featureFlags'],+ ['receivedFeatureFlags'],teamLogic,['currentTeamId'],],@@ -463,8 +455,8 @@ export const inboxOnboardingLogic = kea<inboxOnboardingLogicType>([expireWizardVerdictWait: true,setLastSettledUiState: (teamId: number, uiState: InboxSettledUiState) => ({ teamId, uiState }),refreshSetupState: true,- /** "Set up manually" was pressed on the takeover. `variant` is the welcome arm it came from. */- requestManualSetup: (variant: InboxWelcomeVariant) => ({ variant }),+ /** "Set up manually" was pressed on the takeover. */+ requestManualSetup: true,setManualSetupRequested: (teamId: number) => ({ teamId }),}),@@ -480,8 +472,8 @@ export const inboxOnboardingLogic = kea<inboxOnboardingLogicType>([// Record the choice, then open the surface that holds the controls. On narrow viewports// that is the Configuration tab; on wide ones the scene remaps `config` to `pulls` and// shows the same widgets in the setup rail, so this one push is right at either width.- requestManualSetup: ({ variant }) => {- captureInboxWelcomeManualSetupClicked({ variant })+ requestManualSetup: () => {+ captureInboxWelcomeManualSetupClicked()if (values.currentTeamId != null) {actions.setManualSetupRequested(values.currentTeamId)}@@ -653,16 +645,6 @@ export const inboxOnboardingLogic = kea<inboxOnboardingLogicType>([lastSettledUiState: InboxSettledUiState | null): InboxOnboardingMode => resolveDisplayMode(resolvedOnboardingMode, lastSettledUiState),],- // The featureFlags proxy fires the `$feature_flag_called` exposure the moment a flag is- // read, so the read is guarded on the takeover actually showing: exposure has to mean- // "this user saw the welcome page", or the experiment dilutes with users who never did.- // Keyed off the display mode deliberately – a cache-predicted takeover still shows the- // welcome page, so the exposure is real.- isWelcomeRedesign: [- (s) => [s.onboardingMode, s.featureFlags],- (onboardingMode: InboxOnboardingMode, featureFlags: FeatureFlagsSet): boolean =>- onboardingMode === 'takeover' && featureFlags[FEATURE_FLAGS.INBOX_WELCOME_REDESIGN] === 'test',- ],}),subscriptions(({ actions, values, cache }) => ({