: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.
Python ab-testingai-analyticsanalyticscdpdata-warehouseexperimentsfeature-flagsjavascriptproduct-analyticspythonreactsession-replaysurveystypescriptweb-analytics
fix(signals-inbox): add affordance to turn off scout Slack notifications (#73921)
Michael Matloka994e53480e01
diff --git a/frontend/src/scenes/inbox/components/config/scouts/ScoutConfigControls.tsx b/frontend/src/scenes/inbox/components/config/scouts/ScoutConfigControls.tsxindex ea2b2e90deb0..1196ad02db91 100644--- a/frontend/src/scenes/inbox/components/config/scouts/ScoutConfigControls.tsx+++ b/frontend/src/scenes/inbox/components/config/scouts/ScoutConfigControls.tsx@@ -209,6 +209,12 @@ function ScoutSlackDestination({})}+ const disableSlack = (): void => {+ onUpdate(config.id, { output_destinations: {} })+ }++ const hasChannel = Boolean(destination?.channel)+return (<div className="flex flex-col gap-2 border-t border-primary pt-2"><div className="flex flex-col min-w-0">@@ -237,15 +243,32 @@ function ScoutSlackDestination({/>) : null}{selectedIntegration ? (- <SlackChannelPicker- integration={selectedIntegration}- value={configuredIntegration ? (destination?.channel ?? undefined) : undefined}- onChange={selectChannel}- disabled={updating || disabledReason !== undefined}- />+ <div className="flex items-center gap-2">+ <div className="flex-1 min-w-0">+ <SlackChannelPicker+ integration={selectedIntegration}+ value={configuredIntegration ? (destination?.channel ?? undefined) : undefined}+ onChange={selectChannel}+ disabled={updating || disabledReason !== undefined}+ />+ </div>+ {hasChannel ? (+ <LemonButton+ size="small"+ icon={<IconTrash />}+ onClick={disableSlack}+ tooltip="Turn off Slack notifications for this scout"+ disabledReason={disabledReason ?? (updating ? 'Saving…' : undefined)}+ aria-label="Turn off Slack notifications"+ />+ ) : null}+ </div>) : null}<span className="text-[11.5px] text-muted">- PostHog must be in the channel. Invite it with <code>/invite @PostHog</code>.+ {hasChannel+ ? 'PostHog must be in the channel. Invite it with '+ : 'Pick a channel to turn notifications on. PostHog must be in the channel — invite it with '}+ <code>/invite @PostHog</code>.</span></div>)}