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(self-driving): Link to authoring scout in report detail (#71026)

Michael Matloka8df516f1a20d
diff --git a/frontend/src/scenes/inbox/components/detail/ReportDetail.tsx b/frontend/src/scenes/inbox/components/detail/ReportDetail.tsx
index 5831c4537ae3..28767c833f3a 100644
--- a/frontend/src/scenes/inbox/components/detail/ReportDetail.tsx
+++ b/frontend/src/scenes/inbox/components/detail/ReportDetail.tsx
@@ -158,9 +158,10 @@ function MetaSourceStack({
return null
}
// Name the authoring scout on a scout-authored report so it's clear at a glance who wrote it,
- // and link the name straight to the scout's detail page.
+ // and link the name straight to the scout's detail page. The scout may not sort first among mixed
+ // sources, so key off whether any source is a scout rather than just the primary.
const scoutName = scoutDisplayName(scoutSkillName)
- const showScout = primary.key === SignalSourceProduct.SignalsScout && !!scoutName
+ const showScout = entries.some(({ key }) => key === SignalSourceProduct.SignalsScout) && !!scoutName
return (
<Tooltip title={sourceProductsTooltipTitle(entries)}>
<span className="inline-flex items-center gap-1.5 min-w-0 cursor-help">