: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(growth): Remove fully rolled-out feature flags (#65677)
Rafael Audibertb7f000e386fd
diff --git a/.agents/skills/setting-feature-flags-in-storybook/SKILL.md b/.agents/skills/setting-feature-flags-in-storybook/SKILL.mdindex d5047e6b8b3f..9e541e41baa3 100644--- a/.agents/skills/setting-feature-flags-in-storybook/SKILL.md+++ b/.agents/skills/setting-feature-flags-in-storybook/SKILL.md@@ -38,14 +38,14 @@ the **record form** — the array form can only express `true`:```ts// meta-level: applies to every story in the file-parameters: { featureFlags: { [FEATURE_FLAGS.PROMOTED_PRODUCT]: 'intent_plus' } }+parameters: { featureFlags: { [FEATURE_FLAGS.THEME_OVERRIDE]: 'intent_plus' } }// per-story: a different arm per storyexport const ControlArm: Story = {- parameters: { featureFlags: { [FEATURE_FLAGS.PROMOTED_PRODUCT]: 'control' } },+ parameters: { featureFlags: { [FEATURE_FLAGS.THEME_OVERRIDE]: 'control' } },}export const TreatmentArm: Story = {- parameters: { featureFlags: { [FEATURE_FLAGS.PROMOTED_PRODUCT]: 'intent_plus' } },+ parameters: { featureFlags: { [FEATURE_FLAGS.THEME_OVERRIDE]: 'intent_plus' } },}```diff --git a/.test_durations b/.test_durationsindex 61a0d50adffd..18bf8002d326 100644--- a/.test_durations+++ b/.test_durations@@ -6728,9 +6728,6 @@"posthog/api/file_system/test/test_persisted_folder.py::TestPersistedFolderSurface::test_web_upsert_matches_legacy_null_row": 0.048107318999996096,"posthog/api/file_system/test/test_user_product_list.py::TestUserProductListAPI::test_seed_creates_products_from_colleagues_and_other_teams": 0.47716864199992415,"posthog/api/file_system/test/test_user_product_list.py::TestUserProductListAPI::test_seed_only_returns_enabled_products": 0.0347856129998263,- "posthog/api/file_system/test/test_user_product_list.py::TestUserProductListAPI::test_update_by_path_clears_reason_and_reason_text_when_already_enabled": 0.030380747000094743,- "posthog/api/file_system/test/test_user_product_list.py::TestUserProductListAPI::test_update_by_path_clears_reason_and_reason_text_when_enabling": 0.03002404399990155,- "posthog/api/file_system/test/test_user_product_list.py::TestUserProductListAPI::test_update_by_path_does_not_clear_reason_when_disabling": 0.03208340099990892,"posthog/api/llm_gateway/test/test_http.py::TestLLMGatewayPermissions::test_api_key_scope_permissions_0_task_write": 0.193445587000042,"posthog/api/llm_gateway/test/test_http.py::TestLLMGatewayPermissions::test_api_key_scope_permissions_1_task_write": 0.03765602900000431,"posthog/api/llm_gateway/test/test_http.py::TestLLMGatewayPermissions::test_api_key_scope_permissions_2_task_read": 0.030745747000025858,@@ -11990,8 +11987,6 @@"posthog/api/test/test_project.py::TestProjectAPI::test_project_deletion_sets_pending_deletion_flag": 0.05591479200006688,"posthog/api/test/test_project.py::TestProjectAPI::test_project_name_search_filter": 0.5715714079999543,"posthog/api/test/test_project.py::TestProjectAPI::test_projects_outside_personal_api_key_scoped_organizations_not_listed": 0.22532387099988682,- "posthog/api/test/test_project.py::TestProjectAPI::test_promoted_product_intent_returns_helper_value": 0.03343817199993282,- "posthog/api/test/test_project.py::TestProjectAPI::test_promoted_product_intent_returns_null_when_helper_returns_none": 0.03250703200001226,"posthog/api/test/test_project.py::TestProjectAPI::test_read_only_api_key_cannot_update_project_config_fields": 0.029544902000111506,"posthog/api/test/test_project.py::TestProjectAPI::test_read_only_api_key_cannot_update_project_non_config_fields": 0.027469310000014957,"posthog/api/test/test_project.py::TestProjectAPI::test_read_only_api_key_cannot_update_team_config_fields": 0.027879786000085005,@@ -13172,8 +13167,6 @@"posthog/api/test/test_team.py::TestTeamAPI::test_new_team_inherits_org_ip_anonymization_default_when_true": 0.157304760000045,"posthog/api/test/test_team.py::TestTeamAPI::test_new_us_organization_defaults_to_anonymize_ips_false": 0.01303272300003755,"posthog/api/test/test_team.py::TestTeamAPI::test_org_member_can_create_demo_project": 0.7977765129999739,- "posthog/api/test/test_team.py::TestTeamAPI::test_promoted_product_intent_returns_helper_value": 0.04277762599997459,- "posthog/api/test/test_team.py::TestTeamAPI::test_promoted_product_intent_returns_null_when_helper_returns_none": 0.045740425999952095,"posthog/api/test/test_team.py::TestTeamAPI::test_read_only_api_key_cannot_update_team_config_fields": 0.032284118999882594,"posthog/api/test/test_team.py::TestTeamAPI::test_read_only_api_key_cannot_update_team_non_config_fields": 0.02921809899987693,"posthog/api/test/test_team.py::TestTeamAPI::test_reset_token": 0.23541513800000757,@@ -30542,13 +30535,6 @@"posthog/models/test/test_project_secret_api_key.py::TestFindProjectSecretAPIKey::test_hash_isolation": 0.24457213499999853,"posthog/models/test/test_project_secret_api_key.py::TestFindProjectSecretAPIKey::test_match": 0.011104737999971803,"posthog/models/test/test_project_secret_api_key.py::TestFindProjectSecretAPIKey::test_no_match": 0.01,- "posthog/models/test/test_promoted_product_lookup.py::TestPromotedProductLookup::test_ignores_event_noise_from_other_contexts": 0.246344337999858,- "posthog/models/test/test_promoted_product_lookup.py::TestPromotedProductLookup::test_ignores_intent_without_primary_onboarding_context": 0.01,- "posthog/models/test/test_promoted_product_lookup.py::TestPromotedProductLookup::test_rejects_unknown_product_key": 0.01,- "posthog/models/test/test_promoted_product_lookup.py::TestPromotedProductLookup::test_returns_most_recently_updated_primary_intent": 0.01,- "posthog/models/test/test_promoted_product_lookup.py::TestPromotedProductLookup::test_returns_none_when_no_intent_exists": 0.01,- "posthog/models/test/test_promoted_product_lookup.py::TestPromotedProductLookup::test_returns_product_key_from_primary_intent": 0.01,- "posthog/models/test/test_promoted_product_lookup.py::TestPromotedProductLookup::test_scopes_by_team": 0.02649956499988093,"posthog/models/test/test_remote_config.py::TestRemoteConfig::test_autocapture_exceptions_toggle": 0.4786034720000316,"posthog/models/test/test_remote_config.py::TestRemoteConfig::test_autocapture_opt_out_toggle": 0.2294164740000042,"posthog/models/test/test_remote_config.py::TestRemoteConfig::test_build_config_bypass_recordings_quota_cache_reads_fresh_redis": 0.21089107199998125,diff --git a/common/storybook/.storybook/decorators/withFeatureFlags.tsx b/common/storybook/.storybook/decorators/withFeatureFlags.tsxindex 2b5a19452b45..4d158b5cd500 100644--- a/common/storybook/.storybook/decorators/withFeatureFlags.tsx+++ b/common/storybook/.storybook/decorators/withFeatureFlags.tsx@@ -17,7 +17,7 @@ declare module '@storybook/types' {** Multivariate flags — pin a specific variant with the record form:* ```ts- * parameters: { featureFlags: { [FEATURE_FLAGS.PROMOTED_PRODUCT]: 'intent_plus' } }+ * parameters: { featureFlags: { [FEATURE_FLAGS.THEME_OVERRIDE]: 'intent_plus' } }* ```*/export const withFeatureFlags: Decorator = (Story, { parameters: { featureFlags = [] } }) => {diff --git a/common/storybook/storybook-timings.json b/common/storybook/storybook-timings.jsonindex e41df1fd2f6f..29d0f22d284d 100644--- a/common/storybook/storybook-timings.json+++ b/common/storybook/storybook-timings.json@@ -27,10 +27,6 @@"chromium": 49.554,"webkit": 18.815},- "frontend/src/layout/panel-layout/PinnedFolder/EditCustomProductsModal.stories.tsx": {- "chromium": 2.156,- "webkit": 2.142- },"frontend/src/layout/panel-layout/ProjectTree/ProjectTree.stories.tsx": {"chromium": 14.621,"webkit": 3.75diff --git a/frontend/snapshots.yml b/frontend/snapshots.ymlindex aaac0088b8b7..c5536da6984c 100644--- a/frontend/snapshots.yml+++ b/frontend/snapshots.yml@@ -2696,18 +2696,18 @@ snapshots:hash: v1.k794b7964.41dc6774433e2a35b93d9bd50c09a063a61574d8c724b08fb35c158ce53c2c39.6_nuqiXEwUoBq8YSXUWjPeb9d4NNRHRbh9NyiFv2f8slayout-impersonation-reason-modal--upgrade-to-read-write--light:hash: v1.k794b7964.7686131e8d04113362f587050067e1daa76329becb2e33097cebc43792467919.B37QbmEEFysXtGrVVX0H_WUofFwz8yAI0cJah0GEK9s- layout-project-tree-custom-products--all-products--dark:- hash: v1.k794b7964.e9bfaa0e3f126993c376fb74db19c723ecfc8a3eccff102100d0daac99ef0890.sXhAC0BhNibCRrAGx__YSVH1YU0mNDNOO2emuRwfmgI- layout-project-tree-custom-products--all-products--light:- hash: v1.k794b7964.69544a1fda7444e1eeff27c3b9ea93cd23733d4bdf08aa2ab389f71666f28467.SsYmIKihdM3G_iOn-QFwnvWPKrxIy5MJTes5DwX2KQ8- layout-project-tree-custom-products--default--dark:- hash: v1.k794b7964.0cfb3fc7184514a2e43715de235fb08c77d516acc35b1539f4f9c72c5e616684.BTCbowk4NNeKDyVajIr_6Qjut5httj64VO6TqfU8ITA- layout-project-tree-custom-products--default--light:- hash: v1.k794b7964.f848fc8a4b94e3713d7e7d7f241bf1b2b7a9513459fd8b304f89cad5a737943f.Agw5zxWe8L5cAIZUiljJ8Z6yg-A3AdBgHxjHGsRbrZI- layout-project-tree-custom-products--narrow-size--dark:- hash: v1.k794b7964.cceda34139de55690cb1f2f14761662ef08924c55ceca45ca8b5f5c6a0258205.ch26jJwCUwqT-mTrhgV1tD-q0vMD1-RudedDkXutxkk- layout-project-tree-custom-products--narrow-size--light:- hash: v1.k794b7964.3b389565f50c05f0b0da55364d924dc92588b1e8c2259aa03a32b45362d2ae87.tx2-aAbUAS1qgaJT0xhsY2gS7KTKYN0yMTGIsa6U5hk+ layout-project-tree--all-products--dark:+ hash: v1.k794b7964.e9bfaa0e3f126993c376fb74db19c723ecfc8a3eccff102100d0daac99ef0890.MsTeaRg20Y4CNCpU6RJfw7G42S2Jw7Rd6pqq5_h70kw+ layout-project-tree--all-products--light:+ hash: v1.k794b7964.69544a1fda7444e1eeff27c3b9ea93cd23733d4bdf08aa2ab389f71666f28467.kN_vmoNzzgPI6Kp13_hV9_6je1yj2eu9tOlI5LoXZjY+ layout-project-tree--default--dark:+ hash: v1.k794b7964.db8a70226426ff7d1c519f7119b63abb5ebaa9f86d426268b8d811f27958a212.-4kdtFfGd-VfCDaAZUMpYIXg4nf1dGCVCLte7W1RrNc+ layout-project-tree--default--light:+ hash: v1.k794b7964.d83d3917afef1eb6696aac8464610a7bf6865a6c2edabba30a01d55b033c64ff.B_BRzlBwj8M53w7ie9ay32uoLUc2OtMTndRPrfV-GHU+ layout-project-tree--narrow-size--dark:+ hash: v1.k794b7964.94721c99dc0ef23184b47daf8532aed8c7989a528602c75d2632120b7f9aba39.YZrQQS8u52jpqg7SSzeel7gqwB2zZG8bUNnjni_jRtE+ layout-project-tree--narrow-size--light:+ hash: v1.k794b7964.a8e5427c9ef192d3ba8b68caba2e0dae373eca190317f36611257624b60c410c.0Y7pNkVusZNXuJzRE_LiNKw8Lt3Iz007_-F-jEi3FxAlayout-self-read-only-notice--read-only--dark:hash: v1.k794b7964.aa0aa21d822475834eece4c6c6dad9c297226ae363d3e5afd94bdc50e1a4bfd2.X79V0CguV6lenAm3u3zau-mer7JRj8dpNFUkMh7Sazslayout-self-read-only-notice--read-only--light:@@ -4737,9 +4737,9 @@ snapshots:scenes-app-aigateway--page--light:hash: v1.k794b7964.c75e47361d88cbc6bccf1080ec6ded4af7989ba6b9e0421e98e5d19e9ee8f70d.vGGS5YUSdED2wefcOe-Fs-UJQx9jzSXaJo6Qwk20vC4scenes-app-annotations--annotations--dark:- hash: v1.k794b7964.839aa1c77337bde89878542d449c58c1080ddc767ff1c52ba73dc06683d5f797.VhGpyYpvz4Xkk8Kd7Y-_xPXGjLQ7lj_BXLfuTP5KSC4+ hash: v1.k794b7964.7f0897f6244513270c3398881eda41b7aec7946bea33bf94ad76ddb271478d48.-5xSObBOfpwuWh0DqYlix54-RAG4dXTSSPgMpneXCWoscenes-app-annotations--annotations--light:- hash: v1.k794b7964.5b57e6df85906128a99fa7b0f8a597a0a3d4ba38424f3f9ae1429b79531cb825.gzAp0xIv9lsfEf-JK-wan8dHZKPrbOojJNfg4A5X1qE+ hash: v1.k794b7964.c8d42c54757583ebfb46646ac6b4b91cc96fd674c2c546d618bd9a5965b7fe42.eaBpd1UcxY6uFXw7Uweda56WqjJ9GxnrdHlBmM1KH78scenes-app-batchexports--backfills-empty--dark:hash: v1.k794b7964.28507262548478e2d0211783c04f1078475fe387f5540c0b84a5a10bbd1e327d.5iPjqcsujNk379gMnile1JByq6y9F-64wSu3_-x_uQYscenes-app-batchexports--backfills-empty--light:@@ -5037,17 +5037,17 @@ snapshots:scenes-app-dashboards--view-only-dashboard--light:hash: v1.k794b7964.8d8565dfb737034f8415ede3db773dc555f73a43c618218c1a12cd0d83a0a217.BpLcmQ8sF7wQ1KIfd09rJf_Elm5nWz51vY8uKfG--_Qscenes-app-dashboards-add-insight-to-dashboard-modal--default--dark:- hash: v1.k794b7964.9e274692c8e4c207d502de8e74ecb4ad848c351a69dc19185ddc3d52616e9c6f.JXi4RnJ4pej3Q4xhfMDQUlzqxMhz31nwrjmt1U-Fwbo+ hash: v1.k794b7964.4447c7a05f30158b990514e5a6eaf9d065149f4819f74bd9677900e7346776a8.uXc_j74-vfZoedDPegT8w2VoroNgC2BRbpZ2DbdjsX4scenes-app-dashboards-add-insight-to-dashboard-modal--default--light:- hash: v1.k794b7964.afec1884e4e17b65eeef2bb7ae543e7dd58aeb621ab12c2f8ff782ba1eb6bd14.hQwocwAPsTAe-H6LdsVzlNwD8xVNV5urYn0amNuMims+ hash: v1.k794b7964.060aa6d0e43e10d3e11be5dcdef9cf2c862626b1067c6ceac05521c1d0d812ef.8P7_SAPDqdBcrXL6etjgV00JBGbt5xhgOE8Kul4F2Kwscenes-app-dashboards-add-insight-to-dashboard-modal--empty--dark:- hash: v1.k794b7964.aa907ef6ddbe506e4f06718a3b5d6ca0404c3813ca43a37fe231ed5f61cc0be6.RjW449wpFHeHHrcX9oYJdsbClM0jQe_u60RctdrEngs+ hash: v1.k794b7964.9e359f61467d8e8e1d80092eeda85ac81c1d9e9c63a171ee77425a52754eb178.AB_bBjT3Ilih4Lcj8JoM0iNPLN1ZaAeuzK3CL8vvd_Qscenes-app-dashboards-add-insight-to-dashboard-modal--empty--light:- hash: v1.k794b7964.43bf0a36745e99ae818f7e2c0f95aab3a781a0234e753298ec84f4c59d6d7b1c.p13KuOgGQA1FsokVeY9_WAamMMxcy2_imxKGgpi9_n8+ hash: v1.k794b7964.0319bdda88b64de488a6e007762d405d6873c97e6242d7be32df31df132794f9.g4cTN-1xKU0SS0n2LZVGvJ_7vLnroklx0EHNpSO0fFYscenes-app-dashboards-add-insight-to-dashboard-modal--with-more-insight-types--dark:- hash: v1.k794b7964.4eca968e2dd444fc7655447743d2b1bda9f364a928859483f7394c2a5b133b90.4fVvAuwkI4wnSiUgdm7MNdgzgtw751gS8w-cU-5v5M0+ hash: v1.k794b7964.b66ef4b51786f97c3617eda4de30d8df9ae510e3c2500cdea6191e8d43cc2abb.D1SYnxLrBkYKaCgAWGaQcSRf06GWupk5WKKYlhYcmkgscenes-app-dashboards-add-insight-to-dashboard-modal--with-more-insight-types--light:- hash: v1.k794b7964.930a73bcd91cb8060b3d295a5d81daf4e70c11e42a911f7a9a7de3711859a584.V0bV4suGlfdKrUt3XnqWHbmuSUE1XvI5R2RrJdkzzco+ hash: v1.k794b7964.4ef219951b92111c3fc499c7dbe954d6b1cfe09c749aaab3d26a37ea4c2a2265.yyrM6bXPOXJyIz6pOYOn0hZyC-vXgKbEJ1YIRl2iSKAscenes-app-dashboards-templates-dashboard-template-copy--default--dark:hash: v1.k794b7964.2f8db77fd22c2a09feaba5cd2f82aba277bdfac31f34cae43c3015e1891c9dea.TKorWc2TMRapf91aSM5RBEDWrK_fK3KIb4xNKuXgR4kscenes-app-dashboards-templates-dashboard-template-copy--default--light:@@ -5093,13 +5093,13 @@ snapshots:scenes-app-data-management-actions--action--light:hash: v1.k794b7964.b875be9f97d4db11525b324773a87f0139811ba4c1228fd43eef8fec2c6b2675.4R2RUM_ne5xGnhsNkAvLJGP60tXEEjWOqzYDcKuU6rkscenes-app-data-management-actions--actions-list--dark:- hash: v1.k794b7964.6a14c911a274eeeef4e4f4af38d518cd87d9459945baa398238e8facc186ae7a.FDf8jijdhkb65kyhkl4bkS8dP7mOF2omZRvFb7eAG6w+ hash: v1.k794b7964.3df357816c12adb98c12e49f1160c44346cc936ca768e4f00315d0a114f02fa8.I0Kh41k1IYOwKBydxs_2_zyH0AVlmfEmpum5dtbOdQAscenes-app-data-management-actions--actions-list--light:- hash: v1.k794b7964.14e718bd7ec5ddc88c5db208d371b969d989d6324c9d1d759955c9b6f494be62._8DosLyYzpQTPy3u2aHflP6mUHwDx42Y5ENfRp9cmoI+ hash: v1.k794b7964.b7b4060e0e3d5042826f481a9fe45bf62900b29914e052387067881348152c8d.dCbo_VqHSm2Vp1klUk1s9YHdSgwWgv5Mgf_FCry_zsQscenes-app-data-management-actions--new-action--dark:- hash: v1.k794b7964.ea78dcf46cd30895c0bcfdb8a2cdf5933ca67e73b8f3c23779390052cbebb6f8.5HCse2u03b0Mk3bRWBuj79pEi8O-4Vggr3Tf9r-kIU4+ hash: v1.k794b7964.6c56304f555ef891a7340e950bff2dd800fb2228a977860efc1a20942cb8bdc9.tgE_Ecz0b4keY2wjMwVbxD4FOR8dy72xhU7eTRCKg_4scenes-app-data-management-actions--new-action--light:- hash: v1.k794b7964.4ca36b6789fb820d7c3b93187dbf1b948c302fab00c51768cd7bc71ccaa35ede.-mzuf7DtZ9Brg_Ld5CNk3VhaYTD8-swRXQHb9nvwGDE+ hash: v1.k794b7964.f0415140ec8bf33a52e933c69c6d3206e1f59e7e8ebbc2a2c3f6e6d5506362da.MgPpETyhpRQhgZG7JcafPF4ro4VUjtM1MLHPWgQ2avAscenes-app-data-management-actions--screen-action--dark:hash: v1.k794b7964.526e80b58d5ecbfa406858cbc58244c7f2c5e9b4fa96355610d5bf4f04589af3.hW-FR7PpVsnU1GjO2ctE8z3OsAI3ymzUclW_qNoMqq8scenes-app-data-management-actions--screen-action--light:@@ -5273,13 +5273,13 @@ snapshots:scenes-app-error-project-unavailable--no-selectable-projects--light:hash: v1.k794b7964.4074c66e2c5048cf0574b95b4b53a81601be50bc733531b969eae030c6ced45d.xc0jzMCgimBXCdpIGauT6qHYv4aZP669O9mBqXnH7TUscenes-app-errortracking--group-page--dark:- hash: v1.k794b7964.351019f4dfa01f84212594077f2c058641353476698dbf687ced918e9e3ca339.0DU6yxui3d27ACY-cUcTMBIOveH1PP1bV__VFhft-3M+ hash: v1.k794b7964.7e67befdb8dada7f0e02113547a38d2e5f7f183a2b2d8eb7ae4123442e14bd3f.96B3DDB1bsMGGZgwBNW6ATO6vyO7P0a7FfubVa-Nr_kscenes-app-errortracking--group-page--light:- hash: v1.k794b7964.74804fafde4c99817b6e031d8d3e145a8ea41136d806e19729ff4ccda2f6f6b0.yaNK2q2P3I9hSRJ1hCWOPktnWq77lKCnABOzF6ruSEc+ hash: v1.k794b7964.227d0f16942dd4b20b52aa6666ea6928ff96c60c4a7e33796ee36345954db46e.bm-vOVBWxHjOOMvmzw1NNY4OjphU_M0tlSVd3aprFJ8scenes-app-errortracking--list-page--dark:- hash: v1.k794b7964.cad679e7808b1892ea75f17e3acc96d389aedadacbec0cb64d09a48d15733c7f.AIVJGBYr4wB8Ns0WdbELfAGCQbpB8ETQYjSv6MDYEo4+ hash: v1.k794b7964.3cfce94709e98f29607e61baa41e6e937448aadb6250edbc3961a363bd465866.iDBuxkMC7LXavT_UvKnHP2hhI7maCDps2X6DqqU8LPsscenes-app-errortracking--list-page--light:- hash: v1.k794b7964.5e83ec33eb7e6c06022dde7b3e47101133ad63c229b2ad79cd0a5adaf7ddc5ba.3bFPfKOmzxGmn-n09ABAvAffbzLvxWJTTHnYnhxuALk+ hash: v1.k794b7964.3454ca39854310cfb1aa93ddf1d5f76b116ad05573b3910205626a27f1f453c5.oqR1zCAsTc1BlZNToP3tBsKR_p6jooTvX1NmnMc96DYscenes-app-events--event-explorer--dark:hash: v1.k794b7964.255bb3a04f42d5dc5922480078098194199f9ab2654ef6923d7e725ff7968ba1.NqAiq7rAZkXlnjCi3_nZCTo3qi16OjXPDyE7wa8epHYscenes-app-events--event-explorer--light:@@ -5329,45 +5329,45 @@ snapshots:scenes-app-experiments--experiment-with-ratio-metric--light:hash: v1.k794b7964.f6c8e0599290ef954d2e9fe6a2ce2ca07ec551dacd64c28f92ab301a8fbef7f1.RRFDWLVqvSkgpfxYm7PX8kH36RjG8AdQ2sXfSR5UpIIscenes-app-experiments--experiments--dark:- hash: v1.k794b7964.d359ae42a3424ffa55995455003617add8c164712aee0db6f85639d9745b938d.NUXv2bPuBdcPxfyQG3A-L0Y0SZ-GeOl3Yrj40ZCrzvo+ hash: v1.k794b7964.a50654de9147c17056175db80583293c70f5f964cebf7578198472488e649c55.1ohM3qW1wo7GGahOsMAtoq7tC0TpMS63-cOS8xfkn0wscenes-app-experiments--experiments--light:- hash: v1.k794b7964.c0734f95a7f4d2780fc4537af7e7d3de39dc7c1536e0d834e111c88cf76398a3.Ne0BjhsC4DpPVp1gu4aaBe7W5Lgt84G7EtaDXSullCc+ hash: v1.k794b7964.8f0449730538b239121cabe7b50f1da57e0155432bebd5ff59e2100e7d3935dd.wYRvwkvBQnkjRxoAi3H8S_xiGV8KJ1tdblPSRd5_ayUscenes-app-feature-flags--edit-encrypted-remote-config-feature-flag--dark:- hash: v1.k794b7964.a6b49f783d0c05d87963869a6b3273c368023135c3049bc3a661cd65a1678542.vcTLfQCSitKzzUbEAqX5CRuUWN87Ua8ibqyE5metpJw+ hash: v1.k794b7964.050c4ecb91b1c5710c4912cb808f8c499c2f4f2fdc29360e820a333a727650ad.kyngiSowKlo7__zMBBFKkl0NzuMu4oEtFH52LhP6PSUscenes-app-feature-flags--edit-encrypted-remote-config-feature-flag--light:- hash: v1.k794b7964.2d38fc4c3183ee8a02bfce8c6a9eed8e9fa6b3089a10019cb17867a7a3911a8d.vXXYgiyI0SQuN7dc4eYxjZ2fecPDFzpJLr-F_llHe0o+ hash: v1.k794b7964.4fe86cdca95ff52b4568fd846f355166e86052541e4a0d3bb5d2a39c61c2253d.MSxta4CKcGmCWmOGdkMu9Jvn0u7bzz8HHPHADEV17eEscenes-app-feature-flags--edit-feature-flag--dark:- hash: v1.k794b7964.81e4a07a2b6cae30d4f818dbbe54e5cd5a26a263854bd7a177ed245b0e50a6d6.VyilroDupyNQUN9QXu1X0lvrdf2UuGOGhaEaPcZqM6Q+ hash: v1.k794b7964.70dba7de37df41af09e7615dc49f8a0c6c4061125819d16177b25b1e6b6adc36.z86OJA8BickclvaPiZZT4pH5CwlcUKFhvu4kQvoZnBoscenes-app-feature-flags--edit-feature-flag--light:- hash: v1.k794b7964.34195fe170ac94963edb5cafe7f8e5ae72f7539e4818cff92815b415f042082c.kplIc2bsQfIokkXh4d7ZQbu15uPdky0ZXwycsIrwX78+ hash: v1.k794b7964.98bb5e8b0ffd7f02f493b5cda9b944b140d724b1d55c1073838e3bf6a1bf3353.2RbN0ikZGmy0f2TO9Z6MhazWBKfLja-L9i0HNgYo6YUscenes-app-feature-flags--edit-multi-variate-feature-flag--dark:- hash: v1.k794b7964.977c2009fd5de2579f0dbf24d41e2d450b4bea98971b8823617b3b2614f72fb6.OGJP4mCKfVkFyjFdX_uhcZ3mQqVbK9u7gEYW7RZA-EA+ hash: v1.k794b7964.d7b463e84629228e3cefb8279eb56e391556043e3d0c513d6f1bbfe393f8668f.tYTGdhTQBZhMANJAMZjnv-HgveG-DRufI8U0Xvqe9xUscenes-app-feature-flags--edit-multi-variate-feature-flag--light:- hash: v1.k794b7964.a12e6c7ca6f1d704063908b2ca71ecae8a0e30411d6de77431d513488cad6e89.tMbL5NI4HivFAGYfugwyJ1MM1v77HdYWoyOYtAcB4Es+ hash: v1.k794b7964.b16df874aba40f7e6c0c9c878a127af35508497a3a246d050f1bd320c6533882.hTSUFCOT-4cgrCDcBK5Y1c_Qlf79yqRD2dxM2PX9aO8scenes-app-feature-flags--edit-remote-config-feature-flag--dark:- hash: v1.k794b7964.908e1b828fbe003baf0b5acc88dec6d318d7e2ee676eb16628b70f61418d12d8.JIOJS_5MwkfSDHECNlVYcD1YPzX4FesxDFrNF9T3Nns+ hash: v1.k794b7964.3cc18c13902bc4b11088743ee92f0cd162bc6099d1db88056dfe212960317745.EjkU5D9K476Jp_0iR03GA2-iPCfNbfP_zhq1-ATq2vgscenes-app-feature-flags--edit-remote-config-feature-flag--light:- hash: v1.k794b7964.1960b35293acf15bf2309103ae87146a389026c41d9d18e9859ca541557f0d2c.C8HtqN3zIRdxDu49CHn8s-_-2xQeThJvtVOw1vQCfiw+ hash: v1.k794b7964.e9db9e10b420ea5f0f62193f1bcad7d94255965e38c5c1b8f4fc4b35faecb4ee.3jA8LZEgC_MPGMu3naCbB1poCb-VaR2JNqq0Ndlm8ukscenes-app-feature-flags--feature-flag-not-found--dark:- hash: v1.k794b7964.36bbf6870a8070c1b5284a2bba1b659324f1986f1af18220b97d0ef22af5b314.0fdhZmbn_ck5kOOvzOzuMeg6oFHGAonFrOQ037BzwCU+ hash: v1.k794b7964.4f1e063fd0ea193507fc461100835138a210c677172cf02c4e6a1d3ca85053af.QLMBnXZd8GFY-ERfzWmRUW-eFybjMBVuSeT9PLkOnzIscenes-app-feature-flags--feature-flag-not-found--light:- hash: v1.k794b7964.e784cb2f06f9bfcbc6743df7815cbf7c815da053481b08baecb4a088910f3afa.9OxM372yUO63hbW3CfWOXwnUJD3dTv8EKpc-J3i9HOo+ hash: v1.k794b7964.9760899dc54ed1457b2f2790151da4dced7ce03ba2db211fc8987584331225f7.NwLOFpddIBI2MKFCF_nA7ICbR7JCJISgydgqg4pdPWgscenes-app-feature-flags--feature-flags-list--dark:- hash: v1.k794b7964.3f23a54039cdade8c62080218d291b47f344bc764d2dd7bcf5c3d26f5ed51b9f.j68vdWeofv2VyAvWB3LzVuHs9-rVBMODGn23jOiZ-lM+ hash: v1.k794b7964.13fb0f43fbcae25431f9bb7ac47efe15f4ef95bf0e6d0a5ee0bf8d1070a5c7f7.n2t1CrENhCzJAQ8koXopBtMtE4gHfqcbmzDBvKAvmDcscenes-app-feature-flags--feature-flags-list--light:- hash: v1.k794b7964.64c7a3e171d6cf048477a6326b3a4fe4576e41fb57f1ee7e8b7f73a4ee5e8539.q1bL9l-RlDIBQL-O-aT_mmhBCAj28y5AgUSHt3ZG62I+ hash: v1.k794b7964.9514c36e3f35ae9feda46136617d8bb52cb083f81a1b7e5432aac5d5c245e03c.SRR7_DyZYJHRoid6dmdQM2dvc9hTSJjyt6mrbl-pLNoscenes-app-feature-flags--new-feature-flag--dark:- hash: v1.k794b7964.fbe1869305bc7cb75866454247654b1bec61b46ca26ac6376e9052d32b6008d9.kQNTnuUjC2fI5L50CuYD4L-pvJjmSa5J3sIlkPGj8F4+ hash: v1.k794b7964.8032733b1d16dfe3ec0ce457da912ba0d79d595e0eab74e17c3c0c96cb7554e0.NQjsJmK4WZqa0a3vQGMSR9T4lMtUAGQ89dwiMgnAnjkscenes-app-feature-flags--new-feature-flag--light:- hash: v1.k794b7964.428e115f0cdaf9187601fd0cded2264fe1a2b0ad961d96725363111cbed14080.zGGEmRNDB5cmA4WOBvo4te_t74JEF4mqyh6uBAdvt1Y+ hash: v1.k794b7964.727ad87e0926fee11742fcb9a3925cd8247cee3136c882319043b31ce2bec519.IMOClX-wgcfkL3mCHym-EwK4bPMzFWfC-Q1jS60AnR0scenes-app-feature-flags--new-multivariate-flag-variant-key-error--dark:- hash: v1.k794b7964.6bf331c87f3e9992a61d1ab0de73f4d8d63e934babe13dcb86785671eabe1ff6.yoyUCLmuP9Zkaoxs_vv-pxwjAOGWeGimjduIvd6tVXE+ hash: v1.k794b7964.f61edcc3faee1780859338b411e5a411045cd9cdffc9c4e7c57bd36cfb688fb4.ii2nAjS44zy4OMsAN43Rv69G4pvsXrRjKX79RsLpoNsscenes-app-feature-flags--new-multivariate-flag-variant-key-error--light:- hash: v1.k794b7964.f0939cdee3029fff00d99ad5ce42ee9484f5524772b8e00406bff5a021363c17.E9A9rajD-mTXy6F-rSk_XnLmArs_P-P5mMpajr1jLks+ hash: v1.k794b7964.6bfb5fb749c3dde83f973e0ad06e23ee9b7eb2f0168226631ee34dbe849ded0a.BC-syt4reSnhcPZ8PpivN5xAlcLFqTAuQu9WDSElsIAscenes-app-feature-flags--new-remote-config-flag-payload-error--dark:- hash: v1.k794b7964.1af099f2e9f8811e94353c341bcf179757201966841c188ec9e81de48dab7a0b.VbS43TXKb_YBiGph4kYhjf-kfrelIfJT7eUthuLvLhY+ hash: v1.k794b7964.8658214f05277d1993c4f3c3e2e26d2f7a1be4352cc9efd6459b641fe429ba61.tr0v5RTq0pkpUCq4bXSlwLYhHAwf8S3Xtn0gLOgli0Qscenes-app-feature-flags--new-remote-config-flag-payload-error--light:- hash: v1.k794b7964.b9a810e0ef7fd0381418549f7faa7e08fdbea09e2e39adb17def4c30b32f33bc.PewDd2-CK0EyzOQTvSoDWW63tiGlbkAcle_Eq_ElSME+ hash: v1.k794b7964.486a154f8e9065c1c617360149bbcfd4c32f7944eb8ecbc00108821608778900.q-nY4Dq5KNrxKwiH8vx1cTyjXUShFFYBg-r6JRDKyL8scenes-app-feature-flags-code-examples--code-instructions-node-with-group-multivariate-flag-local-evaluation--dark:hash: v1.k794b7964.3ce50a6c3abbe37a320a41b9b595595f1f563ee2810f7039c1077de0de2ce541.NshMoutmoo5MZNYuOO7ESAXGz5weprcVLeWqVRJevZAscenes-app-feature-flags-code-examples--code-instructions-node-with-group-multivariate-flag-local-evaluation--light:@@ -5397,17 +5397,17 @@ snapshots:scenes-app-feature-flags-new-feature-flag-menu--default--light:hash: v1.k794b7964.bfcbeb0d06609aef5d276abf56f68a8eff55e1af39d3c75242174b8f5d186fec.7U4_55smrIoKo5bmRufGypEwJgsoANeqVG4RLP2KCi4scenes-app-features--features-list--dark:- hash: v1.k794b7964.2c64f006c548845563bed43fbdf4ee14771c796fc6181bea605e21e8aa714ca0.6TjqBwyxaGbhatHoOs9KHZ6XnpLvo1Ikl09A4El-Lug+ hash: v1.k794b7964.1be2a38a92e9b54f7bdef833118170fee241cbbf2a396e82d02ddd3d2f16d7bd.0MjTMz7QOfSpJbE58FFadxWCt_hd1QXn9gtqUFt121Escenes-app-features--features-list--light:- hash: v1.k794b7964.4e07b7f20df23cb1745250f9177b8311148c6ff320bbbeef66a9100f30d1c7a5.6N4k3JBVtDXuRzlERPbNXXZaJrf6sCOSMJ7d3mI1JpI+ hash: v1.k794b7964.61eada945ed1c854c8f0009d6560daa96efb985fe630316f2f63961cff7b8190.NEtGsHXrH9fGnJlosK-fFp4u0d6NOugkioPQGFC3gr0scenes-app-features--new-feature-flag--dark:- hash: v1.k794b7964.9d5852cb314a73dd5729c6ce53221f4d3c80ebad836515d78b44e15e9fe464eb.pE2syBUHaxf7PfelZzneb3J0FwWBaNWgHpIxjAypDI0+ hash: v1.k794b7964.b1846e17139596103253be75e0ab71b95d69f6eae10c470df0da3d43d44ce041.z---51wmb1uDOIBpVUbbfhn7dGLiN4tlgXH4ua2uE1Qscenes-app-features--new-feature-flag--light:- hash: v1.k794b7964.84e99f947e91c331aba7bf78cce0286c718a4de6d7b79bf50a4e87c80122d853.ytFqUfjmSPdHh53TES03BswHg-afidpTyIstzjkDU6I+ hash: v1.k794b7964.230a93c01a6c178543c426df88a04927cdc8e6d60d307ad790566809fc6e9cde.kiyRAAB5O4vvOFbCFZyA6isUDNG55rzfa2x4LJ1SOk0scenes-app-features--not-found-early-access--dark:- hash: v1.k794b7964.07bfe68457c924e3ca3ce03ba674e9720c68ba7037beab06a3674ea8f35f00e6.ksHyQaUw1dCjNJhPa-2BV6sqUBc7cDg29tExvg09gxA+ hash: v1.k794b7964.ab288acb1f11af555c044c0e7173182c5bfa1109d661d9dcdd5a28e2b7d80d07.uffgD85_Sxv5tle6yE4LHHCQaRlyIKE9-clakD9nRf4scenes-app-features--not-found-early-access--light:- hash: v1.k794b7964.98cc42ac8e8798a535504945725d2bf074d5223b54d07a31eb42290e82ff51a4.nL9oGIYoHcp0fJUXAtjG1GMPFvr-wGp_7-tjXSoOROo+ hash: v1.k794b7964.e5a33b995d7b693110cac8020f605efd684575b02a578b9b477aedde7f5c989d.yQJOlsXDjXREbomSZxosMYRLH6SdhjgA2A0xLQ9Gx6gscenes-app-health-tables--data-modeling-default--dark:hash: v1.k794b7964.f9c8cff2d630bcf2406cfe269fcc2f09e38cf9b785315fd96b35c703f470860f.-Buocih_hRoC0Sz36PBlfkif31VzG6xtZNdOds0o96Qscenes-app-health-tables--data-modeling-default--light:@@ -5685,9 +5685,9 @@ snapshots:scenes-app-insights-funnels--funnel-left-to-right-edit--light:hash: v1.k794b7964.ef6ff8fcfe19c020b07a66ccce3e93aa11056c535ab152b848e89e6b7406dba2.s1QJ4bkZUJlA9qwl3ss9ZHHfPY-OfGZSY6yECXKzoLgscenes-app-insights-funnels--funnel-left-to-right-edit-viewports--medium--dark:- hash: v1.k794b7964.a19c2dc89cb8873e8d184493709ff43f6f2fb078fbe833f7293f8dd52ec012ea.hlRoXvfjoSfTDzsV2QSQ3jer3fiZqfVc6lSZrsnEuHk+ hash: v1.k794b7964.89fdfcc51f8471de4c13f9858bb60874909cf33539b456755dc5e61af26b374f.e66Yjt-7kjXzCYcHEH3nTiv-uFgg-wi4eRrokFsPjQgscenes-app-insights-funnels--funnel-left-to-right-edit-viewports--medium--light:- hash: v1.k794b7964.1dd3425e658b907855610a715527654f68a242ed0c1427803dcf4d2289806fed.xd6ZnWiKWTOAglDDiM771sUAuByJ76icZNkrOre_orA+ hash: v1.k794b7964.91904e00072f6ee9a2f12f4bf2892a0e9a7782f46c04734c0b1f0e14baa66396.wqlNoRGwk3Wi8pOi_7jmX-sAfJgrQdR2ZO9KHW23K0Escenes-app-insights-funnels--funnel-left-to-right-edit-viewports--superwide--dark:hash: v1.k794b7964.a9771cd7dc958b4b77baee5c409c2abf6ea85f3bba61aead37ae749339c0727f.XNZOfKq7d7uxBPQCnxVyVxSXp9jUPh8fIC0AlmHwK3sscenes-app-insights-funnels--funnel-left-to-right-edit-viewports--superwide--light:@@ -6113,29 +6113,29 @@ snapshots:scenes-app-oauth-authorize--with-scopes--light:hash: v1.k794b7964.ac46f9759407da7746f7016465807c26ed7cb2eb348841a43839f7d2a510f41e.wXFWrh0hHZfhAwy2ighYU5w_aj1RY8_oUsQmxZLqmPwscenes-app-people-cohorts--cohort-edit-dynamic--dark:- hash: v1.k794b7964.b2c0b065af8c58ca547c691cc880221f64d0ac70a103bf0e47efada7300527f5.xrfnDLtIQxSP-8Ga0knhjf6CHtW0ZfBXqgI2god2ZlE+ hash: v1.k794b7964.b0f3319114bbc5af0e1e27eb681594e6886dc6b9946f8a5fb7d4260352f3a122.VvrO-twbR7KhCOG4A0jNMVx1sxu-h_sbExVWHJ4Ec2Yscenes-app-people-cohorts--cohort-edit-dynamic--light:- hash: v1.k794b7964.ef269f27ee087e74dd9c08f47224c3323ffb8b2819bbd23cd61edeaa21d521bc.Am-fJN-N4gi15GqtSPYpO1TLaHN9fRJPi_7iTJzoUl0+ hash: v1.k794b7964.70089b9341e0d86213bd9a00cac284c61752d6a0a8fc99146c0234bc72bc2282.qvS-NeUsWTJZ44NmTc5x_co1VNNuR3xoBOpbGOeadZ0scenes-app-people-cohorts--cohort-edit-static--dark:- hash: v1.k794b7964.2ec9bdfe13dc355444a9a23ac92938cf91b2121b43360f0722e774ab745ef70b.qGM0lVIiDK6g5_o57UK69X9MJzInGQJKj5EkH1UijK8+ hash: v1.k794b7964.37fecdec7927caea76c00f50b24aa143185b6ab74451a7a819624113d9554725.kBV7dsmVPuwLol4al7MOJVFyqNwb3zWWo1dWKnxpYiYscenes-app-people-cohorts--cohort-edit-static--light:- hash: v1.k794b7964.fb6d6c9874a736f201686a0f406b1d559662fffce609b3846909cc54141a4c05.DZYJw5qSU62bhe5c0Ce6f1fFz4eZs1HD71xxPFcWx3g+ hash: v1.k794b7964.842229c917f7066474b99e4134ccf776bf2705de5a1ed9819399ea45279241d2.wGTV7Bm1bNgRLnyqnfhCGCAA2D5rOuqv2DEw-tRJbngscenes-app-people-cohorts--cohort-new--dark:- hash: v1.k794b7964.cb074ebc2d19a4eda6359f906ac15fe77f9288c22c05c83ac7fad5a3c80e2b17.wgIcXrYkfxrMpMa9yAju_xyCmJhFIzjRmvauzLbcW4I+ hash: v1.k794b7964.1176596a0511358d6e95ad8d6bbf08f60bd65c4e93c6f0117be551a459fc0a15.7ohEjDBHfkGdmuElgi7EKzOXFlqr_ere_ehL-WdKGpQscenes-app-people-cohorts--cohort-new--light:- hash: v1.k794b7964.610d9c9a6a5dae7baf85dfcfbe32f93079c6d47839fb4c03b147883de2e09eb3.hoJ6N_B_6FM8mSk-wAA8t583zPSQD1DMexI2Tg3bfFI+ hash: v1.k794b7964.f618d885593b47923368f5dcc22ae0a9a2871a2ebc7c55e56b0722d73218faf0.XHSESrpGNr3guqo7T2AZJyKmNj_bMJscVmz53fTaLaMscenes-app-people-cohorts--cohorts-empty--dark:- hash: v1.k794b7964.08b6a9e6de36bddd760c199f83e5531cf1fec892a7b20914e3b487960ee8b12f._MWaeA0-vH7xwuIa8yFuSW7WuIDwn_yKOIf5hIwhEqQ+ hash: v1.k794b7964.47c98966bf5f8daad0526b870cffc0e7c5d72d913b85c7294f63e0d44011087a.AEoGYiq7oXKP2y8cHce4I-td_anoLjBfo-2xwiYSpS0scenes-app-people-cohorts--cohorts-empty--light:- hash: v1.k794b7964.28a6d26c679ef86512e37eb2df73eae080db28bf6b329d3e65a9620116bfac20.9ACuHRjwq0fo8e0GBZBgoIpv-foio44pHU6nzXZQh9o+ hash: v1.k794b7964.e81b8007087d99ad0f065730dbf8683ecbead8dda932f32ceabbad4d10c7f48e.0_3INxtfJDuybmcLcNDz0DUhiqnEwgd6vud-SQnzNkIscenes-app-people-cohorts--cohorts-list--dark:- hash: v1.k794b7964.7ca524b0d9ee30919b57d3cac63694dbb124e157334178e69ae4bd80b8f39c07.YayxBoHCN9yIj-mODNTW4l2GHJUfD_P2TeKO_H94BRM+ hash: v1.k794b7964.8ae9231738320fb2db72af59b014fd0209b7e9984b798fee9e2532111a91c884.loixDwXmd4jhKsH6xortgp9vzG7kLSuVwmdVZkD0Qukscenes-app-people-cohorts--cohorts-list--light:- hash: v1.k794b7964.dc39d8622f99a7dcdfff8ca1b3e319d86b3ed1be45f183c1195c3ca2f2366029.IvHrDIFHXGGBdiBlrS29KxiNX2BrciN7aOYDlZVx6Tk+ hash: v1.k794b7964.4346e29d49ed63ce8b33f6e8277fcb8f80303a562483772da5597d9f3e22a10c.XUIUHvFWpWIRGg3udI1ejcDIABoknBuVa_l-HFQqEeUscenes-app-people-cohorts--cohorts-with-data--dark:- hash: v1.k794b7964.bccf17cea3547da2101f4dc273bb091256cedd4b011b9f9294cd55da29f4a10d.REA3FI_TrYv6OmfcSGpYrD_SRDU35o_r5FN3WDvXgzY+ hash: v1.k794b7964.5b11dfd13e88408d0f09e5608964e78d78c5fb409b5247496f1b0da307ea33bd.5yhCJ8dBG2uoUw54-enU8Kf7eMCQrwjbcGaLpBdtcRMscenes-app-people-cohorts--cohorts-with-data--light:- hash: v1.k794b7964.c6752087b2c182e5070eeb0c09868cc5dfc56f8eb7b47d0749492543302dda0c.DTXS-7h0iEwmXqHsCyV5xl9cWLGMvgf5JiKfPMbdMnE+ hash: v1.k794b7964.96bf0c3adf9243a10e7799a6148bcb0b1e29a382afd4bb92fa7f51cd73ab670c.kJPRATBJmZOVHdzGpOOYnoJQPeB3z1WCeq684IQ-4rwscenes-app-people-cohorts-add-person-to-cohort-modal--modal-empty--dark:hash: v1.k794b7964.0e7c2e4880cc75fd5e02d76e6b40af8e7a88699749ce3158d259e22db62c1099.u6-3QTQLt3wwgRT0MW7YD5uigCVQjBDCbZ-gON5gR34scenes-app-people-cohorts-add-person-to-cohort-modal--modal-empty--light:@@ -6396,30 +6396,6 @@ snapshots:hash: v1.k794b7964.05e7bbc357febe22dfaa9241cb67690c18d9a35be02078cd9fa93c3c6f448159.nJY9sqBszcQpgYRsJoUuBns50rA3wUj-QZqbf7NZbOQscenes-app-project-homepage--project-homepage--light:hash: v1.k794b7964.853928313ecadc1d9daf77ddf3779f4dc42c14853b28ed9bb91dffeb5a751bbf.knbN_bMGgzgR-EoNShaqPQYhnEiWBS7_pLFWcxnka7c- scenes-app-promoted-product--control-no-product--dark:- hash: v1.k794b7964.3b25fca077ac0cc807ec471f615c94ef53b7273dea61017ca102b7c18aaaaef7.A7YCfdN3WKN3jg-PvXfWQ8DwNGDfWfWDs4a8aP5t3nc- scenes-app-promoted-product--control-no-product--light:- hash: v1.k794b7964.91546265166e73a713e1c95fae1b19d0fa6832b534fb5bf1129db0ac3a64f632.3PLnKRylgeX4xI6U4_afIIfRlnzJBrQlr7n2Yt_IRFY- scenes-app-promoted-product--control-with-product--dark:- hash: v1.k794b7964.3b25fca077ac0cc807ec471f615c94ef53b7273dea61017ca102b7c18aaaaef7.AzVJy2LeSChV_lNh2-a0n3aPUEg5XvLZF4gGX4hqxCo- scenes-app-promoted-product--control-with-product--light:- hash: v1.k794b7964.7cb1c2bd9b90795d6b9f972485097c753662232ae2913a62127ece3fbfe32896.kTCukuFnAjzfTmKCJ5VWoDmhQCzCAtB4ZmO17lAk0hM- scenes-app-promoted-product--intent-no-product--dark:- hash: v1.k794b7964.3b90c051ab58859c3f29ef6e3bad8c5334ad03f3b2e90953716e11eb3e801067.9JD9NrDzSaDwXWDRcm-NTYoXCPrrzcs9wUCXKjKrFIc- scenes-app-promoted-product--intent-no-product--light:- hash: v1.k794b7964.38b748ef36202767bd8ec460d65727fdc542f55689103864040ddd7ae975cb7d.XKID5NafvWNZiwpEQjxqQOrqnozOxfxR-39JQJ1YIXo- scenes-app-promoted-product--intent-plus-no-product--dark:- hash: v1.k794b7964.28647750dad09e9f56eaa1cc359e9984842595ee36c88654819f2b8562dc537e.sVVGIbJvoX3wjOnyA_727aZ7cJRDr5_t5EGvUbrEc38- scenes-app-promoted-product--intent-plus-no-product--light:- hash: v1.k794b7964.5b49322fc2487406ccbb1a857bc4f42808d8275e007a3b5ff7330efc514050a9.jI3XYvY4L5opXHulCPGdrzaHQBRysUIN2uoTnwrQnLQ- scenes-app-promoted-product--intent-plus-with-product--dark:- hash: v1.k794b7964.06fcf35f764644efecde6c1fc995b28f8e93ed8e4f0906215f3ecc81d67aa41a.iExzX_hgUR3pBFNkqURRNfxJ3-MhZWh-KbtixBU9CZI- scenes-app-promoted-product--intent-plus-with-product--light:- hash: v1.k794b7964.155640024eacb4f5cfc8641e8a93df0c445be8c5ec134dad882affdbff10d441.OjqFI4LoZsjtX31mo9PaWxtvu1WuEkNRXTbz1SKkziw- scenes-app-promoted-product--intent-with-product--dark:- hash: v1.k794b7964.a96bf879923bbc50e0c0a8a5fd4c51247ba600a88be9f6f59ffc0cc3355a49d2.FaiZyTP77YnTIxNb61oBpo64DxT9q-nm8jKgEviq08M- scenes-app-promoted-product--intent-with-product--light:- hash: v1.k794b7964.a520d81ca3c66ae61e8fa10602ed5f40da3d97bee4efd9daf03009c238a8b0dc.Ruf-wJ_f_UjycVlKd7vE_z2t-r_SY8cC5bO-NSR0Ao4scenes-app-replay-vision--scanners-list--dark:hash: v1.k794b7964.cdbaba1e093dfe95157dbe1c8cbf1e3af2baaa66ab11c4a2cb1be4fd1eb26ff2.Z4y8sI43S5zMFJJEw6ib2VR2eD-_-ygh2_nQ2pKG_k8scenes-app-replay-vision--scanners-list--light:@@ -6457,17 +6433,17 @@ snapshots:scenes-app-revenue-analytics-onboarding--onboarding-with-viewset-feature-flag--light:hash: v1.k794b7964.47bc7aaea343941c10f5c9fcc3c149f4d5860fc2bbb3f767840933e52e8f366f.BY14V-fscnhYoCzW0DK7Neuq1MWDPMCO-VuGFwGvbRAscenes-app-saved-insights--empty-state--dark:- hash: v1.k794b7964.d9a28724ad5645d1033048d2c27b23919d5c68ef4d78c4123268beff90b192a9.x0mJSb4AK7MKTPu2MtWTMV6O_YsgJ0KKa-LuM4No7qo+ hash: v1.k794b7964.8c95d7956adeb14e1e96f1aaa2fc1df5141d031d9ce13f3141837fd5989c525a.fiZL4tbDblKehW61trpa41taXKspTZ7_fzJcqYoHhpMscenes-app-saved-insights--empty-state--light:- hash: v1.k794b7964.d5fe438e568419b3923c8ad97eea236af87e9ad477fff0be166e1bef7e83f77e.uzRBLzMaiqrqHRZ2_O25bY3mqOC9DY7wbODkSnlxG60+ hash: v1.k794b7964.4b3349d5e7c733b060146e2a05245a32da55f6efee0580bd33d971c7ecb92052.W8CJb26PXnc25TzO89gXFenNhzen4Xs8Y9GxnsQfX3Escenes-app-saved-insights--list-view--dark:- hash: v1.k794b7964.f1ad5aaa8dabaefd9ac8900920c56eb029656d9bd570bf4edd25fb6c135d9e44.pfgonEC2aj4XbTFzo4VbAFE68EwPYux9GdsZ_fk_y78+ hash: v1.k794b7964.7f1014fd705699450a27b47db02b087f887a56e39f444a14f41e8fce8944ed4f.2eEXyEPalm4dFwCBQgW2aBoSKTj_fH1EkHfKtNeeGTIscenes-app-saved-insights--list-view--light:- hash: v1.k794b7964.84949542f060e8a4bb51b32c447be267827eefe820cb4fb64043bf816c8c5ffa.2A1ZaEwm2EE1w8Vq_2S87UR7FQ5Cv5UqYLE9xPF7CO4+ hash: v1.k794b7964.edfa30847c5168eccd66d3e8bc91e9b27b18a98dc9af234f300c258f78a29097.0PuTRgo9NqUk9j9cZniO8MKVepHXEZnEvHcWyHjlA4cscenes-app-saved-insights--search-results--dark:- hash: v1.k794b7964.497c4c623ad39c00e7222da92d036c2d3244dcc2a646b544e901f0cb76fc6769.R5MvpFQDADYd-3yCZYToSZIkYXvTD2M88dv__O_rLKY+ hash: v1.k794b7964.81a346efdce0fa2dfd748f1cc6cda2e4e764b82036e3e2b41c79c58c03c59cac.8ey2SMJLKSuRQe0N7Bm3nforeMiUikQev44B0JQzD8Iscenes-app-saved-insights--search-results--light:- hash: v1.k794b7964.2987eff3c77b7e9c3cd868a266843d2bdf810831df871c8633dbea916bf20ee0.8ckgttcb_kZYo5kDcebDA61TOfupN5W1Mqx6oTuKfmA+ hash: v1.k794b7964.5f3864deb92613027161e0bf774896f3ee70c6d007c2b43d4ab0673f7c957123.6XTX6oGeUGI2ULPlaIk_EpoiVyEKIZQ8YC0Te-C4lgsscenes-app-sessionattributionexplorer--session-attribution-explorer--dark:hash: v1.k794b7964.de73dd95fc63c967333c2d0caae609d6fb4d5c1dcd976397ca9541194ae9dfb1.Q4eLDuHYUsFUb8pTFD4Z10fXX_a0s_tSqKejQyNPTMMscenes-app-sessionattributionexplorer--session-attribution-explorer--light:@@ -6633,9 +6609,9 @@ snapshots:scenes-app-settings-user--settings-user-api-keys--light:hash: v1.k794b7964.9ed13c308512de59cf24896971ab2c0cefc9c73ed11ac9f771013379574fd92c.Br9Kji5snFAIrpj7Kjuvv46vCfLhawgk8AfyG2H2k2cscenes-app-settings-user--settings-user-customization--dark:- hash: v1.k794b7964.5371ecd319d77db1f45744a52e7f0fc1b7361873beb8fc45f21c60bdcc45841a.UKarIgh7oMxNnxIBvNmIexWcz1updtmoaopBLYW3FTw+ hash: v1.k794b7964.076d98fad8c9cd3744598b0af728f9dff5c56755d8e5f0359ad862962e6c38ab.ucQrUGf1WrWtQ-_AxU6xibubolGINN8oXGZsZilmMucscenes-app-settings-user--settings-user-customization--light:- hash: v1.k794b7964.cdf4b0d6ac4a86728ed6c9746884482d8a5a930ca0b244d0e3d2d12d5dbc389b.INvNz3tEZGMSU2eMbOaiTxavM7Tb5N2y-XP1FGjbp0o+ hash: v1.k794b7964.f3c9a4bc19ea8f1c90b3b20547f6b27edd08d2e13848cd6988e2505856f5c013.G2SVY5xYIxtMVuED2eKRbXL_QY4wR4CVEOwBvCr0Hn0scenes-app-settings-user--settings-user-danger-zone--dark:hash: v1.k794b7964.5fd4e997d34a4778652509e76543401e7b150a5afcd38fc8d2ff9cae90ba0889.j03y4Nf2EOj9bz3wvVsK3AS-_yLFoJz2sQ-sTXo2_-cscenes-app-settings-user--settings-user-danger-zone--light:@@ -6649,9 +6625,9 @@ snapshots:scenes-app-settings-user--settings-user-profile--light:hash: v1.k794b7964.e4738c59cb0a887733f0e1184ed95f6c1121d4957972271c62751879ed7d9905.iYs2mcf-aLhqJZPHK60Bt0lJHYdWpP21M3fC2kCoRIkscenes-app-sidepanels--side-panel-access-control--dark:- hash: v1.k794b7964.62c2c16a8f2c4f944f40f081d6fde727ab499ac113130b60463202c48f742703.OPukQrf9s8yZx85qIoSBAGnwquIjb6cqCR0_2EPbfYg+ hash: v1.k794b7964.dec9b36ad9f3b828fdb18dc8fc91b08408cc15b1ed77f1691d13b0e7955ce5d5.l0bXwB40F2G8da30oCrVbnWsfex0ufZS2EX1ZnGduBsscenes-app-sidepanels--side-panel-access-control--light:- hash: v1.k794b7964.7c872e0ef8c1507da6dd54992e7e064f37fda538d5a8eaf888e49cd6242783d4.1C61oDIumiPh-Cg53P_GLmlBXijkjtY_7WHTGGEcfdI+ hash: v1.k794b7964.8475bcefb4e4d309a6b9478de7303779623325b080b2918f7fb0414d13fa6064.fE1jfiTEwXAar7e1F7yindIwyXEqrCb9QgXvX5508JIscenes-app-sidepanels--side-panel-activity--dark:hash: v1.k794b7964.f16ec2a7ff2ed9182de7339f7bbe135fe5e0326dc21f1cd8ff07419e963eecc2.zvYo-dlLzoEWoeOS2oUVP-_w51HpyGU9dSxJUQnXewAscenes-app-sidepanels--side-panel-activity--light:@@ -6665,13 +6641,13 @@ snapshots:scenes-app-sidepanels--side-panel-exports--light:hash: v1.k794b7964.d56fe65904046c0359427aa9489e7200e48eb065ca9f5b6d5beb45d302cf6e88.zPVZOO_-sNivzbgPczeeVUPW7vEpLUC1OvfUZR1WO24scenes-app-sidepanels--side-panel-info--dark:- hash: v1.k794b7964.e8e777159135c8b1c798018d986b02310f4eddefb181bfbc2dbc65b49f5a8c9f.nPiYPLNvGvKi-B6BaD2-DScoc61cKXb9wHUEqbWVPDw+ hash: v1.k794b7964.dec9b36ad9f3b828fdb18dc8fc91b08408cc15b1ed77f1691d13b0e7955ce5d5.LOn8DcSuXrv74Ag3SgYmMjzOwyNKJaf5RMirFBXfgdsscenes-app-sidepanels--side-panel-info--light:- hash: v1.k794b7964.7c872e0ef8c1507da6dd54992e7e064f37fda538d5a8eaf888e49cd6242783d4.SkMrnzwVXobFilYbv9Ai__aldpdvGLc7DFB9g17biZ4+ hash: v1.k794b7964.8475bcefb4e4d309a6b9478de7303779623325b080b2918f7fb0414d13fa6064.s8cuCYI25RkuMsGiDblmvIXyzyJ6F1BjY5ZznGW2FDEscenes-app-sidepanels--side-panel-max--dark:- hash: v1.k794b7964.62c2c16a8f2c4f944f40f081d6fde727ab499ac113130b60463202c48f742703.vThsNW9sEE9lPXrhpI69hOylv3DSOa1VTwM3cX8W-eE+ hash: v1.k794b7964.a7b0971fab7fb78e0e7e5c44164489122f050bd7a114e71154d74e0134dad43b.NAGYEiXWB9I5aa5pj2zO8jwT8SplPsIjD1w43MoyOYYscenes-app-sidepanels--side-panel-max--light:- hash: v1.k794b7964.7c872e0ef8c1507da6dd54992e7e064f37fda538d5a8eaf888e49cd6242783d4.FO-nk_yA8BuwFBuzmnzb5o9Fp_ppNlqMs_iT_1CzTR4+ hash: v1.k794b7964.79066cf086db75cdee5b359f5e960457fef0c4aeedc9c7d6796fc71193a94518.aaqxW0_OucaewZjNVhtquFsdtRyYh6VP8GmlNMeLLDwscenes-app-sidepanels--side-panel-notebooks--dark:hash: v1.k794b7964.6d2b6b665b49d0b05becda713ab209665223aeb8b4059d1b939dfcb0ee5e9f05.X-V4e5AwbDSPZywv_HAVs6oIkn2XDhYXtjzXKRTdzTYscenes-app-sidepanels--side-panel-notebooks--light:diff --git a/frontend/src/generated/core/api.schemas.ts b/frontend/src/generated/core/api.schemas.tsindex f77a6c109fae..80d5c31db294 100644--- a/frontend/src/generated/core/api.schemas.ts+++ b/frontend/src/generated/core/api.schemas.ts@@ -2612,14 +2612,6 @@ export interface PatchedProjectBackwardCompatApi {web_analytics_pre_aggregated_tables_enabled?: boolean | null}-export interface PromotedProductIntentApi {- /**- * The product key the team selected as their primary product during onboarding (e.g. `session_replay`, `web_analytics`, `product_analytics`), or `null` if no primary onboarding product intent has been captured for this team.- * @nullable- */- product_key: string | null-}-export interface SharePasswordApi {readonly id: numberreadonly created_at: string@@ -2854,66 +2846,6 @@ export interface FileSystemShortcutReorderApi {ordered_ids: string[]}-/**- * * `home` - Home- * * `pinned` - Pinned- * * `custom_products` - Custom Products- */-export type PersistedFolderTypeEnumApi = (typeof PersistedFolderTypeEnumApi)[keyof typeof PersistedFolderTypeEnumApi]--export const PersistedFolderTypeEnumApi = {- Home: 'home',- Pinned: 'pinned',- CustomProducts: 'custom_products',-} as const--export interface PersistedFolderApi {- readonly id: string- /** Which persisted folder this is for the user (home, pinned, custom_products).- *- * * `home` - Home- * * `pinned` - Pinned- * * `custom_products` - Custom Products */- type: PersistedFolderTypeEnumApi- /**- * Protocol prefix of the folder location, e.g. 'products://'.- * @maxLength 64- */- protocol?: string- /** Path within the protocol that the folder resolves to. */- path?: string- readonly created_at: string- readonly updated_at: string-}--export interface PaginatedPersistedFolderListApi {- count: number- /** @nullable */- next?: string | null- /** @nullable */- previous?: string | null- results: PersistedFolderApi[]-}--export interface PatchedPersistedFolderApi {- readonly id?: string- /** Which persisted folder this is for the user (home, pinned, custom_products).- *- * * `home` - Home- * * `pinned` - Pinned- * * `custom_products` - Custom Products */- type?: PersistedFolderTypeEnumApi- /**- * Protocol prefix of the folder location, e.g. 'products://'.- * @maxLength 64- */- protocol?: string- /** Path within the protocol that the folder resolves to. */- path?: string- readonly created_at?: string- readonly updated_at?: string-}-/*** * `image/png` - image/png* * `application/pdf` - application/pdf@@ -3923,17 +3855,6 @@ export type DesktopFileSystemShortcutListParams = {offset?: number}-export type DesktopPersistedFolderListParams = {- /**- * Number of results to return per page.- */- limit?: number- /**- * The initial index from which to return the results.- */- offset?: number-}-export type ExportsListParams = {/*** Number of results to return per page.@@ -3971,17 +3892,6 @@ export type FileSystemShortcutListParams = {offset?: number}-export type PersistedFolderListParams = {- /**- * Number of results to return per page.- */- limit?: number- /**- * The initial index from which to return the results.- */- offset?: number-}-export type ProjectSecretApiKeysListParams = {/*** Number of results to return per page.diff --git a/frontend/src/generated/core/api.ts b/frontend/src/generated/core/api.tsindex 0090ff783c84..2a91b8dd9c12 100644--- a/frontend/src/generated/core/api.ts+++ b/frontend/src/generated/core/api.ts@@ -19,7 +19,6 @@ import type {DesktopFileSystemInstructionsVersionsListParams,DesktopFileSystemListParams,DesktopFileSystemShortcutListParams,- DesktopPersistedFolderListParams,DomainsListParams,EnterprisePropertyDefinitionApi,ExportedAssetApi,@@ -50,7 +49,6 @@ import type {PaginatedOrganizationDomainListApi,PaginatedOrganizationInviteListApi,PaginatedOrganizationOAuthApplicationListApi,- PaginatedPersistedFolderListApi,PaginatedProjectBackwardCompatBasicListApi,PaginatedProjectSecretAPIKeyListApi,PaginatedUserGitHubIntegrationListResponseListApi,@@ -61,16 +59,12 @@ import type {PatchedFileSystemShortcutApi,PatchedFolderInstructionsPublishApi,PatchedOrganizationDomainApi,- PatchedPersistedFolderApi,PatchedProjectBackwardCompatApi,PatchedProjectSecretAPIKeyApi,PatchedUserApi,- PersistedFolderApi,- PersistedFolderListParams,ProjectBackwardCompatApi,ProjectSecretAPIKeyApi,ProjectSecretApiKeysListParams,- PromotedProductIntentApi,PropertyDefinitionsListParams,RevokeOtherSessionsResponseApi,SharingConfigurationApi,@@ -1029,27 +1023,6 @@ export const organizationsProjectsLogsConfigPartialUpdate = async ()}-export const getOrganizationsProjectsPromotedProductIntentRetrieveUrl = (organizationId: string, id: number) => {- return `/api/organizations/${organizationId}/projects/${id}/promoted_product_intent/`-}--/**- * Return the product key (e.g. `session_replay`, `web_analytics`) this team selected as their primary product during onboarding. Resolved from the team's most recent primary-onboarding `ProductIntent` record (the one carrying the `onboarding product selected - primary` context) — not from the `user showed product intent` event, which also fires for non-onboarding contexts. Returns `null` when no primary onboarding product intent has been captured (e.g. teams created before this signal existed, or where onboarding was skipped).- */-export const organizationsProjectsPromotedProductIntentRetrieve = async (- organizationId: string,- id: number,- options?: RequestInit-): Promise<PromotedProductIntentApi> => {- return apiMutator<PromotedProductIntentApi>(- getOrganizationsProjectsPromotedProductIntentRetrieveUrl(organizationId, id),- {- ...options,- method: 'GET',- }- )-}-export const getOrganizationsProjectsResetTokenPartialUpdateUrl = (organizationId: string, id: number) => {return `/api/organizations/${organizationId}/projects/${id}/reset_token/`}@@ -1847,146 +1820,6 @@ export const desktopFileSystemShortcutReorderCreate = async (})}-export const getDesktopPersistedFolderListUrl = (projectId: string, params?: DesktopPersistedFolderListParams) => {- const normalizedParams = new URLSearchParams()-- Object.entries(params || {}).forEach(([key, value]) => {- if (value !== undefined) {- normalizedParams.append(key, value === null ? 'null' : String(value))- }- })-- const stringifiedParams = normalizedParams.toString()-- return stringifiedParams.length > 0- ? `/api/projects/${projectId}/desktop_persisted_folder/?${stringifiedParams}`- : `/api/projects/${projectId}/desktop_persisted_folder/`-}--/**- * Persisted folders for the desktop product surface. Reuses all PersistedFolderViewSet behaviour- * but is scoped to the "desktop" surface, so its folders are fully isolated from the default- * "web" surface.- */-export const desktopPersistedFolderList = async (- projectId: string,- params?: DesktopPersistedFolderListParams,- options?: RequestInit-): Promise<PaginatedPersistedFolderListApi> => {- return apiMutator<PaginatedPersistedFolderListApi>(getDesktopPersistedFolderListUrl(projectId, params), {- ...options,- method: 'GET',- })-}--export const getDesktopPersistedFolderCreateUrl = (projectId: string) => {- return `/api/projects/${projectId}/desktop_persisted_folder/`-}--/**- * Persisted folders for the desktop product surface. Reuses all PersistedFolderViewSet behaviour- * but is scoped to the "desktop" surface, so its folders are fully isolated from the default- * "web" surface.- */-export const desktopPersistedFolderCreate = async (- projectId: string,- persistedFolderApi: NonReadonly<PersistedFolderApi>,- options?: RequestInit-): Promise<PersistedFolderApi> => {- return apiMutator<PersistedFolderApi>(getDesktopPersistedFolderCreateUrl(projectId), {- ...options,- method: 'POST',- headers: { 'Content-Type': 'application/json', ...options?.headers },- body: JSON.stringify(persistedFolderApi),- })-}--export const getDesktopPersistedFolderRetrieveUrl = (projectId: string, id: string) => {- return `/api/projects/${projectId}/desktop_persisted_folder/${id}/`-}--/**- * Persisted folders for the desktop product surface. Reuses all PersistedFolderViewSet behaviour- * but is scoped to the "desktop" surface, so its folders are fully isolated from the default- * "web" surface.- */-export const desktopPersistedFolderRetrieve = async (- projectId: string,- id: string,- options?: RequestInit-): Promise<PersistedFolderApi> => {- return apiMutator<PersistedFolderApi>(getDesktopPersistedFolderRetrieveUrl(projectId, id), {- ...options,- method: 'GET',- })-}--export const getDesktopPersistedFolderUpdateUrl = (projectId: string, id: string) => {- return `/api/projects/${projectId}/desktop_persisted_folder/${id}/`-}--/**- * Persisted folders for the desktop product surface. Reuses all PersistedFolderViewSet behaviour- * but is scoped to the "desktop" surface, so its folders are fully isolated from the default- * "web" surface.- */-export const desktopPersistedFolderUpdate = async (- projectId: string,- id: string,- persistedFolderApi: NonReadonly<PersistedFolderApi>,- options?: RequestInit-): Promise<PersistedFolderApi> => {- return apiMutator<PersistedFolderApi>(getDesktopPersistedFolderUpdateUrl(projectId, id), {- ...options,- method: 'PUT',- headers: { 'Content-Type': 'application/json', ...options?.headers },- body: JSON.stringify(persistedFolderApi),- })-}--export const getDesktopPersistedFolderPartialUpdateUrl = (projectId: string, id: string) => {- return `/api/projects/${projectId}/desktop_persisted_folder/${id}/`-}--/**- * Persisted folders for the desktop product surface. Reuses all PersistedFolderViewSet behaviour- * but is scoped to the "desktop" surface, so its folders are fully isolated from the default- * "web" surface.- */-export const desktopPersistedFolderPartialUpdate = async (- projectId: string,- id: string,- patchedPersistedFolderApi?: NonReadonly<PatchedPersistedFolderApi>,- options?: RequestInit-): Promise<PersistedFolderApi> => {- return apiMutator<PersistedFolderApi>(getDesktopPersistedFolderPartialUpdateUrl(projectId, id), {- ...options,- method: 'PATCH',- headers: { 'Content-Type': 'application/json', ...options?.headers },- body: JSON.stringify(patchedPersistedFolderApi),- })-}--export const getDesktopPersistedFolderDestroyUrl = (projectId: string, id: string) => {- return `/api/projects/${projectId}/desktop_persisted_folder/${id}/`-}--/**- * Persisted folders for the desktop product surface. Reuses all PersistedFolderViewSet behaviour- * but is scoped to the "desktop" surface, so its folders are fully isolated from the default- * "web" surface.- */-export const desktopPersistedFolderDestroy = async (- projectId: string,- id: string,- options?: RequestInit-): Promise<void> => {- return apiMutator<void>(getDesktopPersistedFolderDestroyUrl(projectId, id), {- ...options,- method: 'DELETE',- })-}-export const getExportsListUrl = (projectId: string, params?: ExportsListParams) => {const normalizedParams = new URLSearchParams()@@ -2572,112 +2405,6 @@ export const notebooksSharingRefreshCreate = async (})}-export const getPersistedFolderListUrl = (projectId: string, params?: PersistedFolderListParams) => {- const normalizedParams = new URLSearchParams()-- Object.entries(params || {}).forEach(([key, value]) => {- if (value !== undefined) {- normalizedParams.append(key, value === null ? 'null' : String(value))- }- })-- const stringifiedParams = normalizedParams.toString()-- return stringifiedParams.length > 0- ? `/api/projects/${projectId}/persisted_folder/?${stringifiedParams}`- : `/api/projects/${projectId}/persisted_folder/`-}--export const persistedFolderList = async (- projectId: string,- params?: PersistedFolderListParams,- options?: RequestInit-): Promise<PaginatedPersistedFolderListApi> => {- return apiMutator<PaginatedPersistedFolderListApi>(getPersistedFolderListUrl(projectId, params), {- ...options,- method: 'GET',- })-}--export const getPersistedFolderCreateUrl = (projectId: string) => {- return `/api/projects/${projectId}/persisted_folder/`-}--export const persistedFolderCreate = async (- projectId: string,- persistedFolderApi: NonReadonly<PersistedFolderApi>,- options?: RequestInit-): Promise<PersistedFolderApi> => {- return apiMutator<PersistedFolderApi>(getPersistedFolderCreateUrl(projectId), {- ...options,- method: 'POST',- headers: { 'Content-Type': 'application/json', ...options?.headers },- body: JSON.stringify(persistedFolderApi),- })-}--export const getPersistedFolderRetrieveUrl = (projectId: string, id: string) => {- return `/api/projects/${projectId}/persisted_folder/${id}/`-}--export const persistedFolderRetrieve = async (- projectId: string,- id: string,- options?: RequestInit-): Promise<PersistedFolderApi> => {- return apiMutator<PersistedFolderApi>(getPersistedFolderRetrieveUrl(projectId, id), {- ...options,- method: 'GET',- })-}--export const getPersistedFolderUpdateUrl = (projectId: string, id: string) => {- return `/api/projects/${projectId}/persisted_folder/${id}/`-}--export const persistedFolderUpdate = async (- projectId: string,- id: string,- persistedFolderApi: NonReadonly<PersistedFolderApi>,- options?: RequestInit-): Promise<PersistedFolderApi> => {- return apiMutator<PersistedFolderApi>(getPersistedFolderUpdateUrl(projectId, id), {- ...options,- method: 'PUT',- headers: { 'Content-Type': 'application/json', ...options?.headers },- body: JSON.stringify(persistedFolderApi),- })-}--export const getPersistedFolderPartialUpdateUrl = (projectId: string, id: string) => {- return `/api/projects/${projectId}/persisted_folder/${id}/`-}--export const persistedFolderPartialUpdate = async (- projectId: string,- id: string,- patchedPersistedFolderApi?: NonReadonly<PatchedPersistedFolderApi>,- options?: RequestInit-): Promise<PersistedFolderApi> => {- return apiMutator<PersistedFolderApi>(getPersistedFolderPartialUpdateUrl(projectId, id), {- ...options,- method: 'PATCH',- headers: { 'Content-Type': 'application/json', ...options?.headers },- body: JSON.stringify(patchedPersistedFolderApi),- })-}--export const getPersistedFolderDestroyUrl = (projectId: string, id: string) => {- return `/api/projects/${projectId}/persisted_folder/${id}/`-}--export const persistedFolderDestroy = async (projectId: string, id: string, options?: RequestInit): Promise<void> => {- return apiMutator<void>(getPersistedFolderDestroyUrl(projectId, id), {- ...options,- method: 'DELETE',- })-}-export const getProjectSecretApiKeysListUrl = (projectId: string, params?: ProjectSecretApiKeysListParams) => {const normalizedParams = new URLSearchParams()diff --git a/frontend/src/generated/core/api.zod.ts b/frontend/src/generated/core/api.zod.tsindex e92e78a08239..38093a3d7995 100644--- a/frontend/src/generated/core/api.zod.ts+++ b/frontend/src/generated/core/api.zod.ts@@ -9240,73 +9240,6 @@ export const DesktopFileSystemShortcutReorderCreateBody = /* @__PURE__ */ zod.obordered_ids: zod.array(zod.uuid()).describe("IDs of the current user's shortcuts in the desired display order."),})-/**- * Persisted folders for the desktop product surface. Reuses all PersistedFolderViewSet behaviour- * but is scoped to the "desktop" surface, so its folders are fully isolated from the default- * "web" surface.- */-export const desktopPersistedFolderCreateBodyProtocolMax = 64--export const DesktopPersistedFolderCreateBody = /* @__PURE__ */ zod.object({- type: zod- .enum(['home', 'pinned', 'custom_products'])- .describe('\* `home` - Home\n\* `pinned` - Pinned\n\* `custom_products` - Custom Products')- .describe(- 'Which persisted folder this is for the user (home, pinned, custom_products).\n\n\* `home` - Home\n\* `pinned` - Pinned\n\* `custom_products` - Custom Products'- ),- protocol: zod- .string()- .max(desktopPersistedFolderCreateBodyProtocolMax)- .optional()- .describe("Protocol prefix of the folder location, e.g. 'products:\/\/'."),- path: zod.string().optional().describe('Path within the protocol that the folder resolves to.'),-})--/**- * Persisted folders for the desktop product surface. Reuses all PersistedFolderViewSet behaviour- * but is scoped to the "desktop" surface, so its folders are fully isolated from the default- * "web" surface.- */-export const desktopPersistedFolderUpdateBodyProtocolMax = 64--export const DesktopPersistedFolderUpdateBody = /* @__PURE__ */ zod.object({- type: zod- .enum(['home', 'pinned', 'custom_products'])- .describe('\* `home` - Home\n\* `pinned` - Pinned\n\* `custom_products` - Custom Products')- .describe(- 'Which persisted folder this is for the user (home, pinned, custom_products).\n\n\* `home` - Home\n\* `pinned` - Pinned\n\* `custom_products` - Custom Products'- ),- protocol: zod- .string()- .max(desktopPersistedFolderUpdateBodyProtocolMax)- .optional()- .describe("Protocol prefix of the folder location, e.g. 'products:\/\/'."),- path: zod.string().optional().describe('Path within the protocol that the folder resolves to.'),-})--/**- * Persisted folders for the desktop product surface. Reuses all PersistedFolderViewSet behaviour- * but is scoped to the "desktop" surface, so its folders are fully isolated from the default- * "web" surface.- */-export const desktopPersistedFolderPartialUpdateBodyProtocolMax = 64--export const DesktopPersistedFolderPartialUpdateBody = /* @__PURE__ */ zod.object({- type: zod- .enum(['home', 'pinned', 'custom_products'])- .describe('\* `home` - Home\n\* `pinned` - Pinned\n\* `custom_products` - Custom Products')- .optional()- .describe(- 'Which persisted folder this is for the user (home, pinned, custom_products).\n\n\* `home` - Home\n\* `pinned` - Pinned\n\* `custom_products` - Custom Products'- ),- protocol: zod- .string()- .max(desktopPersistedFolderPartialUpdateBodyProtocolMax)- .optional()- .describe("Protocol prefix of the folder location, e.g. 'products:\/\/'."),- path: zod.string().optional().describe('Path within the protocol that the folder resolves to.'),-})-export const ExportsCreateBody = /* @__PURE__ */ zod.object({dashboard: zod.number().nullish(),@@ -9582,58 +9515,6 @@ export const NotebooksSharingRefreshCreateBody = /* @__PURE__ */ zod.object({password_required: zod.boolean().optional(),})-export const persistedFolderCreateBodyProtocolMax = 64--export const PersistedFolderCreateBody = /* @__PURE__ */ zod.object({- type: zod- .enum(['home', 'pinned', 'custom_products'])- .describe('\* `home` - Home\n\* `pinned` - Pinned\n\* `custom_products` - Custom Products')- .describe(- 'Which persisted folder this is for the user (home, pinned, custom_products).\n\n\* `home` - Home\n\* `pinned` - Pinned\n\* `custom_products` - Custom Products'- ),- protocol: zod- .string()- .max(persistedFolderCreateBodyProtocolMax)- .optional()- .describe("Protocol prefix of the folder location, e.g. 'products:\/\/'."),- path: zod.string().optional().describe('Path within the protocol that the folder resolves to.'),-})--export const persistedFolderUpdateBodyProtocolMax = 64--export const PersistedFolderUpdateBody = /* @__PURE__ */ zod.object({- type: zod- .enum(['home', 'pinned', 'custom_products'])- .describe('\* `home` - Home\n\* `pinned` - Pinned\n\* `custom_products` - Custom Products')- .describe(- 'Which persisted folder this is for the user (home, pinned, custom_products).\n\n\* `home` - Home\n\* `pinned` - Pinned\n\* `custom_products` - Custom Products'- ),- protocol: zod- .string()- .max(persistedFolderUpdateBodyProtocolMax)- .optional()- .describe("Protocol prefix of the folder location, e.g. 'products:\/\/'."),- path: zod.string().optional().describe('Path within the protocol that the folder resolves to.'),-})--export const persistedFolderPartialUpdateBodyProtocolMax = 64--export const PersistedFolderPartialUpdateBody = /* @__PURE__ */ zod.object({- type: zod- .enum(['home', 'pinned', 'custom_products'])- .describe('\* `home` - Home\n\* `pinned` - Pinned\n\* `custom_products` - Custom Products')- .optional()- .describe(- 'Which persisted folder this is for the user (home, pinned, custom_products).\n\n\* `home` - Home\n\* `pinned` - Pinned\n\* `custom_products` - Custom Products'- ),- protocol: zod- .string()- .max(persistedFolderPartialUpdateBodyProtocolMax)- .optional()- .describe("Protocol prefix of the folder location, e.g. 'products:\/\/'."),- path: zod.string().optional().describe('Path within the protocol that the folder resolves to.'),-})-export const projectSecretApiKeysCreateBodyLabelMax = 40export const ProjectSecretApiKeysCreateBody = /* @__PURE__ */ zod.object({diff --git a/frontend/src/layout/GlobalModals.tsx b/frontend/src/layout/GlobalModals.tsxindex 4eb04bf6359b..c15b524b1999 100644--- a/frontend/src/layout/GlobalModals.tsx+++ b/frontend/src/layout/GlobalModals.tsx@@ -21,15 +21,12 @@ import { InviteModal } from 'scenes/settings/organization/InviteModal'import { PreviewingCustomCssModal } from 'scenes/themes/PreviewingCustomCssModal'import { MaybeWelcomeDialog } from 'scenes/welcome/WelcomeDialog'-import { promotedProductLogic } from '~/layout/panel-layout/ai-first/promotedProductLogic'-import { ComposeTicketModal } from 'products/conversations/frontend/components/ComposeTicket'import { logsViewerModalLogic } from 'products/logs/frontend/components/LogsViewer/LogsViewerModal/logsViewerModalLogic'import { globalModalsLogic } from './globalModalsLogic'import { navigationLogic } from './navigation/navigationLogic'import { ConfigureHomeModal } from './scenes/ConfigureHomeModal'-import { ConfigurePromotedProductModal } from './scenes/ConfigurePromotedProductModal'// The session player modal anchors the entire replay player graph; loading it only when a// recording is opened keeps that graph out of the chunk every logged-in page downloads.@@ -59,8 +56,6 @@ export function GlobalModals(): JSX.Element {const { superpowersEnabled } = useValues(superpowersLogic)const { isConfigureHomeModalOpen } = useValues(navigationLogic)const { hideConfigureHomeModal } = useActions(navigationLogic)- const { isConfigureModalOpen: isConfigurePromotedProductModalOpen } = useValues(promotedProductLogic)- const { hideConfigureModal: hideConfigurePromotedProductModal } = useActions(promotedProductLogic)return (<>@@ -89,10 +84,6 @@ export function GlobalModals(): JSX.Element {<ItemSelectModal />{superpowersEnabled && <SuperpowersModal />}<ConfigureHomeModal isOpen={isConfigureHomeModalOpen} onClose={hideConfigureHomeModal} />- <ConfigurePromotedProductModal- isOpen={isConfigurePromotedProductModalOpen}- onClose={hideConfigurePromotedProductModal}- /><MaybeWelcomeDialog /><ComposeTicketModal /></>diff --git a/frontend/src/layout/panel-layout/PinnedFolder/EditCustomProductsModal.stories.tsx b/frontend/src/layout/panel-layout/PinnedFolder/EditCustomProductsModal.stories.tsxdeleted file mode 100644index 4553a9ace161..000000000000--- a/frontend/src/layout/panel-layout/PinnedFolder/EditCustomProductsModal.stories.tsx+++ /dev/null@@ -1,37 +0,0 @@-import { MOCK_DEFAULT_USER } from 'lib/api.mock'--import { Meta } from '@storybook/react'--import { mswDecorator } from '~/mocks/browser'--import { EditCustomProductsModal } from './EditCustomProductsModal'--const INITIAL_PRODUCTS = ['Dashboards', 'Session replay', 'Feature flags']--const meta: Meta<typeof EditCustomProductsModal> = {- title: 'Layout/Pinned Folder/Edit Custom Products Modal',- component: EditCustomProductsModal,- parameters: {- layout: 'fullscreen',- viewMode: 'story',- },- decorators: [- mswDecorator({- get: {- '/api/environments/:team_id/user_product_list/': {- results: INITIAL_PRODUCTS.map((path, index) => ({- id: `product-${index}`,- product_path: path,- created_at: '2024-01-01T00:00:00Z',- updated_at: '2024-01-01T00:00:00Z',- })),- },- '/api/users/@me': {- ...MOCK_DEFAULT_USER,- allow_sidebar_suggestions: true,- },- },- }),- ],-}-export default metadiff --git a/frontend/src/layout/panel-layout/PinnedFolder/EditCustomProductsModal.tsx b/frontend/src/layout/panel-layout/PinnedFolder/EditCustomProductsModal.tsxdeleted file mode 100644index c12a2ab33a6d..000000000000--- a/frontend/src/layout/panel-layout/PinnedFolder/EditCustomProductsModal.tsx+++ /dev/null@@ -1,178 +0,0 @@-import { useActions, useValues } from 'kea'--import { LemonButton } from 'lib/lemon-ui/LemonButton'-import { LemonCheckbox } from 'lib/lemon-ui/LemonCheckbox'-import { LemonModal } from 'lib/lemon-ui/LemonModal'-import { LemonSelect } from 'lib/lemon-ui/LemonSelect'-import { LemonTag } from 'lib/lemon-ui/LemonTag'-import { Spinner } from 'lib/lemon-ui/Spinner'--import { iconForType } from '~/layout/panel-layout/ProjectTree/defaultTree'-import { FileSystemIconType, FileSystemImport } from '~/queries/schema/schema-general'-import { UserShortcutPosition } from '~/types'--import { editCustomProductsModalLogic } from './editCustomProductsModalLogic'--export function EditCustomProductsModal(): JSX.Element {- const {- isOpen,- customProductsLoading,- customProducts,- selectedPaths,- allowSidebarSuggestions,- sidebarSuggestionsLoading,- shortcutPosition,- shortcutPositionLoading,- categories,- productsByCategory,- productLoading,- } = useValues(editCustomProductsModalLogic)- const { toggleProduct, toggleCategory, toggleSidebarSuggestions, setShortcutPosition, closeModal } =- useActions(editCustomProductsModalLogic)-- return (- <LemonModal- isOpen={isOpen}- onClose={closeModal}- title="Edit sidebar tools"- footer={- <LemonButton type="secondary" onClick={closeModal}>- Close- </LemonButton>- }- width={600}- >- <div className="flex flex-col gap-2">- <div>- <p className="text-sm text-muted">- Select which tools you want to see in your sidebar. You can change this anytime.- {customProductsLoading && <Spinner />}- </p>- </div>-- <div className="flex flex-col gap-4 mb-4 px-2">- {categories.map((category: string) => {- const products = productsByCategory.get(category) || []- const productPaths = products.map((p) => p.path)- const selectedCount = productPaths.filter((path) => selectedPaths.has(path)).length- const categoryState: boolean | 'indeterminate' =- selectedCount === 0 ? false : selectedCount === productPaths.length ? true : 'indeterminate'- const categoryLoading = products.some((p) => productLoading[p.path])-- return (- <div key={category} className="mb-6">- <div className="mb-2">- <LemonCheckbox- checked={categoryState}- onChange={() => toggleCategory(category)}- disabledReason={- category === 'Unreleased'- ? 'These tools are in Alpha, enable them one by one'- : categoryLoading- ? 'Saving...'- : customProductsLoading && customProducts.length === 0- ? 'Loading...'- : undefined- }- label={<span className="font-semibold text-tertiary">{category}</span>}- />- </div>- <div className="space-y-1">- {products.map((product: FileSystemImport) => {- const icon = iconForType(- ('iconType' in product ? product.iconType : undefined) ||- (product.type as FileSystemIconType),- product.iconColor- )- const isLoading = productLoading[product.path] || false- return (- <LemonCheckbox- key={product.path}- checked={selectedPaths.has(product.path)}- onChange={() => toggleProduct(product.path)}- disabledReason={- isLoading- ? 'Saving...'- : customProductsLoading && customProducts.length === 0- ? 'Loading...'- : undefined- }- label={- <span className="flex items-center gap-2">- {icon}- <span>{product.displayLabel ?? product.path}</span>- {product.tags?.length && (- <>- {product.tags.map((tag: string) => (- <LemonTag- key={tag}- type={- tag === 'alpha'- ? 'completion'- : tag === 'beta'- ? 'warning'- : 'success'- }- size="small"- className="relative top-[1px]"- >- {tag.toUpperCase()}- </LemonTag>- ))}- </>- )}- {isLoading && <Spinner size="small" />}- </span>- }- />- )- })}- </div>- </div>- )- })}- </div>-- <div className="flex flex-col items-start gap-2 border-t pt-4">- <LemonCheckbox- checked={allowSidebarSuggestions}- onChange={toggleSidebarSuggestions}- disabledReason={sidebarSuggestionsLoading ? 'Saving...' : undefined}- label={- <span className="flex items-center gap-2">- <span>Automatically suggest new tools</span>- </span>- }- />- <span className="text-sm text-muted">- When we detect you are using a new tool, we'll automatically add it to your sidebar as a- suggestion. We might also suggest tools that are related to the ones you are using when we- launch a new one.- <br />- You can always remove these suggestions later.- </span>- </div>-- <div className="flex flex-col items-start gap-2 border-t pt-4">- <div className="flex flex-col gap-2 w-full">- <label className="text-sm font-semibold text-tertiary">Starred items position</label>- <LemonSelect<UserShortcutPosition>- value={shortcutPosition}- onChange={(value) => setShortcutPosition(value)}- options={[- { label: 'Above tools', value: 'above' },- { label: 'Below tools', value: 'below' },- { label: 'Hidden', value: 'hidden' },- ]}- disabledReason={shortcutPositionLoading ? 'Saving...' : undefined}- fullWidth- />- <span className="text-sm text-muted">- Choose where starred items appear in your sidebar when using custom tools.- </span>- </div>- </div>- </div>- </LemonModal>- )-}diff --git a/frontend/src/layout/panel-layout/PinnedFolder/PinnedFolder.tsx b/frontend/src/layout/panel-layout/PinnedFolder/PinnedFolder.tsxdeleted file mode 100644index 48c44407f9eb..000000000000--- a/frontend/src/layout/panel-layout/PinnedFolder/PinnedFolder.tsx+++ /dev/null@@ -1,140 +0,0 @@-import { useActions, useValues } from 'kea'--import { IconCheck, IconGear, IconPencil, IconPlusSmall } from '@posthog/icons'--import { ItemSelectModalButton } from 'lib/components/FileSystem/ItemSelectModal/ItemSelectModal'-import { FEATURE_FLAGS } from 'lib/constants'-import { IconBlank } from 'lib/lemon-ui/icons'-import { featureFlagLogic } from 'lib/logic/featureFlagLogic'-import { ButtonPrimitive } from 'lib/ui/Button/ButtonPrimitives'-import {- DropdownMenu,- DropdownMenuContent,- DropdownMenuGroup,- DropdownMenuItem,- DropdownMenuLabel,- DropdownMenuSeparator,- DropdownMenuTrigger,-} from 'lib/ui/DropdownMenu/DropdownMenu'--import { panelLayoutLogic } from '~/layout/panel-layout/panelLayoutLogic'-import { EditCustomProductsModal } from '~/layout/panel-layout/PinnedFolder/EditCustomProductsModal'-import { pinnedFolderLogic } from '~/layout/panel-layout/PinnedFolder/pinnedFolderLogic'-import { ProjectTree } from '~/layout/panel-layout/ProjectTree/ProjectTree'-import { formatUrlAsName } from '~/layout/panel-layout/ProjectTree/utils'--import { editCustomProductsModalLogic } from './editCustomProductsModalLogic'--const SelectedIcon = ({ checked }: { checked: boolean }): JSX.Element => {- return checked ? <IconCheck /> : <IconBlank />-}--export function PinnedFolder(): JSX.Element {- const { isLayoutNavCollapsed } = useValues(panelLayoutLogic)- const { pinnedFolder } = useValues(pinnedFolderLogic)- const { setPinnedFolder } = useActions(pinnedFolderLogic)- const { openModal: openEditCustomProductsModal } = useActions(editCustomProductsModalLogic)-- const { featureFlags } = useValues(featureFlagLogic)-- const showDefaultHeader = !['products://', 'data://', 'custom-products://'].includes(pinnedFolder)-- const isCustomProductsSidebarEnabled = featureFlags[FEATURE_FLAGS.CUSTOM_PRODUCTS_SIDEBAR] === 'test'- const CustomProductsIcon = isCustomProductsSidebarEnabled ? IconGear : IconPencil-- const configMenu = (- <>- {pinnedFolder === 'shortcuts://' ? (- <ItemSelectModalButton- buttonProps={{- iconOnly: true,- size: 'xs',- tooltip: 'Add to starred',- tooltipPlacement: 'top',- children: <IconPlusSmall className="size-4 text-tertiary" />,- }}- />- ) : null}- {pinnedFolder === 'custom-products://' ? (- <ButtonPrimitive- iconOnly- tooltip="Edit sidebar tools"- tooltipPlacement="top"- onClick={openEditCustomProductsModal}- size="xs"- data-attr="edit-sidebar-tools-button"- >- <CustomProductsIcon className="size-3 text-secondary" />- </ButtonPrimitive>- ) : null}-- {!isCustomProductsSidebarEnabled && (- <DropdownMenu>- <DropdownMenuTrigger asChild>- <ButtonPrimitive- iconOnly- data-attr="tree-navbar-pinned-folder-change-button"- tooltip="Change sidebar mode"- tooltipPlacement="top"- size="xs"- >- <IconGear className="size-3 text-secondary" />- </ButtonPrimitive>- </DropdownMenuTrigger>- <DropdownMenuContent loop align="end" side="bottom" className="max-w-[250px]">- <DropdownMenuGroup>- <DropdownMenuLabel>Choose sidebar mode</DropdownMenuLabel>- <DropdownMenuSeparator />- <DropdownMenuItem- asChild- onClick={(e) => {- e.stopPropagation()- setPinnedFolder('products://')- }}- data-attr="tree-item-menu-open-link-button"- >- <ButtonPrimitive menuItem>- All tools - <SelectedIcon checked={!pinnedFolder || pinnedFolder === 'products://'} />- </ButtonPrimitive>- </DropdownMenuItem>- <DropdownMenuItem- asChild- onClick={(e) => {- e.stopPropagation()- setPinnedFolder('shortcuts://')- }}- data-attr="tree-item-menu-open-link-button"- >- <ButtonPrimitive menuItem>- Shortcuts only - <SelectedIcon checked={pinnedFolder === 'shortcuts://'} />- </ButtonPrimitive>- </DropdownMenuItem>- </DropdownMenuGroup>- </DropdownMenuContent>- </DropdownMenu>- )}- </>- )-- return (- <>- {!isLayoutNavCollapsed &&- (showDefaultHeader ? (- <div className="flex justify-between items-center pl-3 pr-1 -mt-[3px] relative">- <div className="flex items-center gap-1">- <span className="text-xs font-semibold text-tertiary">{formatUrlAsName(pinnedFolder)}</span>- </div>- <div className="flex items-center gap-px">{configMenu}</div>- </div>- ) : (- <div className="absolute right-1 z-10 top-px">{configMenu}</div>- ))}- <div className="flex flex-col mt-[-0.5rem] h-full group/colorful-product-icons colorful-product-icons-true">- <ProjectTree root={pinnedFolder} onlyTree treeSize={isLayoutNavCollapsed ? 'narrow' : 'default'} />- </div>- <EditCustomProductsModal />- </>- )-}diff --git a/frontend/src/layout/panel-layout/PinnedFolder/editCustomProductsModalLogic.ts b/frontend/src/layout/panel-layout/PinnedFolder/editCustomProductsModalLogic.tsdeleted file mode 100644index 6a12ac0a8c93..000000000000--- a/frontend/src/layout/panel-layout/PinnedFolder/editCustomProductsModalLogic.ts+++ /dev/null@@ -1,249 +0,0 @@-import { actions, afterMount, connect, kea, listeners, path, reducers, selectors } from 'kea'--import { lemonToast } from '@posthog/lemon-ui'--import api from 'lib/api'-import { featureFlagLogic } from 'lib/logic/featureFlagLogic'-import { userLogic } from 'scenes/userLogic'--import { customProductsLogic } from '~/layout/panel-layout/ProjectTree/customProductsLogic'-import { getDefaultTreeProducts } from '~/layout/panel-layout/ProjectTree/defaultTree'-import { FileSystemImport } from '~/queries/schema/schema-general'-import { UserShortcutPosition } from '~/types'--import { getCategoryOrder } from '../ProjectTree/utils'-import type { editCustomProductsModalLogicType } from './editCustomProductsModalLogicType'--export const editCustomProductsModalLogic = kea<editCustomProductsModalLogicType>([- path(['layout', 'panel-layout', 'PinnedFolder', 'editCustomProductsModalLogic']),- connect(() => ({- values: [- customProductsLogic,- ['customProducts', 'customProductsLoading'],- userLogic,- ['user'],- featureFlagLogic,- ['featureFlags'],- ],- actions: [- customProductsLogic,- ['loadCustomProducts', 'loadCustomProductsSuccess', 'seedSuccess'],- userLogic,- ['updateUser', 'loadUserSuccess'],- ],- })),- actions({- toggleProduct: (productPath: string, overrideState?: boolean) => ({ productPath, overrideState }),- toggleCategory: (category: string) => ({ category }),- setAllowSidebarSuggestions: (value: boolean) => ({ value }),- setShortcutPosition: (value: UserShortcutPosition, saveToUser: boolean = true) => ({ value, saveToUser }),- setSelectedPaths: (paths: Set<string>) => ({ paths }),- setProductLoading: (productPath: string, loading: boolean) => ({ productPath, loading }),- setSidebarSuggestionsLoading: (loading: boolean) => ({ loading }),- setShortcutPositionLoading: (loading: boolean) => ({ loading }),- toggleSidebarSuggestions: true,- openModal: true,- closeModal: true,- }),- reducers({- isOpen: [- false as boolean,- {- openModal: () => true,- closeModal: () => false,- },- ],- selectedPaths: [- new Set<string>(),- {- setSelectedPaths: (_, { paths }) => paths,- toggleProduct: (state, { productPath, overrideState }) => {- const newBooleanState = overrideState ?? !state.has(productPath) // Either use the boolean we have or check the abscence of it (which means should be added)- const newSetState = new Set(state)-- if (newBooleanState) {- newSetState.add(productPath)- } else {- newSetState.delete(productPath)- }-- return newSetState- },- },- ],- allowSidebarSuggestions: [- false,- {- setAllowSidebarSuggestions: (_, { value }) => value,- toggleSidebarSuggestions: (state) => !state,- },- ],- sidebarSuggestionsLoading: [- false,- {- setSidebarSuggestionsLoading: (_, { loading }) => loading,- toggleSidebarSuggestions: () => true,- },- ],- shortcutPosition: [- 'above' as UserShortcutPosition,- {- setShortcutPosition: (_, { value }) => value,- },- ],- shortcutPositionLoading: [- false,- {- setShortcutPositionLoading: (_, { loading }) => loading,- },- ],- productLoading: [- {} as Record<string, boolean>,- {- setProductLoading: (state, { productPath, loading }) => {- const newState = { ...state }- if (loading) {- newState[productPath] = true- } else {- delete newState[productPath]- }- return newState- },- },- ],- allProducts: [getDefaultTreeProducts().sort((a, b) => a.path.localeCompare(b.path || 'b')), {}],- }),- selectors({- filteredProducts: [- (s) => [s.allProducts, s.featureFlags],- (allProducts: FileSystemImport[], featureFlags: Record<string, boolean>): FileSystemImport[] => {- return allProducts.filter((f) => !f.flag || featureFlags[f.flag])- },- ],- productsByCategory: [- (s) => [s.filteredProducts],- (filteredProducts: FileSystemImport[]): Map<string, FileSystemImport[]> => {- const productsByCategory = new Map<string, FileSystemImport[]>()- for (const product of filteredProducts) {- const category = product.category || 'Other'- if (!productsByCategory.has(category)) {- productsByCategory.set(category, [])- }- productsByCategory.get(category)!.push(product)- }- return productsByCategory- },- ],- categories: [- (s) => [s.productsByCategory],- (productsByCategory: Map<string, FileSystemImport[]>): string[] => {- return Array.from(productsByCategory.keys()).sort((a, b) => getCategoryOrder(a) - getCategoryOrder(b))- },- ],- }),- listeners(({ actions, values }) => ({- loadCustomProductsSuccess: ({ customProducts }) => {- actions.setSelectedPaths(new Set(customProducts.map((item: { product_path: string }) => item.product_path)))- },- seedSuccess: ({ customProducts }) => {- actions.setSelectedPaths(new Set(customProducts.map((item: { product_path: string }) => item.product_path)))- },- loadUserSuccess: ({ user }) => {- if (user) {- actions.setAllowSidebarSuggestions(user.allow_sidebar_suggestions ?? false)- actions.setShortcutPosition((user.shortcut_position ?? 'above') as UserShortcutPosition, false)- }- },- toggleProduct: async ({ productPath }) => {- // State is already updated in the store- const newEnabledState = values.selectedPaths.has(productPath)-- try {- actions.setProductLoading(productPath, true)- await api.userProductList.updateByPath({ product_path: productPath, enabled: newEnabledState })- } catch (error) {- console.error('Failed to toggle product:', error)- lemonToast.error('Failed to toggle product. Try again?')-- // Revert state- actions.setSelectedPaths(- new Set(Array.from(values.selectedPaths).filter((path) => path !== productPath))- )- } finally {- actions.loadCustomProducts()- actions.setProductLoading(productPath, false)- }- },- toggleCategory: async ({ category }) => {- const products = values.productsByCategory.get(category) || []- const productPaths = products.map((p) => p.path)- const allSelected = productPaths.every((path) => values.selectedPaths.has(path))- const newEnabledState = !allSelected-- const newSelectedPaths = new Set(values.selectedPaths)- if (allSelected) {- productPaths.forEach((path) => newSelectedPaths.delete(path))- } else {- productPaths.forEach((path) => newSelectedPaths.add(path))- }- actions.setSelectedPaths(newSelectedPaths)-- const updatePromises = productPaths.map(async (productPath) => {- try {- actions.setProductLoading(productPath, true)- await api.userProductList.updateByPath({ product_path: productPath, enabled: newEnabledState })- } catch (error) {- console.error(`Failed to toggle product ${productPath}:`, error)- throw error- } finally {- actions.setProductLoading(productPath, false)- }- })-- const results = await Promise.allSettled(updatePromises)- if (results.some((result) => result.status === 'rejected')) {- lemonToast.error('Failed to toggle category. Try again?')- }-- actions.loadCustomProducts()- },- toggleSidebarSuggestions: () => {- try {- actions.setSidebarSuggestionsLoading(true)- actions.updateUser({ allow_sidebar_suggestions: values.allowSidebarSuggestions }) // Store is updated already- } catch (error) {- console.error('Failed to save sidebar suggestions preference:', error)- lemonToast.error('Failed to save preference. Try again?')- } finally {- actions.setSidebarSuggestionsLoading(false)- }- },- setShortcutPosition: async ({ value, saveToUser }) => {- if (!saveToUser) {- return- }-- try {- actions.setShortcutPositionLoading(true)- actions.updateUser({ shortcut_position: value })- } catch (error) {- console.error('Failed to save shortcut position preference:', error)- lemonToast.error('Failed to save preference. Try again?')- } finally {- actions.setShortcutPositionLoading(false)- }- },- })),- afterMount(({ actions, values }) => {- if (values.user) {- actions.setAllowSidebarSuggestions(values.user.allow_sidebar_suggestions ?? false)- actions.setShortcutPosition((values.user.shortcut_position ?? 'above') as UserShortcutPosition, false)- }-- if (values.customProducts.length > 0) {- actions.setSelectedPaths(- new Set(values.customProducts.map((item: { product_path: string }) => item.product_path))- )- }- }),-])diff --git a/frontend/src/layout/panel-layout/PinnedFolder/pinnedFolderLogic.tsx b/frontend/src/layout/panel-layout/PinnedFolder/pinnedFolderLogic.tsxdeleted file mode 100644index 6caa6695d89b..000000000000--- a/frontend/src/layout/panel-layout/PinnedFolder/pinnedFolderLogic.tsx+++ /dev/null@@ -1,75 +0,0 @@-import { actions, afterMount, connect, kea, path, reducers, selectors } from 'kea'-import { lazyLoaders } from 'kea-loaders'--import api from 'lib/api'-import { FEATURE_FLAGS } from 'lib/constants'-import { featureFlagLogic } from 'lib/logic/featureFlagLogic'--import { splitProtocolPath } from '~/layout/panel-layout/ProjectTree/utils'--import type { pinnedFolderLogicType } from './pinnedFolderLogicType'--const LOCAL_STORAGE_PINNED_FOLDER_KEY = 'layout.panel-layout.PinnedFolder.pinnedFolderLogic.lazyLoaders.pinnedFolder.v2'--export const pinnedFolderLogic = kea<pinnedFolderLogicType>([- path(['layout', 'panel-layout', 'PinnedFolder', 'pinnedFolderLogic']),- connect(() => ({- values: [featureFlagLogic, ['featureFlags']],- })),- actions({- setSelectedFolder: (id: string) => ({ id }),- }),- reducers(() => ({- selectedFolder: [- 'products://',- {- setSelectedFolder: (_, { id }) => id,- },- ],- })),- selectors({- isCustomProductsSidebarEnabled: [- (s) => [s.featureFlags],- (featureFlags) => featureFlags[FEATURE_FLAGS.CUSTOM_PRODUCTS_SIDEBAR] === 'test',- ],- }),- lazyLoaders(({ values }) => ({- pinnedFolder: [- localStorage.getItem(LOCAL_STORAGE_PINNED_FOLDER_KEY) || 'loading://',- {- loadPinnedFolder: async () => {- let pinnedFolder = values.isCustomProductsSidebarEnabled ? 'custom-products://' : 'products://'-- // If we're testing the sidebar we don't need to query this, just use the custom products list- if (!values.isCustomProductsSidebarEnabled) {- const folders = await api.persistedFolder.list()- const pinned = folders.results.find((folder) => folder.type === 'pinned')-- if (pinned) {- pinnedFolder = `${pinned.protocol || 'products://'}${pinned.path}`- }- }-- localStorage.setItem(LOCAL_STORAGE_PINNED_FOLDER_KEY, pinnedFolder)- return pinnedFolder- },- setPinnedFolder: async (id: string) => {- const newPinnedFolder = values.isCustomProductsSidebarEnabled ? 'custom-products://' : id-- if (!values.isCustomProductsSidebarEnabled) {- const [protocol, path] = splitProtocolPath(id)- await api.persistedFolder.create({ protocol, path, type: 'pinned' })- }-- localStorage.setItem(LOCAL_STORAGE_PINNED_FOLDER_KEY, newPinnedFolder)- return newPinnedFolder- },- },- ],- })),- afterMount(({ actions, values }) => {- if (values.selectedFolder !== values.pinnedFolder) {- actions.setSelectedFolder(values.pinnedFolder)- }- }),-])diff --git a/frontend/src/layout/panel-layout/ProjectTree/ProjectTree.stories.tsx b/frontend/src/layout/panel-layout/ProjectTree/ProjectTree.stories.tsxindex 0112f2f425fa..560fe9d99d4b 100644--- a/frontend/src/layout/panel-layout/ProjectTree/ProjectTree.stories.tsx+++ b/frontend/src/layout/panel-layout/ProjectTree/ProjectTree.stories.tsx@@ -1,11 +1,6 @@import type { Meta, StoryObj } from '@storybook/react'-import { useActions } from 'kea'-import { useEffect } from 'react'import { FEATURE_FLAGS } from 'lib/constants'-import { featureFlagLogic } from 'lib/logic/featureFlagLogic'--import { setFeatureFlags } from '~/mocks/browser'import { ProjectTree, ProjectTreeProps } from './ProjectTree'@@ -16,12 +11,11 @@ interface StoryProps extends ProjectTreeProps {type Story = StoryObj<(props: StoryProps) => JSX.Element>const meta: Meta<(props: StoryProps) => JSX.Element> = {- title: 'Layout/Project Tree/Custom Products',+ title: 'Layout/Project Tree',parameters: {layout: 'padded',viewMode: 'story',featureFlags: [- FEATURE_FLAGS.CUSTOM_PRODUCTS_SIDEBAR,FEATURE_FLAGS.CUSTOMER_ANALYTICS,FEATURE_FLAGS.DATA_WAREHOUSE_SCENE,FEATURE_FLAGS.ENDPOINTS,@@ -33,15 +27,6 @@ const meta: Meta<(props: StoryProps) => JSX.Element> = {],},render: (props: StoryProps) => {- const { setFeatureFlags: logicSetFeatureFlags } = useActions(featureFlagLogic)-- useEffect(() => {- setFeatureFlags([FEATURE_FLAGS.CUSTOM_PRODUCTS_SIDEBAR])- logicSetFeatureFlags([FEATURE_FLAGS.CUSTOM_PRODUCTS_SIDEBAR], {- [FEATURE_FLAGS.CUSTOM_PRODUCTS_SIDEBAR]: 'test',- })- }, [logicSetFeatureFlags])-return (<div className="w-[280px] h-[600px] border rounded bg-surface-primary overflow-hidden"><div className="p-2 border-b text-sm font-semibold text-secondary">Custom Products Sidebar</div>diff --git a/frontend/src/layout/panel-layout/ProjectTree/menus/MenuItems.tsx b/frontend/src/layout/panel-layout/ProjectTree/menus/MenuItems.tsxindex 1bf451b53fff..70e7ff120b1b 100644--- a/frontend/src/layout/panel-layout/ProjectTree/menus/MenuItems.tsx+++ b/frontend/src/layout/panel-layout/ProjectTree/menus/MenuItems.tsx@@ -37,9 +37,9 @@ import { groupAnalyticsConfigLogic } from 'scenes/settings/environment/groupAnalimport { FileSystemEntry } from '~/queries/schema/schema-general'+import { editToolsLogic } from '../../ai-first/tabs/editToolsLogic'import { NewMenu } from '../../menus/NewMenu'import { panelLayoutLogic } from '../../panelLayoutLogic'-import { editCustomProductsModalLogic } from '../../PinnedFolder/editCustomProductsModalLogic'import { projectTreeDataLogic } from '../projectTreeDataLogic'import { projectTreeLogic } from '../projectTreeLogic'import { joinPath, splitPath } from '../utils'@@ -72,7 +72,7 @@ export function MenuItems({const { deleteShortcut, addShortcutItem } = useActions(projectTreeDataLogic)const { groupTypes } = useValues(groupAnalyticsConfigLogic)const { deleteGroupType } = useActions(groupAnalyticsConfigLogic)- const { selectedPaths: customProductsSelectedPaths } = useValues(editCustomProductsModalLogic)+ const { selectedPaths: customProductsSelectedPaths } = useValues(editToolsLogic)const projectTreeLogicProps = { key: logicKey ?? uniqueKey, root }const { checkedItems, checkedItemCountNumeric, checkedItemsArray } = useValues(@@ -91,7 +91,7 @@ export function MenuItems({} = useActions(projectTreeLogic(projectTreeLogicProps))const { openMoveToModal } = useActions(moveToLogic)const { openLinkToModal } = useActions(linkToLogic)- const { toggleProduct } = useActions(editCustomProductsModalLogic)+ const { toggleTool } = useActions(editToolsLogic)const { resetPanelLayout } = useActions(panelLayoutLogic)@@ -284,7 +284,7 @@ export function MenuItems({asChildonClick={(e) => {e.stopPropagation()- toggleProduct(item.record?.path as string)+ toggleTool(item.record!.path as string)}}><ButtonPrimitive menuItem>Remove from sidebar panel</ButtonPrimitive>@@ -296,7 +296,7 @@ export function MenuItems({asChildonClick={(e) => {e.stopPropagation()- toggleProduct(item.record?.path as string)+ toggleTool(item.record!.path as string)}}><ButtonPrimitive menuItem>Add to sidebar panel</ButtonPrimitive>diff --git a/frontend/src/layout/panel-layout/ai-first/PromotedProductNavItem.stories.tsx b/frontend/src/layout/panel-layout/ai-first/PromotedProductNavItem.stories.tsxdeleted file mode 100644index 9f878c3dd405..000000000000--- a/frontend/src/layout/panel-layout/ai-first/PromotedProductNavItem.stories.tsx+++ /dev/null@@ -1,101 +0,0 @@-import { Meta, StoryObj, type Decorator } from '@storybook/react'--import { FEATURE_FLAGS } from 'lib/constants'-import { getAppContext } from 'lib/utils/getAppContext'-import { App } from 'scenes/App'-import { urls } from 'scenes/urls'--import { mswDecorator } from '~/mocks/browser'--import { localStorageOverrideKey, localStorageProductKey } from './promotedProductLogic'--/**- * The promoted-product entry lives in the left project nav, so these stories render the- * full `App` with the navigation captured. We vary only the two inputs that decide what- * the slot shows: the `promoted-product` flag variant and whether the team has a primary- * onboarding product. With no product, `intent`/`intent_plus` fall back to a dashboards link.- */-const withPromotedProductIntent =- (intent: string | null): Decorator =>- (Story) => {- const ctx = getAppContext()- const teamId = ctx?.current_team?.id- if (teamId != null) {- // Clear any leakage from a previous story so AppContext is the only source.- window.localStorage.removeItem(localStorageProductKey(teamId))- window.localStorage.removeItem(localStorageOverrideKey(teamId))- }- if (ctx) {- ctx.promoted_product_intent = intent- }- return <Story />- }--const meta: Meta = {- component: App,- title: 'Scenes-App/Promoted Product',- parameters: {- layout: 'fullscreen',- viewMode: 'story',- pageUrl: urls.dashboards(),- testOptions: {- includeNavigationInSnapshot: true,- },- },- decorators: [- mswDecorator({- get: {- '/api/projects/:team_id/dashboard_templates/': {},- '/api/projects/:id/integrations': { results: [] },- '/api/organizations/:organization_id/pipeline_destinations/': { results: [] },- '/api/projects/:id/pipeline_destination_configs/': { results: [] },- '/api/projects/:id/batch_exports/': { results: [] },- '/api/projects/:id/surveys/': { results: [] },- '/api/projects/:id/surveys/responses_count/': { results: [] },- '/api/environments/:team_id/exports/': { results: [] },- '/api/environments/:team_id/events': { results: [] },- },- post: {- '/api/environments/:team_id/query/:kind': {},- },- }),- ],-}-export default meta--type Story = StoryObj--const PROMOTED_PRODUCT = 'session_replay'--// control: the entry never renders, with or without a product.-export const ControlNoProduct: Story = {- parameters: { featureFlags: { [FEATURE_FLAGS.PROMOTED_PRODUCT]: 'control' } },- decorators: [withPromotedProductIntent(null)],-}--export const ControlWithProduct: Story = {- parameters: { featureFlags: { [FEATURE_FLAGS.PROMOTED_PRODUCT]: 'control' } },- decorators: [withPromotedProductIntent(PROMOTED_PRODUCT)],-}--// intent: renders the entry; falls back to a dashboards link when there's no product.-export const IntentNoProduct: Story = {- parameters: { featureFlags: { [FEATURE_FLAGS.PROMOTED_PRODUCT]: 'intent' } },- decorators: [withPromotedProductIntent(null)],-}--export const IntentWithProduct: Story = {- parameters: { featureFlags: { [FEATURE_FLAGS.PROMOTED_PRODUCT]: 'intent' } },- decorators: [withPromotedProductIntent(PROMOTED_PRODUCT)],-}--// intent_plus: same as intent, plus the configure cog.-export const IntentPlusNoProduct: Story = {- parameters: { featureFlags: { [FEATURE_FLAGS.PROMOTED_PRODUCT]: 'intent_plus' } },- decorators: [withPromotedProductIntent(null)],-}--export const IntentPlusWithProduct: Story = {- parameters: { featureFlags: { [FEATURE_FLAGS.PROMOTED_PRODUCT]: 'intent_plus' } },- decorators: [withPromotedProductIntent(PROMOTED_PRODUCT)],-}diff --git a/frontend/src/layout/panel-layout/ai-first/PromotedProductNavItem.tsx b/frontend/src/layout/panel-layout/ai-first/PromotedProductNavItem.tsxdeleted file mode 100644index fbd439bc540b..000000000000--- a/frontend/src/layout/panel-layout/ai-first/PromotedProductNavItem.tsx+++ /dev/null@@ -1,53 +0,0 @@-import { useActions, useValues } from 'kea'--import { IconDashboard } from '@posthog/icons'--import { getProductIcon } from 'scenes/onboarding/shared/utils'--import { NavLink } from './NavLink'-import {- FALLBACK_PRODUCT_KEY,- labelForPromotedProductKey,- promotedProductLogic,- urlForPromotedProductKey,-} from './promotedProductLogic'--interface PromotedProductNavItemProps {- isCollapsed: boolean-}--export function PromotedProductNavItem({ isCollapsed }: PromotedProductNavItemProps): JSX.Element | null {- const { shouldRenderEntry, shouldRenderCog, effectiveProductKey } = useValues(promotedProductLogic)- const { trackPromotedProductClick, showConfigureModal } = useActions(promotedProductLogic)-- if (!shouldRenderEntry || !effectiveProductKey) {- return null- }-- const icon =- effectiveProductKey === FALLBACK_PRODUCT_KEY ? (- <IconDashboard />- ) : (- getProductIcon(null, { productType: effectiveProductKey })- )-- return (- <NavLink- to={urlForPromotedProductKey(effectiveProductKey) ?? '#'}- label={labelForPromotedProductKey(effectiveProductKey)}- icon={icon}- isCollapsed={isCollapsed}- data-attr="nav-item-promoted-product"- onClick={() => trackPromotedProductClick()}- sideAction={- shouldRenderCog- ? {- onClick: () => showConfigureModal(),- tooltip: 'Configure promoted product',- 'data-attr': 'nav-configure-promoted-product',- }- : undefined- }- />- )-}diff --git a/frontend/src/layout/panel-layout/ai-first/promotedProductLogic.test.ts b/frontend/src/layout/panel-layout/ai-first/promotedProductLogic.test.tsdeleted file mode 100644index b6c39cb3a9db..000000000000--- a/frontend/src/layout/panel-layout/ai-first/promotedProductLogic.test.ts+++ /dev/null@@ -1,287 +0,0 @@-import { MOCK_TEAM_ID } from 'lib/api.mock'--import { expectLogic } from 'kea-test-utils'-import posthog from 'posthog-js'--import { FEATURE_FLAGS } from 'lib/constants'-import { featureFlagLogic } from 'lib/logic/featureFlagLogic'--import { initKeaTests } from '~/test/init'--import { localStorageOverrideKey, localStorageProductKey, promotedProductLogic } from './promotedProductLogic'--const PRODUCT_KEY = localStorageProductKey(MOCK_TEAM_ID)-const OVERRIDE_KEY = localStorageOverrideKey(MOCK_TEAM_ID)--jest.mock('posthog-js')-const mockedPosthog = posthog as jest.Mocked<typeof posthog>--describe('promotedProductLogic', () => {- let logic: ReturnType<typeof promotedProductLogic.build>-- const setFlagVariant = (variant: string | boolean | undefined): void => {- featureFlagLogic.actions.setFeatureFlags(- variant ? [FEATURE_FLAGS.PROMOTED_PRODUCT] : [],- variant ? { [FEATURE_FLAGS.PROMOTED_PRODUCT]: variant } : {}- )- }-- const mountLogic = (): void => {- logic = promotedProductLogic()- logic.mount()- }-- beforeEach(() => {- jest.clearAllMocks()- window.localStorage.clear()- initKeaTests()- featureFlagLogic.mount()- })-- afterEach(() => {- if (logic) {- logic.unmount()- }- })-- describe('variant gating', () => {- it.each([- ['control', false, false],- ['control_b', false, false],- ['intent', true, false],- ['intent_plus', true, true],- ])('variant=%s -> shouldRenderEntry=%s shouldRenderCog=%s', async (variant, renderEntry, renderCog) => {- window.localStorage.setItem(PRODUCT_KEY, 'session_replay')- mountLogic()- setFlagVariant(variant)-- await expectLogic(logic).toMatchValues({- variant,- shouldRenderEntry: renderEntry,- shouldRenderCog: renderCog,- })- })-- it('hides entry when flag is missing', async () => {- window.localStorage.setItem(PRODUCT_KEY, 'session_replay')- mountLogic()- setFlagVariant(undefined)-- await expectLogic(logic).toMatchValues({- variant: null,- shouldRenderEntry: false,- })- })-- it('falls back to dashboards when no intent is available', async () => {- mountLogic()- setFlagVariant('intent')-- await expectLogic(logic).toMatchValues({- effectiveProductKey: 'dashboards',- shouldRenderEntry: true,- })- })- })-- describe('effectiveProductKey', () => {- it('resolves from localStorage when set', async () => {- window.localStorage.setItem(PRODUCT_KEY, 'web_analytics')- mountLogic()- setFlagVariant('intent')-- await expectLogic(logic).toMatchValues({ effectiveProductKey: 'web_analytics' })- })-- it('intent_plus prefers override over onboarding intent', async () => {- window.localStorage.setItem(PRODUCT_KEY, 'session_replay')- window.localStorage.setItem(OVERRIDE_KEY, 'web_analytics')- mountLogic()- setFlagVariant('intent_plus')-- await expectLogic(logic).toMatchValues({ effectiveProductKey: 'web_analytics' })- })-- it('intent variant ignores the override (cog is intent_plus only)', async () => {- window.localStorage.setItem(PRODUCT_KEY, 'session_replay')- window.localStorage.setItem(OVERRIDE_KEY, 'web_analytics')- mountLogic()- setFlagVariant('intent')-- await expectLogic(logic).toMatchValues({ effectiveProductKey: 'session_replay' })- })-- it('falls back to dashboards for an unknown product key', async () => {- window.localStorage.setItem(PRODUCT_KEY, 'fictional_product')- mountLogic()- setFlagVariant('intent')-- await expectLogic(logic).toMatchValues({- effectiveProductKey: 'dashboards',- shouldRenderEntry: true,- })- })-- it('ignores an unknown override', async () => {- window.localStorage.setItem(PRODUCT_KEY, 'session_replay')- window.localStorage.setItem(OVERRIDE_KEY, 'not_a_product')- mountLogic()- setFlagVariant('intent_plus')-- await expectLogic(logic).toMatchValues({ effectiveProductKey: 'session_replay' })- })- })-- describe('defaultProductKey', () => {- it.each([- ['web_analytics', 'web_analytics'],- ['fictional_product', 'dashboards'],- ])('intent=%s -> defaultProductKey=%s', async (intent, expected) => {- window.localStorage.setItem(PRODUCT_KEY, intent)- mountLogic()- setFlagVariant('intent_plus')-- await expectLogic(logic).toMatchValues({ defaultProductKey: expected })- })-- it('falls back to dashboards with no intent', async () => {- mountLogic()- setFlagVariant('intent_plus')-- await expectLogic(logic).toMatchValues({ defaultProductKey: 'dashboards' })- })- })-- describe('tracking', () => {- it('captures click with the product key', async () => {- window.localStorage.setItem(PRODUCT_KEY, 'session_replay')- mountLogic()- setFlagVariant('intent')-- logic.actions.trackPromotedProductClick()-- expect(mockedPosthog.capture).toHaveBeenCalledWith(- 'promoted product clicked',- expect.objectContaining({ variant: 'intent', product_key: 'session_replay' })- )- })-- it('does not capture click for a non-entry variant', async () => {- mountLogic()- setFlagVariant('control')-- logic.actions.trackPromotedProductClick()-- expect(mockedPosthog.capture).not.toHaveBeenCalledWith('promoted product clicked', expect.anything())- })-- it('captures config opened with the current product', async () => {- window.localStorage.setItem(PRODUCT_KEY, 'session_replay')- mountLogic()- setFlagVariant('intent_plus')-- logic.actions.showConfigureModal()-- expect(mockedPosthog.capture).toHaveBeenCalledWith(- 'promoted product config opened',- expect.objectContaining({ variant: 'intent_plus', current_product: 'session_replay' })- )- })-- it('persists override to localStorage and captures config changed', async () => {- window.localStorage.setItem(PRODUCT_KEY, 'session_replay')- mountLogic()- setFlagVariant('intent_plus')-- logic.actions.setOverride('web_analytics', logic.values.effectiveProductKey)-- expect(window.localStorage.getItem(OVERRIDE_KEY)).toBe('web_analytics')- expect(mockedPosthog.capture).toHaveBeenCalledWith(- 'promoted product config changed',- expect.objectContaining({ variant: 'intent_plus', from: 'session_replay', to: 'web_analytics' })- )-- await expectLogic(logic).toMatchValues({ effectiveProductKey: 'web_analytics' })- })-- it('captures the product showing at change time as `from` on repeated overrides', async () => {- window.localStorage.setItem(PRODUCT_KEY, 'session_replay')- mountLogic()- setFlagVariant('intent_plus')-- logic.actions.setOverride('web_analytics', logic.values.effectiveProductKey)- logic.actions.setOverride('feature_flags', logic.values.effectiveProductKey)-- expect(mockedPosthog.capture).toHaveBeenLastCalledWith(- 'promoted product config changed',- expect.objectContaining({ from: 'web_analytics', to: 'feature_flags' })- )- })-- it('clearOverride removes localStorage entry, reverts to intent, and reports the change', async () => {- window.localStorage.setItem(PRODUCT_KEY, 'session_replay')- window.localStorage.setItem(OVERRIDE_KEY, 'web_analytics')- mountLogic()- setFlagVariant('intent_plus')-- logic.actions.clearOverride(logic.values.effectiveProductKey)-- expect(window.localStorage.getItem(OVERRIDE_KEY)).toBeNull()- expect(mockedPosthog.capture).toHaveBeenCalledWith(- 'promoted product config changed',- expect.objectContaining({ from: 'web_analytics', to: 'session_replay' })- )- await expectLogic(logic).toMatchValues({ effectiveProductKey: 'session_replay' })- })- })-- describe('modal state', () => {- it('opens and closes the configure modal', async () => {- mountLogic()-- await expectLogic(logic).toMatchValues({ isConfigureModalOpen: false })-- logic.actions.showConfigureModal()- await expectLogic(logic).toMatchValues({ isConfigureModalOpen: true })-- logic.actions.hideConfigureModal()- await expectLogic(logic).toMatchValues({ isConfigureModalOpen: false })- })-- it('seeds the pending product from effectiveProductKey every time the modal opens', async () => {- window.localStorage.setItem(PRODUCT_KEY, 'session_replay')- mountLogic()- setFlagVariant('intent_plus')-- logic.actions.showConfigureModal()- await expectLogic(logic).toMatchValues({ pendingProduct: 'session_replay' })-- logic.actions.setOverride('web_analytics', logic.values.effectiveProductKey)- logic.actions.hideConfigureModal()- logic.actions.showConfigureModal()- await expectLogic(logic).toMatchValues({ pendingProduct: 'web_analytics' })- })- })-- describe('team-scoped storage', () => {- it('ignores values stored under a different team id', () => {- // Simulate a different project's value lingering in this browser.- window.localStorage.setItem(localStorageProductKey(MOCK_TEAM_ID + 1), 'session_replay')- mountLogic()- setFlagVariant('intent')-- // Current team has no stored intent, so falls through to APP_CONTEXT/null.- expect(logic.values.promotedProductIntent).toBeNull()- })-- it('writes the override under the current-team key, not a global one', () => {- mountLogic()- setFlagVariant('intent_plus')- logic.actions.setOverride('web_analytics', logic.values.effectiveProductKey)-- expect(window.localStorage.getItem(OVERRIDE_KEY)).toBe('web_analytics')- // The legacy global key should not be touched.- expect(window.localStorage.getItem('posthog-promoted-product-override')).toBeNull()- })- })-})diff --git a/frontend/src/layout/panel-layout/ai-first/promotedProductLogic.ts b/frontend/src/layout/panel-layout/ai-first/promotedProductLogic.tsdeleted file mode 100644index dba166f50012..000000000000--- a/frontend/src/layout/panel-layout/ai-first/promotedProductLogic.ts+++ /dev/null@@ -1,258 +0,0 @@-import { actions, afterMount, connect, kea, listeners, path, reducers, selectors } from 'kea'-import posthog from 'posthog-js'--import { FEATURE_FLAGS } from 'lib/constants'-import { featureFlagLogic } from 'lib/logic/featureFlagLogic'-import { getAppContext } from 'lib/utils/getAppContext'--import type { promotedProductLogicType } from './promotedProductLogicType'--const PROMOTED_PRODUCT_VARIANTS = ['control', 'control_b', 'intent', 'intent_plus'] as const-export type PromotedProductVariant = (typeof PROMOTED_PRODUCT_VARIANTS)[number]--/** Product the slot falls back to when an entry-showing variant resolves no onboarding product or override. */-export const FALLBACK_PRODUCT_KEY = 'dashboards'--/** True for variants that should render the promoted-product sidebar entry. */-export function variantShowsEntry(variant: PromotedProductVariant | null): boolean {- return variant === 'intent' || variant === 'intent_plus'-}--/** True for variants that let the user override the promoted product via the configure modal. */-export function variantAllowsOverride(variant: PromotedProductVariant | null): boolean {- return variant === 'intent_plus'-}--// localStorage keys are team-scoped: a single browser can be logged into multiple-// projects, and the promoted product for project A shouldn't leak into project B.-// `currentTeamId()` resolves the team from `getAppContext()` (always present after auth).-function currentTeamId(): number | null {- const id = getAppContext()?.current_team?.id- return typeof id === 'number' ? id : null-}--export function localStorageProductKey(teamId: number): string {- return `posthog-promoted-product:${teamId}`-}--export function localStorageOverrideKey(teamId: number): string {- return `posthog-promoted-product-override:${teamId}`-}--/**- * Single source of truth for the promoted-product registry — one record per product,- * so a product's url and label can't drift apart. The helpers below index it directly.- *- * Labels follow PostHog's sentence-case convention (CLAUDE.md) — proper-noun- * acronyms (LLM, AI) stay capitalised, everything else is sentence case.- */-interface PromotedProductInfo {- url: string- /** Display label shown in the sidebar entry and the configure modal. */- label: string-}--const PRODUCT_REGISTRY: Record<string, PromotedProductInfo> = {- dashboards: { url: '/dashboard', label: 'Dashboards' },- product_analytics: { url: '/insights', label: 'Product analytics' },- web_analytics: { url: '/web', label: 'Web analytics' },- session_replay: { url: '/replay', label: 'Session replay' },- llm_analytics: { url: '/ai-observability', label: 'LLM analytics' },- error_tracking: { url: '/error_tracking', label: 'Error tracking' },- feature_flags: { url: '/feature_flags', label: 'Feature flags' },- experiments: { url: '/experiments', label: 'Experiments' },- surveys: { url: '/surveys', label: 'Surveys' },- logs: { url: '/logs', label: 'Logs' },- data_warehouse: { url: '/data-warehouse', label: 'Data warehouse' },- workflows: { url: '/workflows', label: 'Workflows' },- marketing_analytics: { url: '/marketing', label: 'Marketing analytics' },-}--/** Selectable product keys for the configure modal, in registry order. */-export const PROMOTED_PRODUCT_KEYS: string[] = Object.keys(PRODUCT_REGISTRY)--export function labelForPromotedProductKey(productKey: string): string {- return PRODUCT_REGISTRY[productKey]?.label ?? productKey-}--export function urlForPromotedProductKey(productKey: string): string | null {- return PRODUCT_REGISTRY[productKey]?.url ?? null-}--/** Returns the product key when it names a known promoted product, otherwise null. */-export function resolveProductKey(productKey: string | null | undefined): string | null {- return productKey && productKey in PRODUCT_REGISTRY ? productKey : null-}--function readLocalStorageString(key: string): string | null {- try {- return window.localStorage.getItem(key)- } catch {- return null- }-}--function readPromotedProductFromStorage(): string | null {- const teamId = currentTeamId()- if (teamId === null) {- return null- }- return readLocalStorageString(localStorageProductKey(teamId))-}--function readPromotedProductOverrideFromStorage(): string | null {- const teamId = currentTeamId()- if (teamId === null) {- return null- }- return resolveProductKey(readLocalStorageString(localStorageOverrideKey(teamId)))-}--/** Persist (or, with `null`, clear) the team-scoped override. Best-effort — failures are ignored. */-function persistOverride(productKey: string | null): void {- const teamId = currentTeamId()- if (teamId === null) {- return- }- const key = localStorageOverrideKey(teamId)- try {- if (productKey === null) {- window.localStorage.removeItem(key)- } else {- window.localStorage.setItem(key, productKey)- }- } catch {- // ignore — override is best-effort persistence in localStorage- }-}--export const promotedProductLogic = kea<promotedProductLogicType>([- path(['layout', 'panel-layout', 'ai-first', 'promotedProductLogic']),-- connect(() => ({- values: [featureFlagLogic, ['featureFlags']],- })),-- actions({- // `from` is the product showing at click time (effectiveProductKey) — passed in- // because by the time the listener runs the override reducer has already changed it.- setOverride: (productKey: string, from: string | null) => ({ productKey, from }),- clearOverride: (from: string | null) => ({ from }),- showConfigureModal: true,- hideConfigureModal: true,- trackPromotedProductClick: true,- refreshIntentFromStorage: true,- refreshOverrideFromStorage: true,- setPendingProduct: (productKey: string) => ({ productKey }),- }),-- reducers({- isConfigureModalOpen: [- false,- {- showConfigureModal: () => true,- hideConfigureModal: () => false,- },- ],- promotedProductIntent: [- null as string | null,- {- refreshIntentFromStorage: () =>- readPromotedProductFromStorage() ?? getAppContext()?.promoted_product_intent ?? null,- },- ],- override: [- null as string | null,- {- setOverride: (_, { productKey }) => productKey,- clearOverride: () => null,- refreshOverrideFromStorage: () => readPromotedProductOverrideFromStorage(),- },- ],- // Pending product for the configure modal. We can't initialise it from- // `effectiveProductKey` here (reducer can't read selectors), so a listener on- // `showConfigureModal` reseeds it from the current product every time the modal- // opens — preventing stale state in the always-mounted modal in `GlobalModals`.- pendingProduct: [- FALLBACK_PRODUCT_KEY as string,- {- setPendingProduct: (_, { productKey }) => productKey,- },- ],- }),-- selectors({- variant: [- (s) => [s.featureFlags],- (featureFlags): PromotedProductVariant | null => {- const raw = featureFlags[FEATURE_FLAGS.PROMOTED_PRODUCT]- return PROMOTED_PRODUCT_VARIANTS.includes(raw as PromotedProductVariant)- ? (raw as PromotedProductVariant)- : null- },- ],- // The product the slot shows with no override — onboarding intent, else the fallback.- // Drives the "Reset to default (…)" label so the user sees what reset reverts to.- defaultProductKey: [- (s) => [s.promotedProductIntent],- (intent): string => resolveProductKey(intent) ?? FALLBACK_PRODUCT_KEY,- ],- effectiveProductKey: [- (s) => [s.variant, s.override, s.defaultProductKey],- (variant, override, defaultProductKey): string | null => {- if (!variantShowsEntry(variant)) {- return null- }- return variantAllowsOverride(variant) && override ? override : defaultProductKey- },- ],- shouldRenderEntry: [(s) => [s.variant], (variant): boolean => variantShowsEntry(variant)],- shouldRenderCog: [(s) => [s.variant], (variant): boolean => variantAllowsOverride(variant)],- }),-- listeners(({ actions, values }) => {- const captureConfigChanged = (from: string | null, to: string | null): void => {- posthog.capture('promoted product config changed', {- variant: values.variant,- from,- to,- })- }- return {- setOverride: ({ productKey, from }) => {- persistOverride(productKey)- captureConfigChanged(from, productKey)- },- clearOverride: ({ from }) => {- persistOverride(null)- captureConfigChanged(from, values.defaultProductKey)- },- showConfigureModal: () => {- // Seed the pending product from the current effectiveProductKey so the modal- // always opens reflecting the user's current promoted product, even after- // Reset-to-default or a fresh page load.- const productKey = values.effectiveProductKey ?? FALLBACK_PRODUCT_KEY- actions.setPendingProduct(productKey)- posthog.capture('promoted product config opened', {- variant: values.variant,- current_product: productKey,- })- },- trackPromotedProductClick: () => {- const productKey = values.effectiveProductKey- if (!productKey) {- return- }- posthog.capture('promoted product clicked', {- variant: values.variant,- product_key: productKey,- })- },- }- }),-- afterMount(({ actions }) => {- actions.refreshIntentFromStorage()- actions.refreshOverrideFromStorage()- }),-])diff --git a/frontend/src/layout/panel-layout/ai-first/tabs/NavTabBrowse.tsx b/frontend/src/layout/panel-layout/ai-first/tabs/NavTabBrowse.tsxindex 335f20bc2218..64336837088b 100644--- a/frontend/src/layout/panel-layout/ai-first/tabs/NavTabBrowse.tsx+++ b/frontend/src/layout/panel-layout/ai-first/tabs/NavTabBrowse.tsx@@ -31,7 +31,6 @@ import { urls } from 'scenes/urls'import { navigationLogic } from '~/layout/navigation/navigationLogic'import { NavLink } from '~/layout/panel-layout/ai-first/NavLink'-import { PromotedProductNavItem } from '~/layout/panel-layout/ai-first/PromotedProductNavItem'import { PanelLayoutNavIdentifier, panelLayoutLogic } from '~/layout/panel-layout/panelLayoutLogic'import { iconForType } from '~/layout/panel-layout/ProjectTree/defaultTree'import { ProjectTree } from '~/layout/panel-layout/ProjectTree/ProjectTree'@@ -42,7 +41,7 @@ import { ActivityTab } from '~/types'import { BrowserLikeMenuItems } from '../../ProjectTree/menus/BrowserLikeMenuItems'import { PanelIndicatorIcon, SectionTrigger } from '../Nav'-import { inlineEditToolsLogic } from './inlineEditToolsLogic'+import { editToolsLogic } from './editToolsLogic'import { navRecentsLogic } from './navRecentsLogic'const panelTriggerItems: {@@ -163,8 +162,8 @@ export function NavTabBrowse(): JSX.Element {} = useValues(panelLayoutLogic)const isProductAutonomyEnabled = useFeatureFlag('PRODUCT_AUTONOMY')const { recentItems, recentItemsLoading } = useValues(navRecentsLogic)- const { isEditMode, checkedTools } = useValues(inlineEditToolsLogic)- const { enterEditMode, saveAndExitEditMode, toggleTool } = useActions(inlineEditToolsLogic)+ const { isEditMode, checkedTools } = useValues(editToolsLogic)+ const { enterEditMode, saveAndExitEditMode, toggleTool } = useActions(editToolsLogic)const { showConfigureHomeModal } = useActions(navigationLogic)const currentPath = removeProjectIdIfPresent(pathname)@@ -216,8 +215,6 @@ export function NavTabBrowse(): JSX.Element {}}/>- <PromotedProductNavItem isCollapsed={isLayoutNavCollapsed} />-{isProductAutonomyEnabled && (<NavLinkto={urls.inbox()}diff --git a/frontend/src/layout/panel-layout/ai-first/tabs/inlineEditToolsLogic.ts b/frontend/src/layout/panel-layout/ai-first/tabs/editToolsLogic.tssimilarity index 95%rename from frontend/src/layout/panel-layout/ai-first/tabs/inlineEditToolsLogic.tsrename to frontend/src/layout/panel-layout/ai-first/tabs/editToolsLogic.tsindex 736cae83007b..31adbd03fed5 100644--- a/frontend/src/layout/panel-layout/ai-first/tabs/inlineEditToolsLogic.ts+++ b/frontend/src/layout/panel-layout/ai-first/tabs/editToolsLogic.ts@@ -8,12 +8,12 @@ import { customProductsLogic } from '~/layout/panel-layout/ProjectTree/customProimport { getItemId } from '~/layout/panel-layout/ProjectTree/utils'import { UserProductListItem, UserProductListReason } from '~/queries/schema/schema-general'-import type { inlineEditToolsLogicType } from './inlineEditToolsLogicType'+import type { editToolsLogicType } from './editToolsLogicType'const PRODUCTS_ROOT = 'products://'-export const inlineEditToolsLogic = kea<inlineEditToolsLogicType>([- path(['layout', 'panel-layout', 'ai-first', 'tabs', 'inlineEditToolsLogic']),+export const editToolsLogic = kea<editToolsLogicType>([+ path(['layout', 'panel-layout', 'ai-first', 'tabs', 'editToolsLogic']),connect(() => ({values: [customProductsLogic, ['customProducts']],actions: [customProductsLogic, ['loadCustomProducts', 'loadCustomProductsSuccess']],diff --git a/frontend/src/layout/scenes/ConfigurePromotedProductModal.tsx b/frontend/src/layout/scenes/ConfigurePromotedProductModal.tsxdeleted file mode 100644index ead83ebb8f0f..000000000000--- a/frontend/src/layout/scenes/ConfigurePromotedProductModal.tsx+++ /dev/null@@ -1,70 +0,0 @@-import { useActions, useValues } from 'kea'--import { LemonButton, LemonSelect } from '@posthog/lemon-ui'--import { LemonModal } from 'lib/lemon-ui/LemonModal'--import {- labelForPromotedProductKey,- PROMOTED_PRODUCT_KEYS,- promotedProductLogic,-} from '~/layout/panel-layout/ai-first/promotedProductLogic'--export interface ConfigurePromotedProductModalProps {- isOpen: boolean- onClose: () => void-}--const PRODUCT_OPTIONS = PROMOTED_PRODUCT_KEYS.map((value) => ({ value, label: labelForPromotedProductKey(value) }))--export function ConfigurePromotedProductModal({ isOpen, onClose }: ConfigurePromotedProductModalProps): JSX.Element {- const { pendingProduct, defaultProductKey, override, effectiveProductKey } = useValues(promotedProductLogic)- const { setPendingProduct, setOverride, clearOverride } = useActions(promotedProductLogic)-- const handleSave = (): void => {- setOverride(pendingProduct, effectiveProductKey)- onClose()- }-- const handleReset = (): void => {- clearOverride(effectiveProductKey)- onClose()- }-- return (- <LemonModal- isOpen={isOpen}- onClose={onClose}- title="Configure promoted product"- description="Choose the product to show at the top of the navbar."- width="30rem"- footer={- <div className="flex w-full justify-between gap-2">- <LemonButton- type="tertiary"- onClick={handleReset}- disabledReason={override ? undefined : 'No override to reset'}- >- Reset to default ({labelForPromotedProductKey(defaultProductKey)})- </LemonButton>- <div className="flex gap-2">- <LemonButton type="secondary" onClick={onClose}>- Cancel- </LemonButton>- <LemonButton type="primary" onClick={handleSave} data-attr="configure-promoted-product-save">- Save- </LemonButton>- </div>- </div>- }- >- <LemonSelect<string>- fullWidth- value={pendingProduct}- onChange={(value) => setPendingProduct(value)}- options={PRODUCT_OPTIONS}- data-attr="configure-promoted-product-select"- />- </LemonModal>- )-}diff --git a/frontend/src/lib/api.ts b/frontend/src/lib/api.tsindex d946bd4f851e..dd645ba8426e 100644--- a/frontend/src/lib/api.ts+++ b/frontend/src/lib/api.ts@@ -70,7 +70,6 @@ import {MatchingEventsResponse,Node,NodeKind,- PersistedFolder,QueryLogTags,QuerySchema,QueryStatusResponse,@@ -616,15 +615,6 @@ export class ApiRequest {return this.fileSystemShortcut(teamId).addPathComponent('reorder')}- // # Persisted folder- public persistedFolder(projectId?: ProjectType['id']): ApiRequest {- return this.projectsDetail(projectId).addPathComponent('persisted_folder')- }-- public persistedFolderDetail(id: NonNullable<PersistedFolder['id']>, projectId?: ProjectType['id']): ApiRequest {- return this.persistedFolder(projectId).addPathComponent(id)- }-// # User product listpublic userProductList(teamId?: TeamType['id']): ApiRequest {return this.environmentsDetail(teamId).addPathComponent('user_product_list')@@ -2595,18 +2585,6 @@ const api = {},},- persistedFolder: {- async list(): Promise<CountedPaginatedResponse<PersistedFolder>> {- return await new ApiRequest().persistedFolder().get()- },- async create(data: { protocol: string; path: string; type?: string }): Promise<PersistedFolder> {- return await new ApiRequest().persistedFolder().create({ data })- },- async delete(id: PersistedFolder['id']): Promise<void> {- return await new ApiRequest().persistedFolderDetail(id).delete()- },- },-userProductList: {async list(): Promise<CountedPaginatedResponse<UserProductListItem>> {return await new ApiRequest().userProductList().get()@@ -2614,9 +2592,6 @@ const api = {async seed(): Promise<CountedPaginatedResponse<UserProductListItem>> {return await new ApiRequest().userProductList().withAction('seed').create()},- async updateByPath(data: { product_path: string; enabled: boolean }): Promise<UserProductListItem> {- return await new ApiRequest().userProductList().withAction('update_by_path').update({ data })- },async bulkUpdate(items: { product_path: string; enabled: boolean }[]): Promise<{ results: UserProductListItem[] }> {diff --git a/frontend/src/lib/components/MCPHint/MCPUseCaseCard.stories.tsx b/frontend/src/lib/components/MCPHint/MCPUseCaseCard.stories.tsxindex 6d8178ea863e..938f22dbd60f 100644--- a/frontend/src/lib/components/MCPHint/MCPUseCaseCard.stories.tsx+++ b/frontend/src/lib/components/MCPHint/MCPUseCaseCard.stories.tsx@@ -1,7 +1,5 @@import { Meta, StoryObj } from '@storybook/react'-import { FEATURE_FLAGS } from 'lib/constants'-import { MCPUseCaseCard } from './MCPUseCaseCard'const meta: Meta<typeof MCPUseCaseCard> = {@@ -9,7 +7,6 @@ const meta: Meta<typeof MCPUseCaseCard> = {component: MCPUseCaseCard,parameters: {layout: 'centered',- featureFlags: [FEATURE_FLAGS.MCP_HINTS],},}export default metadiff --git a/frontend/src/lib/components/MCPHint/MCPUseCaseCard.tsx b/frontend/src/lib/components/MCPHint/MCPUseCaseCard.tsxindex 7be24d8acbf7..14117ba77bae 100644--- a/frontend/src/lib/components/MCPHint/MCPUseCaseCard.tsx+++ b/frontend/src/lib/components/MCPHint/MCPUseCaseCard.tsx@@ -41,12 +41,12 @@ export function MCPUseCaseCard({expiresAfterMs?: numberforceDisplay?: boolean}): JSX.Element | null {- const { effectiveOptOut, featureEnabled, userRole, topEvents } = useValues(mcpHintLogic)+ const { effectiveOptOut, userRole, topEvents } = useValues(mcpHintLogic)const { loadTopEvents } = useActions(mcpHintLogic)const [expired] = useState(() => (expiresAfterMs ? getExpiryState(surfaceKey, expiresAfterMs).expired : false))const triedLoadingEvents = useRef(false)- const willRender = forceDisplay || (featureEnabled && !effectiveOptOut && !expired)+ const willRender = forceDisplay || (!effectiveOptOut && !expired)useEffect(() => {// Only the SQL editor surface benefits from the team's real event names — keep the call narrow.diff --git a/frontend/src/lib/components/MCPHint/mcpHintLogic.tsx b/frontend/src/lib/components/MCPHint/mcpHintLogic.tsxindex be3a8e41d13b..140ed8646137 100644--- a/frontend/src/lib/components/MCPHint/mcpHintLogic.tsx+++ b/frontend/src/lib/components/MCPHint/mcpHintLogic.tsx@@ -5,7 +5,6 @@ import { toast } from 'react-toastify'import { IconX } from '@posthog/icons'import api from 'lib/api'-import { FEATURE_FLAGS } from 'lib/constants'import { LemonButton } from 'lib/lemon-ui/LemonButton'import { featureFlagLogic } from 'lib/logic/featureFlagLogic'import { eventUsageLogic } from 'lib/utils/eventUsageLogic'@@ -36,11 +35,7 @@ export interface TryShowMCPHintOptions {export function tryShowMCPHint(surfaceKey: SurfaceKey, options: TryShowMCPHintOptions = {}): void {try {const mounted = mcpHintLogic.findMounted()- if (!mounted?.values.featureEnabled) {- return- }-- mounted.actions.tryShowHint(surfaceKey, options.derivedPrompt)+ mounted?.actions.tryShowHint(surfaceKey, options.derivedPrompt)} catch (error) {console.warn('[mcpHint] dispatch failed; host listener will continue', { surfaceKey, error })}@@ -110,11 +105,6 @@ export const mcpHintLogic = kea<mcpHintLogicType>([],}),selectors({- featureEnabled: [- (s) => [s.featureFlags],- (featureFlags: Record<string, boolean | string>): boolean =>- featureFlags[FEATURE_FLAGS.MCP_HINTS] === 'test',- ],effectiveOptOut: [(s) => [s.localGlobalOptOut, s.user],(localOptOut: boolean, user: UserType | null): boolean => Boolean(localOptOut || user?.hide_mcp_hints),diff --git a/frontend/src/lib/constants.tsx b/frontend/src/lib/constants.tsxindex f3ab4732d12f..7b25fda43f0a 100644--- a/frontend/src/lib/constants.tsx+++ b/frontend/src/lib/constants.tsx@@ -266,7 +266,6 @@ export const FEATURE_FLAGS = {CONDENSED_FILTER_BAR: 'condensed_filter_bar', // owner: @jordanm-posthog #team-web-analyticsCREATE_FORM_TOOL: 'phai-create-form-tool', // owner: @kappa90 #team-posthog-aiCRM_ITERATION_ONE: 'crm-iteration-one', // owner: @arthurdedeus #team-customer-analytics- CUSTOM_PRODUCTS_SIDEBAR: 'custom-products-sidebar', // owner: @rafaeelaudibert #team-growthCUSTOMER_ANALYTICS: 'customer-analytics-roadmap', // owner: @arthurdedeus #team-customer-analyticsCUSTOMER_ANALYTICS_CSP: 'customer-analytics-csp', // owner: @arthurdedeus #team-customer-analytics, gates the Customer analytics > Accounts settings tab (account_group_type_index dropdown)CUSTOMER_ANALYTICS_JOURNEYS: 'customer-analytics-journeys', // owner: @arthurdedeus #team-customer-analytics@@ -323,21 +322,18 @@ export const FEATURE_FLAGS = {FUNNEL_INSIGHT_ALERTS: 'funnel-insight-alerts', // owner: @vdekrijger, gates alerts on funnel insights (conversion rate)GROUP_PROFILE_EXPERIMENT: 'group-profile-experiment', // owner: @arthurdedeus #team-customer-analyticsHACKATHONS_SUBSCRIPTIONS: 'hackathons_subscriptions', // owner: #team-analytics-platform, gates listing subscription delivery history and AI change summaries- HEALTH_ALERTS: 'health-alerts', // owner: #team-growth, gates the central /health/alerts scene and per-page Alerts buttonsHEALTH_ASK_AI: 'health-ask-ai', // owner: @jordanm-posthog #team-web-analytics, gates the "Ask PostHog AI" buttons on the Health overviewHOGQL_INSIGHT_ALERTS: 'hogql-insight-alerts', // owner: @vdekrijger, gates alerts on SQL-backed (HogQL) insightsHOGQL_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: #team-growth+ IDENTITY_MATCHING: 'identity-matching', // owner: @fercgomes #team-growth, gates new identity matching scene on marketing analyticsINBOX_SLACK_NOTIFICATIONS: 'inbox-slack-notifications', // owner: #team-self-driving, gates the Slack notifications config card in the inboxINSIGHT_ADD_TO_DASHBOARD_AAB: 'insight-add-to-dashboard-aab', // owner: @pauldambra #team-product-analytics multivariate=control,control_2,testINSIGHT_SUBSCRIBE_PROMINENT_BUTTON: 'insight-subscribe-prominent-button', // owner: @mattp #team-analytics-platform multivariate=control,testINTER_PROJECT_TRANSFERS: 'inter-project-transfers', // owner: @reecejones #team-platform-featuresJS_SNIPPET_VERSIONING: 'js-snippet-versioning', // owner: #team-client-libraries- LEGAL_DOCUMENTS: 'legal-documents', // owner: @rafaeelaudibert #team-growthLINKS: 'links', // owner: @marconlp #team-link (team doesn't exist for now, maybe will come back in the future)LIVE_DEBUGGER: 'live-debugger', // owner: @marcecollLIVE_EVENTS_RICH_FILTERS: 'live-events-rich-filters', // owner: @jordanm-posthog #team-web-analytics- LIVESTREAM_TUI: 'livestream-tui', // owner: @rafaeelaudibert #team-growthLLM_ANALYTICS_CLUSTERING_ADMIN: 'llm-analytics-clustering-admin', // owner: #team-ai-observabilityLLM_ANALYTICS_CUSTOM_PARSERS: 'ai-observability-custom-parsers', // owner: #team-ai-observabilityLLM_ANALYTICS_DATASETS: 'llm-analytics-datasets', // owner: #team-ai-observability #team-posthog-ai@@ -377,7 +373,6 @@ export const FEATURE_FLAGS = {MAX_WEB_ANALYTICS_NUDGE: 'posthog-ai-web-analytics-nudge', // owner: @jordanm-posthog #team-web-analyticsMCP_ANALYTICS: 'mcp-analytics', // owner: #project-mcp-analyticsMCP_ANALYTICS_INTENT_ROUTING: 'mcp-analytics-intent-routing', // owner: #project-mcp-analytics- MCP_HINTS: 'mcp-hints', // owner: @rafaeelaudibert #team-growth multivariate=control,testMCP_SERVERS: 'mcp-servers', // owner: #team-posthog-aiMESSAGING_SES: 'messaging-ses', // owner #team-workflowsMETRICS: 'metrics', // owner: #team-apm (@jonmcwest, @frankh)@@ -393,10 +388,9 @@ export const FEATURE_FLAGS = {ONBOARDING_HIDE_BREADCRUMBS: 'onboarding-hide-breadcrumbs', // owner: @fercgomes #team-growth, multivariate=true, hides breadcrumbs during onboarding to reduce distractionsONBOARDING_MOBILE_INSTALL_HELPER: 'onboarding-mobile-install-helper', // owner: @fercgomes #team-growth multivariate=control,test — target $device_type=Mobile at the flag levelONBOARDING_PLATFORM_PACKAGES: 'onboarding-platform-packages', // owner: @mjwarren3 #team-growth multivariate=control,test — surfaces platform packages with a free trial on the plans step after subscribing- ONBOARDING_NAVBAR: 'onboarding-navbar', // owner: #team-growth, hides the navbar during onboarding to reduce distractions multivariate=true- ONBOARDING_PRODUCT_SELECTION_HEADING: 'onboarding-product-selection-heading', // owner: #team-growth, payload overrides the heading copy on the first onboarding page+ ONBOARDING_NAVBAR: 'onboarding-navbar', // owner: @fercgomes #team-growth, hides the navbar during onboarding to reduce distractions multivariate=true+ ONBOARDING_PRODUCT_SELECTION_HEADING: 'onboarding-product-selection-heading', // owner: @fercgomes #team-growth, payload overrides the heading copy on the first onboarding pageONBOARDING_SESSION_REPLAY_MEDIA: 'onboarding-session-replay-media', // owner: @fercgomes #team-growth multivariate=control,screenshot,demo- ONBOARDING_SKIP_INSTALL_STEP: 'onboarding-skip-install-step', // owner: @rafaeelaudibert #team-growth multivariate=trueONBOARDING_SOCIAL_PROOF_INFO: 'onboarding-social-proof-info', // owner: @fercgomes #team-growth, payload overrides social proof strings per productONBOARDING_WIZARD_SYNC: 'onboarding-wizard-sync', // owner: @fercgomes #team-growth multivariate=control,test — gates the live wizard sync progress panelOWNER_ONLY_BILLING: 'owner-only-billing', // owner: @pawelcebula #team-billing@@ -438,7 +432,6 @@ export const FEATURE_FLAGS = {PRODUCT_TOURS_LOCALIZATION: 'product-tours-localization', // owner: @adboio #team-surveysPROJECT_SECRET_API_KEYS: 'project-secret-api-keys', // owner: #team-platform-featuresPROMOTED_EVENT_PROPERTIES_EDIT: 'promoted-event-properties-edit', // owner: @pauldambra #team-product-analytics, gates the primary-property picker on the event definition edit page (flag slug kept as `promoted-event-properties-edit` to avoid migrating teams that already toggled it on)- PROMOTED_PRODUCT: 'promoted-product', // owner: @pauldambra #team-growth multivariate=control,control_b,intent,intent_plus, experiment for surfacing the team's primary onboarding product directly under HomePROPERTY_ACCESS_CONTROL: 'property-access-control', // owner: @reecejones #team-platform-featuresQUICK_START_PULSE_INDICATOR: 'quick-start-pulse-indicator', // owner: @fercgomes #team-growth multivariate=control,testQUILL_DATE_PICKER: 'quill-date-picker', // owner: @pauldambra, flips the lib/components/DatePicker seam from LemonUI to Quilldiff --git a/frontend/src/lib/scopes.tsx b/frontend/src/lib/scopes.tsxindex 272fd874d69b..082ab8b71ead 100644--- a/frontend/src/lib/scopes.tsx+++ b/frontend/src/lib/scopes.tsx@@ -108,7 +108,6 @@ export const API_SCOPES: APIScope[] = [},},{ key: 'person', objectName: 'Person', objectPlural: 'persons' },- { key: 'persisted_folder', objectName: 'Persisted folder', objectPlural: 'persisted folders' },{ key: 'customer_profile_config', objectName: 'Customer profile config', objectPlural: 'customer profile configs' },{ key: 'plugin', objectName: 'Plugin', objectPlural: 'plugins' },{ key: 'product_tour', objectName: 'Product tour', objectPlural: 'product tours' },diff --git a/frontend/src/mocks/handlers.ts b/frontend/src/mocks/handlers.tsindex 273be5709469..210f017fe79a 100644--- a/frontend/src/mocks/handlers.ts+++ b/frontend/src/mocks/handlers.ts@@ -264,7 +264,6 @@ export const defaultMocks: Mocks = {'/api/environments/:team_id/file_system_shortcut/': EMPTY_PAGINATED_RESPONSE,'/api/environments/:team_id/insight_variables/': EMPTY_PAGINATED_RESPONSE,'/api/environments/:team_id/event_ingestion_restrictions/': [],- '/api/projects/:team_id/persisted_folder/': EMPTY_PAGINATED_RESPONSE,'api/projects/:team_id/surveys': EMPTY_PAGINATED_RESPONSE,'api/projects/:team_id/surveys/responses_count': {},'api/environments/:team_id/integrations': EMPTY_PAGINATED_RESPONSE,diff --git a/frontend/src/scenes/activity/live/LiveEventsTable.tsx b/frontend/src/scenes/activity/live/LiveEventsTable.tsxindex c11366919db5..3f36db268217 100644--- a/frontend/src/scenes/activity/live/LiveEventsTable.tsx+++ b/frontend/src/scenes/activity/live/LiveEventsTable.tsx@@ -52,14 +52,12 @@ export function LiveEventsTable(): JSX.Element {return (<SceneContent data-attr="manage-events-table"><ActivitySceneTabs activeKey={ActivityTab.LiveEvents} />- {featureFlags[FEATURE_FLAGS.LIVESTREAM_TUI] && (- <LemonBanner type="info" className="mb-4" icon={<IconTerminal />} dismissKey="livestream-tui-banner">- Stream live events directly in your terminal with <code>posthog-live</code>.{' '}- <Link to="https://posthog.com/docs/live-events/cli" target="_blank">- Learn more- </Link>- </LemonBanner>- )}+ <LemonBanner type="info" className="mb-4" icon={<IconTerminal />} dismissKey="livestream-tui-banner">+ Stream live events directly in your terminal with <code>posthog-live</code>.{' '}+ <Link to="https://posthog.com/docs/live-events/cli" target="_blank">+ Learn more+ </Link>+ </LemonBanner><SceneTitleSectionname={sceneConfigurations[Scene.Activity].name}description={sceneConfigurations[Scene.Activity].description}diff --git a/frontend/src/scenes/annotations/Annotations.stories.tsx b/frontend/src/scenes/annotations/Annotations.stories.tsxindex d3d9eb80d9aa..731d4b17ab88 100644--- a/frontend/src/scenes/annotations/Annotations.stories.tsx+++ b/frontend/src/scenes/annotations/Annotations.stories.tsx@@ -15,6 +15,7 @@ const meta: Meta = {viewMode: 'story',mockDate: '2023-01-28', // To stabilize relative datespageUrl: urls.annotations(),+ testOptions: { viewport: { width: 1300, height: 2000 } },},decorators: [mswDecorator({diff --git a/frontend/src/scenes/cohorts/Cohorts.stories.tsx b/frontend/src/scenes/cohorts/Cohorts.stories.tsxindex 10ba6390a2e4..ed934d50a5a8 100644--- a/frontend/src/scenes/cohorts/Cohorts.stories.tsx+++ b/frontend/src/scenes/cohorts/Cohorts.stories.tsx@@ -14,6 +14,7 @@ const meta: Meta = {layout: 'fullscreen',viewMode: 'story',mockDate: '2023-07-04',+ testOptions: { viewport: { width: 1300, height: 2000 } },},}export default metadiff --git a/frontend/src/scenes/dashboard/addInsightToDashboardModal/AddInsightToDashboardModal.stories.tsx b/frontend/src/scenes/dashboard/addInsightToDashboardModal/AddInsightToDashboardModal.stories.tsxindex a186a4484aa5..518a9d343d1b 100644--- a/frontend/src/scenes/dashboard/addInsightToDashboardModal/AddInsightToDashboardModal.stories.tsx+++ b/frontend/src/scenes/dashboard/addInsightToDashboardModal/AddInsightToDashboardModal.stories.tsx@@ -61,7 +61,7 @@ const meta: Meta = {layout: 'fullscreen',viewMode: 'story',mockDate: '2023-02-01',- testOptions: { waitForSelector: '.LemonModal' },+ testOptions: { waitForSelector: '.LemonModal', viewport: { width: 1300, height: 2000 } },},}export default metadiff --git a/frontend/src/scenes/experiments/stories/Experiments.stories.tsx b/frontend/src/scenes/experiments/stories/Experiments.stories.tsxindex acb57ddcc9d5..fe88b274bf8d 100644--- a/frontend/src/scenes/experiments/stories/Experiments.stories.tsx+++ b/frontend/src/scenes/experiments/stories/Experiments.stories.tsx@@ -18,6 +18,7 @@ const meta: Meta = {viewMode: 'story',mockDate: '2025-01-27',pageUrl: urls.experiments(),+ testOptions: { viewport: { width: 1300, height: 2000 } },},decorators: [mswDecorator({diff --git a/frontend/src/scenes/feature-flags/FeatureFlags.stories.tsx b/frontend/src/scenes/feature-flags/FeatureFlags.stories.tsxindex 5688157c92c3..87666a63266a 100644--- a/frontend/src/scenes/feature-flags/FeatureFlags.stories.tsx+++ b/frontend/src/scenes/feature-flags/FeatureFlags.stories.tsx@@ -18,6 +18,7 @@ const meta: Meta = {viewMode: 'story',mockDate: '2023-01-28', // To stabilize relative datespageUrl: urls.featureFlags(),+ testOptions: { viewport: { width: 1300, height: 2000 } },},decorators: [mswDecorator({diff --git a/frontend/src/scenes/health/HealthScene.tsx b/frontend/src/scenes/health/HealthScene.tsxindex 03ee67d9ec7b..111cfb4d568e 100644--- a/frontend/src/scenes/health/HealthScene.tsx+++ b/frontend/src/scenes/health/HealthScene.tsx@@ -28,7 +28,7 @@ export const HealthScene = (): JSX.Element => {const { openSupportForm } = useActions(supportLogic)const { openSidePanel } = useActions(sidePanelStateLogic)const { featureFlags } = useValues(featureFlagLogic)- const healthAlertsEnabled = !!featureFlags[FEATURE_FLAGS.HEALTH_ALERTS]+const askAiEnabled = !!featureFlags[FEATURE_FLAGS.HEALTH_ASK_AI]const now = Date.now()@@ -49,17 +49,16 @@ export const HealthScene = (): JSX.Element => {<div className="flex items-center justify-between -mt-2 mb-2"><p className="text-sm mb-0">See an at-a-glance view of the health of your project.</p><div className="flex items-center gap-1">- {healthAlertsEnabled && (- <LemonButton- icon={<IconBell />}- type="secondary"- size="small"- to={urls.healthAlerts()}- tooltip="Subscribe to alerts when any health check fires"- >- Alerts- </LemonButton>- )}+ <LemonButton+ icon={<IconBell />}+ type="secondary"+ size="small"+ to={urls.healthAlerts()}+ tooltip="Subscribe to alerts when any health check fires"+ >+ Alerts+ </LemonButton>+{askAiEnabled && (<LemonMenuitems={HEALTH_OVERVIEW_QUESTIONS.map((question) => ({diff --git a/frontend/src/scenes/health/pipelineStatus/PipelineStatusScene.tsx b/frontend/src/scenes/health/pipelineStatus/PipelineStatusScene.tsxindex a90f05d5437a..723c1e1ceef4 100644--- a/frontend/src/scenes/health/pipelineStatus/PipelineStatusScene.tsx+++ b/frontend/src/scenes/health/pipelineStatus/PipelineStatusScene.tsx@@ -3,11 +3,9 @@ import posthog from 'posthog-js'import { IconBell, IconRefresh } from '@posthog/icons'-import { FEATURE_FLAGS } from 'lib/constants'import { LemonBanner } from 'lib/lemon-ui/LemonBanner'import { LemonButton } from 'lib/lemon-ui/LemonButton'import { LemonSkeleton } from 'lib/lemon-ui/LemonSkeleton'-import { featureFlagLogic } from 'lib/logic/featureFlagLogic'import { SceneExport } from 'scenes/sceneTypes'import { urls } from 'scenes/urls'@@ -31,8 +29,6 @@ export function PipelineStatusScene(): JSX.Element {const { loadHealthIssues } = useActions(pipelineHealthLogic)const { filteredIssues, filteredIssueCount, isIssueDismissed } = useValues(pipelineStatusSceneLogic)const { dismissIssue, undismissIssue } = useActions(pipelineStatusSceneLogic)- const { featureFlags } = useValues(featureFlagLogic)- const healthAlertsEnabled = !!featureFlags[FEATURE_FLAGS.HEALTH_ALERTS]return (<SceneContent>@@ -45,22 +41,20 @@ export function PipelineStatusScene(): JSX.Element {}}actions={<>- {healthAlertsEnabled && (- <LemonButton- type="secondary"- size="small"- icon={<IconBell className="size-4" />}- to={urls.healthAlerts(['external_data_failure', 'materialized_view_failure'])}- onClick={() => {- posthog.capture('health_alerts_entry_point_clicked', {- source: 'pipeline_status',- })- }}- tooltip="Subscribe to alerts when a pipeline fails"- >- Alerts- </LemonButton>- )}+ <LemonButton+ type="secondary"+ size="small"+ icon={<IconBell className="size-4" />}+ to={urls.healthAlerts(['external_data_failure', 'materialized_view_failure'])}+ onClick={() => {+ posthog.capture('health_alerts_entry_point_clicked', {+ source: 'pipeline_status',+ })+ }}+ tooltip="Subscribe to alerts when a pipeline fails"+ >+ Alerts+ </LemonButton><LemonButtontype="primary"size="small"diff --git a/frontend/src/scenes/hog-functions/sub-templates/sub-templates.ts b/frontend/src/scenes/hog-functions/sub-templates/sub-templates.tsindex d84b05193c93..13c3952f3a42 100644--- a/frontend/src/scenes/hog-functions/sub-templates/sub-templates.ts+++ b/frontend/src/scenes/hog-functions/sub-templates/sub-templates.ts@@ -134,14 +134,12 @@ export const HOG_FUNCTION_SUB_TEMPLATE_COMMON_PROPERTIES: Record<type: 'internal_destination',context_id: 'health-alerts',filters: { events: [{ id: '$health_check_issue_firing', type: 'events' }] },- flag: FEATURE_FLAGS.HEALTH_ALERTS,},'health-check-resolved': {sub_template_id: 'health-check-resolved',type: 'internal_destination',context_id: 'health-alerts',filters: { events: [{ id: '$health_check_issue_resolved', type: 'events' }] },- flag: FEATURE_FLAGS.HEALTH_ALERTS,},}diff --git a/frontend/src/scenes/onboarding/legacy/productSelection/productSelectionLogic.ts b/frontend/src/scenes/onboarding/legacy/productSelection/productSelectionLogic.tsindex 8ac9d3f5f637..2771020f6a62 100644--- a/frontend/src/scenes/onboarding/legacy/productSelection/productSelectionLogic.ts+++ b/frontend/src/scenes/onboarding/legacy/productSelection/productSelectionLogic.ts@@ -13,7 +13,6 @@ import { availableOnboardingProducts } from 'scenes/onboarding/shared/utils'import { teamLogic } from 'scenes/teamLogic'import { urls } from 'scenes/urls'-import { localStorageProductKey } from '~/layout/panel-layout/ai-first/promotedProductLogic'import { ProductIntentContext, ProductKey } from '~/queries/schema/schema-general'import { OnboardingStepKey } from '~/types'@@ -297,20 +296,6 @@ export const productSelectionLogic = kea<productSelectionLogicType>([})})- // Mirror the primary onboarding choice into localStorage so the experimental- // 'Promoted product' sidebar entry can render immediately, without waiting- // for the ClickHouse-backed APP_CONTEXT value to catch up with ingestion lag.- if (values.firstProductOnboarding && values.currentTeam?.id) {- try {- window.localStorage.setItem(- localStorageProductKey(values.currentTeam.id),- values.firstProductOnboarding- )- } catch {- // localStorage disabled — APP_CONTEXT will be the fallback after ingestion.- }- }-// Analyticswindow.posthog?.capture('onboarding_products_confirmed', {recommendation_source: values.recommendationSource,diff --git a/frontend/src/scenes/onboarding/legacy/sdks/OnboardingInstallStep/index.tsx b/frontend/src/scenes/onboarding/legacy/sdks/OnboardingInstallStep/index.tsxindex a2fa6df79b9f..123d2d84f2f3 100644--- a/frontend/src/scenes/onboarding/legacy/sdks/OnboardingInstallStep/index.tsx+++ b/frontend/src/scenes/onboarding/legacy/sdks/OnboardingInstallStep/index.tsx@@ -36,13 +36,6 @@ interface OnboardingInstallStepProps {/*** Onboarding install step — wizard-centered layout for non-Logs products, bare* SDK grid for Logs (which uses OpenTelemetry, not the PostHog JS wizard).- *- * Two growth experiments overlay this:- * - `ONBOARDING_SKIP_INSTALL_STEP`: moves "Skip installation" to the bottom.- * The wizard variant manages its own skip UI via OnboardingStep.showSkip.- * - `ONBOARDING_MOBILE_INSTALL_HELPER`: on mobile + `test`, swaps the dispatch- * for `MobileInstallHandoff` (Web Share API). Excluded for Logs because the- * handoff's RealtimeCheckIndicator never resolves without an `ingested_event`.*/export const OnboardingInstallStep: OnboardingStepComponentType<OnboardingInstallStepProps> = ({sdkInstructionMap,@@ -71,7 +64,6 @@ export const OnboardingInstallStep: OnboardingStepComponentType<OnboardingInstalconst installationCompleteFromTeam = useInstallationComplete(teamPropertyToVerify)const installationComplete = hideInstallationCheck || installationCompleteFromTeamconst adblockResult = useAdblockDetection()- const isSkipButtonExperiment = useFeatureFlag('ONBOARDING_SKIP_INSTALL_STEP', 'test')const isLogsProduct = currentStepProductKey === ProductKey.LOGS@@ -105,8 +97,8 @@ export const OnboardingInstallStep: OnboardingStepComponentType<OnboardingInstalwindow.history.replaceState(null, '', newUrl)}, [])- const showSkipAtBottom = isSkipButtonExperiment && !installationComplete- const showTopSkipButton = !isSkipButtonExperiment || installationComplete+ const showSkipAtBottom = !installationComplete+ const showTopSkipButton = installationCompleteconst handleSDKClick = (sdk: SDK): void => {selectSDK(sdk)diff --git a/frontend/src/scenes/onboarding/shared/sdkHealth/SdkHealthScene.tsx b/frontend/src/scenes/onboarding/shared/sdkHealth/SdkHealthScene.tsxindex 174485362ffa..752aea3f5218 100644--- a/frontend/src/scenes/onboarding/shared/sdkHealth/SdkHealthScene.tsx+++ b/frontend/src/scenes/onboarding/shared/sdkHealth/SdkHealthScene.tsx@@ -4,9 +4,7 @@ import posthog from 'posthog-js'import { IconBell, IconRefresh } from '@posthog/icons'import { LemonBanner, LemonButton, LemonTag, Link } from '@posthog/lemon-ui'-import { FEATURE_FLAGS } from 'lib/constants'import { useOnMountEffect } from 'lib/hooks/useOnMountEffect'-import { featureFlagLogic } from 'lib/logic/featureFlagLogic'import { inStorybook, inStorybookTestRunner } from 'lib/utils/dom'import { preflightLogic } from 'scenes/PreflightCheck/preflightLogic'import { SceneExport } from 'scenes/sceneTypes'@@ -33,8 +31,6 @@ export function SdkHealthScene(): JSX.Element {snoozedUntil,} = useValues(sdkHealthLogic)const { isDev } = useValues(preflightLogic)- const { featureFlags } = useValues(featureFlagLogic)- const healthAlertsEnabled = !!featureFlags[FEATURE_FLAGS.HEALTH_ALERTS]const { loadReport, snoozeSdkHealth } = useActions(sdkHealthLogic)@@ -63,20 +59,18 @@ export function SdkHealthScene(): JSX.Element {}}actions={<>- {healthAlertsEnabled && (- <LemonButton- size="small"- type="secondary"- to={urls.healthAlerts(['sdk_outdated'])}- onClick={() => {- posthog.capture('health_alerts_entry_point_clicked', { source: 'sdk_health' })- }}- icon={<IconBell className="size-4" />}- tooltip="Subscribe to alerts when SDKs go outdated"- >- Alerts- </LemonButton>- )}+ <LemonButton+ size="small"+ type="secondary"+ to={urls.healthAlerts(['sdk_outdated'])}+ onClick={() => {+ posthog.capture('health_alerts_entry_point_clicked', { source: 'sdk_health' })+ }}+ icon={<IconBell className="size-4" />}+ tooltip="Subscribe to alerts when SDKs go outdated"+ >+ Alerts+ </LemonButton><LemonButtonsize="small"type="primary"diff --git a/frontend/src/scenes/saved-insights/SavedInsights.stories.tsx b/frontend/src/scenes/saved-insights/SavedInsights.stories.tsxindex afec193c0f0e..3b744e5ed761 100644--- a/frontend/src/scenes/saved-insights/SavedInsights.stories.tsx+++ b/frontend/src/scenes/saved-insights/SavedInsights.stories.tsx@@ -21,6 +21,7 @@ const meta: Meta = {viewMode: 'story',mockDate: '2023-02-18',pageUrl: urls.insights(),+ testOptions: { viewport: { width: 1300, height: 2000 } },},decorators: [mswDecorator({diff --git a/frontend/src/scenes/settings/SettingsMap.tsx b/frontend/src/scenes/settings/SettingsMap.tsxindex 11e420963d61..9db5cf54cb8e 100644--- a/frontend/src/scenes/settings/SettingsMap.tsx+++ b/frontend/src/scenes/settings/SettingsMap.tsx@@ -1659,7 +1659,6 @@ export const SETTINGS_MAP: SettingSection[] = [to: urls.legalDocuments(),settings: [],minimumAccessLevel: OrganizationMembershipLevel.Admin,- flag: 'LEGAL_DOCUMENTS',},{level: 'organization',@@ -1880,7 +1879,6 @@ export const SETTINGS_MAP: SettingSection[] = [description:'After you take an action in PostHog (creating a feature flag, building a dashboard, etc.), show a small hint that the same action can be done from your IDE via the PostHog MCP. Rate-limited to once a week.',component: <MCPHintsSetting />,- flag: [['MCP_HINTS', 'test']],keywords: ['mcp', 'claude', 'cursor', 'codex', 'ide', 'hints', 'wizard'],},{diff --git a/frontend/src/types.ts b/frontend/src/types.tsindex 4e4973d7c6c3..2880cbf2efee 100644--- a/frontend/src/types.ts+++ b/frontend/src/types.ts@@ -4933,7 +4933,6 @@ export interface AppContext {effective_resource_access_control: Record<AccessControlResourceType, AccessControlLevel>resource_access_control: Record<AccessControlResourceType, AccessControlLevel>custom_products: UserProductListItem[]- promoted_product_intent?: string | nullcommit_sha?: string/** Whether the user was autoswitched to the current item's team. */switched_team: TeamType['id'] | null@@ -5620,7 +5619,6 @@ export type APIScopeObject =| 'organization_integration'| 'organization_member'| 'person'- | 'persisted_folder'| 'plugin'| 'product_tour'| 'project'diff --git a/posthog/api/file_system/persisted_folder.py b/posthog/api/file_system/persisted_folder.pydeleted file mode 100644index 4db7a813f773..000000000000--- a/posthog/api/file_system/persisted_folder.py+++ /dev/null@@ -1,101 +0,0 @@-from typing import Any--from django.db import IntegrityError-from django.db.models import QuerySet-from django.db.models.functions import Lower--from drf_spectacular.utils import extend_schema-from rest_framework import serializers, viewsets--from posthog.api.routing import TeamAndOrgViewSetMixin-from posthog.models.file_system.constants import DEFAULT_SURFACE, surface_q-from posthog.models.file_system.persisted_folder import PersistedFolder---class PersistedFolderSerializer(serializers.ModelSerializer):- class Meta:- model = PersistedFolder- fields = [- "id",- "type",- "protocol",- "path",- "created_at",- "updated_at",- ]- read_only_fields = ["id", "created_at", "updated_at"]- extra_kwargs = {- "type": {"help_text": "Which persisted folder this is for the user (home, pinned, custom_products)."},- "protocol": {"help_text": "Protocol prefix of the folder location, e.g. 'products://'."},- "path": {"help_text": "Path within the protocol that the folder resolves to."},- }-- def update(self, instance: PersistedFolder, validated_data: dict[str, Any]) -> PersistedFolder:- validated_data["team_id"] = self.context["team_id"]- validated_data["user"] = self.context["request"].user- return super().update(instance, validated_data)-- def create(self, validated_data: dict[str, Any]) -> PersistedFolder:- team = self.context["get_team"]()- user = self.context["request"].user- surface = self.context.get("file_system_surface", DEFAULT_SURFACE)- folder_type = validated_data["type"]- defaults = {- "protocol": validated_data.get("protocol", "products://"),- "path": validated_data.get("path", ""),- }-- # surface_q (not a plain surface=) so an existing legacy NULL row is matched and updated- # rather than colliding with a new explicit-surface row under the coalescing unique index.- existing = PersistedFolder.objects.filter(surface_q(surface), team=team, user=user, type=folder_type).first()- if existing is not None:- return self._apply_defaults(existing, defaults)-- try:- return PersistedFolder.objects.create(team=team, user=user, type=folder_type, surface=surface, **defaults)- except IntegrityError:- # Lost a race with a concurrent create; fetch the winner and update it instead.- existing = PersistedFolder.objects.filter(- surface_q(surface), team=team, user=user, type=folder_type- ).first()- if existing is None:- raise- return self._apply_defaults(existing, defaults)-- @staticmethod- def _apply_defaults(instance: PersistedFolder, defaults: dict[str, Any]) -> PersistedFolder:- instance.protocol = defaults["protocol"]- instance.path = defaults["path"]- instance.save(update_fields=["protocol", "path", "updated_at"])- return instance---@extend_schema(extensions={"x-product": "core"})-class PersistedFolderViewSet(TeamAndOrgViewSetMixin, viewsets.ModelViewSet):- queryset = PersistedFolder.objects.all()- scope_object = "persisted_folder"- serializer_class = PersistedFolderSerializer- # Product surface these folders serve. Subclass and override to expose a different surface- # (e.g. "desktop") on its own route. The default surface also matches legacy NULL rows.- file_system_surface: str = DEFAULT_SURFACE-- def get_serializer_context(self) -> dict[str, Any]:- context = super().get_serializer_context()- context["file_system_surface"] = self.file_system_surface- return context-- def safely_get_queryset(self, queryset: QuerySet) -> QuerySet:- return queryset.filter(surface_q(self.file_system_surface), team=self.team, user=self.request.user).order_by(- Lower("type")- )---@extend_schema(extensions={"x-product": "core"})-class DesktopPersistedFolderViewSet(PersistedFolderViewSet):- """- Persisted folders for the desktop product surface. Reuses all PersistedFolderViewSet behaviour- but is scoped to the "desktop" surface, so its folders are fully isolated from the default- "web" surface.- """-- file_system_surface = "desktop"diff --git a/posthog/api/file_system/test/test_persisted_folder.py b/posthog/api/file_system/test/test_persisted_folder.pydeleted file mode 100644index a19f02cf9cdc..000000000000--- a/posthog/api/file_system/test/test_persisted_folder.py+++ /dev/null@@ -1,109 +0,0 @@-from __future__ import annotations--from posthog.test.base import APIBaseTest--from django.db import IntegrityError--from rest_framework import status--from posthog.models.file_system.persisted_folder import PersistedFolder-from posthog.models.user import User---class _Base(APIBaseTest):- def setUp(self) -> None: # noqa: D401- super().setUp()- self.user_2: User = User.objects.create_and_join(self.organization, "[email protected]", None)---class TestPersistedFolderModel(_Base):- def test_defaults_and_str(self) -> None:- pf = PersistedFolder.objects.create(team=self.team, user=self.user, type=PersistedFolder.TYPE_HOME)-- self.assertEqual(pf.protocol, "products://")- self.assertEqual(pf.path, "")- self.assertIn("home", str(pf))- self.assertTrue(pf.id) # UUID auto-assigned-- def test_unique_constraint(self) -> None:- PersistedFolder.objects.create(team=self.team, user=self.user, type=PersistedFolder.TYPE_HOME)- with self.assertRaises(IntegrityError):- PersistedFolder.objects.create(team=self.team, user=self.user, type=PersistedFolder.TYPE_HOME)---class TestPersistedFolderAPI(_Base):- def test_create_and_upsert(self) -> None:- # 1️⃣ First POST → creates- rsp = self.client.post(- f"/api/projects/{self.team.id}/persisted_folder/",- {"type": "home", "path": "Root/Home", "protocol": "products://"},- format="json",- )- self.assertEqual(rsp.status_code, status.HTTP_201_CREATED)- self.assertEqual(PersistedFolder.objects.count(), 1)-- obj_id = rsp.data["id"]-- # 2️⃣ Second POST with same (team,user,type) → updates existing row- rsp2 = self.client.post(- f"/api/projects/{self.team.id}/persisted_folder/",- {"type": "home", "path": "Root/Home/V2", "protocol": "products://"},- format="json",- )- self.assertEqual(rsp2.status_code, status.HTTP_201_CREATED) # ModelViewSet still returns 201- self.assertEqual(PersistedFolder.objects.count(), 1) # still just one row- self.assertEqual(rsp2.data["id"], obj_id) # unchanged PK- self.assertEqual(rsp2.data["path"], "Root/Home/V2") # updated field persisted-- def test_list_returns_only_current_user(self) -> None:- # Create folders for two different users- PersistedFolder.objects.create(team=self.team, user=self.user, type="home", path="A", protocol="products://")- PersistedFolder.objects.create(team=self.team, user=self.user_2, type="home", path="B", protocol="products://")-- rsp = self.client.get(f"/api/projects/{self.team.id}/persisted_folder/")- self.assertEqual(rsp.status_code, status.HTTP_200_OK)- self.assertEqual(len(rsp.data["results"]), 1)- self.assertEqual(rsp.data["results"][0]["path"], "A")---class TestPersistedFolderSurface(_Base):- def setUp(self) -> None:- super().setUp()- self.web_url = f"/api/projects/{self.team.id}/persisted_folder/"- self.desktop_url = f"/api/projects/{self.team.id}/desktop_persisted_folder/"-- def test_same_type_coexists_across_surfaces(self) -> None:- # The same `type` ("home") is NOT surface-exclusive: each surface keeps its own row.- web = self.client.post(self.web_url, {"type": "home", "path": "Web home"}, format="json")- desktop = self.client.post(self.desktop_url, {"type": "home", "path": "Desktop home"}, format="json")-- self.assertEqual(web.status_code, status.HTTP_201_CREATED)- self.assertEqual(desktop.status_code, status.HTTP_201_CREATED)- self.assertEqual(PersistedFolder.objects.filter(team=self.team, user=self.user, type="home").count(), 2)-- web_paths = {r["path"] for r in self.client.get(self.web_url).data["results"]}- desktop_paths = {r["path"] for r in self.client.get(self.desktop_url).data["results"]}- self.assertEqual(web_paths, {"Web home"})- self.assertEqual(desktop_paths, {"Desktop home"})-- def test_web_create_stamps_web_surface(self) -> None:- self.client.post(self.web_url, {"type": "home", "path": "Web home"}, format="json")- self.assertEqual(PersistedFolder.objects.get(team=self.team, user=self.user, type="home").surface, "web")-- def test_desktop_create_stamps_desktop_surface(self) -> None:- self.client.post(self.desktop_url, {"type": "home", "path": "Desktop home"}, format="json")- self.assertEqual(PersistedFolder.objects.get(team=self.team, user=self.user, type="home").surface, "desktop")-- def test_web_upsert_matches_legacy_null_row(self) -> None:- # A legacy row predates the surface column. A web upsert must update it in place rather- # than insert a second row that would collide under the coalescing unique index.- legacy = PersistedFolder.objects.create(- team=self.team, user=self.user, type="home", path="Legacy", surface=None- )-- rsp = self.client.post(self.web_url, {"type": "home", "path": "Updated"}, format="json")-- self.assertEqual(rsp.status_code, status.HTTP_201_CREATED, rsp.data)- self.assertEqual(PersistedFolder.objects.filter(team=self.team, user=self.user, type="home").count(), 1)- legacy.refresh_from_db()- self.assertEqual(legacy.path, "Updated")diff --git a/posthog/api/file_system/test/test_user_product_list.py b/posthog/api/file_system/test/test_user_product_list.pyindex ce84325d4f79..f0155c90aef5 100644--- a/posthog/api/file_system/test/test_user_product_list.py+++ b/posthog/api/file_system/test/test_user_product_list.py@@ -7,69 +7,6 @@ from posthog.models.file_system.user_product_list import UserProductListclass TestUserProductListAPI(APIBaseTest):- def test_update_by_path_clears_reason_and_reason_text_when_enabling(self):- product_list = UserProductList.objects.create(- team=self.team,- user=self.user,- product_path="Product analytics",- enabled=False,- reason=UserProductList.Reason.USED_BY_COLLEAGUES,- reason_text="Some reason text",- )-- response = self.client.patch(- f"/api/environments/{self.team.id}/user_product_list/update_by_path/",- {"product_path": "Product analytics", "enabled": True},- )-- self.assertEqual(response.status_code, status.HTTP_200_OK)- product_list.refresh_from_db()- self.assertEqual(product_list.enabled, True)- self.assertEqual(product_list.reason, UserProductList.Reason.PRODUCT_INTENT)- self.assertEqual(product_list.reason_text, "")-- def test_update_by_path_clears_reason_and_reason_text_when_already_enabled(self):- product_list = UserProductList.objects.create(- team=self.team,- user=self.user,- product_path="Product analytics",- enabled=True,- reason=UserProductList.Reason.USED_BY_COLLEAGUES,- reason_text="Some reason text",- )-- response = self.client.patch(- f"/api/environments/{self.team.id}/user_product_list/update_by_path/",- {"product_path": "Product analytics", "enabled": True},- )-- self.assertEqual(response.status_code, status.HTTP_200_OK)- product_list.refresh_from_db()- self.assertEqual(product_list.enabled, True)- self.assertEqual(product_list.reason, UserProductList.Reason.PRODUCT_INTENT)- self.assertEqual(product_list.reason_text, "")-- def test_update_by_path_does_not_clear_reason_when_disabling(self):- product_list = UserProductList.objects.create(- team=self.team,- user=self.user,- product_path="Product analytics",- enabled=True,- reason=UserProductList.Reason.USED_BY_COLLEAGUES,- reason_text="Some reason text",- )-- response = self.client.patch(- f"/api/environments/{self.team.id}/user_product_list/update_by_path/",- {"product_path": "Product analytics", "enabled": False},- )-- self.assertEqual(response.status_code, status.HTTP_200_OK)- product_list.refresh_from_db()- self.assertEqual(product_list.enabled, False)- self.assertEqual(product_list.reason, UserProductList.Reason.USED_BY_COLLEAGUES)- self.assertEqual(product_list.reason_text, "Some reason text")-def test_seed_creates_products_from_colleagues_and_other_teams(self):UserProductList.objects.create(user=self.user,diff --git a/posthog/api/file_system/user_product_list.py b/posthog/api/file_system/user_product_list.pyindex c9219784fafa..c73e3a1faa00 100644--- a/posthog/api/file_system/user_product_list.py+++ b/posthog/api/file_system/user_product_list.py@@ -65,26 +65,6 @@ class UserProductListViewSet(TeamAndOrgViewSetMixin, viewsets.ModelViewSet):def safely_get_queryset(self, queryset: QuerySet) -> QuerySet:return queryset.filter(team=self.team, user=self.request.user, enabled=True).order_by(Lower("product_path"))- @action(methods=["PATCH"], detail=False, url_path="update_by_path")- def update_by_path(self, request: Request, *args: Any, **kwargs: Any) -> Response:- product_path = request.data.get("product_path")- if not product_path:- return Response({"error": "product_path is required"}, status=status.HTTP_400_BAD_REQUEST)-- existing_item, created = UserProductList.objects.get_or_create(- team=self.team,- user=cast(User, request.user),- product_path=product_path,- defaults={"enabled": True},- )-- serializer = self.get_serializer(existing_item, data=request.data, partial=True)- serializer.is_valid(raise_exception=True)- serializer.save()-- status_code = status.HTTP_201_CREATED if created else status.HTTP_200_OK- return Response(serializer.data, status=status_code)-@action(methods=["PATCH"], detail=False, url_path="bulk_update")def bulk_update(self, request: Request, *args: Any, **kwargs: Any) -> Response:items = request.data.get("items")diff --git a/posthog/api/project.py b/posthog/api/project.pyindex 01e612c17a32..f2a014af8f8a 100644--- a/posthog/api/project.py+++ b/posthog/api/project.py@@ -27,12 +27,10 @@ from posthog.api.shared import ProjectBackwardCompatBasicSerializer# project.py must NOT depend on team.py at that point. The parity *logic* (config writes, retention check,# and the team-config actions) is defined locally below rather than imported, so it survives that removal.from posthog.api.team import (- PROMOTED_PRODUCT_INTENT_DESCRIPTION,TEAM_CONFIG_FIELDS,TEAM_CONFIG_MEMBER_FIELDS_SET,EvaluationContextSuggestionRequestSerializer,EvaluationContextSuggestionResponseSerializer,- PromotedProductIntentSerializer,TeamCustomerAnalyticsConfigSerializer,TeamMarketingAnalyticsConfigSerializer,TeamRevenueAnalyticsConfigSerializer,@@ -64,7 +62,6 @@ from posthog.models.activity_logging.activity_page import activity_page_responsefrom posthog.models.event_ingestion_restriction_config import EventIngestionRestrictionConfigfrom posthog.models.group_type_mapping import cached_group_types_for_projectfrom posthog.models.organization import Organization, OrganizationMembership-from posthog.models.product_intent import promoted_product_lookupfrom posthog.models.product_intent.product_intent import (ProductIntent,ProductIntentSerializer,@@ -1594,18 +1591,6 @@ class ProjectViewSet(TeamAndOrgViewSetMixin, AccessControlViewSetMixin, viewsets)return activity_page_response(activity_page, limit, page, request)- @extend_schema(- tags=["platform_features"],- responses={200: PromotedProductIntentSerializer},- description=PROMOTED_PRODUCT_INTENT_DESCRIPTION,- )- @action(methods=["GET"], detail=True, required_scopes=["project:read"], url_path="promoted_product_intent")- def promoted_product_intent(self, request: request.Request, **kwargs) -> response.Response:- project = self.get_object()- team = project.passthrough_team- product_key = promoted_product_lookup.get_promoted_product_intent(team.pk)- return response.Response({"product_key": product_key})-# The following actions mirror TeamViewSet, operating on the project's passthrough Team. They delegate to# the shared team_*_view helpers so /api/projects/ and /api/environments/ cannot drift apart.@action(diff --git a/posthog/api/rest_router.py b/posthog/api/rest_router.pyindex 5f0dc9bf6373..0e5dd64442b8 100644--- a/posthog/api/rest_router.py+++ b/posthog/api/rest_router.py@@ -74,7 +74,7 @@ from .column_configuration import ColumnConfigurationViewSetfrom .core_event import CoreEventViewSetfrom .data_management import DataManagementViewSetfrom .event_filter_config import EventFilterConfigViewSet-from .file_system import file_system, file_system_shortcut, persisted_folder, user_product_list+from .file_system import file_system, file_system_shortcut, user_product_listfrom .llm_prompt import LLMPromptViewSetfrom .oauth import OrganizationOAuthApplicationViewSetfrom .session import SessionViewSet@@ -253,19 +253,6 @@ projects_router.register(["team_id"],)-register_legacy_dual_route_team_nested_viewset(- r"persisted_folder",- persisted_folder.PersistedFolderViewSet,- "environment_persisted_folder",- ["team_id"],-)--projects_router.register(- r"desktop_persisted_folder",- persisted_folder.DesktopPersistedFolderViewSet,- "project_desktop_persisted_folder",- ["team_id"],-)register_legacy_dual_route_team_nested_viewset(r"user_product_list",diff --git a/posthog/api/team.py b/posthog/api/team.pyindex 87f0d7ce0d9e..5d150dac566c 100644--- a/posthog/api/team.py+++ b/posthog/api/team.py@@ -46,7 +46,6 @@ from posthog.models.event_ingestion_restriction_config import EventIngestionRestfrom posthog.models.filters.utils import validate_group_type_indexfrom posthog.models.group_type_mapping import cached_group_types_for_teamfrom posthog.models.organization import OrganizationMembership-from posthog.models.product_intent import promoted_product_lookupfrom posthog.models.product_intent.product_intent import (ProductIntentSerializer,cached_product_intents_for_team,@@ -287,27 +286,6 @@ def _format_serializer_errors(serializer_errors: dict) -> str:return ". ".join(error_messages)-PROMOTED_PRODUCT_INTENT_DESCRIPTION = (- "Return the product key (e.g. `session_replay`, `web_analytics`) this team selected as their primary "- "product during onboarding. Resolved from the team's most recent primary-onboarding `ProductIntent` "- "record (the one carrying the `onboarding product selected - primary` context) — not from the "- "`user showed product intent` event, which also fires for non-onboarding contexts. Returns `null` when no "- "primary onboarding product intent has been captured (e.g. teams created before this signal existed, or "- "where onboarding was skipped)."-)---class PromotedProductIntentSerializer(serializers.Serializer):- product_key = serializers.CharField(- allow_null=True,- help_text=(- "The product key the team selected as their primary product during onboarding "- "(e.g. `session_replay`, `web_analytics`, `product_analytics`), or `null` if no "- "primary onboarding product intent has been captured for this team."- ),- )--class CachingTeamSerializer(serializers.ModelSerializer):"""This serializer is used for caching teams.@@ -2328,17 +2306,6 @@ class TeamViewSet(TeamAndOrgViewSetMixin, AccessControlViewSetMixin, viewsets.Moreturn response.Response(TeamSerializer(team, context=self.get_serializer_context()).data)- @extend_schema(- tags=["platform_features"],- responses={200: PromotedProductIntentSerializer},- description=PROMOTED_PRODUCT_INTENT_DESCRIPTION,- )- @action(methods=["GET"], detail=True, required_scopes=["project:read"], url_path="promoted_product_intent")- def promoted_product_intent(self, request: request.Request, **kwargs) -> response.Response:- team = self.get_object()- product_key = promoted_product_lookup.get_promoted_product_intent(team.pk)- return response.Response({"product_key": product_key})-@action(methods=["GET"], detail=True, required_scopes=["project:read"], url_path="event_ingestion_restrictions")def event_ingestion_restrictions(self, request, **kwargs):team = self.get_object()diff --git a/posthog/api/test/test_team.py b/posthog/api/test/test_team.pyindex 363e7c779d21..553130569c80 100644--- a/posthog/api/test/test_team.py+++ b/posthog/api/test/test_team.py@@ -1630,29 +1630,6 @@ def team_api_test_factory():assert response.status_code == status.HTTP_400_BAD_REQUEST- @patch("posthog.models.product_intent.promoted_product_lookup.get_promoted_product_intent")- def test_promoted_product_intent_returns_helper_value(- self, mock_get_promoted_product_intent: MagicMock- ) -> None:- mock_get_promoted_product_intent.return_value = "session_replay"-- response = self.client.get(f"/api/environments/{self.team.id}/promoted_product_intent/")-- assert response.status_code == status.HTTP_200_OK- assert response.json() == {"product_key": "session_replay"}- mock_get_promoted_product_intent.assert_called_once_with(self.team.pk)-- @patch("posthog.models.product_intent.promoted_product_lookup.get_promoted_product_intent")- def test_promoted_product_intent_returns_null_when_helper_returns_none(- self, mock_get_promoted_product_intent: MagicMock- ) -> None:- mock_get_promoted_product_intent.return_value = None-- response = self.client.get(f"/api/environments/{self.team.id}/promoted_product_intent/")-- assert response.status_code == status.HTTP_200_OK- assert response.json() == {"product_key": None}-@patch("posthog.event_usage.report_user_action")@freeze_time("2024-01-01T00:00:00Z")def test_can_add_product_intent(self, mock_report_user_action: MagicMock) -> None:diff --git a/posthog/management/commands/sync_feature_flags.py b/posthog/management/commands/sync_feature_flags.pyindex 90a8d35078fc..2158a7a2d6cd 100644--- a/posthog/management/commands/sync_feature_flags.py+++ b/posthog/management/commands/sync_feature_flags.py@@ -29,7 +29,6 @@ INACTIVE_FLAGS = ["insight-horizontal-controls","flagged-feature-indicator","read-only-mode",- "mcp-hints",]diff --git a/posthog/models/product_intent/promoted_product_lookup.py b/posthog/models/product_intent/promoted_product_lookup.pydeleted file mode 100644index 8f0d46d072b9..000000000000--- a/posthog/models/product_intent/promoted_product_lookup.py+++ /dev/null@@ -1,38 +0,0 @@-from posthog.schema import ProductIntentContext, ProductKey--from posthog.models.product_intent.product_intent import ProductIntent--_VALID_PRODUCT_KEYS: frozenset[str] = frozenset(p.value for p in ProductKey)-_PRIMARY_ONBOARDING_CONTEXT: str = ProductIntentContext.ONBOARDING_PRODUCT_SELECTED___PRIMARY.value---def get_promoted_product_intent(team_id: int) -> str | None:- """Return the team's promoted onboarding product, or None.-- Backs the experimental sidebar 'Promoted product' entry. Reads from the- `ProductIntent` Postgres model rather than the `user showed product intent`- ClickHouse event — the event is now emitted for many non-onboarding contexts- (e.g. `intent_context = 'feature flag created'`), whereas the model's- `contexts` dict lets us match the primary-onboarding context directly.-- The query is cheap because it is anchored on the indexed `team_id` FK and a- team has only a handful of `ProductIntent` rows (one per product, via the- team+product_type unique constraint) — the `contexts__has_key` JSON predicate- is evaluated in-memory over those few rows, not via a JSON index. No per-team- cache needed.-- Caveat: `updated_at` is `auto_now`, so it bumps on *any* context write to a- product's row, not only primary-onboarding. For a team that selected one- primary product (the overwhelming common case) this returns that product;- in the rare case of multiple primary selections it returns whichever row was- most recently touched. Good enough for an experiment — tighten if it graduates.- """- intent = (- ProductIntent.objects.filter(team_id=team_id, contexts__has_key=_PRIMARY_ONBOARDING_CONTEXT)- .order_by("-updated_at")- .values_list("product_type", flat=True)- .first()- )- if intent is None or intent not in _VALID_PRODUCT_KEYS:- return None- return intentdiff --git a/posthog/models/test/test_promoted_product_lookup.py b/posthog/models/test/test_promoted_product_lookup.pydeleted file mode 100644index 68b0e684a770..000000000000--- a/posthog/models/test/test_promoted_product_lookup.py+++ /dev/null@@ -1,84 +0,0 @@-from datetime import datetime, timedelta--from posthog.test.base import BaseTest--from django.utils import timezone--from posthog.schema import ProductKey--from posthog.models.product_intent.product_intent import ProductIntent-from posthog.models.product_intent.promoted_product_lookup import get_promoted_product_intent---class TestPromotedProductLookup(BaseTest):- def _create_intent(- self,- product_key: str,- contexts: dict[str, int] | None = None,- updated_at: datetime | None = None,- team=None,- ) -> ProductIntent:- intent = ProductIntent.objects.create(- team=team or self.team,- product_type=product_key,- contexts=contexts if contexts is not None else {"onboarding product selected - primary": 1},- )- if updated_at is not None:- # auto_now=True on `updated_at` blocks normal assignment — use a raw update.- ProductIntent.objects.filter(pk=intent.pk).update(updated_at=updated_at)- intent.refresh_from_db()- return intent-- def test_returns_none_when_no_intent_exists(self) -> None:- assert get_promoted_product_intent(self.team.pk) is None-- def test_returns_product_key_from_primary_intent(self) -> None:- self._create_intent(ProductKey.SESSION_REPLAY.value)-- assert get_promoted_product_intent(self.team.pk) == "session_replay"-- def test_ignores_intent_without_primary_onboarding_context(self) -> None:- # Same product, but only ever marked via secondary or a non-onboarding context.- self._create_intent(- ProductKey.SESSION_REPLAY.value,- contexts={"onboarding product selected - secondary": 1, "feature flag created": 1},- )-- assert get_promoted_product_intent(self.team.pk) is None-- def test_returns_most_recently_updated_primary_intent(self) -> None:- now = timezone.now()- self._create_intent(ProductKey.PRODUCT_ANALYTICS.value, updated_at=now - timedelta(days=2))- self._create_intent(ProductKey.SESSION_REPLAY.value, updated_at=now - timedelta(days=1))- self._create_intent(ProductKey.WEB_ANALYTICS.value, updated_at=now)-- assert get_promoted_product_intent(self.team.pk) == "web_analytics"-- def test_scopes_by_team(self) -> None:- other_team = self.organization.teams.create(name="other")- self._create_intent(ProductKey.SESSION_REPLAY.value)- self._create_intent(ProductKey.WEB_ANALYTICS.value, team=other_team)-- assert get_promoted_product_intent(self.team.pk) == "session_replay"- assert get_promoted_product_intent(other_team.pk) == "web_analytics"-- def test_rejects_unknown_product_key(self) -> None:- # A stray product_type that isn't in the ProductKey enum — defensive guard- # against schema drift between the model and the enum.- self._create_intent("not_a_real_product")-- assert get_promoted_product_intent(self.team.pk) is None-- def test_ignores_event_noise_from_other_contexts(self) -> None:- # The `feature flag created` intent_context emits the same event as- # primary-onboarding but is unrelated — make sure we don't pick it up.- self._create_intent(- ProductKey.FEATURE_FLAGS.value,- contexts={"feature flag created": 7},- )- self._create_intent(- ProductKey.SESSION_REPLAY.value,- contexts={"onboarding product selected - primary": 1},- )-- assert get_promoted_product_intent(self.team.pk) == "session_replay"diff --git a/posthog/scopes.py b/posthog/scopes.pyindex 24ce581e7fed..1459f4555643 100644--- a/posthog/scopes.py+++ b/posthog/scopes.py@@ -80,7 +80,6 @@ APIScopeObject = Literal["organization_integration","organization_member","person",- "persisted_folder","plugin","product_tour","project",diff --git a/posthog/utils.py b/posthog/utils.pyindex 238abd330e78..2a3ec6ec265a 100644--- a/posthog/utils.py+++ b/posthog/utils.py@@ -582,18 +582,6 @@ def _build_template_context()posthog_app_context["custom_products"] = user_product_list.data- with tracer.start_as_current_span("template.promoted_product_intent"):- from posthog.models.product_intent.promoted_product_lookup import get_promoted_product_intent-- # Best-effort — the promoted-product sidebar entry is experimental.- # If the lookup fails for any reason, hide it for this request- # rather than 500ing the page render.- try:- posthog_app_context["promoted_product_intent"] = get_promoted_product_intent(user.team.pk)- except Exception:- capture_exception()- posthog_app_context["promoted_product_intent"] = None-with tracer.start_as_current_span("template.user_home_settings"):home_settings = UserHomeSettings.objects.filter(team=user.team, user=user).first()posthog_app_context["homepage"] = (home_settings.homepage or None) if home_settings else Nonediff --git a/products/actions/frontend/pages/Action.stories.tsx b/products/actions/frontend/pages/Action.stories.tsxindex 9e307797706b..e4b9b72181e6 100644--- a/products/actions/frontend/pages/Action.stories.tsx+++ b/products/actions/frontend/pages/Action.stories.tsx@@ -147,6 +147,7 @@ const meta: Meta = {viewMode: 'story',mockDate: '2023-02-15', // To stabilize relative datespageUrl: urls.actions(),+ testOptions: { viewport: { width: 1300, height: 2000 } },},decorators: [mswDecorator({diff --git a/products/early_access_features/frontend/EarlyAccessFeatures.stories.tsx b/products/early_access_features/frontend/EarlyAccessFeatures.stories.tsxindex 0be127b2caef..cf6915ec302e 100644--- a/products/early_access_features/frontend/EarlyAccessFeatures.stories.tsx+++ b/products/early_access_features/frontend/EarlyAccessFeatures.stories.tsx@@ -113,6 +113,7 @@ const meta: Meta = {viewMode: 'story',mockDate: '2023-01-28', // To stabilize relative datespageUrl: urls.earlyAccessFeatures(),+ testOptions: { viewport: { width: 1300, height: 2000 } },},decorators: [mswDecorator({diff --git a/products/error_tracking/frontend/ErrorTracking.stories.tsx b/products/error_tracking/frontend/ErrorTracking.stories.tsxindex e7675086c107..f3b02c4702e7 100644--- a/products/error_tracking/frontend/ErrorTracking.stories.tsx+++ b/products/error_tracking/frontend/ErrorTracking.stories.tsx@@ -19,6 +19,7 @@ const meta: Meta = {viewMode: 'story',mockDate: '2024-07-09', // To stabilize relative datespageUrl: urls.errorTracking(),+ testOptions: { viewport: { width: 1300, height: 2000 } },},decorators: [mswDecorator({diff --git a/products/experiments/skills/configuring-experiment-analytics/references/metric-configuration.md.j2 b/products/experiments/skills/configuring-experiment-analytics/references/metric-configuration.md.j2index 8f2b4bc503ac..976584fd1b6a 100644--- a/products/experiments/skills/configuring-experiment-analytics/references/metric-configuration.md.j2+++ b/products/experiments/skills/configuring-experiment-analytics/references/metric-configuration.md.j2@@ -166,7 +166,7 @@ and completion events may be the same:- **Different events** (e.g. `$pageview` → `uploaded_file`) — conversion retention:"did the user reach the target action within the window?"-- **Same event** (e.g. `promoted_product_clicked` → `promoted_product_clicked`) —+- **Same event** (e.g. `nav_panel_clicked` → `nav_panel_clicked`) —repeat retention: "did the user fire it _again_ within the window?" `From 0`counts a repeat from the same period onward (same-day/same-hour repeats count);`From N` (N ≥ 1) requires the repeat in a later period. Use `start_handling: "first_seen"`@@ -204,11 +204,11 @@ and completion events may be the same:"name": "7-day repeat-click retention","start_event": {"kind": "EventsNode",- "event": "promoted_product_clicked"+ "event": "nav_panel_clicked"},"completion_event": {"kind": "EventsNode",- "event": "promoted_product_clicked"+ "event": "nav_panel_clicked"},"retention_window_start": 0,"retention_window_end": 7,diff --git a/products/legal_documents/frontend/scenes/LegalDocumentNewScene.tsx b/products/legal_documents/frontend/scenes/LegalDocumentNewScene.tsxindex f82a34afae41..eb97be51372f 100644--- a/products/legal_documents/frontend/scenes/LegalDocumentNewScene.tsx+++ b/products/legal_documents/frontend/scenes/LegalDocumentNewScene.tsx@@ -5,7 +5,6 @@ import { IconBalance, IconSend } from '@posthog/icons'import { LemonBanner, LemonButton, LemonInput, LemonSelect, Link } from '@posthog/lemon-ui'import { supportLogic } from 'lib/components/Support/supportLogic'-import { useFeatureFlag } from 'lib/hooks/useFeatureFlag'import { LemonField } from 'lib/lemon-ui/LemonField'import { LemonRadio } from 'lib/lemon-ui/LemonRadio'import { organizationLogic } from 'scenes/organizationLogic'@@ -85,7 +84,6 @@ export function LegalDocumentNewScene(): JSX.Element {const { isCloudOrDev } = useValues(preflightLogic)const { setDocumentType, setDpaMode } = useActions(legalDocumentsLogic)const { openSupportForm } = useActions(supportLogic)- const isEnabled = useFeatureFlag('LEGAL_DOCUMENTS')if (!isCloudOrDev) {return (@@ -106,25 +104,6 @@ export function LegalDocumentNewScene(): JSX.Element {)}- if (!isEnabled) {- return (- <SceneContent>- <SceneTitleSection- name="Legal documents"- resourceType={{ type: 'default_icon_type', forceIcon: <IconBalance /> }}- forceBackTo={{- key: Scene.LegalDocuments,- name: 'Legal documents',- path: urls.legalDocuments(),- }}- />- <LemonBanner type="info">- <p className="mb-0">Legal documents aren't available for your organization yet.</p>- </LemonBanner>- </SceneContent>- )- }-if (isAdminOrOwner === false) {return (<SceneContent>diff --git a/products/legal_documents/frontend/scenes/LegalDocuments.stories.tsx b/products/legal_documents/frontend/scenes/LegalDocuments.stories.tsxindex a05afc15ddf3..678ad6b6dc5a 100644--- a/products/legal_documents/frontend/scenes/LegalDocuments.stories.tsx+++ b/products/legal_documents/frontend/scenes/LegalDocuments.stories.tsx@@ -46,7 +46,6 @@ const meta: Meta = {viewMode: 'story',mockDate: '2026-04-21',pageUrl: urls.legalDocuments(),- featureFlags: ['legal-documents'],},decorators: [mswDecorator({diff --git a/products/legal_documents/frontend/scenes/LegalDocumentsScene.tsx b/products/legal_documents/frontend/scenes/LegalDocumentsScene.tsxindex 0149e721cdad..775f6369bef8 100644--- a/products/legal_documents/frontend/scenes/LegalDocumentsScene.tsx+++ b/products/legal_documents/frontend/scenes/LegalDocumentsScene.tsx@@ -4,7 +4,6 @@ import { IconBalance, IconDownload, IconPlusSmall, IconTrash } from '@posthog/icimport { LemonBanner, LemonButton, LemonDialog, LemonTable, LemonTag, Link } from '@posthog/lemon-ui'import { TZLabel } from 'lib/components/TZLabel'-import { useFeatureFlag } from 'lib/hooks/useFeatureFlag'import { LemonMenu, LemonMenuItems } from 'lib/lemon-ui/LemonMenu'import { organizationLogic } from 'scenes/organizationLogic'import { preflightLogic } from 'scenes/PreflightCheck/preflightLogic'@@ -80,7 +79,6 @@ export function LegalDocumentsScene(): JSX.Element {const { deleteLegalDocument } = useActions(legalDocumentsLogic)const { isAdminOrOwner, currentOrganizationId } = useValues(organizationLogic)const { isCloudOrDev } = useValues(preflightLogic)- const isEnabled = useFeatureFlag('LEGAL_DOCUMENTS')if (!isCloudOrDev) {return (@@ -96,20 +94,6 @@ export function LegalDocumentsScene(): JSX.Element {)}- if (!isEnabled) {- return (- <SceneContent>- <SceneTitleSection- name={sceneConfigurations[Scene.LegalDocuments].name}- resourceType={{ type: 'default_icon_type', forceIcon: <IconBalance /> }}- />- <LemonBanner type="info">- <p className="mb-0">Legal documents aren't available for your organization yet.</p>- </LemonBanner>- </SceneContent>- )- }-if (isAdminOrOwner === false) {return (<SceneContent>diff --git a/products/platform_features/frontend/generated/api.schemas.ts b/products/platform_features/frontend/generated/api.schemas.tsindex a12546208353..6b4397178188 100644--- a/products/platform_features/frontend/generated/api.schemas.ts+++ b/products/platform_features/frontend/generated/api.schemas.ts@@ -791,14 +791,6 @@ export interface PatchedCommentApi {source_comment?: string | null}-export interface PromotedProductIntentApi {- /**- * The product key the team selected as their primary product during onboarding (e.g. `session_replay`, `web_analytics`, `product_analytics`), or `null` if no primary onboarding product intent has been captured for this team.- * @nullable- */- product_key: string | null-}-export interface PinnedSceneTabApi {/** Stable identifier for the tab. Generated client-side; safe to omit on create. */id?: stringdiff --git a/products/platform_features/frontend/generated/api.ts b/products/platform_features/frontend/generated/api.tsindex 1afa48a78cb3..1f42ce7e4ca9 100644--- a/products/platform_features/frontend/generated/api.ts+++ b/products/platform_features/frontend/generated/api.ts@@ -41,7 +41,6 @@ import type {PatchedRoleApi,PersonalApiKeysListParams,PinnedSceneTabsApi,- PromotedProductIntentApi,RoleApi,RoleMembershipApi,RolesListParams,@@ -958,24 +957,6 @@ export const commentsCountRetrieve = async (projectId: string, options?: Request})}-export const getEnvironmentsPromotedProductIntentRetrieveUrl = (projectId: string, id: number) => {- return `/api/projects/${projectId}/environments/${id}/promoted_product_intent/`-}--/**- * Return the product key (e.g. `session_replay`, `web_analytics`) this team selected as their primary product during onboarding. Resolved from the team's most recent primary-onboarding `ProductIntent` record (the one carrying the `onboarding product selected - primary` context) — not from the `user showed product intent` event, which also fires for non-onboarding contexts. Returns `null` when no primary onboarding product intent has been captured (e.g. teams created before this signal existed, or where onboarding was skipped).- */-export const environmentsPromotedProductIntentRetrieve = async (- projectId: string,- id: number,- options?: RequestInit-): Promise<PromotedProductIntentApi> => {- return apiMutator<PromotedProductIntentApi>(getEnvironmentsPromotedProductIntentRetrieveUrl(projectId, id), {- ...options,- method: 'GET',- })-}-export const getUserHomeSettingsRetrieveUrl = (uuid: string) => {return `/api/user_home_settings/${uuid}/`}diff --git a/products/platform_features/mcp/tools.yaml b/products/platform_features/mcp/tools.yamlindex e794f357619d..a3d6e36b891b 100644--- a/products/platform_features/mcp/tools.yaml+++ b/products/platform_features/mcp/tools.yaml@@ -235,9 +235,6 @@ tools:comments-update:operation: comments_updateenabled: false- environments-promoted-product-intent-retrieve:- operation: environments_promoted_product_intent_retrieve- enabled: falsemembers-destroy:operation: members_destroyenabled: false@@ -331,24 +328,6 @@ tools:personal-api-keys-list:operation: personal_api_keys_listenabled: false- promoted-product-intent-get:- operation: environments_promoted_product_intent_retrieve- enabled: true- scopes:- - project:read- annotations:- readOnly: true- destructive: false- idempotent: true- title: Get the team's promoted product.- description: >- Get the product key the team selected as their primary product during onboarding (e.g. `session_replay`,- `web_analytics`, `product_analytics`), or `null` if no primary onboarding product intent has been captured.- Use this to bias disambiguation when the user's request is ambiguous about which PostHog product they mean —- for example, if their primary product is `session_replay`, treat a vague reference to "watch a session" as- referring to a session recording rather than a survey response.- feature_flag: promoted-product- feature_flag_variant: intent_plusrequest-ai-access-create:operation: request_ai_access_createenabled: falsediff --git a/services/mcp/definitions/core.yaml b/services/mcp/definitions/core.yamlindex 343d142ab4cd..d1eccb44767d 100644--- a/services/mcp/definitions/core.yaml+++ b/services/mcp/definitions/core.yaml@@ -238,24 +238,6 @@ tools:desktop-file-system-update:operation: desktop_file_system_updateenabled: false- desktop-persisted-folder-create:- operation: desktop_persisted_folder_create- enabled: false- desktop-persisted-folder-destroy:- operation: desktop_persisted_folder_destroy- enabled: false- desktop-persisted-folder-list:- operation: desktop_persisted_folder_list- enabled: false- desktop-persisted-folder-partial-update:- operation: desktop_persisted_folder_partial_update- enabled: false- desktop-persisted-folder-retrieve:- operation: desktop_persisted_folder_retrieve- enabled: false- desktop-persisted-folder-update:- operation: desktop_persisted_folder_update- enabled: falsedomains-create:operation: domains_createenabled: false@@ -436,30 +418,9 @@ tools:organizations-projects-logs-config-retrieve:operation: organizations_projects_logs_config_retrieveenabled: false- organizations-projects-promoted-product-intent-retrieve:- operation: organizations_projects_promoted_product_intent_retrieve- enabled: falseorganizations-projects-settings-as-of-retrieve:operation: organizations_projects_settings_as_of_retrieveenabled: false- persisted-folder-create:- operation: persisted_folder_create- enabled: false- persisted-folder-destroy:- operation: persisted_folder_destroy- enabled: false- persisted-folder-list:- operation: persisted_folder_list- enabled: false- persisted-folder-partial-update:- operation: persisted_folder_partial_update- enabled: false- persisted-folder-retrieve:- operation: persisted_folder_retrieve- enabled: false- persisted-folder-update:- operation: persisted_folder_update- enabled: falseproject-get:operation: organizations_projects_retrieveenabled: truediff --git a/services/mcp/schema/generated-tool-definitions.json b/services/mcp/schema/generated-tool-definitions.jsonindex 3379e568bcb7..e82dc13aebc3 100644--- a/services/mcp/schema/generated-tool-definitions.json+++ b/services/mcp/schema/generated-tool-definitions.json@@ -5480,22 +5480,6 @@"readOnlyHint": false}},- "promoted-product-intent-get": {- "description": "Get the product key the team selected as their primary product during onboarding (e.g. `session_replay`, `web_analytics`, `product_analytics`), or `null` if no primary onboarding product intent has been captured. Use this to bias disambiguation when the user's request is ambiguous about which PostHog product they mean — for example, if their primary product is `session_replay`, treat a vague reference to \"watch a session\" as referring to a session recording rather than a survey response.",- "category": "Platform Features",- "feature": "platform_features",- "summary": "Get the team's promoted product.",- "title": "Get the team's promoted product.",- "required_scopes": ["project:read"],- "annotations": {- "destructiveHint": false,- "idempotentHint": true,- "openWorldHint": true,- "readOnlyHint": true- },- "feature_flag": "promoted-product",- "feature_flag_variant": "intent_plus"- },"proxy-create": {"description": "Create a new managed reverse proxy for a custom domain. Provide the domain (e.g. 'e.example.com') that will proxy requests to PostHog. The response includes the CNAME target — the user must add a CNAME DNS record pointing their domain to this target. Once DNS propagates, the proxy is automatically verified and an SSL certificate is issued. The proxy starts in 'waiting' status until DNS is verified.","category": "Reverse proxy",diff --git a/services/mcp/schema/tool-definitions-all.json b/services/mcp/schema/tool-definitions-all.jsonindex 2fc5755087a5..2dba708093e3 100644--- a/services/mcp/schema/tool-definitions-all.json+++ b/services/mcp/schema/tool-definitions-all.json@@ -5945,22 +5945,6 @@"readOnlyHint": true}},- "promoted-product-intent-get": {- "description": "Get the product key the team selected as their primary product during onboarding (e.g. `session_replay`, `web_analytics`, `product_analytics`), or `null` if no primary onboarding product intent has been captured. Use this to bias disambiguation when the user's request is ambiguous about which PostHog product they mean — for example, if their primary product is `session_replay`, treat a vague reference to \"watch a session\" as referring to a session recording rather than a survey response.",- "category": "Platform Features",- "feature": "platform_features",- "summary": "Get the team's promoted product.",- "title": "Get the team's promoted product.",- "required_scopes": ["project:read"],- "annotations": {- "destructiveHint": false,- "idempotentHint": true,- "openWorldHint": true,- "readOnlyHint": true- },- "feature_flag": "promoted-product",- "feature_flag_variant": "intent_plus"- },"proxy-create": {"description": "Create a new managed reverse proxy for a custom domain. Provide the domain (e.g. 'e.example.com') that will proxy requests to PostHog. The response includes the CNAME target — the user must add a CNAME DNS record pointing their domain to this target. Once DNS propagates, the proxy is automatically verified and an SSL certificate is issued. The proxy starts in 'waiting' status until DNS is verified.","category": "Reverse proxy",diff --git a/services/mcp/src/api/generated.ts b/services/mcp/src/api/generated.tsindex c6359b99846c..9771433239d7 100644--- a/services/mcp/src/api/generated.ts+++ b/services/mcp/src/api/generated.ts@@ -31322,48 +31322,6 @@ export namespace Schemas {results: PauseStateResponse[];}- /**- * * `home` - Home- * * `pinned` - Pinned- * * `custom_products` - Custom Products- */- export type PersistedFolderTypeEnum = typeof PersistedFolderTypeEnum[keyof typeof PersistedFolderTypeEnum];--- export const PersistedFolderTypeEnum = {- Home: 'home',- Pinned: 'pinned',- CustomProducts: 'custom_products',- } as const;-- export interface PersistedFolder {- readonly id: string;- /** Which persisted folder this is for the user (home, pinned, custom_products).- *- * * `home` - Home- * * `pinned` - Pinned- * * `custom_products` - Custom Products */- type: PersistedFolderTypeEnum;- /**- * Protocol prefix of the folder location, e.g. 'products://'.- * @maxLength 64- */- protocol?: string;- /** Path within the protocol that the folder resolves to. */- path?: string;- readonly created_at: string;- readonly updated_at: string;- }-- export interface PaginatedPersistedFolderList {- count: number;- /** @nullable */- next?: string | null;- /** @nullable */- previous?: string | null;- results: PersistedFolder[];- }-export interface PersonRecord {/** Numeric person ID. */readonly id: number;@@ -38365,25 +38323,6 @@ export namespace Schemas {delete_insights?: boolean;}- export interface PatchedPersistedFolder {- readonly id?: string;- /** Which persisted folder this is for the user (home, pinned, custom_products).- *- * * `home` - Home- * * `pinned` - Pinned- * * `custom_products` - Custom Products */- type?: PersistedFolderTypeEnum;- /**- * Protocol prefix of the folder location, e.g. 'products://'.- * @maxLength 64- */- protocol?: string;- /** Path within the protocol that the folder resolves to. */- path?: string;- readonly created_at?: string;- readonly updated_at?: string;- }-export interface PatchedPersonRecord {/** Numeric person ID. */readonly id?: number;@@ -43382,14 +43321,6 @@ export namespace Schemas {payload: ProjectProfilePayload;}- export interface PromotedProductIntent {- /**- * The product key the team selected as their primary product during onboarding (e.g. `session_replay`, `web_analytics`, `product_analytics`), or `null` if no primary onboarding product intent has been captured for this team.- * @nullable- */- product_key: string | null;- }-export interface Property {/*** You can use a simplified version:@@ -56953,17 +56884,6 @@ export namespace Schemas {target_type?: string;};- export type EnvironmentsPersistedFolderListParams = {- /**- * Number of results to return per page.- */- limit?: number;- /**- * The initial index from which to return the results.- */- offset?: number;- };-export type EnvironmentsPersonsListParams = {/*** Filter list by distinct id.@@ -60082,17 +60002,6 @@ export namespace Schemas {offset?: number;};- export type DesktopPersistedFolderListParams = {- /**- * Number of results to return per page.- */- limit?: number;- /**- * The initial index from which to return the results.- */- offset?: number;- };-export type DesktopRecordingsListParams = {/*** Number of results to return per page.@@ -63465,17 +63374,6 @@ export namespace Schemas {offset?: number;};- export type PersistedFolderListParams = {- /**- * Number of results to return per page.- */- limit?: number;- /**- * The initial index from which to return the results.- */- offset?: number;- };-export type PersonsListParams = {/*** Filter list by distinct id.diff --git a/services/mcp/src/generated/platform_features/api.ts b/services/mcp/src/generated/platform_features/api.tsindex 1699aa88df5c..047915c0927a 100644--- a/services/mcp/src/generated/platform_features/api.ts+++ b/services/mcp/src/generated/platform_features/api.ts@@ -3,7 +3,7 @@* MCP service uses these Zod schemas for generated tool handlers.* To regenerate: hogli build:openapi*- * PostHog API - MCP 20 enabled ops+ * PostHog API - MCP 19 enabled ops* OpenAPI spec version: 1.0.0*/import * as zod from 'zod'@@ -453,18 +453,6 @@ export const CommentsCountRetrieveParams = /* @__PURE__ */ zod.object({),})-/**- * Return the product key (e.g. `session_replay`, `web_analytics`) this team selected as their primary product during onboarding. Resolved from the team's most recent primary-onboarding `ProductIntent` record (the one carrying the `onboarding product selected - primary` context) — not from the `user showed product intent` event, which also fires for non-onboarding contexts. Returns `null` when no primary onboarding product intent has been captured (e.g. teams created before this signal existed, or where onboarding was skipped).- */-export const EnvironmentsPromotedProductIntentRetrieveParams = /* @__PURE__ */ zod.object({- id: zod.number().describe('A unique integer value identifying this environment (aka team).'),- project_id: zod- .string()- .describe(- "Project ID of the project you're trying to access. To find the ID of the project, make a call to /api/projects/."- ),-})-/*** Get the authenticated user's pinned sidebar tabs and configured homepage for the current team. Pass `@me` as the UUID.*/diff --git a/services/mcp/src/lib/oauth-scopes.generated.ts b/services/mcp/src/lib/oauth-scopes.generated.tsindex 7a2b62212887..b7816b25f474 100644--- a/services/mcp/src/lib/oauth-scopes.generated.ts+++ b/services/mcp/src/lib/oauth-scopes.generated.ts@@ -137,8 +137,6 @@ export const OAUTH_SCOPES_SUPPORTED = ['organization_member:write','person:read','person:write',- 'persisted_folder:read',- 'persisted_folder:write','plugin:read','plugin:write','product_tour:read',diff --git a/services/mcp/src/tools/generated/platform_features.ts b/services/mcp/src/tools/generated/platform_features.tsindex 5067178e96f6..b2566883e971 100644--- a/services/mcp/src/tools/generated/platform_features.ts+++ b/services/mcp/src/tools/generated/platform_features.ts@@ -12,7 +12,6 @@ import {CommentsListQueryParams,CommentsRetrieveParams,CommentsThreadRetrieveParams,- EnvironmentsPromotedProductIntentRetrieveParams,ListQueryParams,MembersListQueryParams,RetrieveParams,@@ -380,24 +379,6 @@ const organizationsList = (): ToolBase<},})-const PromotedProductIntentGetSchema = EnvironmentsPromotedProductIntentRetrieveParams.omit({ project_id: true })--const promotedProductIntentGet = (): ToolBase<- typeof PromotedProductIntentGetSchema,- Schemas.PromotedProductIntent-> => ({- name: 'promoted-product-intent-get',- schema: PromotedProductIntentGetSchema,- handler: async (context: Context, params: z.infer<typeof PromotedProductIntentGetSchema>) => {- const projectId = await context.stateManager.getProjectId()- const result = await context.api.request<Schemas.PromotedProductIntent>({- method: 'GET',- path: `/api/projects/${encodeURIComponent(String(projectId))}/environments/${encodeURIComponent(String(params.id))}/promoted_product_intent/`,- })- return result- },-})-const RoleGetSchema = RolesRetrieveParams.omit({ organization_id: true })const roleGet = (): ToolBase<typeof RoleGetSchema, Schemas.Role> => ({@@ -514,7 +495,6 @@ export const GENERATED_TOOLS: Record<string, () => ToolBase<ZodObjectAny>> = {'org-members-list': orgMembersList,'organization-get': organizationGet,'organizations-list': organizationsList,- 'promoted-product-intent-get': promotedProductIntentGet,'role-get': roleGet,'role-members-list': roleMembersList,'roles-list': rolesList,diff --git a/services/mcp/tests/unit/tool-filtering.test.ts b/services/mcp/tests/unit/tool-filtering.test.tsindex f76b8fc37e81..2ef422598219 100644--- a/services/mcp/tests/unit/tool-filtering.test.ts+++ b/services/mcp/tests/unit/tool-filtering.test.ts@@ -10,7 +10,6 @@ import {getRequiredFeatureFlags,getToolsForFeatures,type ToolDefinition,- ToolDefinitionSchema,toolPassesFlagGate,} from '@/tools/toolDefinitions'import type { Context } from '@/tools/types'@@ -743,7 +742,6 @@ describe('Tool Filtering - Feature Flags', () => {'notebooks-collaboration','replay-vision','tasks',- 'promoted-product','dashboard-widgets','heatmaps-mcp','marketing-analytics-mcp',@@ -753,7 +751,7 @@ describe('Tool Filtering - Feature Flags', () => {'metrics',]))- expect(flags).toHaveLength(19)+ expect(flags).toHaveLength(18)})// Exercise the real predicate (toolPassesFlagGate) over hand-rolled entries@@ -851,99 +849,5 @@ describe('Tool Filtering - Feature Flags', () => {expect(toolsOff).toContain('old-tool-v1')expect(toolsOff).toContain('unrelated-tool')})-- describe('feature_flag_variant matching', () => {- const variantToolEntries: [string, ToolDefinition][] = [- ['unrelated-tool', { ...baseDef }],- [- 'variant-gated-tool',- {- ...baseDef,- feature_flag: 'promoted-product',- feature_flag_variant: 'intent_plus',- },- ],- ]-- it('shows variant-gated tool only when the variant matches', () => {- const tools = filterByFeatureFlags(variantToolEntries, { 'promoted-product': 'intent_plus' })- expect(tools).toContain('variant-gated-tool')- expect(tools).toContain('unrelated-tool')- })-- it.each(['control', 'control_b', 'intent', false, true, undefined])(- 'hides variant-gated tool when flag value is %p',- (flagValue) => {- const tools = filterByFeatureFlags(variantToolEntries, { 'promoted-product': flagValue })- expect(tools).not.toContain('variant-gated-tool')- expect(tools).toContain('unrelated-tool')- }- )-- it('hides variant-gated tool when featureFlags map is omitted entirely', () => {- const tools = filterByFeatureFlags(variantToolEntries)- expect(tools).not.toContain('variant-gated-tool')- expect(tools).toContain('unrelated-tool')- })-- it('hides a hand-rolled misconfig tool with feature_flag_variant but no feature_flag', () => {- // The Zod `.refine` rejects this at parse time, but a developer- // can still construct one in code via cast — the runtime predicate- // must treat it as hidden, not ungated.- const misconfigEntries: [string, ToolDefinition][] = [- ['orphan-variant', { ...baseDef, feature_flag_variant: 'intent_plus' }],- ]- expect(filterByFeatureFlags(misconfigEntries, { 'promoted-product': 'intent_plus' })).not.toContain(- 'orphan-variant'- )- expect(filterByFeatureFlags(misconfigEntries)).not.toContain('orphan-variant')- })- })-- describe('feature_flag_variant schema validation', () => {- const baseFields = {- description: '',- category: 'platform_features',- feature: 'platform_features',- summary: '',- title: '',- required_scopes: [],- annotations: { destructiveHint: false, idempotentHint: true, openWorldHint: true, readOnlyHint: true },- }-- it('rejects feature_flag_variant without feature_flag', () => {- const result = ToolDefinitionSchema.safeParse({- ...baseFields,- feature_flag_variant: 'intent_plus',- })- expect(result.success).toBe(false)- if (!result.success) {- expect(result.error.issues[0]?.message).toMatch(/feature_flag_variant.*requires.*feature_flag/i)- expect(result.error.issues[0]?.path).toEqual(['feature_flag_variant'])- }- })-- it('accepts feature_flag_variant when feature_flag is also set', () => {- const result = ToolDefinitionSchema.safeParse({- ...baseFields,- feature_flag: 'promoted-product',- feature_flag_variant: 'intent_plus',- })- expect(result.success).toBe(true)- })-- it('accepts feature_flag alone (no variant)', () => {- const result = ToolDefinitionSchema.safeParse({- ...baseFields,- feature_flag: 'promoted-product',- })- expect(result.success).toBe(true)- })-- it('accepts a definition with neither flag field set', () => {- const result = ToolDefinitionSchema.safeParse(baseFields)- expect(result.success).toBe(true)- })- })})})