Skip to content

: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.

feat(inbox): add self-driving empty state (#81775)

Fernando Gomes48b3a294bac8
diff --git a/frontend/snapshots.yml b/frontend/snapshots.yml
index 3bd6a229e8b8..6d25b627a5ca 100644
--- a/frontend/snapshots.yml
+++ b/frontend/snapshots.yml
@@ -6383,13 +6383,25 @@ snapshots:
scenes-app-inbox-pullrequestdiffview--truncated--light:
hash: v1.k794b7964.58a507666519d2ad2f2a5247605b2c903180639eae9e43580992de250bc8f258._lKwsnOWccjuN6S_pd8IgOfKLzqnIvVqmTh1uETW-TY
scenes-app-inbox-scene--empty--dark:
- hash: v1.k794b7964.7e1c394905f5b9e19079d8229cdf82fc06e407e2df8c45b1f0e32a60ee057d7c.LwWT9XdFAeXgqPd2UqsInD8gyx7sQm5csEbwCpOLD6E
+ hash: v1.k794b7964.3342b9e88244f5f5e59b9a98df7d51ee9acd70aa27881c276ee843eca23e5528.DA1w6v4HKI-i7mwEaUSUJLrrkANbxtZbPvlKifpaqys
scenes-app-inbox-scene--empty--light:
- hash: v1.k794b7964.17f4c407843487071bf55465183017fdfd30bbdb27747690f349a7514a08edd5.YWCPq_XU_1sr2QizLCiMH_ZHWyILhy897viuDTm2eE4
+ hash: v1.k794b7964.9843212b09fb91920cda765af021e0e1d3a44e4ad9443f7918fb9065149d1c3f.7R3Gqufkumc-BQrIXQor3MZgqL6IT1PLSj4ZNqKOQP4
+ scenes-app-inbox-scene--empty-control--dark:
+ hash: v1.k794b7964.99ffca71975a423bd8ef679c361fd0bf4b9a1f6be6d4f4dfe82b69a9637184af.NwEat2sZEU9_PcNSbsxCt1SZBzTzyQJbewP-ZpJZOM4
+ scenes-app-inbox-scene--empty-control--light:
+ hash: v1.k794b7964.0bd8154cc24c9f19aef821da27d873001473634e8c8e4868d414d9204b35c58f.ATQvLBhDOPKTDa3bKkfGKcPytCuMGpk_mBtOdv-f3WQ
+ scenes-app-inbox-scene--empty-with-many-scouts--dark:
+ hash: v1.k794b7964.6f8bb823b1f76abd54fcedbf1a2bc02abaaea0ad940850ffc2d7f553a667a0c3.JO8Wwe3Wtz2B309Qv67RkEn_SXeiUUZSHqlP9wW9Dew
+ scenes-app-inbox-scene--empty-with-many-scouts--light:
+ hash: v1.k794b7964.4757fdc3e6603cc7752cffdf45421aa24d8551754e9b5cca04569ed5c9577a26.k0mDZb6DY2eTMFjNrG2mi_0Dbhcrho9A4MhjjH5KlCM
scenes-app-inbox-scene--inbox--dark:
hash: v1.k794b7964.7ade0c95519de555691da00b03aaa9aeea1ba0c32762354222d23676099ea0da.OmzLebXW_1EJ-lRFDeh7flQ6cl3OqskJfVarjDu4FQc
scenes-app-inbox-scene--inbox--light:
hash: v1.k794b7964.cd4a9d438b8342df350fcc8de14e27707c460e73d08772f90fec51dcb346858d.pXZHp6MatJwXk0M_5UL2njnpvO02KcZWmTtPqoeaj6E
+ scenes-app-inbox-scene--installing-self-driving--dark:
+ hash: v1.k794b7964.d2c648fd6ea8079c6746f4b5e979cac53dbd928dd06990c3bac2031eeaba12be.rCs94UBn0krUWBSp28BM_f7Jo4Smc85JTXR_iWzDjoY
+ scenes-app-inbox-scene--installing-self-driving--light:
+ hash: v1.k794b7964.e1a381b17d55ad8c8505b8ee127f6b8ec2e7caa403085904807ab8be056cd473.L05I7niKEVLN1EcRwCcMf-z7xzO9wF0qAYqaNquMtN8
scenes-app-inbox-scene--self-driving-onboarding--dark:
hash: v1.k794b7964.9c0f77f61291c86c4d171c8c0b59684cc0b94eb68239488a5151e8eda4a7d27f.7phlMjtIUvtdFB8FLuy-G5iHj8QLvOrPm7v1rEPy4G0
scenes-app-inbox-scene--self-driving-onboarding--light:
diff --git a/frontend/src/lib/constants.tsx b/frontend/src/lib/constants.tsx
index 9b81683ea0c2..9c715e17608d 100644
--- a/frontend/src/lib/constants.tsx
+++ b/frontend/src/lib/constants.tsx
@@ -177,6 +177,7 @@ export const FEATURE_FLAGS = {
CMD_K_NAV_EXPERIMENT: 'cmd-k-nav-experiment', // owner: @rafaeelaudibert #team-platform-ux multivariate=control,search-bar,footer-hint,tools-row,footer-callout - surfaces the Cmd+K command menu more prominently in the left nav: search-bar = full-width search field below the nav header, footer-hint = extra Search row in the nav footer, tools-row = Search row after the Tools item in the Project section, footer-callout = dismissible callout card in the nav ad slot for users a few days after signup
CREATE_BUTTON_NAV_EXPERIMENT: 'create-button-nav-experiment', // owner: #team-platform-ux multivariate=control,test — adds a Create dropdown to the top of the Browse tab in the left nav
FEATURE_FLAG_DISABLE_AND_ARCHIVE_EXPERIMENT: 'feature-flag-disable-and-archive-experiment', // owner: #team-feature-flags multivariate=control,test, adds a destructive "Disable and archive" option alongside "Disable only" in the disable-flag confirmation dialog, control keeps the plain disable confirmation
+ INBOX_SELF_DRIVING_EMPTY_STATE: 'inbox-self-driving-empty-state',
INSIGHT_NOTIFICATION_ENTRYPOINT: 'insight-notification-entrypoint', // owner: #team-product-analytics multivariate=control,notifications,get-updates,monitor — tests notification-entry-point copy against the prominent Subscribe button
STARRED_REORDER: 'starred-reorder', // owner: #team-platform-ux, drag-and-drop reorder of starred shortcuts in the side panel
UX_HIDE_PROJECT_NOTICE: 'ux-hide-project-notice', // owner: #team-platform-ux, hides the project notice banner across all scenes
diff --git a/frontend/src/lib/utils/nextCronDate.ts b/frontend/src/lib/utils/nextCronDate.ts
new file mode 100644
index 000000000000..8202a9afbd16
--- /dev/null
+++ b/frontend/src/lib/utils/nextCronDate.ts
@@ -0,0 +1,9 @@
+import { CronExpressionParser } from 'cron-parser'
+
+export function nextCronDate(expression: string, currentDate: Date, timezone?: string): Date | null {
+ try {
+ return CronExpressionParser.parse(expression, { currentDate, tz: timezone }).next().toDate()
+ } catch {
+ return null
+ }
+}
diff --git a/products/signals/frontend/inbox/InboxScene.stories.tsx b/products/signals/frontend/inbox/InboxScene.stories.tsx
index b1f9cf421d5c..41328d1d8253 100644
--- a/products/signals/frontend/inbox/InboxScene.stories.tsx
+++ b/products/signals/frontend/inbox/InboxScene.stories.tsx
@@ -1,6 +1,10 @@
import type { Meta, StoryObj } from '@storybook/react'
+import { useMountedLogic } from 'kea'
+import { useEffect } from 'react'
import { FEATURE_FLAGS } from 'lib/constants'
+import { wizardActiveSessionDetectorLogic } from 'scenes/onboarding/shared/wizard-sync/wizardActiveSessionDetectorLogic'
+import { SELF_DRIVING_WORKFLOW_ID } from 'scenes/onboarding/shared/wizard-sync/workflows'
import { mswDecorator } from '~/mocks/browser'
@@ -13,6 +17,7 @@ import {
mockTask,
mockTeamConfig,
} from './__mocks__/inboxMocks'
+import { mockLargeScoutFleet, mockScoutConfigs } from './__mocks__/scoutConfigs'
import { InboxScene } from './InboxScene'
import { INBOX_LAST_UI_STATE_STORAGE_KEY } from './logics/inboxOnboardingLogic'
@@ -53,7 +58,10 @@ const meta: Meta = {
layout: 'fullscreen',
viewMode: 'story',
mockDate: '2026-06-11',
- featureFlags: [FEATURE_FLAGS.PRODUCT_AUTONOMY],
+ featureFlags: {
+ [FEATURE_FLAGS.PRODUCT_AUTONOMY]: true,
+ [FEATURE_FLAGS.INBOX_SELF_DRIVING_EMPTY_STATE]: 'empty-state',
+ },
// The scene shell keeps a loader element mounted past the VR wait window, so don't block on it.
testOptions: { waitForLoadersToDisappear: false },
},
@@ -72,6 +80,56 @@ export const Empty: Story = {
get: {
'/api/projects/:id/signals/reports': () => [200, { results: [], count: 0, next: null, previous: null }],
'/api/projects/:id/signals/source_configs': () => [200, mockSourceConfigs],
+ '/api/projects/:id/signals/scout/configs': () => [200, mockScoutConfigs],
+ },
+ }),
+ ],
+}
+
+export const EmptyControl: Story = {
+ parameters: {
+ featureFlags: {
+ [FEATURE_FLAGS.PRODUCT_AUTONOMY]: true,
+ [FEATURE_FLAGS.INBOX_SELF_DRIVING_EMPTY_STATE]: 'control',
+ },
+ },
+ decorators: [
+ mswDecorator({
+ get: {
+ '/api/projects/:id/signals/reports': () => [200, { results: [], count: 0, next: null, previous: null }],
+ '/api/projects/:id/signals/source_configs': () => [200, mockSourceConfigs],
+ '/api/projects/:id/signals/scout/configs': () => [200, mockScoutConfigs],
+ },
+ }),
+ ],
+}
+
+export const EmptyWithManyScouts: Story = {
+ decorators: [
+ mswDecorator({
+ get: {
+ '/api/projects/:id/signals/reports': () => [200, { results: [], count: 0, next: null, previous: null }],
+ '/api/projects/:id/signals/source_configs': () => [200, mockSourceConfigs],
+ '/api/projects/:id/signals/scout/configs': () => [200, mockLargeScoutFleet],
+ },
+ }),
+ ],
+}
+
+export const InstallingSelfDriving: Story = {
+ decorators: [
+ (Story) => {
+ useMountedLogic(wizardActiveSessionDetectorLogic)
+ useEffect(() => {
+ wizardActiveSessionDetectorLogic.actions.markActive(SELF_DRIVING_WORKFLOW_ID)
+ return () => wizardActiveSessionDetectorLogic.actions.markInactive()
+ }, [])
+ return <Story />
+ },
+ 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, []],
},
}),
diff --git a/products/signals/frontend/inbox/__mocks__/scoutConfigs.ts b/products/signals/frontend/inbox/__mocks__/scoutConfigs.ts
new file mode 100644
index 000000000000..2cbd91b6dd3b
--- /dev/null
+++ b/products/signals/frontend/inbox/__mocks__/scoutConfigs.ts
@@ -0,0 +1,104 @@
+import type { SignalScoutConfigApi } from 'products/signals/frontend/generated/api.schemas'
+
+type MockScoutOverrides = Pick<SignalScoutConfigApi, 'id' | 'skill_name' | 'description'> &
+ Partial<Omit<SignalScoutConfigApi, 'id' | 'skill_name' | 'description'>>
+
+function makeMockScout(overrides: MockScoutOverrides): SignalScoutConfigApi {
+ return {
+ scout_origin: 'canonical',
+ enabled: true,
+ status: 'active',
+ pause_reason: null,
+ emit: true,
+ run_interval_minutes: 1440,
+ run_cron_schedule: null,
+ output_destinations: {},
+ structured_output_schema: null,
+ network_access: 'trusted',
+ model: null,
+ last_run_at: null,
+ consecutive_failure_count: 0,
+ status_changed_at: null,
+ auto_pause_exempt: false,
+ tags: [],
+ created_at: '2026-06-11T09:00:00Z',
+ ...overrides,
+ }
+}
+
+export const mockScoutConfigs: SignalScoutConfigApi[] = [
+ makeMockScout({
+ id: 'scout-error-tracking',
+ skill_name: 'signals-scout-error-tracking',
+ description: 'new errors, regressions, and spikes in Error tracking',
+ run_interval_minutes: 60,
+ last_run_at: '2026-06-10T23:30:00Z',
+ }),
+ makeMockScout({
+ id: 'scout-session-replay',
+ skill_name: 'signals-scout-session-replay',
+ description: 'session recordings for repeated usability problems',
+ last_run_at: '2026-06-10T12:00:00Z',
+ }),
+]
+
+export const mockLargeScoutFleet: SignalScoutConfigApi[] = [
+ makeMockScout({
+ id: 'scout-error-tracking',
+ skill_name: 'signals-scout-error-tracking',
+ description: 'new errors, regressions, and spikes in Error tracking',
+ run_interval_minutes: 60,
+ last_run_at: '2026-06-10T23:30:00Z',
+ }),
+ makeMockScout({
+ id: 'scout-checkout-health',
+ skill_name: 'signals-scout-checkout-health',
+ description: 'checkout failures and unusual drops in completed purchases',
+ scout_origin: 'custom',
+ run_interval_minutes: 30,
+ last_run_at: '2026-06-10T23:50:00Z',
+ tags: ['checkout', 'revenue'],
+ }),
+ makeMockScout({
+ id: 'scout-product-analytics',
+ skill_name: 'signals-scout-product-analytics',
+ description: 'unexpected changes in activation, retention, and conversion',
+ run_cron_schedule: '0 9 * * *',
+ }),
+ makeMockScout({
+ id: 'scout-session-replay',
+ skill_name: 'signals-scout-session-replay',
+ description: 'session recordings for repeated usability problems',
+ run_interval_minutes: 720,
+ last_run_at: '2026-06-10T18:00:00Z',
+ }),
+ makeMockScout({
+ id: 'scout-enterprise-adoption',
+ skill_name: 'signals-scout-enterprise-adoption',
+ description: 'changes in feature adoption across enterprise accounts',
+ scout_origin: 'custom',
+ run_cron_schedule: '30 8 * * 1',
+ tags: ['adoption'],
+ }),
+ makeMockScout({
+ id: 'scout-api-latency',
+ skill_name: 'signals-scout-api-latency',
+ description: 'slow API endpoints and changes in response time',
+ scout_origin: 'custom',
+ run_interval_minutes: 120,
+ last_run_at: '2026-06-10T23:00:00Z',
+ }),
+ makeMockScout({
+ id: 'scout-paused',
+ skill_name: 'signals-scout-data-warehouse',
+ description: 'failed and delayed data warehouse syncs',
+ enabled: false,
+ status: 'paused_by_user',
+ }),
+ makeMockScout({
+ id: 'scout-dry-run',
+ skill_name: 'signals-scout-experiments',
+ description: 'experiments with unexpected or inconclusive results',
+ emit: false,
+ }),
+]
diff --git a/products/signals/frontend/inbox/components/InboxReportList.tsx b/products/signals/frontend/inbox/components/InboxReportList.tsx
index 8f7610470e2c..5e330fe940cb 100644
--- a/products/signals/frontend/inbox/components/InboxReportList.tsx
+++ b/products/signals/frontend/inbox/components/InboxReportList.tsx
@@ -23,7 +23,9 @@ export interface InboxReportCardProps {
interface InboxReportListProps extends ReportListLogicProps {
Card: ComponentType<InboxReportCardProps>
- emptyState: { icon: JSX.Element; title: string; description: string; extra?: JSX.Element }
+ emptyState:
+ | { content: JSX.Element }
+ | { icon: JSX.Element; title: string; description: string; extra?: JSX.Element }
}
/**
@@ -149,14 +151,18 @@ function InboxReportListInner({ tabKey, Card, emptyState }: InboxReportListProps
{showSkeleton ? (
<CardSkeleton count={Math.min(count ?? 4, 6)} variant="cards" dashed={tabKey !== 'pulls'} />
) : reports.length === 0 ? (
- <div className="mx-auto max-w-md flex flex-col items-center text-center py-12 gap-2">
- <div className="flex items-center justify-center h-12 w-12 rounded-full bg-fill-primary text-secondary mb-1">
- {emptyState.icon}
+ 'content' in emptyState ? (
+ emptyState.content
+ ) : (
+ <div className="mx-auto max-w-md flex flex-col items-center text-center py-12 gap-2">
+ <div className="flex items-center justify-center h-12 w-12 rounded-full bg-fill-primary text-secondary mb-1">
+ {emptyState.icon}
+ </div>
+ <h3 className="text-base font-semibold m-0">{emptyState.title}</h3>
+ <p className="text-sm text-tertiary m-0">{emptyState.description}</p>
+ {emptyState.extra}
</div>
- <h3 className="text-base font-semibold m-0">{emptyState.title}</h3>
- <p className="text-sm text-tertiary m-0">{emptyState.description}</p>
- {emptyState.extra}
- </div>
+ )
) : (
<>
{/* Each report is its own freestanding card, separated by a small gap. */}
diff --git a/products/signals/frontend/inbox/components/emptyState/InboxWaitingForWork.tsx b/products/signals/frontend/inbox/components/emptyState/InboxWaitingForWork.tsx
new file mode 100644
index 000000000000..82616b5ee192
--- /dev/null
+++ b/products/signals/frontend/inbox/components/emptyState/InboxWaitingForWork.tsx
@@ -0,0 +1,137 @@
+import { useMountedLogic, useValues } from 'kea'
+
+import { IconCheckCircle, IconPullRequest } from '@posthog/icons'
+
+import { inboxOnboardingLogic } from '../../logics/inboxOnboardingLogic'
+import { scoutFleetLogic } from '../../logics/scoutFleetLogic'
+import { signalSourcesLogic } from '../../signalSourcesLogic'
+import { SignalSourceConfig, SignalSourceProduct, SignalSourceType } from '../../types'
+import { InstallingFlowRow } from './InstallingFlowRow'
+import { ScoutFlowRow } from './ScoutFlowRow'
+import { SignalSourceFlowRow } from './SignalSourceFlowRow'
+
+const MAX_VISIBLE_ITEMS = 3
+
+function uniqueEnabledSources(sourceConfigs: SignalSourceConfig[] | null): SignalSourceConfig[] {
+ const seenProducts = new Set<string>()
+ return (sourceConfigs ?? []).filter((source) => {
+ if (
+ !source.enabled ||
+ (source.source_product === SignalSourceProduct.SignalsScout &&
+ source.source_type === SignalSourceType.CrossSourceIssue) ||
+ seenProducts.has(source.source_product)
+ ) {
+ return false
+ }
+ seenProducts.add(source.source_product)
+ return true
+ })
+}
+
+export function InboxWaitingForWork(): JSX.Element {
+ useMountedLogic(signalSourcesLogic)
+ useMountedLogic(scoutFleetLogic)
+
+ const { sourceConfigs, sourceConfigsLoading } = useValues(signalSourcesLogic)
+ const { scoutConfigs, scoutConfigsLoading } = useValues(scoutFleetLogic)
+ const { isWizardRunning } = useValues(inboxOnboardingLogic)
+ const enabledSources = uniqueEnabledSources(sourceConfigs)
+ const enabledScouts = (scoutConfigs ?? []).filter((scout) => scout.enabled && scout.emit)
+ const visibleSources = enabledSources.slice(0, MAX_VISIBLE_ITEMS)
+ const visibleScouts = enabledScouts.slice(0, MAX_VISIBLE_ITEMS)
+ const sourcesLoading = sourceConfigs === null || sourceConfigsLoading
+ const scoutsLoading = scoutConfigs === null || scoutConfigsLoading
+
+ return (
+ <div className="mx-auto flex w-full max-w-5xl flex-col gap-7 py-6">
+ <div className="flex flex-col items-center gap-2 text-center">
+ <h2 className="m-0 text-lg font-semibold">Your agents are working in the background</h2>
+ <p className="m-0 max-w-xl text-sm text-tertiary">
+ Your signal sources and scouts are running in the background. When they find something actionable, a
+ pull request will appear here.
+ </p>
+ </div>
+
+ <div className="grid items-start gap-8 md:grid-cols-2">
+ <section className="flex flex-col">
+ <div className="flex items-center justify-between gap-2 border-b border-primary px-1 pb-3">
+ <div>
+ <h3 className="m-0 text-sm font-semibold">Signal sources</h3>
+ <p className="m-0 text-xs text-tertiary">Events that start an investigation</p>
+ </div>
+ <span
+ className={`flex items-center gap-1 text-xs ${isWizardRunning ? 'text-warning' : 'text-success'}`}
+ >
+ {isWizardRunning ? (
+ 'Installing'
+ ) : sourcesLoading ? (
+ 'Loading'
+ ) : (
+ <>
+ <IconCheckCircle className="size-3.5" />
+ {enabledSources.length} active
+ </>
+ )}
+ </span>
+ </div>
+ <div className="flex flex-col gap-2">
+ {visibleSources.map((source) => (
+ <SignalSourceFlowRow key={source.id} source={source} />
+ ))}
+ {isWizardRunning ? <InstallingFlowRow type="source" /> : null}
+ {!sourcesLoading && !isWizardRunning && visibleSources.length === 0 ? (
+ <p className="m-0 p-3 text-xs text-tertiary">No signal sources are active.</p>
+ ) : null}
+ </div>
+ {enabledSources.length > MAX_VISIBLE_ITEMS ? (
+ <div className="border-t border-primary px-1 pt-3 text-xs text-tertiary">
+ And {enabledSources.length - MAX_VISIBLE_ITEMS} more
+ </div>
+ ) : null}
+ </section>
+
+ <section className="flex flex-col">
+ <div className="flex items-center justify-between gap-2 border-b border-primary px-1 pb-3">
+ <div>
+ <h3 className="m-0 text-sm font-semibold">Scouts</h3>
+ <p className="m-0 text-xs text-tertiary">Scheduled checks across your data</p>
+ </div>
+ <span
+ className={`flex items-center gap-1 text-xs ${isWizardRunning ? 'text-warning' : 'text-success'}`}
+ >
+ {isWizardRunning ? (
+ 'Installing'
+ ) : scoutsLoading ? (
+ 'Loading'
+ ) : (
+ <>
+ <IconCheckCircle className="size-3.5" />
+ {enabledScouts.length} active
+ </>
+ )}
+ </span>
+ </div>
+ <div className="flex flex-col gap-2">
+ {visibleScouts.map((scout) => (
+ <ScoutFlowRow key={scout.id} scout={scout} />
+ ))}
+ {isWizardRunning ? <InstallingFlowRow type="scout" /> : null}
+ {!scoutsLoading && !isWizardRunning && visibleScouts.length === 0 ? (
+ <p className="m-0 p-3 text-xs text-tertiary">No scouts are active.</p>
+ ) : null}
+ </div>
+ {enabledScouts.length > MAX_VISIBLE_ITEMS ? (
+ <div className="border-t border-primary px-1 pt-3 text-xs text-tertiary">
+ And {enabledScouts.length - MAX_VISIBLE_ITEMS} more
+ </div>
+ ) : null}
+ </section>
+ </div>
+
+ <div className="flex items-center justify-center gap-2 text-sm text-secondary">
+ <IconPullRequest className="text-lg" />
+ Pull requests will appear here when a finding is ready to ship.
+ </div>
+ </div>
+ )
+}
diff --git a/products/signals/frontend/inbox/components/emptyState/InstallingFlowRow.tsx b/products/signals/frontend/inbox/components/emptyState/InstallingFlowRow.tsx
new file mode 100644
index 000000000000..49086ce6a630
--- /dev/null
+++ b/products/signals/frontend/inbox/components/emptyState/InstallingFlowRow.tsx
@@ -0,0 +1,28 @@
+import { IconBolt, IconCompass } from '@posthog/icons'
+import { Spinner } from '@posthog/lemon-ui'
+
+export function InstallingFlowRow({ type }: { type: 'source' | 'scout' }): JSX.Element {
+ const Icon = type === 'source' ? IconBolt : IconCompass
+ const title = type === 'source' ? 'Connecting sources' : 'Creating scheduled scouts'
+ const description =
+ type === 'source'
+ ? 'The setup agent is choosing and connecting signal sources.'
+ : 'The setup agent is creating scouts for this project.'
+
+ return (
+ <div className="grid grid-cols-[2rem_minmax(0,1fr)_auto] items-center gap-3 border-b border-primary px-1 py-3 last:border-b-0">
+ <div className="relative flex size-8 items-center justify-center rounded-full border border-primary bg-bg-light text-tertiary">
+ <Icon />
+ <span
+ className="absolute -right-0.5 -top-0.5 size-2.5 rounded-full border-2 border-bg-light bg-warning motion-safe:animate-pulse"
+ aria-hidden
+ />
+ </div>
+ <div className="min-w-0">
+ <div className="text-sm font-medium">{title}</div>
+ <div className="mt-0.5 text-xs text-tertiary">{description}</div>
+ </div>
+ <Spinner className="text-sm text-warning" />
+ </div>
+ )
+}
diff --git a/products/signals/frontend/inbox/components/emptyState/ScoutFlowRow.tsx b/products/signals/frontend/inbox/components/emptyState/ScoutFlowRow.tsx
new file mode 100644
index 000000000000..d264660a25cc
--- /dev/null
+++ b/products/signals/frontend/inbox/components/emptyState/ScoutFlowRow.tsx
@@ -0,0 +1,55 @@
+import { useValues } from 'kea'
+
+import { IconClock, IconCompass } from '@posthog/icons'
+
+import { TZLabel } from 'lib/components/TZLabel'
+import { teamLogic } from 'scenes/teamLogic'
+
+import type { SignalScoutConfigApi } from 'products/signals/frontend/generated/api.schemas'
+
+import { dailyCronToTime, formatRunIntervalShort, prettifyScoutSkillName } from '../../utils/scoutRunsWindow'
+import { scoutNextRun } from './scoutNextRun'
+
+function scoutSchedule(config: SignalScoutConfigApi): string {
+ if (config.run_cron_schedule) {
+ const dailyTime = dailyCronToTime(config.run_cron_schedule)
+ return dailyTime ? `Daily at ${dailyTime}` : 'On a set schedule'
+ }
+ return formatRunIntervalShort(config.run_interval_minutes)
+}
+
+export function ScoutFlowRow({ scout }: { scout: SignalScoutConfigApi }): JSX.Element {
+ const { currentTeam } = useValues(teamLogic)
+ const nextRun = scoutNextRun(scout, currentTeam?.timezone)
+
+ return (
+ <div className="grid grid-cols-[2rem_minmax(0,1fr)] gap-3 border-b border-primary px-1 py-3 last:border-b-0 sm:grid-cols-[2rem_minmax(0,1fr)_9.5rem]">
+ <div className="relative flex size-8 shrink-0 items-center justify-center rounded-full border border-primary bg-bg-light text-accent">
+ <IconCompass />
+ <span
+ className="absolute -right-0.5 -top-0.5 size-2.5 rounded-full border-2 border-bg-light bg-success motion-safe:animate-pulse"
+ aria-hidden
+ />
+ </div>
+ <div className="flex min-w-0 flex-col gap-1">
+ <span className="truncate text-sm font-medium">{prettifyScoutSkillName(scout.skill_name)}</span>
+ <span className="truncate text-xs text-tertiary">
+ Checks {scout.description.trim() || 'your product data'} and reports useful findings.
+ </span>
+ </div>
+ <div className="col-start-2 flex items-center justify-between gap-3 text-xs sm:col-start-auto sm:flex-col sm:items-end sm:justify-center">
+ <span className="flex items-center gap-1 font-medium text-primary">
+ <IconClock className="size-3.5 text-tertiary" />
+ {nextRun ? (
+ <>
+ Next run <TZLabel time={nextRun} showPopover={false} noStyles />
+ </>
+ ) : (
+ 'Due now'
+ )}
+ </span>
+ <span className="text-tertiary">{scoutSchedule(scout)}</span>
+ </div>
+ </div>
+ )
+}
diff --git a/products/signals/frontend/inbox/components/emptyState/SignalSourceFlowRow.tsx b/products/signals/frontend/inbox/components/emptyState/SignalSourceFlowRow.tsx
new file mode 100644
index 000000000000..6fbdd68cb378
--- /dev/null
+++ b/products/signals/frontend/inbox/components/emptyState/SignalSourceFlowRow.tsx
@@ -0,0 +1,41 @@
+import { IconArrowRight, IconBolt } from '@posthog/icons'
+
+import { SignalSourceConfig } from '../../types'
+import { getSourceProductMeta } from '../badges/sourceProductIcons'
+import { sourceTriggerCopy } from './emptyStateCopy'
+
+export function SignalSourceFlowRow({ source }: { source: SignalSourceConfig }): JSX.Element {
+ const sourceMeta = getSourceProductMeta(source.source_product)
+ const SourceIcon = sourceMeta?.Icon ?? IconBolt
+
+ return (
+ <div className="grid grid-cols-[2rem_minmax(0,1fr)] gap-3 border-b border-primary px-1 py-3 last:border-b-0">
+ <div className="flex justify-center">
+ <div className="relative flex size-8 shrink-0 items-center justify-center rounded-full border border-primary bg-bg-light">
+ <SourceIcon className={sourceMeta?.colorClass ?? 'text-secondary'} />
+ <span
+ className="absolute -right-0.5 -top-0.5 size-2.5 rounded-full border-2 border-bg-light bg-success motion-safe:animate-pulse"
+ aria-hidden
+ />
+ </div>
+ </div>
+ <div className="min-w-0">
+ <div className="truncate text-sm font-medium">{sourceMeta?.label ?? 'Signal source'}</div>
+ <div className="mt-2 grid grid-cols-[minmax(0,1fr)_auto_minmax(0,1fr)] items-center gap-3 text-xs">
+ <div className="min-w-0">
+ <div className="mb-0.5 text-[10px] font-medium text-secondary">When</div>
+ <div className="text-primary">{sourceTriggerCopy(source.source_type)}</div>
+ </div>
+ <div className="flex items-center text-tertiary" aria-hidden>
+ <span className="h-px w-4 bg-border-primary" />
+ <IconArrowRight className="-ml-0.5 shrink-0" />
+ </div>
+ <div className="min-w-0">
+ <div className="mb-0.5 text-[10px] font-medium text-secondary">Then</div>
+ <div className="text-tertiary">Investigate and open a pull request when fixable.</div>
+ </div>
+ </div>
+ </div>
+ </div>
+ )
+}
diff --git a/products/signals/frontend/inbox/components/emptyState/emptyStateCopy.ts b/products/signals/frontend/inbox/components/emptyState/emptyStateCopy.ts
new file mode 100644
index 000000000000..ff85f51fbee8
--- /dev/null
+++ b/products/signals/frontend/inbox/components/emptyState/emptyStateCopy.ts
@@ -0,0 +1,22 @@
+import { SignalSourceType } from '../../types'
+
+const SOURCE_TRIGGER_COPY: Partial<Record<SignalSourceType, string>> = {
+ [SignalSourceType.SessionAnalysisCluster]: 'a session shows a repeated problem',
+ [SignalSourceType.SessionProblem]: 'a session shows a product problem',
+ [SignalSourceType.Evaluation]: 'an AI evaluation fails',
+ [SignalSourceType.EvaluationReport]: 'AI evaluation results need attention',
+ [SignalSourceType.Issue]: 'a new issue arrives',
+ [SignalSourceType.Ticket]: 'a support ticket arrives',
+ [SignalSourceType.IssueCreated]: 'a new error appears',
+ [SignalSourceType.IssueReopened]: 'a resolved error returns',
+ [SignalSourceType.IssueSpiking]: 'an error starts spiking',
+ [SignalSourceType.HealthIssue]: 'an instrumentation problem appears',
+ [SignalSourceType.AnomalyInvestigation]: 'a product metric changes unexpectedly',
+ [SignalSourceType.CiFlakyCheck]: 'a CI check becomes flaky',
+ [SignalSourceType.CiBrokenDefaultBranch]: 'the default branch breaks',
+ [SignalSourceType.CiDurationRegression]: 'a CI workflow slows down',
+}
+
+export function sourceTriggerCopy(sourceType: SignalSourceType): string {
+ return SOURCE_TRIGGER_COPY[sourceType] ?? 'a new signal arrives'
+}
diff --git a/products/signals/frontend/inbox/components/emptyState/scoutNextRun.test.ts b/products/signals/frontend/inbox/components/emptyState/scoutNextRun.test.ts
new file mode 100644
index 000000000000..5af55cc1c318
--- /dev/null
+++ b/products/signals/frontend/inbox/components/emptyState/scoutNextRun.test.ts
@@ -0,0 +1,52 @@
+import { scoutNextRun } from './scoutNextRun'
+
+describe('scoutNextRun', () => {
+ test.each([
+ {
+ name: 'rolling interval',
+ scout: {
+ last_run_at: '2026-06-10T23:30:00Z',
+ run_cron_schedule: null,
+ run_interval_minutes: 60,
+ },
+ timezone: 'UTC',
+ currentDate: new Date('2026-06-11T00:00:00Z'),
+ expected: '2026-06-11T00:30:00.000Z',
+ },
+ {
+ name: 'cron schedule in the project timezone',
+ scout: {
+ last_run_at: null,
+ run_cron_schedule: '0 9 * * *',
+ run_interval_minutes: 1440,
+ },
+ timezone: 'America/New_York',
+ currentDate: new Date('2026-06-11T12:00:00Z'),
+ expected: '2026-06-11T13:00:00.000Z',
+ },
+ {
+ name: 'overdue interval',
+ scout: {
+ last_run_at: '2026-06-10T20:00:00Z',
+ run_cron_schedule: null,
+ run_interval_minutes: 60,
+ },
+ timezone: 'UTC',
+ currentDate: new Date('2026-06-11T00:00:00Z'),
+ expected: null,
+ },
+ {
+ name: 'overdue cron schedule',
+ scout: {
+ last_run_at: '2026-06-10T13:00:00Z',
+ run_cron_schedule: '0 9 * * *',
+ run_interval_minutes: 1440,
+ },
+ timezone: 'America/New_York',
+ currentDate: new Date('2026-06-11T14:00:00Z'),
+ expected: null,
+ },
+ ])('$name', ({ scout, timezone, currentDate, expected }) => {
+ expect(scoutNextRun(scout, timezone, currentDate)?.toISOString() ?? null).toBe(expected)
+ })
+})
diff --git a/products/signals/frontend/inbox/components/emptyState/scoutNextRun.ts b/products/signals/frontend/inbox/components/emptyState/scoutNextRun.ts
new file mode 100644
index 000000000000..e7bc6caae7d4
--- /dev/null
+++ b/products/signals/frontend/inbox/components/emptyState/scoutNextRun.ts
@@ -0,0 +1,23 @@
+import { dayjs } from 'lib/dayjs'
+import { nextCronDate } from 'lib/utils/nextCronDate'
+
+import type { SignalScoutConfigApi } from 'products/signals/frontend/generated/api.schemas'
+
+type ScoutSchedule = Pick<SignalScoutConfigApi, 'last_run_at' | 'run_cron_schedule' | 'run_interval_minutes'>
+
+export function scoutNextRun(
+ scout: ScoutSchedule,
+ timezone: string | undefined,
+ currentDate: Date = new Date()
+): dayjs.Dayjs | null {
+ if (scout.run_cron_schedule) {
+ const scheduleAnchor = scout.last_run_at ? new Date(scout.last_run_at) : currentDate
+ const nextRun = nextCronDate(scout.run_cron_schedule, scheduleAnchor, timezone)
+ return nextRun && dayjs(nextRun).isAfter(currentDate) ? dayjs(nextRun) : null
+ }
+ if (!scout.last_run_at) {
+ return null
+ }
+ const nextRun = dayjs(scout.last_run_at).add(scout.run_interval_minutes, 'minute')
+ return nextRun.isAfter(currentDate) ? nextRun : null
+}
diff --git a/products/signals/frontend/inbox/components/tabs/PullRequestsTab.tsx b/products/signals/frontend/inbox/components/tabs/PullRequestsTab.tsx
index 9aeb8929044c..393bb0ae44e2 100644
--- a/products/signals/frontend/inbox/components/tabs/PullRequestsTab.tsx
+++ b/products/signals/frontend/inbox/components/tabs/PullRequestsTab.tsx
@@ -1,27 +1,40 @@
+import { useValues } from 'kea'
+
import { IconPullRequest } from '@posthog/icons'
+import { FEATURE_FLAGS } from 'lib/constants'
+import { featureFlagLogic } from 'lib/logic/featureFlagLogic'
+
import { INBOX_FLAT_TAB_LIST_PARAMS } from '../../logics/reportListLogic'
import { ReportCard } from '../cards/ReportCard'
+import { InboxWaitingForWork } from '../emptyState/InboxWaitingForWork'
import { InboxReportList } from '../InboxReportList'
import { SelfDrivingInstallingHint } from '../SelfDrivingInstallingHint'
export function PullRequestsTab(): JSX.Element {
+ const { featureFlags } = useValues(featureFlagLogic)
+ const showWaitingForWork = featureFlags[FEATURE_FLAGS.INBOX_SELF_DRIVING_EMPTY_STATE] === 'empty-state'
+
return (
<InboxReportList
tabKey="pulls"
listParams={INBOX_FLAT_TAB_LIST_PARAMS.pulls}
Card={ReportCard}
- emptyState={{
- icon: <IconPullRequest className="text-2xl" />,
- title: 'No pull requests right now',
- description:
- 'When an agent ships a code change, the PR draft lands here for you to review and publish.',
- extra: (
- <SelfDrivingInstallingHint>
- Pull requests will be opened as soon as live data comes in.
- </SelfDrivingInstallingHint>
- ),
- }}
+ emptyState={
+ showWaitingForWork
+ ? { content: <InboxWaitingForWork /> }
+ : {
+ icon: <IconPullRequest className="text-2xl" />,
+ title: 'No pull requests right now',
+ description:
+ 'When an agent ships a code change, the PR draft lands here for you to review and publish.',
+ extra: (
+ <SelfDrivingInstallingHint>
+ Pull requests will be opened as soon as live data comes in.
+ </SelfDrivingInstallingHint>
+ ),
+ }
+ }
/>
)
}