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 explanatory tooltips across the inbox (#67664)

Andrew Maguirea8ed2bcbe2b2
diff --git a/frontend/snapshots.yml b/frontend/snapshots.yml
index 0f012cc7d4f2..f3b472610a8c 100644
--- a/frontend/snapshots.yml
+++ b/frontend/snapshots.yml
@@ -5637,17 +5637,17 @@ snapshots:
scenes-app-inbox-pullrequestdiffview--truncated--light:
hash: v1.k794b7964.fb773b4c098b2f55cb393d1b9af9051deea9eee9a830940209e388ba916c01d4.kS1w3ZNx__r01yrTZZy7XXog7oqnDTDdJtfBBhnp4pk
scenes-app-inbox-scene--empty--dark:
- hash: v1.k794b7964.0730c341122d1d593f4e6acf7a176e05bdd79e9ca6bf5f785a909fd57ad274f1.V4Hgc6xF9-5hiq75aqzZWcbiemdqMe3fdbcMqVHbg7U
+ hash: v1.k794b7964.0284b54c79a12a21362c21da6d6d0c7931a6e7712175382d9403501bade25944.hTTIjAQuFDRQcXSxdhkHbDLUKzWGdWCizFXZO0pDGt4
scenes-app-inbox-scene--empty--light:
- hash: v1.k794b7964.90d34c77f6dfa354d95f502f7760a2f663a7a9c30de1da3a731653b59f904cb0.9pu-wR68QOchxE47ApZFjYMJWmmrkN7VZFAnnGxeCW4
+ hash: v1.k794b7964.8b499d6aa9e068adac6c22535509ea16ff73811a0d3576b0cb71c806bc0368f0.nvx1ive6oY4K9UKOvmkEUUkk9EFGTgTsbwRtirSVCzc
scenes-app-inbox-scene--inbox--dark:
- hash: v1.k794b7964.eae93d2c506e66eb23f36e19f05bf6f07286d9a895dbad8f970c009fd98f1d53.AqLzv_So4UaxCTEYyb-ZB24M8Z4KF2Zq8PyO-8FDfos
+ hash: v1.k794b7964.3be049495351febd0fd0707ba5892fb476470206a01b3d4f4bf63a3b1f25fcf7.SgEWO4lvLKoR5BmG1ts5oXMwEbVYTqfpXZYWciXpDCc
scenes-app-inbox-scene--inbox--light:
hash: v1.k794b7964.88e28c4041b75b5ec02df0ad87e73d6cd2b1274781a7f47181eed609a5f9d4c1.i7mKwerSXPALau25BeHD_X-Xo7-MsOSIzkx3a2FJfaA
scenes-app-inbox-scene--self-driving-onboarding--dark:
- hash: v1.k794b7964.0730c341122d1d593f4e6acf7a176e05bdd79e9ca6bf5f785a909fd57ad274f1.qRvNaIt3BFQkYn9JRfSKCXUScoTY331T7aAtb5jHXsk
+ hash: v1.k794b7964.0284b54c79a12a21362c21da6d6d0c7931a6e7712175382d9403501bade25944.JFxilh9rtU8eSo4d135Eak4WWNPaPWAF7zdqAUgyRlw
scenes-app-inbox-scene--self-driving-onboarding--light:
- hash: v1.k794b7964.90d34c77f6dfa354d95f502f7760a2f663a7a9c30de1da3a731653b59f904cb0.Cxe2TZ9k11cuJdK6Z16NsJT2jJrHWTwC_8jh7MMztE4
+ hash: v1.k794b7964.dd890b4dee0b457a54daa44c5d02b2995769bcc475f308aabae2f417b737efdf.t3pH8i49XFCWRI6oGXQ3uopBtavfiUUVGbXyDSrIWxI
scenes-app-inbox-scene--self-driving-paused--dark:
hash: v1.k794b7964.eae93d2c506e66eb23f36e19f05bf6f07286d9a895dbad8f970c009fd98f1d53.7hksyy3ldoFdJY9rpLYMe7FNYuMAi-U1Vlh3OGhv3wY
scenes-app-inbox-scene--self-driving-paused--light:
diff --git a/frontend/src/scenes/inbox/InboxScene.tsx b/frontend/src/scenes/inbox/InboxScene.tsx
index 8a0da80cf302..c3388311516b 100644
--- a/frontend/src/scenes/inbox/InboxScene.tsx
+++ b/frontend/src/scenes/inbox/InboxScene.tsx
@@ -25,7 +25,7 @@ import { ReportsTab } from './components/tabs/ReportsTab'
import { RunsTab } from './components/tabs/RunsTab'
import { inboxSceneLogic } from './inboxSceneLogic'
import { inboxOnboardingLogic } from './logics/inboxOnboardingLogic'
-import { InboxTabKey, SignalReport, SignalRun } from './types'
+import { INBOX_TAB_DESCRIPTION, InboxTabKey, SignalReport, SignalRun } from './types'
export const scene: SceneExport = {
component: InboxScene,
@@ -164,6 +164,7 @@ function InboxPanelView({ onBack, children }: { onBack: () => void; children: JS
export function InboxScene(): JSX.Element {
const {
+ activeTab,
isRunningSessionAnalysis,
selectedReportId,
selectedReport,
@@ -187,9 +188,13 @@ export function InboxScene(): JSX.Element {
<div className={showDetail ? 'hidden' : 'flex flex-col gap-y-4 flex-1 min-h-0'}>
<SceneTitleSection
name="Inbox"
- // The takeover's hero carries its own headline + pitch, so the scene description
- // would be redundant there; keep it for the normal/banner states.
- description="Self-driving for your product. Look through work done by PostHog agents – code changes and reports."
+ // 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.
+ description={
+ onboardingMode === 'takeover'
+ ? 'Self-driving for your product. Look through work done by PostHog agents – code changes and reports.'
+ : INBOX_TAB_DESCRIPTION[activeTab]
+ }
resourceType={{ type: 'inbox' }}
actions={
isDev ? (
diff --git a/frontend/src/scenes/inbox/components/badges/SignalReportPriorityBadge.tsx b/frontend/src/scenes/inbox/components/badges/SignalReportPriorityBadge.tsx
index 2cb65d2d445b..dc6178c0495c 100644
--- a/frontend/src/scenes/inbox/components/badges/SignalReportPriorityBadge.tsx
+++ b/frontend/src/scenes/inbox/components/badges/SignalReportPriorityBadge.tsx
@@ -1,6 +1,7 @@
import { IconQuestion } from '@posthog/icons'
import { Tooltip } from '@posthog/lemon-ui'
+import { PRIORITY_MEANING } from '../../filterOptions'
import { SignalReportPriority } from '../../types'
/**
@@ -51,12 +52,32 @@ export function SignalReportPriorityBadge({
</span>
)
+ // The API passes priority strings through from agent-written artefacts, so a malformed or
+ // legacy value can fall outside P0–P4 despite the type — degrade to a plain chip, don't crash.
+ const meaning: { label: string; description: string } | undefined = PRIORITY_MEANING[priority]
+ const genericLine = meaning ? `${priority} · ${meaning.label} priority – ${meaning.description}` : null
+
if (!explanation?.trim()) {
- return chip
+ if (!genericLine) {
+ return chip
+ }
+ // No per-report rationale: still explain what the code means, so P0–P4 is never a mystery.
+ return (
+ <Tooltip title={genericLine}>
+ <span className="inline-flex cursor-help">{chip}</span>
+ </Tooltip>
+ )
}
// Icon center sits on the (rounded) top-right corner; matches the chip's text color, with its own bg to stay legible.
return (
- <Tooltip title={explanation}>
+ <Tooltip
+ title={
+ <div className="flex flex-col gap-1">
+ {genericLine ? <div className="font-semibold">{genericLine}</div> : null}
+ <div>{explanation}</div>
+ </div>
+ }
+ >
<span className="relative inline-flex cursor-help">
{chip}
<IconQuestion
diff --git a/frontend/src/scenes/inbox/components/badges/sourceProductIcons.tsx b/frontend/src/scenes/inbox/components/badges/sourceProductIcons.tsx
index 6f36627ae37a..0bedac506fc9 100644
--- a/frontend/src/scenes/inbox/components/badges/sourceProductIcons.tsx
+++ b/frontend/src/scenes/inbox/components/badges/sourceProductIcons.tsx
@@ -122,6 +122,11 @@ export function knownSourceProductEntries(sourceProducts: string[] | null | unde
.filter((entry): entry is KnownSourceProductEntry => entry.meta !== null)
}
+/** Tooltip copy listing every contributing source product, shared by the card and detail meta rows. */
+export function sourceProductsTooltipTitle(entries: KnownSourceProductEntry[]): string {
+ return `Signals in this report came from: ${entries.map((e) => e.meta.label).join(', ')}`
+}
+
/** Row of color-coded source-product icons. Surfaces vary in wrapper layout, so the caller supplies `className`. */
export function SourceProductIconRow({
entries,
diff --git a/frontend/src/scenes/inbox/components/cards/ReportCard.tsx b/frontend/src/scenes/inbox/components/cards/ReportCard.tsx
index cecc4f21e06a..d15186903751 100644
--- a/frontend/src/scenes/inbox/components/cards/ReportCard.tsx
+++ b/frontend/src/scenes/inbox/components/cards/ReportCard.tsx
@@ -20,7 +20,12 @@ import {
import { SignalReportActionabilityBadge } from '../badges/SignalReportActionabilityBadge'
import { SignalReportPriorityBadge } from '../badges/SignalReportPriorityBadge'
import { SignalReportStatusBadge } from '../badges/SignalReportStatusBadge'
-import { hasKnownSourceProduct, knownSourceProductEntries, SourceProductIconRow } from '../badges/sourceProductIcons'
+import {
+ hasKnownSourceProduct,
+ knownSourceProductEntries,
+ SourceProductIconRow,
+ sourceProductsTooltipTitle,
+} from '../badges/sourceProductIcons'
import { inboxCardRowClassName, useReportArchive } from './useReportArchive'
// ── Shared card sub-components ────────────────────────────────────────────────
@@ -46,7 +51,8 @@ export function InboxCardSourceMeta({
/** Authoring scout's display name, when scout-authored — appended to the "Scout" label. */
scoutName?: string | null
}): JSX.Element | null {
- const [primary, ...overflow] = knownSourceProductEntries(sourceProducts)
+ const entries = knownSourceProductEntries(sourceProducts)
+ const [primary, ...overflow] = entries
if (!primary) {
return null
}
@@ -56,13 +62,15 @@ export function InboxCardSourceMeta({
? `${primary.meta.label} · ${scoutName}`
: primary.meta.label
return (
- <div className="flex items-center gap-2 min-w-0 text-xs text-tertiary leading-none select-none">
- <SourceProductIconRow entries={[primary, ...overflow]} className="flex items-center gap-1.5 shrink-0" />
- <span>
- {primaryLabel}
- {overflow.length > 0 ? ` + ${overflow.length}` : null}
- </span>
- </div>
+ <Tooltip title={sourceProductsTooltipTitle(entries)}>
+ <div className="flex items-center gap-2 min-w-0 text-xs text-tertiary leading-none select-none cursor-help">
+ <SourceProductIconRow entries={entries} className="flex items-center gap-1.5 shrink-0" />
+ <span>
+ {primaryLabel}
+ {overflow.length > 0 ? ` + ${overflow.length}` : null}
+ </span>
+ </div>
+ </Tooltip>
)
}
@@ -313,6 +321,7 @@ export function ReportCard({
<LemonButton
type="primary"
size="small"
+ tooltip="Open the full report – summary, evidence, and actions"
onClick={(event) => {
event.preventDefault()
event.stopPropagation()
diff --git a/frontend/src/scenes/inbox/components/detail/ReportDetail.tsx b/frontend/src/scenes/inbox/components/detail/ReportDetail.tsx
index a2a38a3139fb..364869b4efac 100644
--- a/frontend/src/scenes/inbox/components/detail/ReportDetail.tsx
+++ b/frontend/src/scenes/inbox/components/detail/ReportDetail.tsx
@@ -2,7 +2,7 @@ import { useValues } from 'kea'
import { ReactNode } from 'react'
import { IconArrowLeft, IconDocument, IconEllipsis, IconExternal, IconPullRequest, IconSearch } from '@posthog/icons'
-import { LemonButton } from '@posthog/lemon-ui'
+import { LemonButton, Tooltip } from '@posthog/lemon-ui'
import { TZLabel } from 'lib/components/TZLabel'
import { IconLink } from 'lib/lemon-ui/icons'
@@ -26,7 +26,12 @@ import {
import { SignalReportActionabilityBadge } from '../badges/SignalReportActionabilityBadge'
import { SignalReportPriorityBadge } from '../badges/SignalReportPriorityBadge'
import { SignalReportStatusBadge } from '../badges/SignalReportStatusBadge'
-import { hasKnownSourceProduct, knownSourceProductEntries, SourceProductIconRow } from '../badges/sourceProductIcons'
+import {
+ hasKnownSourceProduct,
+ knownSourceProductEntries,
+ SourceProductIconRow,
+ sourceProductsTooltipTitle,
+} from '../badges/sourceProductIcons'
import { ConventionalCommitScopeTag } from '../cards/ReportCard'
import { CommitContent } from './artefactTypes'
import { DetailSection } from './DetailSection'
@@ -63,6 +68,10 @@ export function ReportDetailBadges({
)
}
+/** Shared explainer for the finding count in the meta line and the Evidence section. */
+const FINDINGS_TOOLTIP =
+ 'Findings are the individual pieces of evidence – signals from your connected sources and scouts – that were grouped into this report.'
+
/**
* Single meta line under the title: status/actionability chips, then dot-separated stats
* (finding count · updated · source stack). `evidenceCount` switches to the live signal count once
@@ -87,9 +96,11 @@ function ReportDetailMeta({
const stats: ReactNode[] = []
if (evidenceCount > 0) {
stats.push(
- <span className="tabular-nums">
- {evidenceCount} finding{evidenceCount === 1 ? '' : 's'}
- </span>
+ <Tooltip title={FINDINGS_TOOLTIP}>
+ <span className="tabular-nums cursor-help">
+ {evidenceCount} finding{evidenceCount === 1 ? '' : 's'}
+ </span>
+ </Tooltip>
)
}
// Mirrors error tracking's "First seen" / "Last seen": surface both lifecycle moments as distinct facts.
@@ -136,7 +147,8 @@ function MetaSourceStack({
sourceProducts?: string[] | null
scoutName?: string | null
}): JSX.Element | null {
- const [primary, ...overflow] = knownSourceProductEntries(sourceProducts)
+ const entries = knownSourceProductEntries(sourceProducts)
+ const [primary, ...overflow] = entries
if (!primary) {
return null
}
@@ -146,16 +158,15 @@ function MetaSourceStack({
? `${primary.meta.label} · ${scoutName}`
: primary.meta.label
return (
- <span className="inline-flex items-center gap-1.5 min-w-0">
- <SourceProductIconRow
- entries={[primary, ...overflow]}
- className="inline-flex items-center gap-1 shrink-0"
- />
- <span>
- {primaryLabel}
- {overflow.length > 0 ? ` + ${overflow.length}` : null}
+ <Tooltip title={sourceProductsTooltipTitle(entries)}>
+ <span className="inline-flex items-center gap-1.5 min-w-0 cursor-help">
+ <SourceProductIconRow entries={entries} className="inline-flex items-center gap-1 shrink-0" />
+ <span>
+ {primaryLabel}
+ {overflow.length > 0 ? ` + ${overflow.length}` : null}
+ </span>
</span>
- </span>
+ </Tooltip>
)
}
@@ -317,9 +328,11 @@ export function InboxDetailFrame({
icon={<IconSearch />}
title="Evidence"
rightSlot={
- <span className="text-[0.6875rem] text-tertiary tabular-nums">
- {evidenceCount} finding{evidenceCount === 1 ? '' : 's'}
- </span>
+ <Tooltip title={FINDINGS_TOOLTIP}>
+ <span className="text-[0.6875rem] text-tertiary tabular-nums cursor-help">
+ {evidenceCount} finding{evidenceCount === 1 ? '' : 's'}
+ </span>
+ </Tooltip>
}
>
{reportSignalsLoading && reportSignals === null ? (
diff --git a/frontend/src/scenes/inbox/components/shell/InboxScopeSelect.tsx b/frontend/src/scenes/inbox/components/shell/InboxScopeSelect.tsx
index c5cde76c08be..e328e8821b0d 100644
--- a/frontend/src/scenes/inbox/components/shell/InboxScopeSelect.tsx
+++ b/frontend/src/scenes/inbox/components/shell/InboxScopeSelect.tsx
@@ -76,7 +76,11 @@ export function InboxScopeSelect(): JSX.Element {
}
}}
options={[
- { value: 'for-you', label: 'For you' },
+ {
+ value: 'for-you',
+ label: 'For you',
+ tooltip: 'Only reports where agents suggested you as a reviewer',
+ },
{
value: 'other',
label: (
@@ -85,6 +89,7 @@ export function InboxScopeSelect(): JSX.Element {
<IconChevronDown className="text-tertiary" />
</span>
),
+ tooltip: "See every report in the project, or a specific teammate's",
},
]}
/>
diff --git a/frontend/src/scenes/inbox/components/shell/InboxSearchFilterBar.tsx b/frontend/src/scenes/inbox/components/shell/InboxSearchFilterBar.tsx
index 4b70ee1d22ba..88bc29424f81 100644
--- a/frontend/src/scenes/inbox/components/shell/InboxSearchFilterBar.tsx
+++ b/frontend/src/scenes/inbox/components/shell/InboxSearchFilterBar.tsx
@@ -9,6 +9,7 @@ import {
INBOX_SORT_OPTIONS,
INBOX_SOURCE_OPTIONS,
PRIORITY_ACCENT,
+ PRIORITY_MEANING,
inboxPriorityFilterLabel,
inboxSortOptionKey,
inboxSourceFilterLabel,
@@ -174,7 +175,12 @@ export function InboxSearchFilterBar({
style={{ backgroundColor: PRIORITY_ACCENT[priority] }}
/>
}
- label={priority}
+ label={
+ <span>
+ {priority}
+ <span className="text-muted"> · {PRIORITY_MEANING[priority].label}</span>
+ </span>
+ }
active={priorityFilter.includes(priority)}
onClick={() => togglePriority(priority)}
/>
diff --git a/frontend/src/scenes/inbox/filterOptions.tsx b/frontend/src/scenes/inbox/filterOptions.tsx
index bfd19c121fa9..2fe104f79116 100644
--- a/frontend/src/scenes/inbox/filterOptions.tsx
+++ b/frontend/src/scenes/inbox/filterOptions.tsx
@@ -33,6 +33,22 @@ export const PRIORITY_TAG_TYPE: Record<SignalReportPriority, LemonTagType> = {
P4: 'muted', // gray
}
+/**
+ * Human meaning of each priority code, mirroring the criteria the research agent judges against
+ * (see products/signals/backend/report_generation/research.py). Surfaced in the priority badge
+ * tooltip and the priority filter so users don't have to guess what P0–P4 mean.
+ */
+export const PRIORITY_MEANING: Record<SignalReportPriority, { label: string; description: string }> = {
+ P0: {
+ label: 'Critical',
+ description: 'Production errors, a broken core flow, data loss, or a security vulnerability.',
+ },
+ P1: { label: 'High', description: 'Significant user-facing impact or a clear regression.' },
+ P2: { label: 'Medium', description: 'A clear improvement opportunity, or a contained issue with workarounds.' },
+ P3: { label: 'Low', description: 'A minor improvement or low-impact issue.' },
+ P4: { label: 'Minimal', description: 'Cosmetic or negligible impact, or an optional investigation.' },
+}
+
/** Matching CSS accent per priority, for non-LemonTag surfaces (filter dots, monograms). */
export const PRIORITY_ACCENT: Record<SignalReportPriority, string> = {
P0: 'var(--red-9, #e5484d)',
diff --git a/frontend/src/scenes/inbox/types.ts b/frontend/src/scenes/inbox/types.ts
index e29aad758c10..f984429e7a1c 100644
--- a/frontend/src/scenes/inbox/types.ts
+++ b/frontend/src/scenes/inbox/types.ts
@@ -127,6 +127,17 @@ export const INBOX_TAB_LABEL: Record<InboxTabKey, string> = {
config: 'Configuration',
}
+/** What each tab holds, surfaced as the scene description while that tab is active so new users can orient themselves. */
+export const INBOX_TAB_DESCRIPTION: Record<InboxTabKey, string> = {
+ pulls: 'Pull requests agents opened to resolve reports. Review and merge them on GitHub.',
+ reports: 'Issues and opportunities agents found in your product data, researched and prioritized for your review.',
+ 'not-actionable':
+ 'Reports judged not actionable – too vague, missing supporting evidence, or describing expected behavior.',
+ runs: 'Project-wide list of agent runs, for debugging.',
+ archived: 'Reports you archived. You can restore them to the inbox at any time.',
+ config: 'Set up signal sources, scouts, and how autonomously agents can act.',
+}
+
/**
* The Configuration tab holds the agent-setup widgets. It only appears when the scene is too
* narrow for the right-hand setup rail (see `AgentSetupColumn`); on wide viewports the rail