Skip to content

:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.

feat(navigation): show release stage in scene title, not sidebar (#109545)

Paul D'Ambrab0ded238a053
diff --git a/frontend/snapshots.yml b/frontend/snapshots.yml
index 4157645f540c..f4184ca62742 100644
--- a/frontend/snapshots.yml
+++ b/frontend/snapshots.yml
@@ -2260,6 +2260,18 @@ snapshots:
hash: v1.k794b7964.18bfd78709586593669f73c0f18a22a9f323eef38bd9264b56382320deb3c66d.rsb4g9JKqcXGuy4KfMmbtmvv6dyZNKtl2M8YRnJR-a4
components-quill-date-filter--date-filter-with-calendar--light:
hash: v1.k794b7964.7d351a1bcab8172ae10f5ed479f29f66ff7e5bbd359a8e9aa3180ec987a7071d.XTX8iA5YC5q9es7mAVtvdZFKYcM3LJ9Diwu59c7zrdE
+ components-releasestagetag--alpha--dark:
+ hash: v1.k794b7964.a8ff01c6d1aa7731d85015fcc8cdfe498e8ff3df1fa3c75f314b6f74aee481d7.mTsiwqqy8T4XEfsw6yg643PP5JLIEoBD_RwL8qZpkOI
+ components-releasestagetag--alpha--light:
+ hash: v1.k794b7964.9ecfa18b9929541baad819f076262f5cf9da501ca07c934348a17e0a0c64b802.-UmCpfh8rWSvMlHDd3MvTnCVksRMfjAEZrq_vM_JCIs
+ components-releasestagetag--beta--dark:
+ hash: v1.k794b7964.fce9ccbfd70132e89d824f5591524257ef662749ac4e761d2e2114c3b5550a73.M_EoK7IKWGoxXp9ZEn-gI_E6cThhtOfbW0c5h4UIAJ0
+ components-releasestagetag--beta--light:
+ hash: v1.k794b7964.7459c7db00dcb73e87bb15157dd613726dcce147060d4f9ca2ddecfab9652156.eice8WWtmfOw_1vPOqIPXOT2eZQxI5pMh6AMaEe393o
+ components-releasestagetag--internal--dark:
+ hash: v1.k794b7964.01fe1534b60b1dbc19791004eeb3cd691436d5524ddc65a0ccd50bfec60e1b70.uqFWf9uPFdcAQC-KoT2w0aVi1CvJ4lEefAtNgOpRuT8
+ components-releasestagetag--internal--light:
+ hash: v1.k794b7964.18c439d8f91e2f463a5212933f502cd084ac8c4d796963ba7ff8c8946e4cc5fb.uEErXKcQANzO8ov9EwNwoFS-YcmeCWkxYTTAkQkRRoE
components-sample-data-state--all-variants--dark:
hash: v1.k794b7964.f07ee511a2c77a4ff5a2ed0ca5030e3e57656ade775012ea85bd9c5047f29d3f.297btInaIUjNnmRtmJbS5ZyTmlux9j6wO8NlDAevNzo
components-sample-data-state--all-variants--light:
@@ -2273,17 +2285,17 @@ snapshots:
components-sample-data-state--wizard-installing--light:
hash: v1.k794b7964.2052c49beff2e0a5c5c533ae05c73bacc2619a04053b4529acf93574160c3a66.sTXp62J02o4EVCFfSt9_QV7YwS6UN87FpVxkPGrmZ3o
components-search--default--dark:
- hash: v1.k794b7964.df9dfca4d81ea14196343a7a85fb46d87d2d778b0722ccd64efd0e0ce065aaab.0-LKBT675yMulV7tP8EnPtFLDAlJcRdnjNCAkudUnPU
+ hash: v1.k794b7964.da49a8420c703e68e52fc9091f69cbe6f9b145bbdae11bef03d31e3523168cac.iQUGfMwL8k8_L-SfZAShZ6S6gLXnlrhUWMVZf01c16M
components-search--default--light:
- hash: v1.k794b7964.1e45100f37adaa3fb1c23c1bb96a1d51d14f50bb21ebdef682e4831ff6f049bb.xT5X2KKnEppe6R9VTurDm3F6-FJD51_92LmlGAtu8rY
+ hash: v1.k794b7964.5dbfa04b132aca2440e6313e0a33ad1d5d4f6f198dc32fa2993fd4ccf7c315f2.CKazXNEZ5uXgKxm86E-IlDhLwkAH96PSYDyrH5a-u4g
components-search--no-recents--dark:
- hash: v1.k794b7964.5ddecb083ea81b5b2f390926892ed93af258ba7647453c6a378a101f4cd5538e.OMb7iyoxBgCIbTaU3dz1e7NxHq54RpCzp5AosksFeVQ
+ hash: v1.k794b7964.c7f787a5f26698ee8f82fe1b90260a2a33d1c705fced19156577d9ab74f0a885.R9HYxWqks9vhwakV2LQ_sAG8bMA8NuxBnpcU_augT9M
components-search--no-recents--light:
- hash: v1.k794b7964.892fd231d7a847fbb8cb476b2a3b1ecb3dd26d909b438e565577a41fb5bf9363.U1-jIXInXPIefSrs3J3LoxQpd3ydHLdDKDs2hR9uX48
+ hash: v1.k794b7964.e0a751dae9feb832ccd176945bb33042d101bdf0bfb9ecbf10525e58d1e2cbcc.keQcC9FXf8jd5ubJrXpPv6_LaXPOkngEsTVyDN1LxAo
components-search--product-recents-and-starred--dark:
- hash: v1.k794b7964.8afd7af2739ac45048d67219cbda76b2a37341558b1727626efc2a276d26b968.yVDHAcC3P3RVKJU-gZolegesqOIDBw_HaNaR1UxoBww
+ hash: v1.k794b7964.614b22a128f415535fbb21f8a81368d14c3f1bf7ddafdae6629c82726ebbe42a.MTE--SBuwsAWaNIRH67s1jt1RfBZr1Oz9HvG_WVxI8s
components-search--product-recents-and-starred--light:
- hash: v1.k794b7964.b8da0d666c219b2f36b7d110b2109ec5586c8c42fecf67b52821a3b18fde4734.ZjncalrNKMXAQVhkoICoGDvgbi1edOR7DaVgF-QRVAQ
+ hash: v1.k794b7964.45213063c3c767175033b9c3ff72d94df2e3ffc9ffe46398bc78c45c3708f1b5.X_mXo_erMw09YXsaZY6-sc_9vQx8VtriGVHZgr_wJmw
components-search--searching--dark:
hash: v1.k794b7964.85544bea3a92150db0074577d58f437b5b09f93dfa82c7dcd9a27d5e38cd3256.9qyAZf2smivxTKXy7X55f5ZzMoiqvWZSa3HPQeTEGA4
components-search--searching--light:
@@ -3985,13 +3997,13 @@ snapshots:
layout-products-and-files--customize-sidebar-without-ai-consent--light:
hash: v1.k794b7964.35e11b76019a9bac24923604e52a8ac3237bfc41ee0c110284a15a853bac8428.FeDsIbkamD4F5NTX4p-cAsqFmC2I0BWuvhFYlL9ICFw
layout-products-and-files--dark--dark:
- hash: v1.k794b7964.867a5800935d5afb1cdb9f19635d5f9cca718a7978dc4b0d693ed8f51e9ab05a.NXsEwnZE4rZYHkWv8-8R_5bUxmiBwjSDN_uPXs0QKAM
+ hash: v1.k794b7964.9192eb1cd82d500f1f7462ce3003efc9f3ec501d50694448f4b04d323b13c723.JsxygvnWDpvL_2ibyD7NpWVkDsxMSUYlln21Qc8jiPc
layout-products-and-files--dark--light:
- hash: v1.k794b7964.52f671aed5801245fa9cad458ca54e6e51aefd2b904bad5610b9a325908e2a3a.KN1KGVSFLIMfwdk60XK36VZeZ7JJGCrjYJwViiW784w
+ hash: v1.k794b7964.84951c4e54b65d867f0af4dbcdce6e946deb2345bd5500f8018646b07f952119.a76bWY5s7wkmASYMaYgox1CtuFLAA-Ii3F9bsoMb8e4
layout-products-and-files--empty-starred--dark:
- hash: v1.k794b7964.18047b762feaaeb4b54da487ceaac7d9495de79f8c91a0b99dbe5ec37835e62d.z9CgCyqWmky92Iy802G23_WovLT1OIgbRDsYD0pFdaA
+ hash: v1.k794b7964.c5d922c5608ecb21aab95ccdd3fdab9b566ba1b3bfdc02f4cee4eca2de3fbd69.UEjbExMAXNLMgg7gu_nFGCikQi-DZIk4dFU4Om4kU9Y
layout-products-and-files--empty-starred--light:
- hash: v1.k794b7964.d7cd520337ed2618da5497b77a1376c04ccf79d7fd557ddaec1e14e1e2f9ca96.fZqUocr7ovmyDgksLkzMituowhRNUWBBdWqdMOudTtI
+ hash: v1.k794b7964.78a8b65db862083d24a7b024b3efd7d764b66d1a958122ad0a2f966e924f6b80.XQhWnXk3RXiJlzZE5Txof1R63rRLGjS9i9Dt1gR2J0U
layout-products-and-files--files--dark:
hash: v1.k794b7964.2108f656960d8d2c354b8e867035968a366c303023268ee449c7bfe8eebf732e.C4xkZ6OJm1MDbQmI0BohJfPPlBa149I2gohKmK1Zk1U
layout-products-and-files--files--light:
@@ -4061,9 +4073,9 @@ snapshots:
layout-products-and-files--flag-off-flat-nav--light:
hash: v1.k794b7964.58bd050e6237f472e90016f997b7d6f68f6650ab35545a91cadd7d519fadbdc7.kcMUzUgt6_2NA7vLY9Gt50iZD0MF6Ja5Z2i19ku68Iw
layout-products-and-files--narrow--dark:
- hash: v1.k794b7964.13f6a646e69033bba0e16cc6b1976a527ef0b964370c6db1061475396ad6b6d9.tuK9dkmNOnmch_fJ4ler4davl_hkAWmkndYcb0VDcoI
+ hash: v1.k794b7964.6001d33d152f8e3ae87003c2c1b6cf430dbed089eba9df57821b47ac4f63c3ba.CacmDFzt6gtapEL0dbjthJtKjLPecUzZyEz-_p0Yt0A
layout-products-and-files--narrow--light:
- hash: v1.k794b7964.fc0e5505933b18a3bb417f614f6457a082b30bd5c7fd5f6e4c0cd4b9fc2ace53.iliBDxh2FDFvrlpGJofuXUf-pIdIGWAZwevbrRPdqzQ
+ hash: v1.k794b7964.860929b30a59db34934dc153377bc44e8d8b74bb5d48197e1db4f7c6abb12cf8.oG3_zyn1bPWx7OWXmoq-PBNK5HcZEn98U-b9BSpgFcs
layout-products-and-files--no-results--dark:
hash: v1.k794b7964.7d26437565c2cc909ce308d195baee69d640ea10a6d5e2caaa7586edb01dea33.pbR09mG5i45jUJ70vG8xFGDcnwpozmWYWdvTMeuwIfY
layout-products-and-files--no-results--light:
@@ -4073,29 +4085,29 @@ snapshots:
layout-products-and-files--open-folder--light:
hash: v1.k794b7964.246baac643fe4a369b82151b6bcab2840a860b93a784d4a350b27be3bc380fff.B2objI5BYOF1Q5SItTOGTwxYczF0rBk4xf69ggaRZII
layout-products-and-files--products--dark:
- hash: v1.k794b7964.867a5800935d5afb1cdb9f19635d5f9cca718a7978dc4b0d693ed8f51e9ab05a.o_jJCWd4O4t1xwJtaL_Scn69hCInwHMFr_AOwiETlI4
+ hash: v1.k794b7964.9192eb1cd82d500f1f7462ce3003efc9f3ec501d50694448f4b04d323b13c723.PtQ3aSbwQVzJ5k-63tNWXBmMkmLLEuP63kiISw-PXjo
layout-products-and-files--products--light:
- hash: v1.k794b7964.52f671aed5801245fa9cad458ca54e6e51aefd2b904bad5610b9a325908e2a3a.oOXgvbSYn1EbkqdLp2-EsomRntjq-nkyxcUCNN4vM6Q
+ hash: v1.k794b7964.84951c4e54b65d867f0af4dbcdce6e946deb2345bd5500f8018646b07f952119.mkCykxmlr_dl60IIcP-hOUHrgmIGg-lU23u-TIZfJ5c
layout-products-and-files--products-closed--dark:
- hash: v1.k794b7964.48e1e2bd1f2cae5fcbca7f4e74bc02793707869a65dea627b62545eac5d3264c.abHQL80Kb9WdpBMtcZB3lDoqWQl8e6KZnrQ7tyXG4Cw
+ hash: v1.k794b7964.7024e8d42ab7a3317835938214b3aac96ebcc1bb2878c7ef356085680a5e6f31.PNRWMs3n17iVNosAtdcTPMUvz-zHyMifNm4hWDXsf7c
layout-products-and-files--products-closed--light:
- hash: v1.k794b7964.0ab37bcc4af502fb430ca5b9ce9da1d6d3399389b0c3bf9b5b709ffcdc262ec8.arsvwRIZsHF1qafiT4K_PeUj7BfE5JtIdGnlPnUTsbU
+ hash: v1.k794b7964.90af43133b178e593c7d357775269f0adf88f6e7632b03c06d116c027105ef11.MrixbeYpt_FC72iFxqFv-dqjxL7k5dN4iTga3Xy8KAk
layout-products-and-files--products-overlay--dark:
- hash: v1.k794b7964.fcaf0392a991777e6fbeb8f3ae82ac04533f78a2f189ce571e33ccbcc5035829.dUGSB_ZZQjprevYere7Q6mD9xOE7gFWMJzCDJiiFF5k
+ hash: v1.k794b7964.a9334728a3bd202e7df51a3ea3bcdeeee78aa50b17d7e6d738626772dfd35ab5.DgpYBgWWosNoEbkFKwu50V-A5K5nVK_mKeJIJbHX7EM
layout-products-and-files--products-overlay--light:
- hash: v1.k794b7964.3507fd4b23f9b4de0133661ed216b41e8d6c1efc38ac8843a136eabdf8b674a5.EPutuLCllqTuURcfQnDCM4fNhMbYE4uaPf0KjG45gUk
+ hash: v1.k794b7964.dc07557f5c26bf5aeaf473450a2c5d4cf8a946f7218f7be69273f986d3ea7f6f.73K_M72RxXryJKkFDFLpGB2WeL-y_IXHrNc1z4BtYrw
layout-products-and-files--search--dark:
- hash: v1.k794b7964.3dfd174f9729cdf5cd39d4acd2be988c2fce03e802f1f4ea1cd0b199219f660f.hUZctYTqUbL3HF38oMxNAPbTLfzMXhRC4hTH6wMhUv4
+ hash: v1.k794b7964.1f52d7316737db0140daaabcb222df4aa9734bec57db313f0c904491fa9704bb.NKQ14VoLKhYTSzXwueJtC8fZcrek5TVdLt9N9kw5WMM
layout-products-and-files--search--light:
- hash: v1.k794b7964.8093bc6d0caedf2a56e01f9b26ed54d6eab9261ba36aa1894352f6364266d48c.ea1x2-DAGwW2Hk3GLzc2lRAP9R9TP3H1wCZJ460h2Qo
+ hash: v1.k794b7964.2e14d960e523a1f0b9394a4771433a5873d2c7027257f987f8035c68b1fc7e09.2ygAVM1lRvUnx_e7PuE_MDXv9fB47RXx6LqBijHwpTc
layout-products-and-files--starred-setup--dark:
hash: v1.k794b7964.7acf9f0e2c160d6380940d496ddd321cf337b21bfcc095e83123c6fcf410313c.Ufmg8l4-RO9yoflVafY_QSA6Z5ZLunkQEQREaTycVzI
layout-products-and-files--starred-setup--light:
hash: v1.k794b7964.b85cdb6c937c85cfd20014cbbb4ea480738bed06ffdb6571bb56464ba81fdd26.j11Rr3YBswFEvZZfyqH8f-kFhrAuR1Zqe6OrR16klNE
layout-products-and-files--starred-setup-prompt--dark:
- hash: v1.k794b7964.4623b28472ddc8a2f6a4b10be77ba052b8d168bdb26b1712feb58af7656063ab.88dhrKBxD4A-7AQ6XrpFGDnpz8f4fWbSl9G7KsI3gYQ
+ hash: v1.k794b7964.0d9b32f6bffa19fb620607a7431e80d6fd04a23ef9449f318e183fe26fe0e536.wkEr6-34NNQjvyHU2NnUkKCMO5W2Zg4SwYrwgWmLrg0
layout-products-and-files--starred-setup-prompt--light:
- hash: v1.k794b7964.b261547d8635ae95925e702f6cc1e8a46982b6fbb1247ca7d6890188aa261668.KOuoEVczBgnjMeI8HtO-XnkXh0lxdLzxRfVgkQB6Ruc
+ hash: v1.k794b7964.133c286f6d9fa978181af76d0a01327049903e3064b2e0a5508880079000e3e6.axS09yyDx-shW-IqDxwRvjS4a0ljikFoVzRUVkBWAY8
layout-products-product-tooltip--dark--dark:
hash: v1.k794b7964.52ba01b050e579d7c600df08497a2dfab2dba9cf670553e032afce3819d6d00d.PNNtTamfHv5qRTsFnRwxhlFEaIteMOgYQgAab2QRRj0
layout-products-product-tooltip--dark--light:
@@ -4113,9 +4125,9 @@ snapshots:
layout-products-product-tooltip--sql--light:
hash: v1.k794b7964.417a2d56a0422336f9efc43030a7cdae3f122cf78e3fbbad82601aef1cf74ad4.JG4EGMsAS7rihSzbd3tcBnku6eJQQ3_kL1V7TKFLgWo
layout-project-tree--all-products--dark:
- hash: v1.k794b7964.aa758ab6ae62493a25d4efa8214c722cc0e3d0a7e038c6e693aa5024f261a501.FOhV1EDvl8vyssQhXAAAoO8Pc1rVyyUZkbe1bsaKFnI
+ hash: v1.k794b7964.56c94e9f8ba1c0396eb7fe3e985479f36e30f5493d51f36672c21940d6c8579a.Aiyxwte5mXG2LnVFmU7nJB7pu1jw663e72mBS_kaN0I
layout-project-tree--all-products--light:
- hash: v1.k794b7964.ac89a4e667b04d826d0a5ded96090a943befd5af8c448535e57840c080fd5463.0vFzpjK7ySlSk14_22pZnvVi_S4zUJRSXoLTbwv6Lio
+ hash: v1.k794b7964.0948dd5f0ae164d02fdaa41c510d4647789e187a67a64733c778800a0c31d7bf.ng-dx3QJ8BVl_eiAZAcn031HFJ3GSazL_OB0zHo19LE
layout-project-tree--default--dark:
hash: v1.k794b7964.d82a55db4673668477d27b0ce520ef462930fedf17033cef7083460a87649d3b.dCmEwQtiQfK5faRYZh-fUj_FNcXNVvSvxe8uG0vasb0
layout-project-tree--default--light:
@@ -8559,11 +8571,11 @@ snapshots:
scenes-app-ai-observability-trace-view-trace-view--timeline-mode--light:
hash: v1.k794b7964.efb8b37e950b518d97cd742ef44b75d249ac94d327c5a2965d4a7697ec60c01e._j6psG-8_2R2QiOtYdPV4doYlMJNoP5LsmxS5A7OCFw
scenes-app-aigateway--empty--dark:
- hash: v1.k794b7964.a79751753cae893fcc58a4c977084260de54c1cedfbaf95e007c24e17b349bc0.P3gRNI2aaymd2jiM8kkbBUuRCvPxY4EGX66u3hdLODw
+ hash: v1.k794b7964.daa11f1fa049181ba0f2a1682df377cca565a9d072188b77107ad9d0649e9623.mzdAzwhxfNqVM1hHDGRozAkPE5jqxA8pkYj_h67yw7c
scenes-app-aigateway--empty--light:
hash: v1.k794b7964.e0e5df5df8793c8468e27f6a9b082ed18e064ec1a6868da346984ff80acda39c.kMn7Ls6yq-E9wPX_Q_5cuIX5Gy0isIpnA-AsFj8F5V4
scenes-app-aigateway--page--dark:
- hash: v1.k794b7964.a79751753cae893fcc58a4c977084260de54c1cedfbaf95e007c24e17b349bc0.EFZMJDQA59-TBfbw1hs6FJFClvazutyHRpNpyizIjjM
+ hash: v1.k794b7964.daa11f1fa049181ba0f2a1682df377cca565a9d072188b77107ad9d0649e9623.XZv2VVoyPh7uZWHrC-fr3SN0Seo8oAHHWpG9QFtxmaU
scenes-app-aigateway--page--light:
hash: v1.k794b7964.c0c671f9520955f2d7b427ea9d998cafcaa32498677b7c0c933e887786a016cc.P3yeVak_kL5AjaxOowXaoIxcGpWslxE9XKtHckP1_sk
scenes-app-annotations--annotations--dark:
@@ -8805,7 +8817,7 @@ snapshots:
scenes-app-customer-analytics-accounts--row-expanded-usage-not-found--dark:
hash: v1.k794b7964.c52ec75dc9d1a1395448ca3a58bba70b8c43f8b676bff58dbdd7ae681256047a.PyQHfa6BWGInmt3T2c_8rZdl_ZO3Gi3Ruz7cOh-MGAI
scenes-app-customer-analytics-accounts--row-expanded-usage-not-found--light:
- hash: v1.k794b7964.7e2ff4de82c53bcefa5cb3fcfa1447eed42c528b60bec062e277b5e2e6eb9554.MiAv2PZu3TrJ2oTuUAJf96rKt1zGdU2HHaOBv0dl2lM
+ hash: v1.k794b7964.73d08c83fef42b5b86dec4fb6f3dc84fc57df10b313b8619ff0c6c84acb3020e.TevpXsaRG7pu0pfk54MXqGyijremhfP0HTZ5MHZ1kHQ
scenes-app-customer-analytics-accounts--row-expanded-with-note--dark:
hash: v1.k794b7964.e8866368c6f77514a1668f447c4286cb54223561a75532cd9b3dbe635153ff0d.4XhzwWuCbAiOobD5GWyLEFqLucISfDr0gvaFXDbSZME
scenes-app-customer-analytics-accounts--row-expanded-with-note--light:
@@ -9387,9 +9399,9 @@ snapshots:
scenes-app-engineering-analytics-team--team--light:
hash: v1.k794b7964.e3e2163a7c066bc26f1b3e7f80541d5c5bf1419d8a503d35a554ed72d048ee82.Ov31vsxKog4PRQOFXFyXMS-QrY6UhgMxAqqtaJWocWM
scenes-app-engineering-analytics-team--team-narrow--dark:
- hash: v1.k794b7964.6de8ee5eac265b4472c96f92c8e082ac9cea49406503cec0021e8dcdbe7d927d.mOg79dFV_FrNp_7sqO6ohCyZMfuWDwbOpdE5esKnjjk
+ hash: v1.k794b7964.db1bfd583a977538b914123eae7871fcafccfbadf09ec8501883f41a1f1d4943.t3ureTsYDrzqTS9vnP8gBs8YRrOWevCGTmJ6u7lV-SM
scenes-app-engineering-analytics-team--team-narrow--light:
- hash: v1.k794b7964.0150502cfbac0b95b123c0e37f806559babbd5501547b0259566f8aad52cb08a.YFoPIcTeQqzV_19qbyRbDN2tEJCviQxRF0MlSJyC0ss
+ hash: v1.k794b7964.1d90a143e7072e6e561578c9a88fffa59a6d0fd02b5c82e398c1602b2aaa6b03.vsPsezqKfK5Pu71RJxTrkJ-Lp4UFD07ajlKzcclTMdU
scenes-app-engineering-analytics-team--team-quarantine-load-error--dark:
hash: v1.k794b7964.1c6be5bb3f64f79843d2befde083faec26e3b4ad6dd7d2867a99b599d2943324.hFMUrz-ggVkoUYAZ_UL5sx4qeN-_zFWPHOXyg7GP1CU
scenes-app-engineering-analytics-team--team-quarantine-load-error--light:
@@ -13103,7 +13115,7 @@ snapshots:
scenes-app-visual-review-flakiness--unstable--light:
hash: v1.k794b7964.26ff0c274624f9d1ea71f4377d104d5e4feae204ba8ea0b68735c7f5fae8423e.WaXT0zPJ1WHOerBWKkJmHERCIZwpJT_L_4AHvWL3bSE
scenes-app-visual-review-run--ready-to-finalize--dark:
- hash: v1.k794b7964.879549ba86b942a0497ef5b08bb0172ac58c62fe8da41a21584c82bea231db20.lG7LsOxr5tzXDBwFMJwt3c7IgoQuIH6h8qlUZnPNJVw
+ hash: v1.k794b7964.2ddf6d3c5eea469705d81ec0489b029e21e3d06d119b0365ddebe1340677e69c.MPAF7Dn_bpbKyhuQ2l_aoj6czH6TKBlFE2nXSKVqx4I
scenes-app-visual-review-run--ready-to-finalize--light:
hash: v1.k794b7964.197e6fe1cc9dba0da720ef1e1cfc94b3601d775aa389e49230465a2b65797d47.Tqyss84UbEfq4Gra3v9eMtLs4zfONfl5fSfff9FlmZA
scenes-app-visual-review-run--removed-snapshot--dark:
diff --git a/frontend/src/layout/panel-layout/ProjectTree/ProjectTree.tsx b/frontend/src/layout/panel-layout/ProjectTree/ProjectTree.tsx
index a98e42410661..31c4ad1ff2f9 100644
--- a/frontend/src/layout/panel-layout/ProjectTree/ProjectTree.tsx
+++ b/frontend/src/layout/panel-layout/ProjectTree/ProjectTree.tsx
@@ -14,7 +14,6 @@ import {
} from '@posthog/icons'
import { itemSelectModalLogic } from 'lib/components/FileSystem/ItemSelectModal/itemSelectModalLogic'
-import { ProductTag } from 'lib/components/ProductTag/ProductTag'
import { ScrollableShadows } from 'lib/components/ScrollableShadows/ScrollableShadows'
import { dayjs } from 'lib/dayjs'
import { useLocalStorage } from 'lib/hooks/useLocalStorage'
@@ -523,24 +522,12 @@ export function ProjectTree(props: ProjectTreeProps): JSX.Element {
</>
)}
{sceneConfigurations[key]?.description || item.name}
-
- {item.tags?.map((tag) => (
- <ProductTag key={tag} tag={tag} className="ml-2 relative top-[-1px]" />
- ))}
</>
)
}
if (root === 'persons://') {
- return (
- <>
- {nameNode}
- {item.record?.protocol === 'products://' &&
- item.tags?.map((tag) => (
- <ProductTag key={tag} tag={tag} className="ml-2 relative top-[-1px]" />
- ))}
- </>
- )
+ return nameNode
}
if (root === 'new://') {
@@ -612,9 +599,6 @@ export function ProjectTree(props: ProjectTreeProps): JSX.Element {
</span>
)}
</span>
- {item.tags?.map((tag) => (
- <ProductTag key={tag} tag={tag} className="mr-0.5" />
- ))}
</span>
)
}}
diff --git a/frontend/src/layout/panel-layout/ProjectTree/utils.test.ts b/frontend/src/layout/panel-layout/ProjectTree/utils.test.ts
index b09b94c2d6e1..5a640cca9a65 100644
--- a/frontend/src/layout/panel-layout/ProjectTree/utils.test.ts
+++ b/frontend/src/layout/panel-layout/ProjectTree/utils.test.ts
@@ -119,7 +119,6 @@ describe('project tree utils', () => {
disableCategories: true,
})
expect(node.name).toEqual(productsItemName(item))
- expect(node.tags).toEqual(item.tags)
expect(renderToStaticMarkup(node.icon as JSX.Element)).toEqual(
renderToStaticMarkup(iconForType(item.iconType, item.iconColor))
)
diff --git a/frontend/src/layout/panel-layout/ProjectTree/utils.tsx b/frontend/src/layout/panel-layout/ProjectTree/utils.tsx
index 9db74f7b2dce..605ebca2d416 100644
--- a/frontend/src/layout/panel-layout/ProjectTree/utils.tsx
+++ b/frontend/src/layout/panel-layout/ProjectTree/utils.tsx
@@ -165,7 +165,6 @@ export function convertFileSystemEntryToTreeDataItem({
icon: item._loading ? <Spinner /> : item.shortcut || allShortcuts ? wrapWithShortcutIcon(icon) : icon,
record: { ...item, user },
checked: checkedItems[nodeId],
- tags: starredProduct ? starredProduct.tags : item.tags,
visualOrder: item.visualOrder,
}
if (item && disabledReason?.(item)) {
diff --git a/frontend/src/layout/panel-layout/navbar/NavLink.tsx b/frontend/src/layout/panel-layout/navbar/NavLink.tsx
index 55bc026074c7..f7d7ddf8254b 100644
--- a/frontend/src/layout/panel-layout/navbar/NavLink.tsx
+++ b/frontend/src/layout/panel-layout/navbar/NavLink.tsx
@@ -1,6 +1,5 @@
import { useValues } from 'kea'
-import { ProductTag } from 'lib/components/ProductTag/ProductTag'
import { Link } from 'lib/lemon-ui/Link'
import { ButtonGroupPrimitive } from 'lib/ui/Button/ButtonPrimitives'
import { cn } from 'lib/utils/css-classes'
@@ -17,7 +16,6 @@ interface NavLinkProps {
'data-attr'?: string
onClick?: (e: React.MouseEvent) => void
sideAction?: React.ReactNode
- tag?: 'alpha' | 'beta' | 'new'
}
export function NavLink({
@@ -28,7 +26,6 @@ export function NavLink({
'data-attr': dataAttr,
onClick,
sideAction,
- tag,
}: NavLinkProps): JSX.Element {
const { pathname } = useValues(panelLayoutLogic)
@@ -82,7 +79,6 @@ export function NavLink({
{label}
</span>
)}
- {!isCollapsed && tag && <ProductTag tag={tag} className="relative top-[-1px]" />}
</Link>
{hasSideActionRight && sideAction}
</ButtonGroupPrimitive>
diff --git a/frontend/src/layout/panel-layout/navbar/tabs/NavPrimaryLinks.tsx b/frontend/src/layout/panel-layout/navbar/tabs/NavPrimaryLinks.tsx
new file mode 100644
index 000000000000..6af92a4c6ee1
--- /dev/null
+++ b/frontend/src/layout/panel-layout/navbar/tabs/NavPrimaryLinks.tsx
@@ -0,0 +1,73 @@
+import { useActions, useValues } from 'kea'
+import { router } from 'kea-router'
+
+import { IconClock, IconGear, IconHome, IconNotification } from '@posthog/icons'
+
+import { useFeatureFlag } from 'lib/hooks/useFeatureFlag'
+import { eventUsageLogic } from 'lib/utils/eventUsageLogic'
+import { urls } from 'scenes/urls'
+
+import { navigationLogic } from '~/layout/navigation/navigationLogic'
+import { NavLink } from '~/layout/panel-layout/navbar/NavLink'
+import { NavLinkSideActionButton } from '~/layout/panel-layout/navbar/NavLinkSideActionButton'
+import { panelLayoutLogic } from '~/layout/panel-layout/panelLayoutLogic'
+import { uiCustomizationLogic } from '~/layout/uiCustomizationLogic'
+import { ActivityTab } from '~/types'
+
+export function NavPrimaryLinks(): JSX.Element {
+ const { isLayoutNavCollapsed } = useValues(panelLayoutLogic)
+ const { isSidebarItemShown, uiCustomizationEnabled } = useValues(uiCustomizationLogic)
+ const { showConfigureHomeModal } = useActions(navigationLogic)
+ const { reportNavItemClicked } = useActions(eventUsageLogic)
+ const isProductAutonomyEnabled = useFeatureFlag('PRODUCT_AUTONOMY')
+
+ return (
+ <>
+ {isSidebarItemShown('home') && (
+ <NavLink
+ to={urls.projectRoot()}
+ label="Home"
+ icon={<IconHome />}
+ isCollapsed={isLayoutNavCollapsed}
+ data-attr="nav-item-home"
+ onClick={() => reportNavItemClicked('home', 'primary')}
+ sideAction={
+ <NavLinkSideActionButton
+ icon={<IconGear />}
+ tooltip="Configure home"
+ data-attr="nav-configure-home"
+ onClick={(e) => {
+ e.stopPropagation()
+ if (uiCustomizationEnabled) {
+ router.actions.push(urls.settings('user-navigation', 'homepage'))
+ } else {
+ showConfigureHomeModal()
+ }
+ }}
+ />
+ }
+ />
+ )}
+
+ {isProductAutonomyEnabled && isSidebarItemShown('inbox') && (
+ <NavLink
+ to={urls.inbox()}
+ label="Self-driving"
+ icon={<IconNotification />}
+ isCollapsed={isLayoutNavCollapsed}
+ data-attr="nav-item-inbox"
+ onClick={() => reportNavItemClicked('inbox', 'primary')}
+ />
+ )}
+
+ <NavLink
+ to={urls.activity(ActivityTab.ExploreEvents)}
+ label="Activity"
+ icon={<IconClock />}
+ isCollapsed={isLayoutNavCollapsed}
+ data-attr="nav-item-activity"
+ onClick={() => reportNavItemClicked('activity', 'primary')}
+ />
+ </>
+ )
+}
diff --git a/frontend/src/layout/panel-layout/navbar/tabs/NavProductRow.tsx b/frontend/src/layout/panel-layout/navbar/tabs/NavProductRow.tsx
index 28d1350a99bc..86e2f90cfd87 100644
--- a/frontend/src/layout/panel-layout/navbar/tabs/NavProductRow.tsx
+++ b/frontend/src/layout/panel-layout/navbar/tabs/NavProductRow.tsx
@@ -3,7 +3,6 @@ import { useActions, useValues } from 'kea'
import { IconChevronDown, IconGear, IconPlusSmall, IconStar, IconStarFilled } from '@posthog/icons'
import { LemonButton, LemonDialog, LemonMenu } from '@posthog/lemon-ui'
-import { ProductTag } from 'lib/components/ProductTag/ProductTag'
import { LemonMenuItems } from 'lib/lemon-ui/LemonMenu'
import { Link } from 'lib/lemon-ui/Link'
import { Tooltip } from 'lib/lemon-ui/Tooltip'
@@ -105,7 +104,6 @@ export function NavProductRow({ item, pinned = false }: { item: FileSystemImport
<NavProductIcon item={item} />
</span>
<span className="flex-1 truncate">{label}</span>
- {item.tags?.[0] && <ProductTag tag={item.tags[0]} />}
</Link>
</Tooltip>
{isHome ? (
diff --git a/frontend/src/layout/panel-layout/navbar/tabs/NavTabBrowse.tsx b/frontend/src/layout/panel-layout/navbar/tabs/NavTabBrowse.tsx
index 073ad8f5494b..d14053567f1f 100644
--- a/frontend/src/layout/panel-layout/navbar/tabs/NavTabBrowse.tsx
+++ b/frontend/src/layout/panel-layout/navbar/tabs/NavTabBrowse.tsx
@@ -1,5 +1,4 @@
import { useActions, useValues } from 'kea'
-import { router } from 'kea-router'
import posthog from 'posthog-js'
import { Fragment } from 'react'
@@ -12,15 +11,12 @@ import {
IconFolder,
IconFolderOpen,
IconGear,
- IconHome,
- IconNotification,
IconPencil,
IconStar,
} from '@posthog/icons'
import { Tooltip } from '@posthog/lemon-ui'
import { ScrollableShadows } from 'lib/components/ScrollableShadows/ScrollableShadows'
-import { useFeatureFlag } from 'lib/hooks/useFeatureFlag'
import { Link } from 'lib/lemon-ui/Link'
import { Spinner } from 'lib/lemon-ui/Spinner/Spinner'
import { ButtonPrimitive } from 'lib/ui/Button/ButtonPrimitives'
@@ -33,9 +29,6 @@ import { eventUsageLogic } from 'lib/utils/eventUsageLogic'
import { removeProjectIdIfPresent } from 'lib/utils/kea-router'
import { urls } from 'scenes/urls'
-import { navigationLogic } from '~/layout/navigation/navigationLogic'
-import { NavLink } from '~/layout/panel-layout/navbar/NavLink'
-import { NavLinkSideActionButton } from '~/layout/panel-layout/navbar/NavLinkSideActionButton'
import { PanelLayoutNavIdentifier, panelLayoutLogic } from '~/layout/panel-layout/panelLayoutLogic'
import { customProductsLogic } from '~/layout/panel-layout/ProjectTree/customProductsLogic'
import { iconForType } from '~/layout/panel-layout/ProjectTree/defaultTree'
@@ -44,11 +37,11 @@ import { projectTreeDataLogic } from '~/layout/panel-layout/ProjectTree/projectT
import { joinPath, splitPath, unescapePath } from '~/layout/panel-layout/ProjectTree/utils'
import { SidebarItemKey, uiCustomizationLogic } from '~/layout/uiCustomizationLogic'
import { FileSystemEntry, FileSystemIconType } from '~/queries/schema/schema-general'
-import { ActivityTab } from '~/types'
import { BrowserLikeMenuItems } from '../../ProjectTree/menus/BrowserLikeMenuItems'
import { PanelIndicatorIcon, SectionTrigger } from '../NavBar'
import { editProductsLogic } from './editProductsLogic'
+import { NavPrimaryLinks } from './NavPrimaryLinks'
import { navRecentsLogic } from './navRecentsLogic'
const panelTriggerItems: {
@@ -172,14 +165,12 @@ export function NavTabBrowse(): JSX.Element {
activePanelIdentifierFromUrlAiFirst,
pathname,
} = useValues(panelLayoutLogic)
- const isProductAutonomyEnabled = useFeatureFlag('PRODUCT_AUTONOMY')
const { recentItems, recentItemsLoading } = useValues(navRecentsLogic)
const { isSidebarSectionShown, isSidebarItemShown, uiCustomizationEnabled } = useValues(uiCustomizationLogic)
const { enabledProductPaths } = useValues(customProductsLogic)
// Flag-off path: the pre-customization edit mode and home modal.
const { isEditMode, checkedProducts } = useValues(editProductsLogic)
const { enterEditMode, saveAndExitEditMode, toggleProduct } = useActions(editProductsLogic)
- const { showConfigureHomeModal } = useActions(navigationLogic)
const { reportNavItemClicked } = useActions(eventUsageLogic)
const currentPath = removeProjectIdIfPresent(pathname)
@@ -217,52 +208,7 @@ export function NavTabBrowse(): JSX.Element {
<SectionTrigger icon={<IconFolder />} label="Project" isCollapsed={isLayoutNavCollapsed} />
)}
<Collapsible.Panel className={cn('pl-2 pt-1', isLayoutNavCollapsed && 'items-center pl-0')}>
- {isSidebarItemShown('home') && (
- <NavLink
- to={urls.projectRoot()}
- label="Home"
- icon={<IconHome />}
- isCollapsed={isLayoutNavCollapsed}
- data-attr="nav-item-home"
- onClick={() => reportNavItemClicked('home', 'primary')}
- sideAction={
- <NavLinkSideActionButton
- icon={<IconGear />}
- tooltip="Configure home"
- data-attr="nav-configure-home"
- onClick={(e) => {
- e.stopPropagation()
- if (uiCustomizationEnabled) {
- router.actions.push(urls.settings('user-navigation', 'homepage'))
- } else {
- showConfigureHomeModal()
- }
- }}
- />
- }
- />
- )}
-
- {isProductAutonomyEnabled && isSidebarItemShown('inbox') && (
- <NavLink
- to={urls.inbox()}
- label="Self-driving"
- icon={<IconNotification />}
- isCollapsed={isLayoutNavCollapsed}
- data-attr="nav-item-inbox"
- tag="beta"
- onClick={() => reportNavItemClicked('inbox', 'primary')}
- />
- )}
-
- <NavLink
- to={urls.activity(ActivityTab.ExploreEvents)}
- label="Activity"
- icon={<IconClock />}
- isCollapsed={isLayoutNavCollapsed}
- data-attr="nav-item-activity"
- onClick={() => reportNavItemClicked('activity', 'primary')}
- />
+ <NavPrimaryLinks />
<div className={cn('flex flex-col gap-px', isLayoutNavCollapsed && 'items-center')}>
{panelTriggerItems
diff --git a/frontend/src/layout/panel-layout/navbar/tabs/flat-nav/FlatNavBrowse.tsx b/frontend/src/layout/panel-layout/navbar/tabs/flat-nav/FlatNavBrowse.tsx
index b9b560964ff6..902a3900e48d 100644
--- a/frontend/src/layout/panel-layout/navbar/tabs/flat-nav/FlatNavBrowse.tsx
+++ b/frontend/src/layout/panel-layout/navbar/tabs/flat-nav/FlatNavBrowse.tsx
@@ -1,34 +1,21 @@
import './FlatNavBrowse.scss'
-import { useActions, useValues } from 'kea'
-import { router } from 'kea-router'
-
-import { IconClock, IconGear, IconHome, IconNotification } from '@posthog/icons'
+import { useValues } from 'kea'
import { ScrollableShadows } from 'lib/components/ScrollableShadows/ScrollableShadows'
-import { useFeatureFlag } from 'lib/hooks/useFeatureFlag'
import { cn } from 'lib/utils/css-classes'
-import { eventUsageLogic } from 'lib/utils/eventUsageLogic'
-import { urls } from 'scenes/urls'
-import { navigationLogic } from '~/layout/navigation/navigationLogic'
import { panelLayoutLogic } from '~/layout/panel-layout/panelLayoutLogic'
import { uiCustomizationLogic } from '~/layout/uiCustomizationLogic'
-import { ActivityTab } from '~/types'
-import { NavLink } from '../../NavLink'
-import { NavLinkSideActionButton } from '../../NavLinkSideActionButton'
+import { NavPrimaryLinks } from '../NavPrimaryLinks'
import { FlatNavPanelButtons } from './FlatNavPanelButtons'
import { FlatNavProducts } from './FlatNavProducts'
import { FlatNavRecents } from './FlatNavRecents'
export function FlatNavBrowse(): JSX.Element {
const { isLayoutNavCollapsed } = useValues(panelLayoutLogic)
- const { sidebarDensity, isSidebarSectionShown, isSidebarItemShown, uiCustomizationEnabled } =
- useValues(uiCustomizationLogic)
- const { showConfigureHomeModal } = useActions(navigationLogic)
- const { reportNavItemClicked } = useActions(eventUsageLogic)
- const isProductAutonomyEnabled = useFeatureFlag('PRODUCT_AUTONOMY')
+ const { sidebarDensity, isSidebarSectionShown } = useValues(uiCustomizationLogic)
return (
<div className="FlatNavBrowse flex flex-col flex-1 overflow-hidden" data-nav-density={sidebarDensity}>
@@ -39,52 +26,7 @@ export function FlatNavBrowse(): JSX.Element {
styledScrollbars
>
<div className={cn('flex flex-col gap-px', isLayoutNavCollapsed && 'items-center')}>
- {isSidebarItemShown('home') && (
- <NavLink
- to={urls.projectRoot()}
- label="Home"
- icon={<IconHome />}
- isCollapsed={isLayoutNavCollapsed}
- data-attr="nav-item-home"
- onClick={() => reportNavItemClicked('home', 'primary')}
- sideAction={
- <NavLinkSideActionButton
- icon={<IconGear />}
- tooltip="Configure home"
- data-attr="nav-configure-home"
- onClick={(e) => {
- e.stopPropagation()
- if (uiCustomizationEnabled) {
- router.actions.push(urls.settings('user-navigation', 'homepage'))
- } else {
- showConfigureHomeModal()
- }
- }}
- />
- }
- />
- )}
-
- {isProductAutonomyEnabled && isSidebarItemShown('inbox') && (
- <NavLink
- to={urls.inbox()}
- label="Self-driving"
- icon={<IconNotification />}
- isCollapsed={isLayoutNavCollapsed}
- data-attr="nav-item-inbox"
- tag="beta"
- onClick={() => reportNavItemClicked('inbox', 'primary')}
- />
- )}
-
- <NavLink
- to={urls.activity(ActivityTab.ExploreEvents)}
- label="Activity"
- icon={<IconClock />}
- isCollapsed={isLayoutNavCollapsed}
- data-attr="nav-item-activity"
- onClick={() => reportNavItemClicked('activity', 'primary')}
- />
+ <NavPrimaryLinks />
<FlatNavPanelButtons />
</div>
diff --git a/frontend/src/layout/panel-layout/navbar/tabs/flat-nav/FlatNavProducts.tsx b/frontend/src/layout/panel-layout/navbar/tabs/flat-nav/FlatNavProducts.tsx
index 0a92a3280579..3f5d56e56e09 100644
--- a/frontend/src/layout/panel-layout/navbar/tabs/flat-nav/FlatNavProducts.tsx
+++ b/frontend/src/layout/panel-layout/navbar/tabs/flat-nav/FlatNavProducts.tsx
@@ -111,7 +111,6 @@ export function FlatNavProducts(): JSX.Element {
)
}
isCollapsed={false}
- tag={item.tag}
data-attr={`flat-nav-tool-${slugify(item.path)}`}
onClick={() => reportNavItemClicked(item.path, 'tools')}
sideAction={PRODUCT_MENUS[item.path]}
diff --git a/frontend/src/layout/panel-layout/navbar/tabs/flat-nav/flatNavLogic.ts b/frontend/src/layout/panel-layout/navbar/tabs/flat-nav/flatNavLogic.ts
index 962ec1c01146..54e95326a95b 100644
--- a/frontend/src/layout/panel-layout/navbar/tabs/flat-nav/flatNavLogic.ts
+++ b/frontend/src/layout/panel-layout/navbar/tabs/flat-nav/flatNavLogic.ts
@@ -16,7 +16,6 @@ export interface FlatNavProductItem {
type?: string
iconType?: FileSystemIconType
iconColor?: FileSystemIconColor
- tag?: 'alpha' | 'beta'
}
export interface FlatNavProductGroup {
@@ -77,7 +76,6 @@ export const flatNavLogic = kea<flatNavLogicType>([
type: product.type,
iconType: product.iconType ?? (product.type as FileSystemIconType | undefined),
iconColor: product.iconColor,
- tag: product.tags?.[0],
category: product.category ?? '',
sortOrder: product.visualOrder ?? UNORDERED_VISUAL_ORDER,
})
diff --git a/frontend/src/layout/panel-layout/navbar/tabs/navProductsTabLogic.test.ts b/frontend/src/layout/panel-layout/navbar/tabs/navProductsTabLogic.test.ts
index 37f9e9a33b29..cf332dc47884 100644
--- a/frontend/src/layout/panel-layout/navbar/tabs/navProductsTabLogic.test.ts
+++ b/frontend/src/layout/panel-layout/navbar/tabs/navProductsTabLogic.test.ts
@@ -88,7 +88,7 @@ describe('navProductsTabLogic', () => {
await expectLogic(navProductsTabLogic, () =>
navProductsTabLogic.actions.setSearch(' self-driving ')
).toMatchValues({
- pinnedItems: [expect.objectContaining({ href: urls.inbox(), path: 'Inbox', tags: ['beta'] })],
+ pinnedItems: [expect.objectContaining({ href: urls.inbox(), path: 'Inbox' })],
groupedItems: [],
})
const items = [
diff --git a/frontend/src/layout/panel-layout/navbar/tabs/navProductsTabLogic.ts b/frontend/src/layout/panel-layout/navbar/tabs/navProductsTabLogic.ts
index ba8923e02f94..03a014709649 100644
--- a/frontend/src/layout/panel-layout/navbar/tabs/navProductsTabLogic.ts
+++ b/frontend/src/layout/panel-layout/navbar/tabs/navProductsTabLogic.ts
@@ -572,7 +572,6 @@ export const navProductsTabLogic = kea<navProductsTabLogicType>([
displayLabel: 'Self-driving',
category: PINNED_CATEGORY,
visualOrder: 1,
- tags: ['beta'],
}
: item
),
diff --git a/frontend/src/layout/scenes/components/FeaturePreviewSceneGate.test.tsx b/frontend/src/layout/scenes/components/FeaturePreviewSceneGate.test.tsx
index 3d6a1a129376..abd72ad32cd0 100644
--- a/frontend/src/layout/scenes/components/FeaturePreviewSceneGate.test.tsx
+++ b/frontend/src/layout/scenes/components/FeaturePreviewSceneGate.test.tsx
@@ -58,7 +58,11 @@ jest.mock('./SceneContent', () => ({
}))
jest.mock('./SceneTitleSection', () => ({
- SceneTitleSection: ({ name }: { name: string }) => <div data-attr="scene-title-section">{name}</div>,
+ SceneTitleSection: ({ name, sceneId }: { name: string; sceneId?: string | null }) => (
+ <div data-attr="scene-title-section" data-scene-id={sceneId}>
+ {name}
+ </div>
+ ),
}))
const mockedUseValues = useValues as jest.Mock
@@ -388,7 +392,7 @@ describe('FeaturePreviewSceneGate', () => {
expect(screen.getByTestId('scene-title-section')).toHaveTextContent('Customer analytics')
})
- test('config sceneId overrides the active scene for the title, so a flag-hidden route is not titled "Not found"', () => {
+ test('config sceneId overrides the active scene for the title and its release stage, so a flag-hidden route is not titled "Not found"', () => {
setupMocks({ activeSceneId: 'Error404' })
render(
@@ -398,6 +402,7 @@ describe('FeaturePreviewSceneGate', () => {
)
expect(screen.getByTestId('scene-title-section')).toHaveTextContent('Metrics')
+ expect(screen.getByTestId('scene-title-section')).toHaveAttribute('data-scene-id', 'Metrics')
expect(screen.queryByText('Not found')).not.toBeInTheDocument()
})
diff --git a/frontend/src/layout/scenes/components/FeaturePreviewSceneGate.tsx b/frontend/src/layout/scenes/components/FeaturePreviewSceneGate.tsx
index ceaa7e9ed562..856a3c10c2c8 100644
--- a/frontend/src/layout/scenes/components/FeaturePreviewSceneGate.tsx
+++ b/frontend/src/layout/scenes/components/FeaturePreviewSceneGate.tsx
@@ -101,19 +101,21 @@ function FeaturePreviewGateContent({
const sceneIdForHeader = config.sceneId ?? activeSceneId
const sceneConfig = sceneIdForHeader ? sceneConfigurations[sceneIdForHeader] : undefined
const flagsHonored = areClientFeatureFlagsHonored(preflight)
+ const sceneTitle = sceneConfig?.name ? (
+ <SceneTitleSection
+ name={sceneConfig.name}
+ description={sceneConfig.description}
+ resourceType={{ type: sceneConfig.iconType || 'default' }}
+ sceneId={sceneIdForHeader}
+ />
+ ) : null
// The user just opted in: the flag is on locally but the API still 403s until ingestion
// catches up. Hold here instead of mounting a scene whose every request fails.
if (justEnrolled) {
return (
<SceneContent>
- {sceneConfig?.name && (
- <SceneTitleSection
- name={sceneConfig.name}
- description={sceneConfig.description}
- resourceType={{ type: sceneConfig.iconType || 'default' }}
- />
- )}
+ {sceneTitle}
<div
className="flex items-center gap-2 text-secondary"
data-attr="feature-preview-enabling"
@@ -133,13 +135,7 @@ function FeaturePreviewGateContent({
if (feature?.stage === 'concept' && feature.payload?.survey_id) {
return (
<SceneContent>
- {sceneConfig?.name && (
- <SceneTitleSection
- name={sceneConfig.name}
- description={sceneConfig.description}
- resourceType={{ type: sceneConfig.iconType || 'default' }}
- />
- )}
+ {sceneTitle}
<ProductIntroduction
thingName="feature"
titleOverride={config.title}
@@ -168,13 +164,7 @@ function FeaturePreviewGateContent({
return (
<SceneContent>
- {sceneConfig?.name && (
- <SceneTitleSection
- name={sceneConfig.name}
- description={sceneConfig.description}
- resourceType={{ type: sceneConfig.iconType || 'default' }}
- />
- )}
+ {sceneTitle}
<ProductIntroduction
thingName="feature"
titleOverride={config.title}
diff --git a/frontend/src/layout/scenes/components/SceneTitleSection.tsx b/frontend/src/layout/scenes/components/SceneTitleSection.tsx
index 6652264d0c73..1cbf7bf9ab04 100644
--- a/frontend/src/layout/scenes/components/SceneTitleSection.tsx
+++ b/frontend/src/layout/scenes/components/SceneTitleSection.tsx
@@ -2,7 +2,7 @@ import '../../panel-layout/ProjectTree/defaultTree'
import { useActions, useValues } from 'kea'
import posthog from 'posthog-js'
-import { useEffect, useRef, useState } from 'react'
+import { useEffect, useMemo, useRef, useState } from 'react'
import { useDebouncedCallback } from 'use-debounce'
import {
@@ -17,6 +17,8 @@ import {
import { Tooltip } from '@posthog/lemon-ui'
import { ProductSetupButton } from 'lib/components/ProductSetup'
+import { releaseStageProductForScene } from 'lib/components/ReleaseStageTag/releaseStage'
+import { ReleaseStageTag } from 'lib/components/ReleaseStageTag/ReleaseStageTag'
import { RenderKeybind } from 'lib/components/Shortcuts/ShortcutMenu'
import { keyBinds } from 'lib/components/Shortcuts/shortcuts'
import { FEATURE_FLAGS } from 'lib/constants'
@@ -246,6 +248,8 @@ type SceneMainTitleProps = {
maxButtonLabel?: string
/** Max character length for the description field */
descriptionMaxLength?: number
+ /** The scene whose release stage the title shows, when the title is for a scene other than the active one */
+ sceneId?: string | null
}
export function SceneTitleSection({
@@ -273,9 +277,13 @@ export function SceneTitleSection({
maxToolProps,
maxButtonLabel,
descriptionMaxLength,
+ sceneId,
}: SceneMainTitleProps): JSX.Element | null {
const { breadcrumbs } = useValues(breadcrumbsLogic)
const { zenMode } = useValues(navigation3000Logic)
+ const { activeSceneId } = useValues(sceneLogic)
+ const releaseStageSceneId = sceneId ?? activeSceneId
+ const releaseStageProduct = useMemo(() => releaseStageProductForScene(releaseStageSceneId), [releaseStageSceneId])
const { showDescription } = useValues(sceneLayoutLogic)
const { toggleShowDescription } = useActions(sceneLayoutLogic)
const willShowBreadcrumbs = forceBackTo || breadcrumbs.length > 2
@@ -382,6 +390,7 @@ export function SceneTitleSection({
isGeneratingMetadata={isGeneratingMetadata}
suffix={
<>
+ {releaseStageProduct && <ReleaseStageTag product={releaseStageProduct} />}
{nameSuffix}
{hasDescription && !descriptionAlwaysVisible ? (
<ButtonPrimitive
diff --git a/frontend/src/lib/components/ProductTag/ProductTag.tsx b/frontend/src/lib/components/ProductTag/ProductTag.tsx
deleted file mode 100644
index 202270c314a6..000000000000
--- a/frontend/src/lib/components/ProductTag/ProductTag.tsx
+++ /dev/null
@@ -1,14 +0,0 @@
-import { LemonTag } from 'lib/lemon-ui/LemonTag'
-
-/** The release stage label a sidebar product carries, such as alpha or beta. */
-export function ProductTag({ tag, className }: { tag: string; className?: string }): JSX.Element {
- return (
- <LemonTag
- type={tag === 'alpha' ? 'completion' : tag === 'beta' ? 'warning' : 'success'}
- size="small"
- className={className}
- >
- {tag}
- </LemonTag>
- )
-}
diff --git a/frontend/src/lib/components/ReleaseStageTag/ReleaseStageTag.stories.tsx b/frontend/src/lib/components/ReleaseStageTag/ReleaseStageTag.stories.tsx
new file mode 100644
index 000000000000..3a4f346f765c
--- /dev/null
+++ b/frontend/src/lib/components/ReleaseStageTag/ReleaseStageTag.stories.tsx
@@ -0,0 +1,25 @@
+import type { Meta, StoryObj } from '@storybook/react'
+
+import { ProductItemCategory } from '~/queries/schema/schema-general'
+
+import { ReleaseStageTag } from './ReleaseStageTag'
+
+type Story = StoryObj<typeof ReleaseStageTag>
+const meta: Meta<typeof ReleaseStageTag> = {
+ title: 'Components/ReleaseStageTag',
+ component: ReleaseStageTag,
+ parameters: {},
+}
+export default meta
+
+export const Alpha: Story = {
+ args: { product: { category: ProductItemCategory.ANALYTICS, tags: ['alpha'], flag: 'example-flag' } },
+}
+
+export const Beta: Story = {
+ args: { product: { category: ProductItemCategory.ANALYTICS, tags: ['beta'] } },
+}
+
+export const Internal: Story = {
+ args: { product: { category: ProductItemCategory.UNRELEASED, flag: 'example-flag' } },
+}
diff --git a/frontend/src/lib/components/ReleaseStageTag/ReleaseStageTag.tsx b/frontend/src/lib/components/ReleaseStageTag/ReleaseStageTag.tsx
new file mode 100644
index 000000000000..7a8624f6dbaa
--- /dev/null
+++ b/frontend/src/lib/components/ReleaseStageTag/ReleaseStageTag.tsx
@@ -0,0 +1,77 @@
+import { useValues } from 'kea'
+
+import { LemonTag, LemonTagType } from 'lib/lemon-ui/LemonTag'
+import { Link } from 'lib/lemon-ui/Link'
+import { Tooltip } from 'lib/lemon-ui/Tooltip'
+import { userLogic } from 'scenes/userLogic'
+
+import { ReleaseStage, ReleaseStageProduct, releaseStage } from './releaseStage'
+
+// PostHog's own feature flags live in this project, for every region.
+const POSTHOG_PROJECT_URL = 'https://us.posthog.com/project/2'
+
+const TAG_TYPES: Record<ReleaseStage, LemonTagType> = {
+ alpha: 'completion',
+ beta: 'warning',
+ internal: 'highlight',
+}
+
+const DESCRIPTIONS: Record<ReleaseStage, string> = {
+ alpha: 'This is an early version. It can change a lot.',
+ beta: 'This is almost ready. Some parts can still change.',
+ internal: 'This is not released to customers yet.',
+}
+
+/** Shows if a product is in alpha, in beta, or internal only. Staff see who can use it. */
+export function ReleaseStageTag({
+ product,
+ className,
+}: {
+ product: ReleaseStageProduct
+ className?: string
+}): JSX.Element | null {
+ const { user } = useValues(userLogic)
+ const stage = releaseStage(product)
+ if (!stage) {
+ return null
+ }
+
+ const tag = (
+ <LemonTag type={TAG_TYPES[stage]} size="small" className={className}>
+ {stage}
+ </LemonTag>
+ )
+ if (!user?.is_staff) {
+ return tag
+ }
+
+ return (
+ <Tooltip
+ interactive
+ title={
+ <div className="flex flex-col gap-1">
+ <span>{DESCRIPTIONS[stage]}</span>
+ {product.flag ? (
+ <>
+ <span>
+ People need the <code>{product.flag}</code> feature flag to see it.
+ </span>
+ <Link
+ to={`${POSTHOG_PROJECT_URL}/feature_flags?search=${encodeURIComponent(product.flag)}`}
+ target="_blank"
+ data-attr="release-stage-tag-feature-flag"
+ >
+ Open the feature flag
+ </Link>
+ </>
+ ) : (
+ <span>No feature flag controls who can see it.</span>
+ )}
+ <span>Access controls can also hide it.</span>
+ </div>
+ }
+ >
+ {tag}
+ </Tooltip>
+ )
+}
diff --git a/frontend/src/lib/components/ReleaseStageTag/releaseStage.test.ts b/frontend/src/lib/components/ReleaseStageTag/releaseStage.test.ts
new file mode 100644
index 000000000000..667c50f59b7b
--- /dev/null
+++ b/frontend/src/lib/components/ReleaseStageTag/releaseStage.test.ts
@@ -0,0 +1,29 @@
+import { ProductItemCategory } from '~/queries/schema/schema-general'
+
+import { ReleaseStage, ReleaseStageProduct, releaseStage, releaseStageProductForScene } from './releaseStage'
+
+describe('releaseStage', () => {
+ test.each<[string, ReleaseStageProduct, ReleaseStage | null]>([
+ ['released product', { category: ProductItemCategory.ANALYTICS }, null],
+ ['alpha product', { category: ProductItemCategory.ANALYTICS, tags: ['alpha'] }, 'alpha'],
+ ['beta product', { category: ProductItemCategory.ANALYTICS, tags: ['beta'] }, 'beta'],
+ ['unreleased product', { category: ProductItemCategory.UNRELEASED }, 'internal'],
+ ['unreleased product tagged alpha', { category: ProductItemCategory.UNRELEASED, tags: ['alpha'] }, 'internal'],
+ ])('%s', (_, product, expected) => {
+ expect(releaseStage(product)).toEqual(expected)
+ })
+
+ test.each<[string | null, ReleaseStage | null]>([
+ ['Pulse', 'internal'],
+ ['DataCatalog', 'beta'],
+ ['Inbox', 'beta'],
+ ['Dashboard', null],
+ ['AIObservability', null],
+ ['AIObservabilityTags', 'alpha'],
+ ['SQLEditor', null],
+ [null, null],
+ ])('the %s scene shows %s', (sceneId, expected) => {
+ const product = releaseStageProductForScene(sceneId)
+ expect(product ? releaseStage(product) : null).toEqual(expected)
+ })
+})
diff --git a/frontend/src/lib/components/ReleaseStageTag/releaseStage.ts b/frontend/src/lib/components/ReleaseStageTag/releaseStage.ts
new file mode 100644
index 000000000000..06a010b4e180
--- /dev/null
+++ b/frontend/src/lib/components/ReleaseStageTag/releaseStage.ts
@@ -0,0 +1,25 @@
+import { getTreeItemsProducts } from '~/products'
+import { FileSystemImport, ProductItemCategory } from '~/queries/schema/schema-general'
+
+export type ReleaseStage = 'alpha' | 'beta' | 'internal'
+
+export type ReleaseStageProduct = Pick<FileSystemImport, 'category' | 'tags' | 'flag'>
+
+export function releaseStage(product: ReleaseStageProduct): ReleaseStage | null {
+ if (product.category === ProductItemCategory.UNRELEASED) {
+ return 'internal'
+ }
+ return product.tags?.[0] ?? null
+}
+
+/** The product that owns a scene, when that product has a release stage to show in the scene title. */
+export function releaseStageProductForScene(sceneId: string | null): FileSystemImport | undefined {
+ if (!sceneId) {
+ return undefined
+ }
+ const products = getTreeItemsProducts()
+ const owners = products.filter((product) => product.sceneKey === sceneId)
+ // Many products list scenes they do not own in `sceneKeys`, so a scene listed by more than one has no clear owner.
+ const candidates = owners.length > 0 ? owners : products.filter((product) => product.sceneKeys?.includes(sceneId))
+ return candidates.length === 1 && releaseStage(candidates[0]) !== null ? candidates[0] : undefined
+}
diff --git a/frontend/src/lib/components/Search/Search.tsx b/frontend/src/lib/components/Search/Search.tsx
index 5a31a2bd35c1..b82ff95eab16 100644
--- a/frontend/src/lib/components/Search/Search.tsx
+++ b/frontend/src/lib/components/Search/Search.tsx
@@ -19,7 +19,6 @@ import { IconDay, IconNight, IconSearch, IconSparkles, IconX } from '@posthog/ic
import { Link, Spinner } from '@posthog/lemon-ui'
import { KeyboardShortcut } from 'lib/components/KeyboardShortcut/KeyboardShortcut'
-import { ProductTag } from 'lib/components/ProductTag/ProductTag'
import { filterSearchItems } from 'lib/components/Search/utils'
import { useFeatureFlag } from 'lib/hooks/useFeatureFlag'
import { TreeDataItem } from 'lib/lemon-ui/LemonTree/LemonTree'
@@ -992,13 +991,6 @@ function SearchResults({
{item.productCategory}
</span>
)}
- {item.tags?.map((tag) => (
- <ProductTag
- key={tag}
- tag={tag}
- className="shrink-0"
- />
- ))}
{item.lastViewedAt && (
<span className="ml-auto text-xs text-tertiary whitespace-nowrap shrink-0 mt-[2px]">
{formatRelativeTimeShort(
diff --git a/frontend/src/lib/components/Search/searchLogic.tsx b/frontend/src/lib/components/Search/searchLogic.tsx
index 4c26d5a45676..36068a92b42a 100644
--- a/frontend/src/lib/components/Search/searchLogic.tsx
+++ b/frontend/src/lib/components/Search/searchLogic.tsx
@@ -136,7 +136,6 @@ export interface SearchItem {
lastViewedAt?: string | null
groupNoun?: string | null
itemType?: string | null
- tags?: string[]
searchKeywords?: string[]
record?: Record<string, unknown>
rank?: number | null // PostgreSQL full-text search rank (from unified search API)
@@ -923,7 +922,6 @@ export const searchLogic = kea<searchLogicType>([
productCategory: product.category || null,
href: product.href || PLACEHOLDER_HREF,
itemType: product.iconType || product.type || null,
- tags: product.tags,
searchKeywords: productSearchKeywords[product.path],
lastViewedAt: product.sceneKey ? (sceneLogViewsByRef[product.sceneKey] ?? null) : null,
disabledReason: getProductAccessDisabledReason(product),
@@ -942,7 +940,6 @@ export const searchLogic = kea<searchLogicType>([
href: urls.activity(ActivityTab.ExploreEvents),
icon: <IconClock />,
itemType: null,
- tags: undefined,
lastViewedAt: sceneLogViewsByRef['Activity'] ?? null,
record: {
type: 'activity',
@@ -1003,7 +1000,6 @@ export const searchLogic = kea<searchLogicType>([
productCategory: item.category || null,
href: item.href || PLACEHOLDER_HREF,
itemType: item.iconType || item.type || null,
- tags: item.tags,
searchKeywords: [
...(item.category ? (categorySearchKeywords[item.category] ?? []) : []),
...(pathSearchKeywords[item.path] ?? []),
@@ -1076,7 +1072,6 @@ export const searchLogic = kea<searchLogicType>([
productCategory: item.category || null,
href: item.href || PLACEHOLDER_HREF,
itemType: item.iconType || item.type || null,
- tags: item.tags,
record: {
type: item.type || item.iconType,
iconType: item.iconType,
@@ -1126,7 +1121,6 @@ export const searchLogic = kea<searchLogicType>([
productCategory: item.category || null,
href: item.href || PLACEHOLDER_HREF,
itemType: item.iconType || item.type || null,
- tags: item.tags,
lastViewedAt: item.sceneKey ? (sceneLogViewsByRef[item.sceneKey] ?? null) : null,
record: {
type: item.type || item.iconType,
diff --git a/frontend/src/lib/lemon-ui/LemonTree/LemonTree.tsx b/frontend/src/lib/lemon-ui/LemonTree/LemonTree.tsx
index 09a04aa19c4e..ffeddadab49a 100644
--- a/frontend/src/lib/lemon-ui/LemonTree/LemonTree.tsx
+++ b/frontend/src/lib/lemon-ui/LemonTree/LemonTree.tsx
@@ -88,9 +88,6 @@ export type TreeDataItem = {
*/
onClick?: (open?: boolean) => void
- /** Tags for the item */
- tags?: string[]
-
/** Order of object in tree */
visualOrder?: number
}
diff --git a/frontend/src/products.tsx b/frontend/src/products.tsx
index 459fde2ada8c..cfbe83b77c36 100644
--- a/frontend/src/products.tsx
+++ b/frontend/src/products.tsx
@@ -2539,6 +2539,7 @@ export const getTreeItemsProducts = (): FileSystemImport[] => [
iconType: 'inbox' as FileSystemIconType,
href: urls.inbox(),
flag: FEATURE_FLAGS.PRODUCT_AUTONOMY,
+ tags: ['beta'],
sceneKey: 'Inbox',
sceneKeys: ['Inbox'],
},
diff --git a/products/inbox/manifest.tsx b/products/inbox/manifest.tsx
index 5755a8cb3ea1..bae66d106f37 100644
--- a/products/inbox/manifest.tsx
+++ b/products/inbox/manifest.tsx
@@ -20,6 +20,7 @@ export const manifest: ProductManifest = {
iconType: 'inbox' as FileSystemIconType,
href: urls.inbox(),
flag: FEATURE_FLAGS.PRODUCT_AUTONOMY,
+ tags: ['beta'],
sceneKey: 'Inbox',
sceneKeys: ['Inbox'],
},