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(inbox): hide scout signals section when nothing emitted (#71110)

Andrew Maguire1a49fdbf533d
diff --git a/frontend/src/scenes/inbox/components/config/scouts/ScoutDetailView.tsx b/frontend/src/scenes/inbox/components/config/scouts/ScoutDetailView.tsx
index 8c1abadbdfa1..a31c8c48b2b9 100644
--- a/frontend/src/scenes/inbox/components/config/scouts/ScoutDetailView.tsx
+++ b/frontend/src/scenes/inbox/components/config/scouts/ScoutDetailView.tsx
@@ -139,14 +139,28 @@ function ScoutReportsSection({ skillName }: { skillName: string }): JSX.Element
/**
* The Signals section: every finding this scout emitted in the recent window, newest first.
* Emissions are fetched per emitted run by `scoutDetailLogic` (keyed by skill) off the fleet's
- * already-polled runs window. Most runs are quiet, so an empty list is the healthy default.
+ * already-polled runs window. Most runs are quiet — and scouts are moving to the report channel —
+ * so the section is hidden entirely when nothing emitted, rather than showing an empty box.
*/
-function ScoutSignalsSection({ skillName }: { skillName: string }): JSX.Element {
- const { emissionRows, emissionsLoading, emissionsLoadFailed, runsWindowLoadedOnce, runsWindowComplete } = useValues(
- scoutDetailLogic({ skillName })
- )
+function ScoutSignalsSection({ skillName }: { skillName: string }): JSX.Element | null {
+ const {
+ emissionRows,
+ emissionsLoading,
+ emissionsLoadFailed,
+ emittedRuns,
+ runsWindowLoadedOnce,
+ runsWindowComplete,
+ } = useValues(scoutDetailLogic({ skillName }))
const { selectedScoutFindingId } = useValues(inboxSceneLogic)
+ // No run in the window emitted anything — keep the section out entirely rather than show an
+ // empty box (mirrors the Reports section above). Only once the runs window has settled, though:
+ // before that, `emittedRuns` is empty by default and hiding would skip the loading skeleton
+ // for scouts that do have signals.
+ if (runsWindowLoadedOnce && emittedRuns.length === 0) {
+ return null
+ }
+
// "Loading" until the fleet's runs window has settled once AND this scout's emissions have
// resolved — otherwise a fresh deep-link would flash the empty state before we know the
// emitted runs. Gating on the fleet's first-load flag (not its per-poll loading) keeps the