: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.
Python ab-testingai-analyticsanalyticscdpdata-warehouseexperimentsfeature-flagsjavascriptproduct-analyticspythonreactsession-replaysurveystypescriptweb-analytics
chore(max): remove code-badge-self-driving-label flag (#129785)
Rafael Audibertb144beee8ed0
diff --git a/frontend/src/lib/constants.tsx b/frontend/src/lib/constants.tsxindex 7655ff0eaa79..3265be0a3a5f 100644--- a/frontend/src/lib/constants.tsx+++ b/frontend/src/lib/constants.tsx@@ -281,7 +281,6 @@ export const FEATURE_FLAGS = {CDP_VERCEL_LOG_DRAIN: 'cdp-vercel-log-drain', // owner: #team-workflows-cdpCHRISTMAS_GOLD_RINGS: 'christmas-gold-rings', // owner: #team-growthCLEARABLE_NOTIFICATIONS: 'clearable-notifications', // owner: @jordanm-posthog #team-web-analytics- CODE_BADGE_SELF_DRIVING_LABEL: 'code-badge-self-driving-label', // owner: #team-self-driving, experiment: label the Code badge "Self-driving" and compare setup activationsCOHORT_INLINE_CALCULATION: 'inline-cohort-calculation', // owner: #team-analytics-platform, inlines fast dynamic cohort queries instead of using precomputed cohortpeople tableCOHORTS_TAXONOMIC_BASIC_LIST: 'cohorts-taxonomic-basic-list', // owner: @adamleith, picker sends ?basic=true to the cohorts list endpoint (trimmed payload: no query/groups/last_error_message/experiment_set; filters is kept)COMMAND_K_UNIFIED_RANKING: 'command-k-unified-ranking', // owner: @puemos #team-platform-ux multivariate=control,test, experiment: rank every Command K result type with one scorerdiff --git a/frontend/src/scenes/max/components/useCodeBadge.ts b/frontend/src/scenes/max/components/useCodeBadge.tsindex 45f065a23e05..5f55c8fb7278 100644--- a/frontend/src/scenes/max/components/useCodeBadge.ts+++ b/frontend/src/scenes/max/components/useCodeBadge.ts@@ -1,9 +1,6 @@-import { useValues } from 'kea'import { useState } from 'react'-import { FEATURE_FLAGS } from 'lib/constants'import { useFeatureFlag } from 'lib/hooks/useFeatureFlag'-import { featureFlagLogic } from 'lib/logic/featureFlagLogic'import { CODE_BADGE } from '../suggestionTopics'@@ -17,21 +14,12 @@ export interface CodeBadge {export function useCodeBadge(): CodeBadge {const visible = useFeatureFlag('PRODUCT_AUTONOMY')- const { featureFlags } = useValues(featureFlagLogic)// Intro-modal visibility is pure view state, so it stays local instead of in a logicconst [introOpen, setIntroOpen] = useState(false)- // Experiment: does labeling the badge by outcome beat the neutral "Code" for self-driving- // setup? Short-circuit on the autonomy gate so the flag (and its exposure event) is only- // evaluated for users who actually see the badge.- const label =- visible && featureFlags[FEATURE_FLAGS.CODE_BADGE_SELF_DRIVING_LABEL] === 'self-driving'- ? 'Self-driving'- : CODE_BADGE.label-return {visible,- label,+ label: CODE_BADGE.label,introOpen,openIntro: () => setIntroOpen(true),closeIntro: () => setIntroOpen(false),