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.

chore(workflows): remove fully rolled out workflows-email-reputation flag (#87696)

Meikel Ratzfeaf632fbf8e
diff --git a/frontend/src/lib/constants.tsx b/frontend/src/lib/constants.tsx
index 6e5d9357d7bf..8211c7f456b8 100644
--- a/frontend/src/lib/constants.tsx
+++ b/frontend/src/lib/constants.tsx
@@ -559,7 +559,6 @@ export const FEATURE_FLAGS = {
WEB_ANALYTICS_TOOLTIP_COMPARISON_LABELS: 'web-analytics-tooltip-comparison-labels', // owner: @lricoy #team-web-analytics
WORKFLOW_AI_TASK_ACTION: 'workflow-ai-task-action', // owner: @mayteio #team-workflows
WORKFLOWS_DELAY_UNTIL_DATE: 'workflows-delay-until-date', // owner: @dmarchuk #team-workflows
- WORKFLOWS_EMAIL_REPUTATION: 'workflows-email-reputation', // owner: #team-workflows
WORKFLOWS_EMAIL_SENDER_ROTATION: 'workflows-email-sender-rotation', // owner: @arthurdedeus #team-workflows
WORKFLOWS_INCIDENT_REPLAY: 'workflows-incident-replay', // owner: #team-workflows
WORKFLOWS_INTERNAL_EVENT_FILTERS: 'workflows-internal-event-filters', // owner: @haven #team-workflows
diff --git a/products/workflows/frontend/WorkflowsScene.tsx b/products/workflows/frontend/WorkflowsScene.tsx
index c952c112cb14..eca453228941 100644
--- a/products/workflows/frontend/WorkflowsScene.tsx
+++ b/products/workflows/frontend/WorkflowsScene.tsx
@@ -1,4 +1,4 @@
-import { MakeLogicType, actions, connect, kea, path, props, reducers, selectors, useActions, useValues } from 'kea'
+import { MakeLogicType, actions, kea, path, props, reducers, selectors, useActions, useValues } from 'kea'
import { urlToAction } from 'kea-router'
import { IconApple, IconAndroid, IconLetter, IconPlusSmall } from '@posthog/icons'
@@ -24,7 +24,6 @@ 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'
@@ -46,7 +45,6 @@ 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
@@ -79,9 +77,6 @@ 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 }),
}),
@@ -122,12 +117,6 @@ export const workflowsSceneLogic = kea<workflowsSceneLogicType>([
let possibleTab: WorkflowsSceneTab = (tab as WorkflowsSceneTab) ?? 'workflows'
possibleTab = WORKFLOW_SCENE_TABS.includes(possibleTab) ? possibleTab : 'workflows'
- // 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'
- }
-
if (possibleTab !== values.currentTab) {
actions.setCurrentTab(possibleTab)
}
@@ -242,23 +231,19 @@ 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'),
- },
- ]
- : []),
+ {
+ label: (
+ <>
+ Reputation{' '}
+ <LemonTag className="ml-1" type="completion">
+ Beta
+ </LemonTag>
+ </>
+ ),
+ key: 'reputation',
+ content: <WorkflowsReputation />,
+ link: urls.workflows('reputation'),
+ },
]
return (