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): mark reputation tab as beta with transparency banner (#74621)

Meikel Ratz0aff7602e427
diff --git a/frontend/src/lib/constants.tsx b/frontend/src/lib/constants.tsx
index ed7390c6ef33..1c0bcdd4e7b5 100644
--- a/frontend/src/lib/constants.tsx
+++ b/frontend/src/lib/constants.tsx
@@ -536,7 +536,6 @@ 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/Workflows/Reputation/WorkflowsReputation.tsx b/products/workflows/frontend/Workflows/Reputation/WorkflowsReputation.tsx
index 608fedfedf66..513ddf42e9e9 100644
--- a/products/workflows/frontend/Workflows/Reputation/WorkflowsReputation.tsx
+++ b/products/workflows/frontend/Workflows/Reputation/WorkflowsReputation.tsx
@@ -1,6 +1,6 @@
import { useActions, useValues } from 'kea'
-import { LemonInput, LemonTable, LemonTag, LemonTagType, Link, Tooltip } from '@posthog/lemon-ui'
+import { LemonBanner, LemonInput, LemonTable, LemonTag, LemonTagType, Link, Tooltip } from '@posthog/lemon-ui'
import { TZLabel } from 'lib/components/TZLabel'
import { humanFriendlyNumber, percentage } from 'lib/utils/numbers'
@@ -156,6 +156,10 @@ export function WorkflowsReputation(): JSX.Element {
return (
<div className="space-y-4" data-attr="workflows-reputation">
+ <LemonBanner type="info" data-attr="workflows-reputation-beta-banner">
+ Reputation scores are surfaced here for transparency only. We don't take any enforcement action based on
+ them right now. We're still actively developing the scoring calculation, so these values may change.
+ </LemonBanner>
{teamReputation ? (
<TeamReputationCard reputation={teamReputation} />
) : (
diff --git a/products/workflows/frontend/WorkflowsScene.tsx b/products/workflows/frontend/WorkflowsScene.tsx
index a05d49bb06f6..8a209d274194 100644
--- a/products/workflows/frontend/WorkflowsScene.tsx
+++ b/products/workflows/frontend/WorkflowsScene.tsx
@@ -1,14 +1,13 @@
-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'
-import { LemonBanner, LemonButton, LemonMenu, LemonMenuItems, Link } from '@posthog/lemon-ui'
+import { LemonBanner, LemonButton, LemonMenu, LemonMenuItems, LemonTag, Link } from '@posthog/lemon-ui'
import api from 'lib/api'
import { AccessControlAction } from 'lib/components/AccessControlAction'
import { RestrictionScope, useRestrictedArea } from 'lib/components/RestrictedArea'
import { FEATURE_FLAGS, TeamMembershipLevel } from 'lib/constants'
-import { useFeatureFlag } from 'lib/hooks/useFeatureFlag'
import { integrationsLogic } from 'lib/integrations/integrationsLogic'
import { IconSlack, IconTwilio } from 'lib/lemon-ui/icons'
import { LemonTab, LemonTabs } from 'lib/lemon-ui/LemonTabs'
@@ -25,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 +44,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 +76,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,10 +116,6 @@ export const workflowsSceneLogic = kea<workflowsSceneLogicType>([
let possibleTab: WorkflowsSceneTab = (tab as WorkflowsSceneTab) ?? 'workflows'
possibleTab = WORKFLOW_SCENE_TABS.includes(possibleTab) ? possibleTab : 'workflows'
- if (possibleTab === 'reputation' && !values.featureFlags[FEATURE_FLAGS.WORKFLOWS_EMAIL_REPUTATION]) {
- possibleTab = 'workflows'
- }
-
if (possibleTab !== values.currentTab) {
actions.setCurrentTab(possibleTab)
}
@@ -148,7 +138,6 @@ export function WorkflowsScene(props: WorkflowsSceneProps = {}): JSX.Element {
const { openSetupModal } = useActions(integrationsLogic)
const { openNewCategoryModal } = useActions(optOutCategoriesLogic)
const { showNewWorkflowModal } = useActions(newWorkflowLogic)
- const emailReputationEnabled = useFeatureFlag('WORKFLOWS_EMAIL_REPUTATION')
const newChannelRestrictedReason = useRestrictedArea({
scope: RestrictionScope.Project,
minimumAccessLevel: TeamMembershipLevel.Admin,
@@ -241,16 +230,19 @@ export function WorkflowsScene(props: WorkflowsSceneProps = {}): JSX.Element {
content: <SuppressionScene />,
link: urls.workflows('suppression'),
},
- ...(emailReputationEnabled
- ? [
- {
- label: 'Reputation',
- 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 (
@@ -329,13 +321,9 @@ 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}{' '}
- {emailReputationEnabled && (
- <>
- Review the <Link to={urls.workflows('reputation')}>Reputation tab</Link>
- {' and '}
- </>
- )}
+ {emailSendingSuspensionReason ? <> Reason: {emailSendingSuspensionReason}.</> : null} Review the{' '}
+ <Link to={urls.workflows('reputation')}>Reputation tab</Link>
+ {' and '}
contact support to get sending re-enabled.
</LemonBanner>
)}