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(max): ship product-grouped capability badges and remove the experiment (#90568)

Rafael Audibertb2fa1b86cd18
diff --git a/frontend/snapshots.yml b/frontend/snapshots.yml
index cb41e3207cbb..1e93da12c4b9 100644
--- a/frontend/snapshots.yml
+++ b/frontend/snapshots.yml
@@ -7729,17 +7729,17 @@ snapshots:
scenes-app-posthog-ai--thread-with-in-progress-conversation--light:
hash: v1.k794b7964.4f9d88e076e9aa81e8aaac264f0a6fe900efcb0f726a73c5fcdc52a7e6459c88.JiPtjsbZcioinx0lKmJUIV_xtBpjI1oRJuqF8Pi6kFE
scenes-app-posthog-ai--thread-with-multiple-context-objects--dark:
- hash: v1.k794b7964.8acba4d66ac068d8ee60ac972cce3e5d32e547549eef409d78169e23b4c7429a.38TFrWPuNPYIAkmmyb3s0t3rAYCl41D1Hi-o-cj2bhY
+ hash: v1.k794b7964.b0c6b37ec6d05b2b43ad2c6a59dd805a54642922facb223c49eba0d7c51d7345.FE6W9UiYJ4VT7wv7CFru1jLMLqfCJVmAnezZGPiarIg
scenes-app-posthog-ai--thread-with-multiple-context-objects--light:
- hash: v1.k794b7964.37f894dbe521fe73a27b410291a78f0923b47724e7a39cbf7db15c276f438508.-6CML5IWBfVRwqAaunxC77tcqM-10BAvLhGbhXTvemU
+ hash: v1.k794b7964.2ca37589f34987a915839db3f5657ad09a1de74fd3898083da4338306827aa79.bSFBw_nrRf2m1aypNwCKmjw6M8nTB9eRwdllrbFVocE
scenes-app-posthog-ai--thread-with-opened-suggestions--dark:
- hash: v1.k794b7964.c79ac281f0b66d67344b562edc6c2cbff16e8f682696111a553aef7b8884ddb9.C9NmPxKsTOkt8iaHcVzRKEtzXRZcZkLFRU_MyjJcx2k
+ hash: v1.k794b7964.bdeaa25803431503aecb5d933db230eb2e5e3a9da4fcf82bb62604dc7aaff4b7.1qDUC8JIQ4ArjT6b1-aG1cCBRht_pEZS3y8Kb_kttCo
scenes-app-posthog-ai--thread-with-opened-suggestions--light:
- hash: v1.k794b7964.9c6105576943a59057f2e9928df3e26ac5e7f80ec98f774a0ba3288a4b3ac568.5BQzurf66egTBupaf5vDBYFxSUbKQLMuRTGXmjIImhw
+ hash: v1.k794b7964.d9124a84e78b9711cd5da5c66bcfc0842bcd6a587e80b33dfb3aaa53321c25fd.djEG37lGaRC5Dwhy-HDwOXQ4BQvc6Vi29zriWhl0DzQ
scenes-app-posthog-ai--thread-with-opened-suggestions-mobile--dark:
- hash: v1.k794b7964.c79ac281f0b66d67344b562edc6c2cbff16e8f682696111a553aef7b8884ddb9.6WI7SnQGqgSKvP4EfLvSQIIPchaSG_tL5hMQ8K80PRg
+ hash: v1.k794b7964.bdeaa25803431503aecb5d933db230eb2e5e3a9da4fcf82bb62604dc7aaff4b7.G2CVbNfI9Dm59FGSgvxpVqhbWN36eUv4y38wrUoy5ow
scenes-app-posthog-ai--thread-with-opened-suggestions-mobile--light:
- hash: v1.k794b7964.9c6105576943a59057f2e9928df3e26ac5e7f80ec98f774a0ba3288a4b3ac568.RUUG3hSKh3sZTu4XM2XKEmhGj0mkLlup_7AlK2v0pIg
+ hash: v1.k794b7964.d9124a84e78b9711cd5da5c66bcfc0842bcd6a587e80b33dfb3aaa53321c25fd.tZZWsTBkR9yZO3De9jv9mlS3FldP4FyUmNQ3l15C1ag
scenes-app-posthog-ai--thread-with-quick-replies--dark:
hash: v1.k794b7964.bf2e3ec6f1256a7e1a41120510001d6eb825d70c85f0858a184f028c00a4752d.ttC4L7QLV8_5xjTvtSnk2TQEemTWuumQUT4__5_s3_w
scenes-app-posthog-ai--thread-with-quick-replies--light:
@@ -7753,17 +7753,17 @@ snapshots:
scenes-app-posthog-ai--thread-with-rate-limit-no-retry-after--light:
hash: v1.k794b7964.a1df34e86e76087873ec1be1cf7cb245be0feb6076312d93b10f908432d67ad5.KNkCUGGFtAwute49QH64g_TnmeA_6oT5DBvMh7kBMh4
scenes-app-posthog-ai--welcome--dark:
- hash: v1.k794b7964.255cc7354afe3bfee4d63bcd626cbb954b817ae7c9dfd13146be505ddc7f0028.zD0FAtP4Stug3YCIyFs62K41gQ1IY84zD128uDFrZ5k
+ hash: v1.k794b7964.7405d90fa9f55a6dcc9a02fea182d17e04c088f5802256edcee951bb89f6d6a6.SHVjQLo_GwPePQ8BS97C30C0qD4I3oYr1tJbcqFzj4o
scenes-app-posthog-ai--welcome--light:
- hash: v1.k794b7964.e2dbc52d40324a161bc0f301270a09dda7c27809f316ef5c95d482d55192e2f9.YqT2QM4GxfB9HXWNwWnNwmved7zOHN478tLQg1W7mB0
+ hash: v1.k794b7964.92c0b731d68681b22f0b0edc4ad9e211401e52ec8742df5224aab9a771279def.0ZrQN0WdL_tZV97Y83us4ZX-tULWoKWoiqhUOXbIf7Y
scenes-app-posthog-ai--welcome-feature-preview-auto-enrolled--dark:
- hash: v1.k794b7964.c0f3edc24f70c1374de4f86edfcc99a112b1413e958f569fcec632bfd882139f.zesvFNaZ2OGvtnx9RV8-WAZdRPXRt3FCs7C2zciMKGk
+ hash: v1.k794b7964.7405d90fa9f55a6dcc9a02fea182d17e04c088f5802256edcee951bb89f6d6a6.fTrLhcMoPEEZIxOYHFDLxyjniRaGYO7OZ7-wMGJso0A
scenes-app-posthog-ai--welcome-feature-preview-auto-enrolled--light:
- hash: v1.k794b7964.13eea803621c3dbb92b419aa579ec359b6f40ec25db1cb440f70524da3bfa158.sfs6BHWFf1Wl9u0YyON79aK3Lh0bJ1MCG5F6Vbb_Kt4
+ hash: v1.k794b7964.4323ae9c1a95fa37c28b394c7451b2fc87870867b7f45da092fe65b391c4a2fe.JGunLa5BYA8SkD4S_poYMRMe4-WaSiA9oELQWmOUc3I
scenes-app-posthog-ai--welcome-with-latest-conversations--dark:
- hash: v1.k794b7964.d54fb4d8e9c218790b709f5b18efcae5c38e6ab5a0530f4908010e8074bf0b6c.zanU7Ejgz4Lm25IV-jQsIm-rGOOSs17H6bnzTKH2u80
+ hash: v1.k794b7964.a5569114176693c1fae60ab44053a2b1e6db06bcd5c0899cadbfc1c9d7086878.3HcEuk-8sTkUCIQp-NMeH4fgB6pnW9ArtwTkdvVRmNA
scenes-app-posthog-ai--welcome-with-latest-conversations--light:
- hash: v1.k794b7964.a732f664187c5f4dc15e801e158064225c5994135b3dde6b45e27d1804b43ebc.W1Q7ZB1crliI3RLGItmuOIVPY9hmydjD-yp4U5mrwmQ
+ hash: v1.k794b7964.b54b4d009baaae102c8d371902bfc84dc14648f197e9781b204f54c222ba64c3._DC8J9KA3PE5kzvVhIHuOVmmg7BtWTETx-9ICvHyrqU
scenes-app-posthog-ai-forms--thread-with-mixed-field-type-form--dark:
hash: v1.k794b7964.ca6175217faed0e867cfd45be05a7fb37e9f355177abd664e492c5f3dbc6cddb.bhAYDptn3_ULxSBKXl2K0JUWH6Irbq6RS5bvwPt0j2c
scenes-app-posthog-ai-forms--thread-with-mixed-field-type-form--light:
@@ -7805,9 +7805,9 @@ snapshots:
scenes-app-posthog-ai-hands-free-surface--with-error--light:
hash: v1.k794b7964.988574fff8b8f14327e6234395a9200de50d0c357261037219bf56344b249369.6f9U2b-TYev-MwpxHqJjEnLrrvTDRB0fMavjcFcUn6s
scenes-app-posthog-ai-tools--changelog-only--dark:
- hash: v1.k794b7964.bdfda5d548efb3c138f069ef022150ccd569e40637e1ccbd2adfa53db882b7f1.Hgdf9AsndNOnqPxiu84ZUw2Z6YY7zVjJKxTk9Zd_yAs
+ hash: v1.k794b7964.f17aec31dd25e93672f7d76b065a6b49052c643eb6da67458011462b883f1c9c.sYkAo1RWtXpQRQNxl5SzUkO4ELuuEshq9Kdbc0H1L0E
scenes-app-posthog-ai-tools--changelog-only--light:
- hash: v1.k794b7964.6856b2c160f1e0c423d22765bc19366df2d12e849b7cf7bc8c3326a09cd30622.q14GK_baoSbvOubg6ZMCxwPZWpY19rSV01lzlR7w-AQ
+ hash: v1.k794b7964.db02496ba43c950916b078e95081d7c7ce1465ec9880c52c1334775a66b012d0.Hke-BwLThL2Im6TXKzxK633zeRKWwwtvi9ao1GTXQPU
scenes-app-posthog-ai-tools--dangerous-operation-pending-approval--dark:
hash: v1.k794b7964.70ae9ee5e2bb82dc37e17102a8d532b7364bb693d4103148b100b0ea789fc9a3.pLWXl8wv17Ii_gk8IIjY9z7yCDe1JZ0sdiBVQ5Ve0gw
scenes-app-posthog-ai-tools--dangerous-operation-pending-approval--light:
@@ -7873,13 +7873,13 @@ snapshots:
scenes-app-posthog-ai-tools--thread-with-sql-query-overflow--light:
hash: v1.k794b7964.998984fe26c3f9ce26629da81e63f19891aa45441c08b9ae5dccf1d497c9bddd.DdAh6vm68mAVp3cDCyYG54XXY4qjsjbYA_Zd7aY-AHY
scenes-app-project-homepage--no-primary-dashboard--dark:
- hash: v1.k794b7964.224e8a5e493e290b4ae4bbc2e03034a73b2ecfce20c86bcde08eab86b57b712e.5356e3TF0I7FG2Xk5br9hyTsPAveCvQx9-r0J8Nc3E0
+ hash: v1.k794b7964.af9b4385991c80eee5264faf1d07d49b87761318e2305fb5514958086edc1f58.ZJdq0-sDWJFgyjsPctN1fx7YpMsXFoi-1o_vlTuOAhI
scenes-app-project-homepage--no-primary-dashboard--light:
- hash: v1.k794b7964.98ed0349dedcf181c5aa8de11b5992627a86662065b31abafc2ee3bf7c39d37c.5YEvSB4m7w_s0AUY6yM7JSx6nVkImIMoMBEnIFPXW0g
+ hash: v1.k794b7964.7c3fdb6ce7a31af8bd8ace431cfaadd663f8ffe276f49bf223e8bc638ecfa450.C6gh9sndZStKZhEfFjDYY3T0mgsXPGH_Q0v92i3hqzg
scenes-app-project-homepage--project-homepage--dark:
- hash: v1.k794b7964.224e8a5e493e290b4ae4bbc2e03034a73b2ecfce20c86bcde08eab86b57b712e.xYn7md33k3lh0Oj7If1WzYPDgW9aiqbZ4aux_4bhOUc
+ hash: v1.k794b7964.af9b4385991c80eee5264faf1d07d49b87761318e2305fb5514958086edc1f58.1tkbdKT7hTynpGkCGRVO93dX9A-VwsbzjNwGjSkHRLg
scenes-app-project-homepage--project-homepage--light:
- hash: v1.k794b7964.2eafc7385bf39f5be7d4d6d0ad1b70897952bcf37a16bd3ae6c644716cd16d25.25OmRYioQX_VF2kc2AVnvYlE0yve6YNcY2FDdJwV5kE
+ hash: v1.k794b7964.54f214a2c117b87267d052b8dae8532babac1c9db6ab526fccdb43a9f7bead62.m8iQAkpViDUlpICeRT4gLzpK3axpv1xsP8l0-l73wXw
scenes-app-replay-vision--action-detail--dark:
hash: v1.k794b7964.d76000a1feb3f28082551e89f3a02340040ed744c0edeb35c6cca25cb795e41d._M8t2vwEIBIVzcpgxphGPL8penTin9Rx5dFneAP3f1I
scenes-app-replay-vision--action-detail--light:
@@ -8213,9 +8213,9 @@ snapshots:
scenes-app-sidepanels--side-panel-info--light:
hash: v1.k794b7964.eb63a430e9dcde38d7ba06ee57e7ee802b2a13e9218c2c4369e3bbddbd40fb53.e-PdOgbDk-9d8TwhkT3DHdoyYQYFg-qlg_ME8jd7xFA
scenes-app-sidepanels--side-panel-max--dark:
- hash: v1.k794b7964.c926e63706eae8afadadfb72f494f43952a6d9a3d9f10be667c9d86d7b96600b.tKRK9U0z8l5MfvkIXgTWbnSeH17-LFg3nUDBCZFl2qA
+ hash: v1.k794b7964.b7a04d5b808fe9e95133ae4bc65b90539a9b55d1d489eb170e83163bdef924bf.Od8uRPc-nN2AenEFbraCK5OKiI0gE1xLeN_iwM9TjMM
scenes-app-sidepanels--side-panel-max--light:
- hash: v1.k794b7964.63283465673a68df94fb1a9ca5196be9c7d14c45e9d6316a08fd63531f16c0ad._V5Asw1jQARn9qxVWhKsCkqBPLZ9izGdtq6q_iBFWXk
+ hash: v1.k794b7964.f31718600b519efa84a3ece2549f6a4dc06a0af6eef4fd643f98c41be67d18b5.g7nEpNotPdQUYIC1NuJFGt-prxuVv6YzA49uA1DEdC8
scenes-app-sidepanels--side-panel-notebooks--dark:
hash: v1.k794b7964.01c39dab32eed54741c73e2216e811cdd7884eb0a5f2b1dd8f9be9f2f4d73cf5.a0iI2p5HsL255wOq4mkA3kWqhnzuJBaKo07PuDeLFMU
scenes-app-sidepanels--side-panel-notebooks--light:
diff --git a/frontend/src/lib/constants.tsx b/frontend/src/lib/constants.tsx
index e7c5aba6f0c2..9e43b39106e2 100644
--- a/frontend/src/lib/constants.tsx
+++ b/frontend/src/lib/constants.tsx
@@ -402,7 +402,6 @@ export const FEATURE_FLAGS = {
MAX_BILLING_CONTEXT: 'max-billing-context', // owner: @pawel-cebula #team-billing
MAX_DEEP_RESEARCH: 'max-deep-research', // owner: @kappa90 #team-posthog-ai
MAX_HANDS_FREE: 'max-hands-free', // owner: #team-posthog-ai
- MAX_HOMEPAGE_CAPABILITIES: 'max-homepage-capabilities', // owner: @rafaeelaudibert #team-posthog-ai multivariate=control,behaviors,products — /home capability badges grouped by behavior vs product
MAX_WEB_ANALYTICS_NUDGE: 'posthog-ai-web-analytics-nudge', // owner: @jordanm-posthog #team-web-analytics
MCP_ANALYTICS: 'mcp-analytics', // owner: #project-mcp-analytics
MCP_ANALYTICS_INTENT_ROUTING: 'mcp-analytics-intent-routing', // owner: #project-mcp-analytics
diff --git a/frontend/src/scenes/max/components/SidebarQuestionInputWithSuggestions.tsx b/frontend/src/scenes/max/components/SidebarQuestionInputWithSuggestions.tsx
index 3e0e2d268155..b4527fa3fca0 100644
--- a/frontend/src/scenes/max/components/SidebarQuestionInputWithSuggestions.tsx
+++ b/frontend/src/scenes/max/components/SidebarQuestionInputWithSuggestions.tsx
@@ -5,15 +5,13 @@ import { useState } from 'react'
import { IconGear } from '@posthog/icons'
import { LemonButton, LemonModal } from '@posthog/lemon-ui'
-import { FEATURE_FLAGS } from 'lib/constants'
-import { featureFlagLogic } from 'lib/logic/featureFlagLogic'
import { cn } from 'lib/utils/css-classes'
import { MaxMemorySettings } from 'scenes/settings/environment/MaxMemorySettings'
import { maxSettingsLogic } from 'scenes/settings/environment/maxSettingsLogic'
import { AgentMode } from '~/queries/schema/schema-assistant-messages'
-import { capabilitiesForGrouping, capabilityGroupingFromVariant } from '../maxCapabilities'
+import { HOMEPAGE_CAPABILITIES } from '../maxCapabilities'
import { QUESTION_SUGGESTIONS_DATA, RESEARCH_SUGGESTIONS_DATA, maxLogic } from '../maxLogic'
import { maxThreadLogic } from '../maxThreadLogic'
import { CAPABILITY_CARDS_HEIGHT_PX, CapabilityBadges, CapabilitySuggestions } from './CapabilityBadges'
@@ -30,7 +28,6 @@ export function SidebarQuestionInputWithSuggestions({
const { agentMode } = useValues(maxThreadLogic)
const { askMax } = useActions(maxThreadLogic)
const { coreMemory, coreMemoryLoading } = useValues(maxSettingsLogic)
- const { featureFlags } = useValues(featureFlagLogic)
const [settingsModalOpen, setSettingsModalOpen] = useState(false)
const [selectedCapability, setSelectedCapability] = useState<string | null>(null)
@@ -39,12 +36,10 @@ export function SidebarQuestionInputWithSuggestions({
setSettingsModalOpen(true)
}
- // Capability badges (same experiment as the homepage) replace the pills — except in Research
- // mode, which keeps its own tailored suggestions.
- const grouping = capabilityGroupingFromVariant(featureFlags[FEATURE_FLAGS.MAX_HOMEPAGE_CAPABILITIES])
- const showBadges = !!grouping && agentMode !== AgentMode.Research
- const capabilities = grouping ? capabilitiesForGrouping(grouping) : []
- const selectedCapabilityData = capabilities.find((capability) => capability.key === selectedCapability) ?? null
+ // Capability badges replace the pills — except in Research mode, which keeps its own tailored suggestions.
+ const showBadges = agentMode !== AgentMode.Research
+ const selectedCapabilityData =
+ HOMEPAGE_CAPABILITIES.find((capability) => capability.key === selectedCapability) ?? null
const tip =
!coreMemoryLoading && !coreMemory?.text
@@ -75,7 +70,7 @@ export function SidebarQuestionInputWithSuggestions({
{showBadges ? (
<div className="flex flex-col items-center gap-6 w-full">
<CapabilityBadges
- capabilities={capabilities}
+ capabilities={HOMEPAGE_CAPABILITIES}
selectedKey={selectedCapability}
onSelect={(key) => {
setFillInHint(null)
diff --git a/frontend/src/scenes/max/maxCapabilities.tsx b/frontend/src/scenes/max/maxCapabilities.tsx
index c665dc6338e5..de3bbd6bebae 100644
--- a/frontend/src/scenes/max/maxCapabilities.tsx
+++ b/frontend/src/scenes/max/maxCapabilities.tsx
@@ -69,10 +69,11 @@ const LEARN_CAPABILITY: Capability = {
}
/**
- * Product-based grouping — mirrors PostHog's products. Prompt content is drawn from the
- * existing `QUESTION_SUGGESTIONS_DATA` on the PostHog AI scene so the two surfaces stay in sync.
+ * Capability badges on the homepage and the PostHog AI sidebar, one per PostHog product. Prompt
+ * content is drawn from the existing `QUESTION_SUGGESTIONS_DATA` on the PostHog AI scene so the
+ * two surfaces stay in sync.
*/
-export const PRODUCT_CAPABILITIES: Capability[] = [
+export const HOMEPAGE_CAPABILITIES: Capability[] = [
{
key: 'analytics',
label: 'Analytics',
@@ -276,168 +277,3 @@ export const PRODUCT_CAPABILITIES: Capability[] = [
},
LEARN_CAPABILITY,
]
-
-/**
- * Behavior-based grouping — organized around what people come to PostHog to *do*, rather than
- * which product a task lives in. Same underlying prompts, regrouped by job-to-be-done.
- */
-export const BEHAVIOR_CAPABILITIES: Capability[] = [
- {
- key: 'analyze',
- label: 'Analyze',
- iconType: 'product_analytics',
- suggestions: [
- {
- title: 'Run a feature analysis',
- description: 'Adoption, engagement, and retention of a feature',
- content: 'Run a feature analysis covering adoption, engagement, and retention',
- },
- {
- title: 'Summarize product usage',
- description: 'Top events, active users, and key funnels',
- content: 'Summarize our product usage: top events, active users, and key funnels',
- },
- {
- title: 'Check retention',
- description: 'How many users came back over the last two weeks',
- content: 'What is the retention in the last two weeks?',
- },
- {
- title: 'Query with SQL',
- description: 'Ask anything of your data with HogQL',
- content: 'Write an SQL query to',
- requiresUserInput: true,
- hint: 'type a question you have about your data',
- iconType: 'sql_editor',
- },
- ],
- },
- {
- key: 'debug',
- label: 'Debug',
- iconType: 'error_tracking',
- suggestions: [
- {
- title: 'Find impactful errors',
- description: 'The exceptions hitting the most users',
- content: 'What are the most impactful errors affecting my users right now?',
- },
- {
- title: 'Investigate a drop',
- description: 'Root-cause a recent change in a metric',
- content: 'Investigate why one of my key metrics dropped last week',
- },
- {
- title: 'Watch error sessions',
- description: 'Replays where users ran into a problem',
- content: 'Find session recordings where users ran into errors',
- iconType: 'session_replay',
- },
- {
- title: 'Explain an error',
- description: 'Likely cause and where it fires',
- content: 'Explain the most common error in my app and where it happens',
- },
- ],
- },
- {
- key: 'monitor',
- label: 'Monitor',
- iconType: 'session_replay',
- suggestions: [
- {
- title: 'Summarize recent sessions',
- description: 'Common patterns across recent replays',
- content: 'Summarize recent session recordings and highlight anything notable',
- },
- {
- title: 'Spot friction',
- description: 'Where users hesitate, rage-click, or churn',
- content: 'Find session replays showing common user pain points or confusion',
- },
- {
- title: 'Review conversion',
- description: 'How your main funnel performed this week',
- content: 'How is my main conversion funnel performing this week?',
- },
- {
- title: 'Watch a user journey',
- description: 'Replays for a specific segment or action',
- content: 'Find recordings for',
- requiresUserInput: true,
- hint: 'type a specific user or behavior you wanna find recordings for',
- },
- ],
- },
- {
- key: 'ship',
- label: 'Ship',
- iconType: 'feature_flag',
- suggestions: [
- {
- title: 'Roll out a feature',
- description: 'Gradually release behind a flag',
- content: 'Create a flag to gradually roll out',
- requiresUserInput: true,
- hint: "type the feature you're launching",
- },
- {
- title: 'Run an A/B test',
- description: 'Experiment to measure the impact of a change',
- content: 'Create an experiment to test',
- requiresUserInput: true,
- hint: 'type a change you have in mind',
- iconType: 'experiment',
- },
- {
- title: 'Audit your flags',
- description: 'Find stale or risky feature flags',
- content: 'Audit my feature flags for issues',
- },
- {
- title: 'Plan a release',
- description: 'Draft a safe gradual rollout',
- content: 'Help me plan a safe gradual rollout for a new feature',
- },
- ],
- },
- {
- key: 'understand',
- label: 'Understand',
- iconType: 'survey',
- suggestions: [
- {
- title: 'Ask users a question',
- description: 'Launch an NPS, CSAT, or custom survey',
- content: 'Create a survey to collect NPS responses from users',
- },
- {
- title: 'Measure product-market fit',
- description: 'Ask how users would feel without your product',
- content: 'Create a survey to measure product market fit',
- },
- {
- title: 'Summarize feedback',
- description: 'Common themes across recent responses',
- content: 'Analyze survey responses to prioritize key features our users are interested in',
- },
- {
- title: 'Learn from interviews',
- description: 'Key themes across user interviews',
- content: 'Analyze my user interviews and summarize the key themes',
- },
- ],
- },
- LEARN_CAPABILITY,
-]
-
-export type CapabilityGrouping = 'behaviors' | 'products'
-
-export function capabilitiesForGrouping(grouping: CapabilityGrouping): Capability[] {
- return grouping === 'behaviors' ? BEHAVIOR_CAPABILITIES : PRODUCT_CAPABILITIES
-}
-
-/** Maps the `MAX_HOMEPAGE_CAPABILITIES` experiment variant to a grouping (null = control). */
-export function capabilityGroupingFromVariant(variant: string | boolean | undefined): CapabilityGrouping | null {
- return variant === 'behaviors' || variant === 'products' ? variant : null
-}
diff --git a/frontend/src/scenes/project-homepage/ai-first/HomepageInput.tsx b/frontend/src/scenes/project-homepage/ai-first/HomepageInput.tsx
index 045e09922425..a5f36a39578a 100644
--- a/frontend/src/scenes/project-homepage/ai-first/HomepageInput.tsx
+++ b/frontend/src/scenes/project-homepage/ai-first/HomepageInput.tsx
@@ -7,10 +7,8 @@ import { IconArrowRight, IconClock, IconInfo, IconLock, IconMicrophone, IconPin,
import { LemonButton, LemonSkeleton, Tooltip } from '@posthog/lemon-ui'
import { Search } from 'lib/components/Search/Search'
-import { FEATURE_FLAGS } from 'lib/constants'
import { useFeatureFlag } from 'lib/hooks/useFeatureFlag'
import { Link } from 'lib/lemon-ui/Link'
-import { featureFlagLogic } from 'lib/logic/featureFlagLogic'
import { ButtonPrimitive } from 'lib/ui/Button/ButtonPrimitives'
import { Label } from 'lib/ui/Label/Label'
import { TextareaPrimitive } from 'lib/ui/TextareaPrimitive/TextareaPrimitive'
@@ -25,6 +23,7 @@ import { FillInHint } from 'scenes/max/components/FillInHint'
import { SidebarQuestionInput } from 'scenes/max/components/SidebarQuestionInput'
import { handsFreeLogic } from 'scenes/max/handsFreeLogic'
import { Intro } from 'scenes/max/Intro'
+import { HOMEPAGE_CAPABILITIES } from 'scenes/max/maxCapabilities'
import { maxGlobalLogic } from 'scenes/max/maxGlobalLogic'
import { maxLogic } from 'scenes/max/maxLogic'
import { MaxThreadLogicProps, maxThreadLogic } from 'scenes/max/maxThreadLogic'
@@ -301,7 +300,6 @@ function getStoredSkeletonCounts(): Record<string, number> | null {
function IdleGrid(): JSX.Element {
const { gridItems, query, dashboardsLoading, recentItemsLoading, starredItemsLoading } =
useValues(aiFirstHomepageLogic)
- const { featureFlags } = useValues(featureFlagLogic)
// [col, row] position of the highlighted item, null = nothing highlighted
const [highlight, setHighlight] = useState<[number, number] | null>(null)
@@ -309,10 +307,6 @@ function IdleGrid(): JSX.Element {
const [skeletonCounts, setSkeletonCounts] = useState(getStoredSkeletonCounts)
- const hasExtraMarginTop =
- !!featureFlags[FEATURE_FLAGS.MAX_HOMEPAGE_CAPABILITIES] ||
- featureFlags[FEATURE_FLAGS.MAX_HOMEPAGE_CAPABILITIES] === 'control'
-
const columns = useMemo(() => {
return GRID_COLUMNS.map((col) => ({
...col,
@@ -460,10 +454,7 @@ function IdleGrid(): JSX.Element {
role="grid"
data-attr="homepage-grid"
// Only shown at @xl+ where the homepage columns sit in a row.
- className={cn(
- 'flex flex-col @xl/main-content:flex-row gap-8 @xl/main-content:gap-2 w-full px-3 outline-none',
- hasExtraMarginTop && 'mt-8'
- )}
+ className="flex flex-col @xl/main-content:flex-row gap-8 @xl/main-content:gap-2 w-full px-3 outline-none mt-8"
tabIndex={-1}
onFocus={(e) => {
// Only auto-highlight when focused via keyboard (ArrowDown from input)
@@ -541,11 +532,12 @@ function IdleGrid(): JSX.Element {
}
export function HomepageInput(): JSX.Element {
- const { mode, query, capabilities, selectedCapability } = useValues(aiFirstHomepageLogic)
+ const { mode, query, selectedCapability } = useValues(aiFirstHomepageLogic)
const { setQuery, submitQuery, setSelectedCapability, setFillInHint } = useActions(aiFirstHomepageLogic)
const { user } = useValues(userLogic)
- const selectedCapabilityData = capabilities.find((capability) => capability.key === selectedCapability) ?? null
+ const selectedCapabilityData =
+ HOMEPAGE_CAPABILITIES.find((capability) => capability.key === selectedCapability) ?? null
return (
<div className="w-full max-w-180 mx-auto py-2 ">
@@ -568,7 +560,7 @@ export function HomepageInput(): JSX.Element {
<div className="overflow-hidden flex flex-col items-center gap-6">
<CapabilityBadges
className="shrink-0"
- capabilities={capabilities}
+ capabilities={HOMEPAGE_CAPABILITIES}
selectedKey={selectedCapability}
onSelect={setSelectedCapability}
/>
diff --git a/frontend/src/scenes/project-homepage/ai-first/aiFirstHomepageLogic.ts b/frontend/src/scenes/project-homepage/ai-first/aiFirstHomepageLogic.ts
index 07f26396c853..37124f4656c7 100644
--- a/frontend/src/scenes/project-homepage/ai-first/aiFirstHomepageLogic.ts
+++ b/frontend/src/scenes/project-homepage/ai-first/aiFirstHomepageLogic.ts
@@ -2,16 +2,8 @@ import { MakeLogicType, actions, afterMount, connect, kea, listeners, path, redu
import { actionToUrl, router, urlToAction } from 'kea-router'
import posthog from 'posthog-js'
-import { FEATURE_FLAGS } from 'lib/constants'
-import { featureFlagLogic } from 'lib/logic/featureFlagLogic'
import { tabUiStateLogic } from 'lib/logic/tabUiStateLogic'
import { handsFreeLogic } from 'scenes/max/handsFreeLogic'
-import {
- Capability,
- CapabilityGrouping,
- capabilitiesForGrouping,
- capabilityGroupingFromVariant,
-} from 'scenes/max/maxCapabilities'
import { type PhaiViewMode, maxGlobalLogic } from 'scenes/max/maxGlobalLogic'
import { maxLogic, parseCommandString } from 'scenes/max/maxLogic'
import { teamLogic } from 'scenes/teamLogic'
@@ -28,7 +20,6 @@ import { emptySceneParams } from '~/scenes/scenes'
import { Scene, SceneTab } from '~/scenes/sceneTypes'
import { DashboardBasicType, SidePanelTab } from '~/types'
-import type { FeatureFlagsSet } from '../../../lib/logic/featureFlagLogic'
import type { Node } from '../../../queries/schema/schema-general'
import type { TeamPublicType, TeamType } from '../../../types'
import type { DashboardType, QueryBasedInsightModel } from '../../../types'
@@ -88,7 +79,6 @@ function savePreviousHomepage(tab: SceneTab | null): void {
export interface aiFirstHomepageLogicValues {
dashboardsLoading: boolean // dashboardsModel
pinnedDashboards: (DashboardBasicType | DashboardType<QueryBasedInsightModel<Node<Record<string, any>>>>)[] // dashboardsModel
- featureFlags: FeatureFlagsSet // featureFlagLogic
effectivePhaiView: PhaiViewMode // maxGlobalLogic
conversationId: string | null // maxLogic
threadLogicKey: string // maxLogic
@@ -100,8 +90,6 @@ export interface aiFirstHomepageLogicValues {
chatDraftFor: (tabId: string | undefined) => string // tabUiStateLogic
currentTeam: TeamPublicType | TeamType | null // teamLogic
animationPhase: AnimationPhase
- capabilities: Capability[]
- capabilityGrouping: CapabilityGrouping | null
fillInHint: string | null
gridItems: HomepageGridItem[]
layoutState: LayoutState
@@ -182,8 +170,6 @@ export interface aiFirstHomepageLogicMeta {
starredItemsLoading: (shortcutDataHasLoaded: boolean) => boolean
mode: (layoutState: LayoutState) => HomepageMode
animationPhase: (layoutState: LayoutState) => AnimationPhase
- capabilityGrouping: (featureFlags: FeatureFlagsSet) => CapabilityGrouping | null
- capabilities: (capabilityGrouping: CapabilityGrouping | null) => Capability[]
pinnedDashboardItems: (
pinnedDashboards: (DashboardBasicType | DashboardType<QueryBasedInsightModel<Node<Record<string, any>>>>)[]
) => HomepageGridItem[]
@@ -221,8 +207,6 @@ export const aiFirstHomepageLogic = kea<aiFirstHomepageLogicType>([
['shortcutData as cachedStarred', 'shortcutDataHasLoaded'],
tabUiStateLogic,
['chatDraftFor'],
- featureFlagLogic,
- ['featureFlags'],
maxGlobalLogic,
['effectivePhaiView'],
],
@@ -336,16 +320,6 @@ export const aiFirstHomepageLogic = kea<aiFirstHomepageLogicType>([
(s) => [s.layoutState],
(layoutState: LayoutState): AnimationPhase => layoutState.animationPhase,
],
- capabilityGrouping: [
- (s) => [s.featureFlags],
- (featureFlags: import('lib/logic/featureFlagLogic').FeatureFlagsSet): CapabilityGrouping | null =>
- capabilityGroupingFromVariant(featureFlags[FEATURE_FLAGS.MAX_HOMEPAGE_CAPABILITIES]),
- ],
- capabilities: [
- (s) => [s.capabilityGrouping],
- (capabilityGrouping: CapabilityGrouping | null): Capability[] =>
- capabilityGrouping ? capabilitiesForGrouping(capabilityGrouping) : [],
- ],
pinnedDashboardItems: [
(s) => [s.pinnedDashboards],
(