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(workflows): re-expose the reputation tab behind its feature flag as beta (#75878)

Meikel Ratz5b5faba055be
diff --git a/frontend/src/lib/constants.tsx b/frontend/src/lib/constants.tsx
index cc467521ead3..abde6d38f30a 100644
--- a/frontend/src/lib/constants.tsx
+++ b/frontend/src/lib/constants.tsx
@@ -537,6 +537,7 @@ export const FEATURE_FLAGS = {
WEB_ANALYTICS_TILE_SKELETONS: 'web-analytics-tile-skeletons', // owner: @jordanm-posthog #team-web-analytics
WEB_ANALYTICS_TILE_TOGGLES: 'web-analytics-tile-toggles', // owner: @lricoy #team-web-analytics
WEB_ANALYTICS_TOOLTIP_COMPARISON_LABELS: 'web-analytics-tooltip-comparison-labels', // owner: @lricoy #team-web-analytics
+ WORKFLOWS_EMAIL_REPUTATION: 'workflows-email-reputation', // owner: #team-workflows
WORKFLOWS_INTERNAL_EVENT_FILTERS: 'workflows-internal-event-filters', // owner: @haven #team-workflows
WORKFLOWS_PUSH_NOTIFICATIONS: 'workflows-push-notifications', // owner: #team-workflows
XAA_AUTHENTICATION: 'xaa-authentication', // owner: @reecejones #team-platform-features
diff --git a/products/workflows/frontend/WorkflowsScene.tsx b/products/workflows/frontend/WorkflowsScene.tsx
index a2946bb4e741..db6a3f3c618a 100644
--- a/products/workflows/frontend/WorkflowsScene.tsx
+++ b/products/workflows/frontend/WorkflowsScene.tsx
@@ -1,8 +1,8 @@
-import { MakeLogicType, actions, kea, path, props, reducers, selectors, useActions, useValues } from 'kea'
+import { MakeLogicType, actions, connect, kea, path, props, reducers, selectors, useActions, useValues } from 'kea'
import { urlToAction } from 'kea-router'
import { IconApple, IconAndroid, IconLetter, IconPlusSmall } from '@posthog/icons'
-import { LemonBanner, LemonButton, LemonMenu, LemonMenuItems } from '@posthog/lemon-ui'
+import { LemonBanner, LemonButton, LemonMenu, LemonMenuItems, LemonTag } from '@posthog/lemon-ui'
import api from 'lib/api'
import { AccessControlAction } from 'lib/components/AccessControlAction'
@@ -24,6 +24,7 @@ import { SceneTitleSection } from '~/layout/scenes/components/SceneTitleSection'
import { ProductIntentContext, ProductKey } from '~/queries/schema/schema-general'
import { AccessControlLevel, AccessControlResourceType, Breadcrumb } from '~/types'
+import type { FeatureFlagsSet } from '../../../frontend/src/lib/logic/featureFlagLogic'
import { MessageChannels } from './Channels/MessageChannels'
import { optOutCategoriesLogic } from './OptOuts/optOutCategoriesLogic'
import { OptOutScene } from './OptOuts/OptOutScene'
@@ -31,6 +32,7 @@ import { SuppressionScene } from './Suppression/SuppressionScene'
import { MessageTemplatesTable } from './TemplateLibrary/MessageTemplatesTable'
import { newWorkflowLogic } from './Workflows/newWorkflowLogic'
import { NewWorkflowModal } from './Workflows/NewWorkflowModal'
+import { WorkflowsReputation } from './Workflows/Reputation/WorkflowsReputation'
import { WorkflowsTable } from './Workflows/WorkflowsTable'
import { workflowsEmailSuspensionLogic } from './workflowsEmailSuspensionLogic'
@@ -43,6 +45,7 @@ export type WorkflowsSceneProps = {
// Generated by kea-typegen. Update if you're an agent, ignore if you're human.
export interface workflowsSceneLogicValues {
+ featureFlags: FeatureFlagsSet // featureFlagLogic
breadcrumbs: Breadcrumb[]
currentTab: WorkflowsSceneTab
logicProps: any
@@ -75,6 +78,9 @@ export type workflowsSceneLogicType = MakeLogicType<
export const workflowsSceneLogic = kea<workflowsSceneLogicType>([
props({} as WorkflowsSceneProps),
path(() => ['scenes', 'workflows', 'workflowsSceneLogic']),
+ connect(() => ({
+ values: [featureFlagLogic, ['featureFlags']],
+ })),
actions({
setCurrentTab: (tab: WorkflowsSceneTab) => ({ tab }),
}),
@@ -115,8 +121,9 @@ export const workflowsSceneLogic = kea<workflowsSceneLogicType>([
let possibleTab: WorkflowsSceneTab = (tab as WorkflowsSceneTab) ?? 'workflows'
possibleTab = WORKFLOW_SCENE_TABS.includes(possibleTab) ? possibleTab : 'workflows'
- // The reputation tab is not yet exposed to users, so redirect any direct navigation to it.
- if (possibleTab === 'reputation') {
+ // The reputation tab is beta, feature-flagged: redirect direct navigation for
+ // everyone outside the flag.
+ if (possibleTab === 'reputation' && !values.featureFlags[FEATURE_FLAGS.WORKFLOWS_EMAIL_REPUTATION]) {
possibleTab = 'workflows'
}
@@ -234,6 +241,23 @@ export function WorkflowsScene(props: WorkflowsSceneProps = {}): JSX.Element {
content: <SuppressionScene />,
link: urls.workflows('suppression'),
},
+ ...(featureFlags[FEATURE_FLAGS.WORKFLOWS_EMAIL_REPUTATION]
+ ? [
+ {
+ label: (
+ <>
+ Reputation{' '}
+ <LemonTag className="ml-1" type="completion">
+ Beta
+ </LemonTag>
+ </>
+ ),
+ key: 'reputation' as const,
+ content: <WorkflowsReputation />,
+ link: urls.workflows('reputation'),
+ },
+ ]
+ : []),
]
return (