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(signals): explain the ml model in the inbox ranking hover card (#128177)

posthog[bot]8185eca3b300
diff --git a/frontend/snapshots.yml b/frontend/snapshots.yml
index e08af82817ad..2f7f54737527 100644
--- a/frontend/snapshots.yml
+++ b/frontend/snapshots.yml
@@ -12127,17 +12127,17 @@ snapshots:
scenes-app-inbox-cards--report-card-claims--light:
hash: v1.k794b7964.a0c5c50d464e77c37eebc6d632f941a14a1781a4a56887cba8c67bdc0a146339.s_GdO_rSCXgztc4ixwKZxZgq1gxJC77MemS6JtNMGOg
scenes-app-inbox-cards--report-card-ranking-pills--dark:
- hash: v1.k794b7964.e365897a2bbdf261ad943724192056ff7fb2a90ecd73ac48e3bf740b4dcae220.D7hiwD-TX8eBz-kwEqW1fDXapqelqSVNfsLvKIlUkrk
+ hash: v1.k794b7964.f931be0d5b85344d300c7ea52aef60e1fd10df1b4c100a85aec43dfb048e56a7.YM71Eh4FFl51y2X4hsSeFUOZb25LXOltdV4pCiXb2KI
scenes-app-inbox-cards--report-card-ranking-pills--light:
- hash: v1.k794b7964.8ebfc4ef8f9fe3b9ec9abe6c4208367edcd2d465c4febb7072cff732268f540c.tgE38zzI-RKiSiQWDURea608AWtfA6wakjJeg0Fc1EI
+ hash: v1.k794b7964.b27a7b960fc64366b20b3111f7194ae12d07e8abe7e2143d72e957b60c56ed5e.ddmkTjjQevhs7aNSnOknVny_24vkjfiw8KkpYdoQl-A
scenes-app-inbox-cards--report-card-ranking-pills-narrow--dark:
hash: v1.k794b7964.271a4b8abfa91dd2dd1f1d167e31623c83ec6a129473d584f7d14520b2ae9fbc.w1Ie4H9cASbns3xtRHMt8MzOE0pbON6WZFcCJ6imZ8U
scenes-app-inbox-cards--report-card-ranking-pills-narrow--light:
hash: v1.k794b7964.b1c962bc4c49b1e5ceeda2ff47865a2448a8c5a837d82bae3b077f9a150aa13c.59O2bhwWu80qnBNvS7Qco54q_Z9k2qMJ8moVo6q3rxA
scenes-app-inbox-cards--report-card-ranking-tags--dark:
- hash: v1.k794b7964.fe2edfc719172a09b7a54479a14278f8c39853b604bb6eda0b17aba928d45d85.ZJo3-Ncode3NwUV8az9HACGNrnYqBDzi2qpFD3OYN6Y
+ hash: v1.k794b7964.57c545b3ee4b527a815bb50ec788596b41dc2c75703028798265ddf985ae3436.IZypA-9IGqwJC2vVWNqs4PnzF5XgfiXlfrv3ThXisKY
scenes-app-inbox-cards--report-card-ranking-tags--light:
- hash: v1.k794b7964.c440b59b0d39eca4944984129446953cdfe81562d1521c6a5d55f2c7cdb8f091.1S-HTscBGy5WpC6lz-w6K7TT-nQuB_xvvjZiFUVP4eo
+ hash: v1.k794b7964.33b4ca53d24a9c4a21ca0862c0756ee9a989816e01c0a6ca1150f6510dbf8695.8GuRlLRixEpmABplTV7hY56jtoPWfkfqLf_qL-n9cs4
scenes-app-inbox-cards--report-card-states--dark:
hash: v1.k794b7964.ce53f01cd7817654a0f0fd0ec2255d0aadf050d56ec5d0856d53d0fdfce8518d.rgHn7nLoz4vFGZ27IBm3mnzEMUisR0z_hRnLlBThXfo
scenes-app-inbox-cards--report-card-states--light:
diff --git a/products/signals/frontend/inbox/components/cards/ReportCardRankingTag.tsx b/products/signals/frontend/inbox/components/cards/ReportCardRankingTag.tsx
index 1b0c572f451c..57e49d6dd0f2 100644
--- a/products/signals/frontend/inbox/components/cards/ReportCardRankingTag.tsx
+++ b/products/signals/frontend/inbox/components/cards/ReportCardRankingTag.tsx
@@ -78,7 +78,7 @@ export function RankingHoverCard({
{lift !== null ? RANKING_STRENGTH_LABELS[rankingStrength(lift)] : 'no comparison'}
</span>
</div>
- <div className="opacity-70">{active.description}</div>
+ <div className="opacity-70">{active.hoverCardDescription ?? active.description}</div>
</div>
{lift !== null && (
<div>
@@ -88,7 +88,10 @@ export function RankingHoverCard({
)}
</>
) : (
- <div className="font-semibold">Compared with the average report</div>
+ <div>
+ <div className="text-sm font-semibold">We trained an ML model. Yay!</div>
+ <div className="opacity-70">How likely, compared with the average report</div>
+ </div>
)}
<div className="flex flex-col gap-1">
{scores.map((score) => {
@@ -113,14 +116,22 @@ export function RankingHoverCard({
</span>
)}
</div>
- {!active && <div className="opacity-70">{score.description}</div>}
+ {!active && (
+ <div className="opacity-70">{score.hoverCardDescription ?? score.description}</div>
+ )}
</div>
)
})}
</div>
<div className="opacity-70">
- Very likely means 2x the average or more. The model estimates this from past reports.
+ Very likely means 2x the average or more. Every report people open, act on or fix helps train the next
+ version.
</div>
+ {!active && (
+ <div className="opacity-70">
+ Here to help you find the good stuff faster. Your agent gets these too, through the inbox MCP tools.
+ </div>
+ )}
{isStaff && ranking.model && (
<div className="border-t border-primary pt-1 font-mono opacity-70">{ranking.model}</div>
)}
diff --git a/products/signals/frontend/inbox/filterOptions.tsx b/products/signals/frontend/inbox/filterOptions.tsx
index 20fdb780f19f..1e479fd8ee9b 100644
--- a/products/signals/frontend/inbox/filterOptions.tsx
+++ b/products/signals/frontend/inbox/filterOptions.tsx
@@ -107,6 +107,8 @@ export interface InboxRankingScore {
/** The short word the card tag uses after a probability with no lift ("12% fix"). Staff only. */
tagLabel: string
description: string
+ /** Replaces `description` in the score hover card only. The sort menu and the artefact log keep `description`. */
+ hoverCardDescription?: string
}
export const INBOX_RANKING_SCORES: InboxRankingScore[] = [
@@ -136,6 +138,7 @@ export const INBOX_RANKING_SCORES: InboxRankingScore[] = [
sortLabel: 'Most likely to be fixed',
tagLabel: 'fix',
description: 'Someone fixes the problem within 30 days.',
+ hoverCardDescription: 'Someone fixes the problem within 30 days (as best we can tell).',
},
]