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.

fix(signals): show newest evidence first in the inbox redesign (#92318)

Chris Volzere37745c03fd2
diff --git a/products/signals/frontend/inbox/components/detail/ReportDetail.tsx b/products/signals/frontend/inbox/components/detail/ReportDetail.tsx
index 110071c50d70..dd7be5d7a337 100644
--- a/products/signals/frontend/inbox/components/detail/ReportDetail.tsx
+++ b/products/signals/frontend/inbox/components/detail/ReportDetail.tsx
@@ -219,7 +219,11 @@ export function InboxDetailFrame({
const { setDetailTab } = useActions(inboxReportDetailLogic(logicProps))
const { evidenceRailCollapsed } = useValues(inboxDetailLayoutLogic)
const { toggleEvidenceRail } = useActions(inboxDetailLayoutLogic)
- const signals = reportSignals ?? []
+ // The API returns evidence oldest-first, but a reader wants the most recent signal at the top of
+ // the rail rather than after a scroll.
+ const signals = [...(reportSignals ?? [])].sort(
+ (a, b) => new Date(b.timestamp).getTime() - new Date(a.timestamp).getTime()
+ )
const evidenceCount = reportSignals !== null ? signals.length : report.signal_count
const hasEvidence = evidenceCount > 0