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(inbox): gate slack notifications card behind feature flag (#65285)

Joshua Snyder4c4fb8ad6a6d
diff --git a/frontend/src/lib/constants.tsx b/frontend/src/lib/constants.tsx
index ce60eeb2c9fd..6dc69a579d9a 100644
--- a/frontend/src/lib/constants.tsx
+++ b/frontend/src/lib/constants.tsx
@@ -325,6 +325,7 @@ export const FEATURE_FLAGS = {
HEALTH_ASK_AI: 'health-ask-ai', // owner: @jordanm-posthog #team-web-analytics, gates the "Ask PostHog AI" buttons on the Health overview
HOGQL_INSIGHT_ALERTS: 'hogql-insight-alerts', // owner: @vdekrijger, gates alerts on SQL-backed (HogQL) insights
IDENTITY_MATCHING: 'identity-matching', // owner: #team-growth
+ INBOX_SLACK_NOTIFICATIONS: 'inbox-slack-notifications', // owner: #team-self-driving, gates the Slack notifications config card in the inbox
INSIGHT_ADD_TO_DASHBOARD_AAB: 'insight-add-to-dashboard-aab', // owner: @pauldambra #team-product-analytics multivariate=control,control_2,test
INSIGHT_SUBSCRIBE_PROMINENT_BUTTON: 'insight-subscribe-prominent-button', // owner: @mattp #team-analytics-platform multivariate=control,test
INTER_PROJECT_TRANSFERS: 'inter-project-transfers', // owner: @reecejones #team-platform-features
diff --git a/frontend/src/scenes/inbox/components/config/AgentsTab.tsx b/frontend/src/scenes/inbox/components/config/AgentsTab.tsx
index b337235305d0..bff5402544fc 100644
--- a/frontend/src/scenes/inbox/components/config/AgentsTab.tsx
+++ b/frontend/src/scenes/inbox/components/config/AgentsTab.tsx
@@ -4,6 +4,9 @@ import { useEffect } from 'react'
import { IconArrowLeft } from '@posthog/icons'
import { LemonButton, LemonSkeleton } from '@posthog/lemon-ui'
+import { FEATURE_FLAGS } from 'lib/constants'
+import { featureFlagLogic } from 'lib/logic/featureFlagLogic'
+
import { ExternalDataSourceType, SourceConfig } from '~/queries/schema/schema-general'
import { availableSourcesLogic } from 'products/data_warehouse/frontend/scenes/NewSourceScene/availableSourcesLogic'
@@ -66,6 +69,7 @@ function BackLink({ onClick }: { onClick: () => void }): JSX.Element {
*/
export function AgentsTab(): JSX.Element {
const { sessionAnalysisSetupOpen, dataSourceSetupProduct } = useValues(signalSourcesLogic)
+ const { featureFlags } = useValues(featureFlagLogic)
const {
loadSources,
loadSourceConfigs,
@@ -127,12 +131,14 @@ export function AgentsTab(): JSX.Element {
{agentsBody}
</Subsection>
- <Subsection
- title="Slack"
- description="Post reports to channels and ping suggested reviewers. Invite PostHog with /invite @PostHog in each channel you use."
- >
- <SlackNotificationsSection />
- </Subsection>
+ {featureFlags[FEATURE_FLAGS.INBOX_SLACK_NOTIFICATIONS] && (
+ <Subsection
+ title="Slack"
+ description="Post reports to channels and ping suggested reviewers. Invite PostHog with /invite @PostHog in each channel you use."
+ >
+ <SlackNotificationsSection />
+ </Subsection>
+ )}
<Subsection
title="Auto-start"