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.

fix(workflows): hide reputation tab for everyone (#74703)

Meikel Ratz09864754ea57
diff --git a/products/workflows/frontend/WorkflowsScene.tsx b/products/workflows/frontend/WorkflowsScene.tsx
index 8a209d274194..a2946bb4e741 100644
--- a/products/workflows/frontend/WorkflowsScene.tsx
+++ b/products/workflows/frontend/WorkflowsScene.tsx
@@ -2,7 +2,7 @@ import { MakeLogicType, actions, kea, path, props, reducers, selectors, useActio
import { urlToAction } from 'kea-router'
import { IconApple, IconAndroid, IconLetter, IconPlusSmall } from '@posthog/icons'
-import { LemonBanner, LemonButton, LemonMenu, LemonMenuItems, LemonTag, Link } from '@posthog/lemon-ui'
+import { LemonBanner, LemonButton, LemonMenu, LemonMenuItems } from '@posthog/lemon-ui'
import api from 'lib/api'
import { AccessControlAction } from 'lib/components/AccessControlAction'
@@ -31,7 +31,6 @@ 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'
@@ -116,6 +115,11 @@ 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') {
+ possibleTab = 'workflows'
+ }
+
if (possibleTab !== values.currentTab) {
actions.setCurrentTab(possibleTab)
}
@@ -230,19 +234,6 @@ export function WorkflowsScene(props: WorkflowsSceneProps = {}): JSX.Element {
content: <SuppressionScene />,
link: urls.workflows('suppression'),
},
- {
- label: (
- <>
- Reputation{' '}
- <LemonTag className="ml-1" type="completion">
- Beta
- </LemonTag>
- </>
- ),
- key: 'reputation',
- content: <WorkflowsReputation />,
- link: urls.workflows('reputation'),
- },
]
return (
@@ -321,10 +312,8 @@ export function WorkflowsScene(props: WorkflowsSceneProps = {}): JSX.Element {
{emailSendingSuspended && (
<LemonBanner type="error" data-attr="workflows-email-suspended-banner">
Email sending is suspended for this project. Workflow emails are not being delivered.
- {emailSendingSuspensionReason ? <> Reason: {emailSendingSuspensionReason}.</> : null} Review the{' '}
- <Link to={urls.workflows('reputation')}>Reputation tab</Link>
- {' and '}
- contact support to get sending re-enabled.
+ {emailSendingSuspensionReason ? <> Reason: {emailSendingSuspensionReason}.</> : null} Contact
+ support to get sending re-enabled.
</LemonBanner>
)}
<LemonTabs activeKey={currentTab} tabs={tabs} sceneInset data-attr="workflows-scene-tabs" />