feat(inbox): surface health check issues as inbox signals#2711
feat(inbox): surface health check issues as inbox signals#2711rafaeelaudibert wants to merge 2 commits into
Conversation
Adds the `health_checks` / `health_issue` signal source to the Inbox so instrumentation issues PostHog's health checks detect (missing events, reverse-proxy gaps, outdated SDKs, ingestion warnings, broken warehouse models) reach the Self-driving inbox. Mirrors PostHog/posthog#61955. Not gated behind a feature flag — per-team enablement is handled by `SignalSourceConfig` on the Cloud backend. - Add `health_checks` to the `SourceProduct` union, `SignalSourceConfig` (`source_product` + `health_issue` `source_type`), and the `SignalSourceConnected` analytics event. - Wire it through the source toggle surface: `signalSourceService`, `useSignalSourceToggles`, and a "Health checks" toggle card under "PostHog data" in `SignalSourceToggles`. - Map the source to the Heartbeat icon in `SOURCE_PRODUCT_META`, `INBOX_SOURCE_OPTIONS`, the responder roster, and the desktop/mobile signal cards (matching the `IconHeartPlus` health icon used in the posthog repo). - Cover the new source in `signalSourceService.test.ts`. Generated-By: PostHog Code Task-Id: 2b579b6c-3075-475e-8a1f-021df07cb260
|
React Doctor found 1 issue in 1 file · 1 warning. 1 warning
Reviewed by React Doctor for commit |
|
Address review feedback: - Toggle/responder copy now recommends keeping health checks enabled and notes it detects PostHog integration problems and suggests fixes automatically. - Point the docs link at https://posthog.com/docs/sdk-health. - Drop the inbox CLAUDE.md note added for this source. Generated-By: PostHog Code Task-Id: 2b579b6c-3075-475e-8a1f-021df07cb260
Problem
PostHog already detects instrumentation problems via health checks — missing events, reverse-proxy gaps, outdated SDKs, ingestion warnings, broken data-warehouse models — and surfaces them in the Health UI. PostHog/posthog#61955 wired those into the Signals inbox on the Cloud backend. This brings the same source surface to the Code app.
Changes
Adds the
health_checks/health_issuesignal source everywhere source products surface, not gated behind a feature flag — per-team enablement is handled bySignalSourceConfigon the Cloud backend, exactly like the other sources.health_checksto theSourceProductunion (@posthog/shared), toSignalSourceConfig(source_product+ the newhealth_issuesource_type) in@posthog/api-client, and to theSignalSourceConnectedanalytics event.signalSourceService(core),useSignalSourceToggles, and a new "Health checks" toggle card under PostHog data inSignalSourceToggles, plus the responder roster.SOURCE_PRODUCT_META,INBOX_SOURCE_OPTIONS, and the desktop + mobile signal cards / filter sheets. This matches theIconHeartPlushealth icon used in the posthog repo (HeartbeatIconis the equivalent in this repo's@phosphor-icons/reactset).signalSourceService.test.ts(computeSourceValues+toggleSourcecreates ahealth_issueconfig).Testing
pnpm --filter @posthog/api-client --filter @posthog/core --filter @posthog/ui typecheck✅tsc --noEmit— no new errors infeatures/inbox✅pnpm --filter @posthog/core test— 1567 passing, including the new cases ✅biome checkon all touched files — clean ✅🤖 Generated with Claude Code