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(conversations): remove the product-support-create-ticket flag (#112049)

Ben Lea91d7c8fcd4c4
diff --git a/frontend/snapshots.yml b/frontend/snapshots.yml
index f464f8c5e735..f5db8fc9a589 100644
--- a/frontend/snapshots.yml
+++ b/frontend/snapshots.yml
@@ -8363,9 +8363,9 @@ snapshots:
replay-scenes-group--group-recording-tab-multiple-and-not-found--light:
hash: v1.k794b7964.092f4fdc76fdb9442364fabdc44300fa63a0abc91972a1b2e3af8add45c2376a.xolNSMmljXBHHuXay69_UL9WlJu--Bu3qEOku7UkV_Y
replay-scenes-person--person-recording-tab-empty--dark:
- hash: v1.k794b7964.d337c9b3822884b424ceca688c767202c2b1a72e2b0e466092ae5f9795dbcabd.TZsx90e31kbDKuYkmYXRtlH0jo7mxK0xNIrohR9Jf-Y
+ hash: v1.k794b7964.780ebb0cce27487fe3b96cc12b0fd349b85831533b56ca595b2ccc0fde108248.Irbmch9ma-zZqglhXDQ65t9bzAzahrb02xgePpOGEW8
replay-scenes-person--person-recording-tab-empty--light:
- hash: v1.k794b7964.e29314b81472a69779a7da88417f5d840eec03de97125db890eafa3d5190e0c5.y27QikyGJb8Eoewgpuj-zbqSGWjYT4ZmwD_GUvqyL4I
+ hash: v1.k794b7964.789bce0f8fb49cf35aa71a5acd93dfee063c9bfab78cd5982cfb546dd6e127d6.sppuzH3Vws1f_t48MTuaafbm4h8OyoWIBRN3kbtZddM
replay-scenes-person--person-recording-tab-multiple-and-not-found--dark:
hash: v1.k794b7964.1dee48a3acfe43f3d2aa04f482f7e45c22353c30e4023233276c31b5c672979c.E6eQpwi_zHT0sFIXrmivGsjGrJdeq0I-bhklMnZKuJY
replay-scenes-person--person-recording-tab-multiple-and-not-found--light:
@@ -13085,7 +13085,7 @@ snapshots:
scenes-app-people-person--person--dark:
hash: v1.k794b7964.3865d15fa873d551018dc5aa0aa1680ff644d11d49fab16a9a579693750b4d52.2fqNPzGAdSqQHpLRJE38ta4HcLkaYU5foxzMMT8oY2I
scenes-app-people-person--person--light:
- hash: v1.k794b7964.ebfa0a58e5c8ffe4768203ea8ffdb023625af85b56b624a29e3cb25c9b705752.qykleErq4ZzoltxkYeeujNnuSw65dGytbXzrC7P7pcU
+ hash: v1.k794b7964.dc20dff8e661e93ac49e05c857b98444d52b2ec59fe6041176da77568bc7c6c9.0HnOROPc94oYPZ4pjCAFFXK5kBXWV4dWK2F-weEdoVw
scenes-app-people-person--person-not-found--dark:
hash: v1.k794b7964.ce572a54f38627af650ca022bce22418ba4f4df4a2adc99d73d9080d79f82591.VQJZMjET9BIhBZGP9V0L96mX6Rcku3XZ4zcpJgCQGXk
scenes-app-people-person--person-not-found--light:
diff --git a/frontend/src/lib/constants.tsx b/frontend/src/lib/constants.tsx
index 49e44842d3c0..91a6a9efa4ea 100644
--- a/frontend/src/lib/constants.tsx
+++ b/frontend/src/lib/constants.tsx
@@ -372,9 +372,9 @@ export const FEATURE_FLAGS = {
HOGQL_WAREHOUSE_ACCESS_CONTROL: 'hogql-warehouse-access-control', // owner: @a-lider #team-platform-features, gates per-object access control for warehouse tables and views
IDENTITY_MATCHING: 'identity-matching', // owner: @fercgomes #team-growth, gates new identity matching scene on marketing analytics
INBOX_GET_IT_MERGED: 'inbox-get-it-merged', // owner: #team-self-driving, gates the Get it merged action in the report Ask AI menu
- INBOX_REPORT_FEEDBACK_BANG: 'inbox-report-feedback-bang', // owner: #team-self-driving, gates the party hog that pops on a report thumbs-up in the inbox and on the Today home page
INBOX_MODEL_SORT: 'inbox-model-sort', // owner: #team-self-driving, gates the staff-only ranking model sort options and the probability tag on inbox cards
INBOX_REDESIGN: 'inbox-redesign', // owner: #team-self-driving, gates the inbox redesign: report sections, triage mode, the Settings tab, and scout cards
+ INBOX_REPORT_FEEDBACK_BANG: 'inbox-report-feedback-bang', // owner: #team-self-driving, gates the party hog that pops on a report thumbs-up in the inbox and on the Today home page
INBOX_SELF_DRIVING_EMPTY_STATE: 'inbox-self-driving-empty-state',
INBOX_SLACK_NOTIFICATIONS: 'inbox-slack-notifications', // owner: #team-self-driving, gates the Slack notifications config card in the inbox
INBOX_TIME_WINDOW: 'inbox-time-window', // owner: #team-self-driving, gates the created-in window filter on the inbox report list
@@ -508,7 +508,6 @@ export const FEATURE_FLAGS = {
PRODUCT_BUSINESS_KNOWLEDGE: 'product-business-knowledge', // owner: @veryayskiy #team-conversations
PRODUCT_SUPPORT_AI_NOTES: 'product-support-ai-notes', // owner: @veryayskiy #team-conversations, shows AI private notes in the ticket thread
PRODUCT_SUPPORT_AI_SUGGESTION: 'product-support-ai-suggestion', // owner: @veryayskiy #team-conversations
- PRODUCT_SUPPORT_CREATE_TICKET: 'product-support-create-ticket', // owner: @veryayskiy #team-conversations
PRODUCT_SUPPORT_GITHUB_CHANNEL: 'product-support-github-channel', // owner: @veryayskiy #team-conversations
PRODUCT_SUPPORT_IMPORT_TICKETS: 'product-support-import-tickets', // owner: @veryayskiy #team-conversations
PRODUCT_SUPPORT_SIMPLIFIED_REPLIES: 'conversations-simplified-replies', // owner: @jonmcwest #team-conversations, composer header + one Send menu in place of draft mode
diff --git a/products/conversations/frontend/components/ComposeTicket/ComposeTicketButton.tsx b/products/conversations/frontend/components/ComposeTicket/ComposeTicketButton.tsx
index f00f53a232f7..d3df27678f03 100644
--- a/products/conversations/frontend/components/ComposeTicket/ComposeTicketButton.tsx
+++ b/products/conversations/frontend/components/ComposeTicket/ComposeTicketButton.tsx
@@ -6,9 +6,7 @@ import { IconLetter } from '@posthog/icons'
import { LemonButton, LemonButtonProps } from '@posthog/lemon-ui'
import { AccessControlAction } from 'lib/components/AccessControlAction'
-import { FEATURE_FLAGS } from 'lib/constants'
import { Popover } from 'lib/lemon-ui/Popover'
-import { featureFlagLogic } from 'lib/logic/featureFlagLogic'
import { teamLogic } from 'scenes/teamLogic'
import { urls } from 'scenes/urls'
@@ -34,15 +32,10 @@ export function ComposeTicketButton({
onCompose,
}: ComposeTicketButtonProps): JSX.Element | null {
const { currentTeam } = useValues(teamLogic)
- const { featureFlags } = useValues(featureFlagLogic)
const { openComposeModal } = useActions(composeTicketLogic)
const [showDisabledPopover, setShowDisabledPopover] = useState(false)
const conversationsEnabled = !!currentTeam?.conversations_enabled
- if (!featureFlags[FEATURE_FLAGS.PRODUCT_SUPPORT_CREATE_TICKET]) {
- return null
- }
-
return (
<>
<Popover
diff --git a/products/persons/frontend/components/PersonDisplay.tsx b/products/persons/frontend/components/PersonDisplay.tsx
index 449a6f8a7b1f..784d689e22a4 100644
--- a/products/persons/frontend/components/PersonDisplay.tsx
+++ b/products/persons/frontend/components/PersonDisplay.tsx
@@ -1,18 +1,15 @@
import './PersonDisplay.scss'
import clsx from 'clsx'
-import { useValues } from 'kea'
import { router } from 'kea-router'
import React, { useMemo, useState } from 'react'
import { IconCopy } from '@posthog/icons'
import { LemonButton } from '@posthog/lemon-ui'
-import { FEATURE_FLAGS } from 'lib/constants'
import { Link } from 'lib/lemon-ui/Link'
import { Popover } from 'lib/lemon-ui/Popover'
import { ProfilePicture, ProfilePictureProps } from 'lib/lemon-ui/ProfilePicture'
-import { featureFlagLogic } from 'lib/logic/featureFlagLogic'
import { copyToClipboard } from 'lib/utils/copyToClipboard'
import { useNotebookNode } from 'scenes/notebooks/Nodes/NotebookNodeContext'
@@ -97,11 +94,10 @@ export function PersonDisplay({
}: PersonDisplayProps): JSX.Element {
const display = displayName || asDisplay(person, maxLength)
const [visible, setVisible] = useState(false)
- const { featureFlags } = useValues(featureFlagLogic)
const notebookNode = useNotebookNode()
- const showComposeButton = !!withComposeTicketButton && !!featureFlags[FEATURE_FLAGS.PRODUCT_SUPPORT_CREATE_TICKET]
+ const showComposeButton = !!withComposeTicketButton
const personDistinctId = person?.distinct_id || person?.distinct_ids?.[0]
const personEmail = typeof person?.properties?.email === 'string' ? person.properties.email : undefined
diff --git a/products/persons/frontend/components/PersonPreview.tsx b/products/persons/frontend/components/PersonPreview.tsx
index bf821a4771e3..72e8f20fe7be 100644
--- a/products/persons/frontend/components/PersonPreview.tsx
+++ b/products/persons/frontend/components/PersonPreview.tsx
@@ -5,11 +5,9 @@ import { LemonButton, Link } from '@posthog/lemon-ui'
import { PropertiesTable } from 'lib/components/PropertiesTable'
import { ScrollableShadows } from 'lib/components/ScrollableShadows/ScrollableShadows'
-import { FEATURE_FLAGS } from 'lib/constants'
import { IconOpenInNew } from 'lib/lemon-ui/icons'
import { ProfilePicture } from 'lib/lemon-ui/ProfilePicture'
import { Spinner } from 'lib/lemon-ui/Spinner'
-import { featureFlagLogic } from 'lib/logic/featureFlagLogic'
import { getDefaultEventsSceneQuery } from 'scenes/activity/explore/defaults'
import { NotebookSelectButton } from 'scenes/notebooks/NotebookSelectButton/NotebookSelectButton'
import { NotebookNodeType } from 'scenes/notebooks/types'
@@ -38,7 +36,6 @@ export function PersonPreview(props: PersonPreviewProps): JSX.Element | null {
function PersonPreviewInner(props: PersonPreviewProps): JSX.Element | null {
const logicProps = { id: props.personId, distinctId: props.distinctId }
const { person, personLoading } = useValues(personLogic(logicProps))
- const { featureFlags } = useValues(featureFlagLogic)
if (personLoading) {
return <Spinner />
@@ -96,16 +93,14 @@ function PersonPreviewInner(props: PersonPreviewProps): JSX.Element | null {
onNotebookOpened={() => props.onClose?.()}
size="small"
/>
- {featureFlags[FEATURE_FLAGS.PRODUCT_SUPPORT_CREATE_TICKET] && (
- <ComposeTicketButton
- size="small"
- type="tertiary"
- iconOnly
- distinctId={bestDistinctId}
- email={typeof person?.properties?.email === 'string' ? person.properties.email : undefined}
- onCompose={() => props.onClose?.()}
- />
- )}
+ <ComposeTicketButton
+ size="small"
+ type="tertiary"
+ iconOnly
+ distinctId={bestDistinctId}
+ email={typeof person?.properties?.email === 'string' ? person.properties.email : undefined}
+ onCompose={() => props.onClose?.()}
+ />
<LemonButton size="small" icon={<IconOpenInNew />} to={url} targetBlank tooltip="Open in new tab" />
</div>