: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
fix(navigation): preserve starred folders and polish sidebar rows (#105901)
Marius Andra45a506e06089
diff --git a/frontend/snapshots.yml b/frontend/snapshots.ymlindex 462d3af7e88b..3d12ab0b8447 100644--- a/frontend/snapshots.yml+++ b/frontend/snapshots.yml@@ -3733,13 +3733,13 @@ snapshots:insights-worldmap--default--light:hash: v1.k794b7964.a4f523dbe2e78f12ddf6c95d6e1e0b1da4457008aa42a9b83fb5e21bc4519915.sRV9jpfMOemd-Hss7Y7z4hMMwHYzM7l8Dq9i4uoJBiElayout-apps-and-files--apps--dark:- hash: v1.k794b7964.c59540718833b2dd92b5eb1b617c8652866673b7c699e7c825171fa3def9dba5.pelu5m0sY_PTqKOjJ1dIuPzqZRF4hPCjU1nIHWQv8vA+ hash: v1.k794b7964.bc8ed5f9038a33b7fb58ab8aeaca459fc01760b9d4a6fb39cf7314d2923f1e07.qrpO7s8NXOgA4--V6GMhuiUJOR_4K8ilJLdiRxYQvGAlayout-apps-and-files--apps--light:- hash: v1.k794b7964.0b366ec2f75949f2fc7dd2c8a858e5ee163f189276525bff44569a0e8088b39a.r9ue6BNz9Lm8O17LCoyvNP0tPE9s8m_KDoQPciBTfJo+ hash: v1.k794b7964.f859c46a68b0d4619f69da28acf59b02a89487e79c5f659944ea86c854ed3a04.bR1Q_TgAm-0JWByCmBPJfXDlDO_z7xxeBS7jq5FkXKAlayout-apps-and-files--apps-overlay--dark:- hash: v1.k794b7964.f7f4dcd5b5603e75b75745fae41f150cdea6e947559ad58e710a4f471b99bd76.5KGLXR1_ZwLP7mHhDWHOx7GMXq9r6oo0KD0ku-SX7Bc+ hash: v1.k794b7964.14c966d88b35db8a76ea5121e99dad556a2b429c52dd8e15e495dcd0644a8d4d.1nag5Aws_pINiNbJ6HixcR6eok3cPW-85IAvhDNVcxAlayout-apps-and-files--apps-overlay--light:- hash: v1.k794b7964.c8eca248dd3c3e88e5fe2abab3ee40ea65ff8fd2c49a61823de0b36a8d527125.VTCZNB13Hztepa3mEcjZA_AikYCK4eeSgEf8c1j6CI8+ hash: v1.k794b7964.3093800114132cc1d1685fb8ff2cb63cf4faf76542274f8955fd6b7c3cb38689.6Se9G113zzFlYfLBm-UJ81YX0pQn-mGF31wEGLMoDqUlayout-apps-and-files--chat--dark:hash: v1.k794b7964.ef1b497492e443be192221d641c8f963d006086964bf4ea013ef5509a0045673.P5F7czhc_C2ppO1ade_5-5pfPL8a1ChBK17EKo9jaIslayout-apps-and-files--chat--light:@@ -3749,65 +3749,65 @@ snapshots:layout-apps-and-files--collapsed--light:hash: v1.k794b7964.4e69eef40e28d9b063759264639ee685ce796c07a623bd78aabb7cc51a6eea59.EquaH8oP-2UUsgXNQGDkK-ZZWpWsFWL2U-K1tVlOOpMlayout-apps-and-files--dark--dark:- hash: v1.k794b7964.c59540718833b2dd92b5eb1b617c8652866673b7c699e7c825171fa3def9dba5.cQu9stCSZ3mAmicIxO07iNmIiMxz2oyIJBAYFOGu_4w+ hash: v1.k794b7964.bc8ed5f9038a33b7fb58ab8aeaca459fc01760b9d4a6fb39cf7314d2923f1e07.TYALwAUfZ0I99Cd_fVwcYUPeQLkhkqtrYn2exs2ilw0layout-apps-and-files--dark--light:- hash: v1.k794b7964.0b366ec2f75949f2fc7dd2c8a858e5ee163f189276525bff44569a0e8088b39a.qFd18rSb_icAPlb-2ofVNglBk5UBKVeegMMaqJ84jZw+ hash: v1.k794b7964.f859c46a68b0d4619f69da28acf59b02a89487e79c5f659944ea86c854ed3a04.WJJUgeCG-_A4VschyQS_Ie-otorvx8pNRVfZmb3Kje0layout-apps-and-files--empty-starred--dark:- hash: v1.k794b7964.274b162537b5cbe20226c7cedad0b7ac4c10825a6048047aad4f40b7e3be6bb2.pY-6L1tyXwLcPlKqmKVfCpVK1YYi7oGm2JjEvn3i7SA+ hash: v1.k794b7964.9c6511b328cefa6ff837042f9cafa8a1e39532080034da5c72c183788f82590d.LCdUB_i3mS17rpSaQ8GxpffYipmLstliO1ntYaWotvAlayout-apps-and-files--empty-starred--light:- hash: v1.k794b7964.70d57c4bd8317d39ed79525a28863cc348add3be342831c2551d232344844743.zdXcrG_wrpRIsjMLsyiW4PtmRlqVH8z9aNpmJqpPbus+ hash: v1.k794b7964.7963094619f5bca59f75445910d5268a786e68d423c5947fedab7b28d6d9ed6f.WGbnEARMYGUJmqNEZVhU2BK6630QBiUnmK8byjhOD6Elayout-apps-and-files--files--dark:- hash: v1.k794b7964.e724be4ea053f69550dafc783c88c627819665dda7e6631348f50539cfd8db56.rGr9vJYIbqbdW1A2Sfd-hGoXP0A-EkCqw4KJW1QaG94+ hash: v1.k794b7964.3e394135ac630e6d476e1df8d3cdb9b5bcb9f0f002675cb973307b1b3ad693f6.dh02pcKv5E6fIcxQ5xJdmwv3DXdeA2RoEb4Xex4Eq2Qlayout-apps-and-files--files--light:- hash: v1.k794b7964.f598fa23ae8b977997a21689ecb7fcf291d48e9e86a15fa336008bd887ab0d41._WWUieWv3EA7pGM2ZZV7r-uxhrn-tuxFAZk0M0J7Xak+ hash: v1.k794b7964.3c66d85aff06cc01175e2fe7f80807df64971e609e9362e1b8df5a1684f68d67.qjMdUY6Ol_Wa3zROQlYpQgDcZ1Bqf1Ep5xfryT0SLOElayout-apps-and-files--files-collapsed--dark:hash: v1.k794b7964.118ebf1ae04d48007beb2f7ea15bf13d6305990b4968c34c97a8cf39ceff8dfc.9TT8VirZZo2xhPYlEtB-9SFnMqrKNKVJ5VEiN3lhIsMlayout-apps-and-files--files-collapsed--light:hash: v1.k794b7964.9a8deb1dce4ada9ffdd59c7c1fd2e7b8a4272cecd7e7ea1ff05c1400ad0d415b.y96NUpIiIZj5kA2vRmF_0wVyJ6hVDFYLf99e1KnYQ7Ylayout-apps-and-files--files-dark--dark:- hash: v1.k794b7964.e724be4ea053f69550dafc783c88c627819665dda7e6631348f50539cfd8db56.km-sygfloLSmaZqn1G6kgNFSoAIT1XtuNzEkx7TkZyY+ hash: v1.k794b7964.3e394135ac630e6d476e1df8d3cdb9b5bcb9f0f002675cb973307b1b3ad693f6.5NVTs3ArbJr6KLDGTvYNsF4v4s3WDlCHJ8m7OgITPY8layout-apps-and-files--files-dark--light:- hash: v1.k794b7964.1796122c9845e212ffe56cac79292ba2afa29d14f1f3edbea7e8132cfddb1a6c.XUkc8yPYA4ipHtkHw0KhxG8Nik4FegNHiII2x0bx6vQ+ hash: v1.k794b7964.5233502833641849300f412848df8628573db9a95e27ff58ffac404e94c9d230.NFpcn2uVI2ilJXegihGcBh3tu5R0OukD6VTE8lj0M0clayout-apps-and-files--files-empty-starred--dark:- hash: v1.k794b7964.55abba68254b68574e615106f1e87ee38ac2cbf2896160d840934aa58f9564ab.CCRwvPAKl1ULxSGmZepIJ34_cPkfzGNOhvKLwFv5p4I+ hash: v1.k794b7964.f4f9bb9f3134b50b3deb6dc06b26137d1e1d9cd15a5d15cdabd5fc33e7d69c50.KP_79nR5Gh3pNRsOLl1Vl5o8O8mqk80BFo_x135cyyElayout-apps-and-files--files-empty-starred--light:- hash: v1.k794b7964.aab038b29d08a124e0fe7434a7e260a025f80a89b2edb59bcbb3794f192064e8.rbDdLaSYyISz_t6IZWK8ryHz9NuelOeIEv6SkY8oY_Q+ hash: v1.k794b7964.b04a4b7c38aa90b939c75b9886199a850f176a94dd98d1bff84dd6f87d54cff8.VyGoIPbyhIpSSwBe1DH8uP_xaThMhXm8aZq2tTZwu8clayout-apps-and-files--files-filtered--dark:- hash: v1.k794b7964.9b71c79f387cb1f01c88c00e21e9f5afd30f69928db9734c06d1f88ae4a65700.kkvLuXvTfwl-ibAMxZHnIbWA3RNZF_kfmnW22fp5gEY+ hash: v1.k794b7964.af43bf9b4a02072ac81bf9172d433fa078918a230b37613f7e0d855fc212d864.Clcxd6rDL8CW76thPxywsOmXf_nd_YlpiDZCBccg-gElayout-apps-and-files--files-filtered--light:- hash: v1.k794b7964.6e50ffc1b19a63357c9aac718f5188580e723ed601ed2e5da42b39dbb4b652f1.BE3XXbIGb_cV28owLU63HzyV3DvtvyMvEt3MaNVXTtI+ hash: v1.k794b7964.943abc77b4bbd09082054d54fd44047e6f8682452c59f6740f93e51515b8dbad.iS_nySOFx3fCekBnP3cwnRqliFB6GkYfjnmtstKUeYAlayout-apps-and-files--files-long-tree--dark:- hash: v1.k794b7964.728514bf84f1c3ba77b9d86ef1b4440a716896471531f604fb2db1479ebdf0c0.wWuH5VevHCic5Z-hp3C7JlqpBv4omh6Ntyn_HKesedI+ hash: v1.k794b7964.ddb11c32371a4921e4eeb922e06192145379f497ebd32ad4a9e2ff9583c34ce7.SimDw-Y-80o0oJEh1j7zQELYgDXGh97UyifyoB97hCAlayout-apps-and-files--files-long-tree--light:- hash: v1.k794b7964.2425b8020520c9afcd45a8d5dfab54d7c62b7bcffb3c5a4faf957abf22c5ed76.CdDQWC02Rxa-EnhUs07hPYZJugGveJxyxQB8KC9mBCI+ hash: v1.k794b7964.50b8c193164f73cdf9ab48630aa3e90faba69042051d66f365abe3f81a781ddc.4FMBW1QjESBvhC6lOhV4jZJta5Rt0L1737wnPlMV2uElayout-apps-and-files--files-narrow--dark:- hash: v1.k794b7964.5e9c778e138bb5f8bfe30986b5e440a5a153c34504dec6ba3952522c9e690099.xpd1CRxcdVAlMdph54in7XdBStK7KHxYwe2KD1P229k+ hash: v1.k794b7964.68aafa8933cae511f1388c422a7e8c396925109e6458f58fc21942bb353fa122.weAOqzswNtovFZJYv3ZJrMwmAEpS1YWwuH_3MdnorUYlayout-apps-and-files--files-narrow--light:- hash: v1.k794b7964.a2bd4e4c51bc9809a5ffb9e778dea883365fdbf2fbfc7c8893bf543cc98b441f.rrF_3cH4KiKeOQTwAsNob-0Smfq18Fy29HlQkykcNOY+ hash: v1.k794b7964.aae99992730b1ecd5427dcdd12aa791911120740b62efbcb797dff7e65733a3e.cfv_9xbh-QUm7A4l6p0qWWPsCSTpU94pGgZDvIXIyrolayout-apps-and-files--files-no-results--dark:hash: v1.k794b7964.f3f8d4d6d5f654c5212ddcfa6a1ed049d0743244ef07ac6fb63c54b7286e99b2.ohEKYbpqKeafZp6jNgGL9S3iCL_L7d7bM9KJyuLzwCMlayout-apps-and-files--files-no-results--light:hash: v1.k794b7964.39de89d140193b713b009d4cd6d304e3ef40e2b62866e16eb0cfa9d3499d443f.mk173cSWWxx4p7PViw_UkgXqvqyYsiLorREWiAzwbtslayout-apps-and-files--files-only-mine--dark:- hash: v1.k794b7964.2621851dfc45fb850d8a13853b08336b3cc8185a787e3d1d7d20569c508de575.EYAXtUO87ltbZUvnPnTwU8xfXw27BtGVl9LUKq33kL0+ hash: v1.k794b7964.8cfde51ae5887c3234db942427fcd2c4268e503b303572f1a5948b1db5c7ef0f.Dpa05qhA38a8-2aZ4dysZjKvSRh8yM-xIybdKcFxT5slayout-apps-and-files--files-only-mine--light:- hash: v1.k794b7964.c0bb13914ab03e13d8bd0701b995f57b0fc037a1a07744a478044903477d67bd.FvJ0XuQJ1D6edSL4zsDX39ZPY3MJe-OWGsH7ieFaxZo+ hash: v1.k794b7964.1f055e78aa505f76970e179e3e2d035eba3fac1caf869204493724e7e8081837.4NWjmQ8c0h1Nq9xbtOGchSN5-1QDeipqbSM1JVGDtdclayout-apps-and-files--files-options--dark:- hash: v1.k794b7964.2288a9f2a05cd89aacf34bc19e3071d9f07a1a32b1d55f70bcdbb82d1cbf266b.By05UMGM-8vqnaR85wHKMkhCjAx9zgB9yvUy6fO9Axo+ hash: v1.k794b7964.20e70ec2d9d0a71108be4b0851390148ef2379f0130ea26e3d14889ca3562a88.2uCid5372aohxYDtc36_08c9GAEQVIEJeNM-SHdU5kQlayout-apps-and-files--files-options--light:- hash: v1.k794b7964.ed863f1564a3c215dfc620720af4fe0b79c754ca3fa692e1f84ae4a7e2635c0d.Ljbq_1BHVQgk1sOEGHVRwlBTWjLX8TBVeLq3VjIBalY+ hash: v1.k794b7964.bbf23694c98b1ac11d66ed2410ba786907c9ebe893e58c2fc231368849bcb177.kyy0xsg0bUmmJwbbcZcRaxLmPQL9uIUmvfuF0O-k0wglayout-apps-and-files--files-overlay--dark:- hash: v1.k794b7964.efc40e369650dbd8034d07b8b43106ed3f8fe13ad71251644f47cfe063200cc8._FBPqGDSA-PbaUhdgLH-EGdQrQbYr2KrkZSBxzfNUWg+ hash: v1.k794b7964.48079671f330c7774aca08676f69e97cc0dd915600a8e05e22db94c2e107b8f1.gkZHwyxS4knAMdgOQOOJ2LcsbMED-001b-ukAne32AAlayout-apps-and-files--files-overlay--light:- hash: v1.k794b7964.8bb26635a9456756f8c27bafbbb832a9d2f156c7e85806f86efa9fa51420c7bd.kKrv3UiS9BtEe4sy1hcJFWKuGouN-I7ChMJZpJGUINE+ hash: v1.k794b7964.ff0146b054792caed9005e7e6d3565bae2a07991f0fef74a9231eef97afade04.MCjNnOQxx8PapFH_hvBuhBPnw0kafqy3KZmXtexfJWolayout-apps-and-files--files-recents-collapsed--dark:- hash: v1.k794b7964.eb983a3f039847eac047686d0ee21688c90d70ac627f83e5c996feaad75f9db9.LX_RpKzAIgmsovDrYyjywWZi3a-eoSDIV2iKWezglVI+ hash: v1.k794b7964.4b274f96d1db66526363dcd371b363217eaf15e95177792b65fa73afc42d6d2a.GJC0sASmHNl752iIbrJK8sFTHIZDcDCogJkb2Xkb-yUlayout-apps-and-files--files-recents-collapsed--light:- hash: v1.k794b7964.72bf9d1b7153a3965f6b9dfb5d672ffa0cd3d06c0a5b5b172dc963a421403a7c.I55hP1_r2xWr38vEaV7knzSB4l_I9K9APMqH4UlUV90+ hash: v1.k794b7964.46b1d1f977877b1a78d0975e09a9e0c48e0c600677c1780a5db024a6d4d402f8.Fb3yFgTWcp8x7H7CXlLiK50sTxinz1Rtz573UmOxPl0layout-apps-and-files--files-search--dark:- hash: v1.k794b7964.b958ac0c8e1198066406edc391c5b4e33d72fd811881c8ecf876d5bb7696b45d.whaQyQqn9BhA22GHLRuIlzwQqJNrmP3cwV5OaqtYENU+ hash: v1.k794b7964.5cf8d5712448a04c035e6b73c91abdd20e4cf6fc4e167b998ac79a9e2710e157.aj4o2FuCXdNp6M2FT7fzSGJB72LJFqzb7HypXcVgtfclayout-apps-and-files--files-search--light:- hash: v1.k794b7964.ffcff42dab13cfa49e88ede59c5f2015d9847562a57d69137f0c46e465b7b476.K1jGPXvLCAkxdGAd9213Qw5Y8NZCbWeQNC4cJtHUfaM+ hash: v1.k794b7964.3af7f3f40a349ef23442191ddc653e4f18386b1f8f45ce21c2e8e218156f19b8.R-CoU1xCpr8k8n7QXnvICn5c8-Qrp9RFUVlVc6BW0G0layout-apps-and-files--flag-off--dark:hash: v1.k794b7964.1d2bc7478dae3a6a9f01dea82d349773021591a51bfc8350ad86a9427400b980.pjx9o1-yZUZYLwWK1yCxPmCE6XmaK2UKX7yX5Bdv1nklayout-apps-and-files--flag-off--light:@@ -3825,21 +3825,21 @@ snapshots:layout-apps-and-files--flag-off-flat-nav--light:hash: v1.k794b7964.394c03467e2594ff67bc80ef82e12abdd02a572bf94fa4d8efeb6175899444cf.kbwibhKTNB1UnDA7vr6xgoAFGLCz6WDD4PCylFdYW1Qlayout-apps-and-files--narrow--dark:- hash: v1.k794b7964.ee4d777fbc08fcb0d226ccef9261afa92e7649768bd6951c9445c83969b3fa4d.GGBfjVGieeEFKpnSLLl5-pVw2QQicKrFa01qF2X-h4s+ hash: v1.k794b7964.d1759b448ac85deef357dbf95f1e4ef36e972a05b202a190589b903dea0c439d.OPGT1Kr6sDCORLq43B8auK-kLuK9HX4V4TlBHIQtMN8layout-apps-and-files--narrow--light:- hash: v1.k794b7964.be79d9f7dc66e6fc28dbec24d39b865b6a78d48a245e0b1c3d170243b63958ca.QXSYOi0nVq27q6iXepJ6JgYb-mtNlAGDHinHNoGtF4c+ hash: v1.k794b7964.3f36a6847faf7093d0a0e1acd6a1caae35f64db2096ba4ee8dac6bd7f423981e.tUoxTyVlRPBeQmlQ0a50mywYOlWteWwKfsLPc0yLREklayout-apps-and-files--no-results--dark:- hash: v1.k794b7964.c125869fed1d4bc2ebf00909b71041e771005c4a0f05ca4218fa9d9b805dfbb2.5lZou1rhGwwewRw2isKTrs4kukBrLu7vcUipiU3epXo+ hash: v1.k794b7964.0d5ee64594279ba917fe7059770234014a78705bc15df773d50339c017b946fa.oYrHr7H7vpwespKQMk5G6DoXqJ0YcHH8JfXTfYGYQEQlayout-apps-and-files--no-results--light:- hash: v1.k794b7964.4d27bd9f7fea6b2b8769caa285f7a2258867cdd0f00c10477ca380252185dcdd.0UCneKeN8U6nuC3IcuHB-j-qclxIsW37wdLRXx-b6q4+ hash: v1.k794b7964.bb0981a182d655ffaff02fc1b554cfe6d0c31d986a2dbac947df19a0c8dc9132.moKn9YTmN4ZsYVzHJbkN55I8yDLIvKIMT6_MWzOsMs4layout-apps-and-files--open-folder--dark:- hash: v1.k794b7964.68c4fa1b8c5dea32ab610ae5ea7226bbf85e60bbfff6ac26a8f497aeaa746758.-Hr5cfpXewwt7IFlOJ0al5EB0ZLMHto-lF_LHDw8ZrQ+ hash: v1.k794b7964.b3b557f87750f171d415e4c1f48d4bc091db08f31ce013a533071d8fccfc5e82.g6Xei10u6XRzAp1WE7P2j-TbX1tzagdBEllgzJtumwYlayout-apps-and-files--open-folder--light:- hash: v1.k794b7964.28dd167436551192e764e4fed5468ddc856b81bed5353c002920cb180779e3e2.SaDvtRYvcrXuEooigvSEZe7m9kr5traGGJ9nzgczpT4+ hash: v1.k794b7964.62017555d55e475da6ebc3092f0c63f3c96f6941de2656f9fef654d054472171.en7CGWAn8hS6g8z_3ww4KsEGkA8cH4NRD7rW38CtnPklayout-apps-and-files--search--dark:- hash: v1.k794b7964.ab08bda57a90af1540591082ea552bf0e5c894640c463fc780ff488410961453.psbQogafh58z-lpSRD1QVMzxMxd-MXo9c-zMSziPfaI+ hash: v1.k794b7964.7866237fe90a917055d5eea0658fcf9efafecc85423ab2e6a6f4740b35221d25.W3lDSMxDr21AJkil2T_HJXR6nDP1pv5gpe82ic-lUbclayout-apps-and-files--search--light:- hash: v1.k794b7964.059d934765eb79a2dfff06d98d7103a1be20025910f463a3ade56ac04ab4a6cb.RDXSmnTC3r3reciwNi7FbelVrLSqeAmAfLjvCkCIDjM+ hash: v1.k794b7964.77cfc0723dac0acd04f546c26079f5f0966eeaf88ffaa407c9d738d2c0b531ea.X7pUH2xETBop17mdLxb8OJRuIozR96SRPYCUsZX6ROklayout-apps-app-tooltip--dark--dark:hash: v1.k794b7964.52ba01b050e579d7c600df08497a2dfab2dba9cf670553e032afce3819d6d00d.4TCn-X9vJ_FhNwb6WjhB2V_zEkQCnG4FoEE7hf6L9-olayout-apps-app-tooltip--dark--light:@@ -8269,9 +8269,9 @@ snapshots:scenes-app-data-warehouse-settings-schemas--multi-schema--light:hash: v1.k794b7964.e5d678194a8e191fdf4f8a92cd7328f1e3cb162a81d3c4d05ef608f3c61537da.ZshlecoDn8CpsaVHaONi7UiXq8r-Xi4zJSWKeg7nAP0scenes-app-data-warehouse-sql-editor--lazy-schema--dark:- hash: v1.k794b7964.ee82b636dba4b41aebe409556a10609dce014f9642025c2827520b7e169059de.z4Pg0VG73zKXOv8JCaTihGPGq6HkGkbWc2en4ZQ00Y4+ hash: v1.k794b7964.d88e418e3b5cf90da6e2d95a6b03a83eb4b2f30ebd62d2ccd787627f05c6925f.lXqUNz05NbvRissLDZgit8MPEI_j8olx5ewv4hxIbLgscenes-app-data-warehouse-sql-editor--lazy-schema--light:- hash: v1.k794b7964.e9cc10ae4e0b58a3fa79fa66e5cbed82b0a7214721c86513aa882c1afe900b79.ixRvj0ywqy2EXE4nv10BQ3RZjOvssTMQp6EgxypCMdk+ hash: v1.k794b7964.3b4c2157445c95071aca5b730f192c94fe1c7379bbec6f9e662fb0f52c74a1cb.P6dqBWgIQEb6E9d0pr2oYfd_klhDKPyksBErJxXKTY4scenes-app-data-warehouse-sql-editor--managed-warehouse-connection--dark:hash: v1.k794b7964.4d87a8398ed4a62e9e18ef60f2e907fc8f1585d178833c8eacc34eb5b49cd7cf.jIj6nVJk8Wp1LwkjVO3t4AsK_U0iWUqtUVC6HzXz12gscenes-app-data-warehouse-sql-editor--managed-warehouse-connection--light:@@ -8281,9 +8281,9 @@ snapshots:scenes-app-data-warehouse-sql-editor--materialization-settings--light:hash: v1.k794b7964.99aa3bde7ac4497a83b2008869c8efd14317eda8d8c08950e851089092df8df9.05p6Le0a2itun96QCw7Mk7VkwfAp50woApgM8ZyaHMsscenes-app-data-warehouse-sql-editor--top-tools-per-server--dark:- hash: v1.k794b7964.0c3f381ea6ce883854662c3a6557d5eeb58be6e2175e77e5b2d2352508cc3788.V_Q-mKwpK5EuNYvKMKwkfRAwchJkXJB-pwsf8YvBGvU+ hash: v1.k794b7964.2c428fe19dc2545e854ecfa563918fdc63205c7d197edad01e94accda745b62c.kMq0jpSTtZuUp9_rlh53nGrkx0_U_FqTK3Q6CH1bOXAscenes-app-data-warehouse-sql-editor--top-tools-per-server--light:- hash: v1.k794b7964.eeabf23083526dee4b13846c7ba62326a62ba9923de03ff7e201ee5320315251.zk90TY9jVppgxQonu0IOgrPYrW2KaH3WvL71G7677DY+ hash: v1.k794b7964.c4c5b22777e20c8dc6a83392026100523aba4c228073174cfb956552629e7975.Jrjh7qB_BVDY0MTQeRAXv5lkTsQtY0jgQO6wEZUPpAQscenes-app-discussions--replying-to-thread--dark:hash: v1.k794b7964.c2c9d9beff1e3fa0fc6a314aa073610d674eb9cd4af235b31a81e09462b5b58e.-fbBmBjOrnXiwY_8KrKftI-k7wWP9L77S8rFDSiiI3Uscenes-app-discussions--replying-to-thread--light:@@ -9885,9 +9885,9 @@ snapshots:scenes-app-insights-side-panel-actions--unsaved-insight--light:hash: v1.k794b7964.4d578bbdfaa1fc1273607e926b15daaffed027ec89dbfad45179410e7a208f6c.hjlOrgS-_brH3WWYD3R8RwnkJs2dmmiNFToArpB2bUcscenes-app-insights-sqlboxplot--edit-options--dark:- hash: v1.k794b7964.8195e0cb20c48cc5049932e3fd4c5d9b98d4023f240634c6b25bb0787173b66f.jPSsBv1zqoQ2N9LVpWUVq_SASpg8tvrs0bf9lIVAZN0+ hash: v1.k794b7964.c382f58d52e0fa3cc8645c6c96a13cf39b2c75d7b19dc51b3a0e6192b41bc661.HxfPSO71QtL5TibSeSjUpFdhx5_LA15uyWLzDRrYX-Qscenes-app-insights-sqlboxplot--edit-options--light:- hash: v1.k794b7964.3c44fcdaa682a20648afed5df231fade31b8a45a5e0ebfdb9b0a0418e7cf7506.siVzsorBkCdLUx0raCatmAFLSuxXO2y4bdrv45fVw1Y+ hash: v1.k794b7964.da10feadfe4595c16ba229d255a5ef888da9d7e379b57d2ad10a040c4866a442._kI1fdUGl15iIDvlitIftrtd__A6tUKVt21E0Xix4Fsscenes-app-insights-sqlboxplot--grouped-series--dark:hash: v1.k794b7964.0062f9e095cb6266619d2886be6973be68c7fc906f50d8b37064390de6757656.frURXaRskPxT8wSqipNvLkFVNmgq3uiSKORwD_fLWDAscenes-app-insights-sqlboxplot--grouped-series--light:diff --git a/frontend/src/generated/core/api.schemas.ts b/frontend/src/generated/core/api.schemas.tsindex 47170c98e1cd..520e91c31ab9 100644--- a/frontend/src/generated/core/api.schemas.ts+++ b/frontend/src/generated/core/api.schemas.ts@@ -3939,7 +3939,7 @@ export interface FileSystemShortcutApi {type?: string/*** Reference to the linked item, scoped to its type. Null for href-only shortcuts.- * @maxLength 100+ * @maxLength 4000* @nullable*/ref?: string | null@@ -3982,7 +3982,7 @@ export interface PatchedFileSystemShortcutApi {type?: string/*** Reference to the linked item, scoped to its type. Null for href-only shortcuts.- * @maxLength 100+ * @maxLength 4000* @nullable*/ref?: string | nulldiff --git a/frontend/src/generated/core/api.zod.ts b/frontend/src/generated/core/api.zod.tsindex c99988d3d029..e224d2d32324 100644--- a/frontend/src/generated/core/api.zod.ts+++ b/frontend/src/generated/core/api.zod.ts@@ -812,7 +812,7 @@ export const FileSystemUndoDeleteCreateBody = /* @__PURE__ */ zod.object({export const fileSystemShortcutCreateBodyTypeMax = 100-export const fileSystemShortcutCreateBodyRefMax = 100+export const fileSystemShortcutCreateBodyRefMax = 4000export const fileSystemShortcutCreateBodyOrderMin = -2147483648export const fileSystemShortcutCreateBodyOrderMax = 2147483647@@ -843,7 +843,7 @@ export const FileSystemShortcutCreateBody = /* @__PURE__ */ zod.object({export const fileSystemShortcutUpdateBodyTypeMax = 100-export const fileSystemShortcutUpdateBodyRefMax = 100+export const fileSystemShortcutUpdateBodyRefMax = 4000export const fileSystemShortcutUpdateBodyOrderMin = -2147483648export const fileSystemShortcutUpdateBodyOrderMax = 2147483647@@ -874,7 +874,7 @@ export const FileSystemShortcutUpdateBody = /* @__PURE__ */ zod.object({export const fileSystemShortcutPartialUpdateBodyTypeMax = 100-export const fileSystemShortcutPartialUpdateBodyRefMax = 100+export const fileSystemShortcutPartialUpdateBodyRefMax = 4000export const fileSystemShortcutPartialUpdateBodyOrderMin = -2147483648export const fileSystemShortcutPartialUpdateBodyOrderMax = 2147483647diff --git a/frontend/src/layout/panel-layout/ProjectTree/ProjectTree.tsx b/frontend/src/layout/panel-layout/ProjectTree/ProjectTree.tsxindex 72f604fc89e3..dae810ab78a2 100644--- a/frontend/src/layout/panel-layout/ProjectTree/ProjectTree.tsx+++ b/frontend/src/layout/panel-layout/ProjectTree/ProjectTree.tsx@@ -139,7 +139,7 @@ export function ProjectTree(props: ProjectTreeProps): JSX.Element {} = propsconst [uniqueKey] = useState(() => `project-tree-${counter++}`)const { viableItems, shortcutEntryIdMap, currentHomeFolder } = useValues(projectTreeDataLogic)- const { reorderShortcutByDrag } = useActions(projectTreeDataLogic)+ const { reorderShortcutByDrag, setStarredNavigationRef } = useActions(projectTreeDataLogic)const projectTreeLogicProps = { key: logicKey ?? uniqueKey, root, shortcutScope, isActiveInPanel }const {fullFileSystemFiltered,@@ -286,9 +286,15 @@ export function ProjectTree(props: ProjectTreeProps): JSX.Element {onItemClicked?.(item)if (item?.record?.href) {- router.actions.push(+ const href =typeof item.record.href === 'function' ? item.record.href(item.record.ref) : item.record.href+ setStarredNavigationRef(+ root === 'shortcuts://' && shortcutScope === 'files' && item.record.type && item.record.ref+ ? { type: item.record.type, ref: item.record.ref }+ : null,+ href)+ router.actions.push(href)}if (item?.record?.path) {diff --git a/frontend/src/layout/panel-layout/ProjectTree/customIconRegistry.test.ts b/frontend/src/layout/panel-layout/ProjectTree/customIconRegistry.test.tsnew file mode 100644index 000000000000..d8d6035a5e97--- /dev/null+++ b/frontend/src/layout/panel-layout/ProjectTree/customIconRegistry.test.ts@@ -0,0 +1,19 @@+import { SupportNavBadge } from 'products/conversations/frontend/components/SupportNavBadge'++import { getCustomIcon } from './customIconRegistry'++describe('customIconRegistry', () => {+ it.each<[string | undefined, boolean]>([+ ['/support', true],+ ['/support/tickets', true],+ ['/project/1/support/tickets?status=open', true],+ ['/support?status=open', true],+ ['/business-knowledge', false],+ ['/project/1/business-knowledge', false],+ ['/my-tickets', false],+ ['/support-other', false],+ [undefined, false],+ ])('only shows the Support unread count for Support links (%s)', (href, hasBadge) => {+ expect(getCustomIcon('conversations', href)).toBe(hasBadge ? SupportNavBadge : undefined)+ })+})diff --git a/frontend/src/layout/panel-layout/ProjectTree/customIconRegistry.tsx b/frontend/src/layout/panel-layout/ProjectTree/customIconRegistry.tsxindex 4f7a507c25b7..1fd9820c08f4 100644--- a/frontend/src/layout/panel-layout/ProjectTree/customIconRegistry.tsx+++ b/frontend/src/layout/panel-layout/ProjectTree/customIconRegistry.tsx@@ -1,3 +1,5 @@+import { removeProjectIdIfPresent } from 'lib/utils/kea-router'+/*** Registry for custom nav icons that need dynamic behavior (e.g., badges, counters).*@@ -17,9 +19,19 @@ export const customIconRegistry: Record<string, React.ComponentType<{ className?/*** Get a custom icon component for the given type, or undefined if none registered.*/-export function getCustomIcon(type: string | undefined): React.ComponentType<{ className?: string }> | undefined {+export function getCustomIcon(+ type: string | undefined,+ href: string | undefined+): React.ComponentType<{ className?: string }> | undefined {if (!type) {return undefined}+ // Starred links store the icon type, which other apps can share with Support.+ if (type === 'conversations') {+ const pathname = removeProjectIdIfPresent(href ?? '').split(/[?#]/)[0]+ if (pathname !== '/support' && !pathname.startsWith('/support/')) {+ return undefined+ }+ }return customIconRegistry[type]}diff --git a/frontend/src/layout/panel-layout/ProjectTree/homeFolderUtils.tsx b/frontend/src/layout/panel-layout/ProjectTree/homeFolderUtils.tsxindex 833e2eddb985..4209bf97ea81 100644--- a/frontend/src/layout/panel-layout/ProjectTree/homeFolderUtils.tsx+++ b/frontend/src/layout/panel-layout/ProjectTree/homeFolderUtils.tsx@@ -35,7 +35,7 @@ export function withHomeFolderEmptyState(? {...child,displayName: (- <span className="flex items-center gap-1 py-1 text-xs">+ <span className="flex items-center gap-1"><span>Empty home folder</span><Tooltiptitle={diff --git a/frontend/src/layout/panel-layout/ProjectTree/projectTreeDataLogic.test.ts b/frontend/src/layout/panel-layout/ProjectTree/projectTreeDataLogic.test.tsindex 8fe168a717e8..eed67ee8e01c 100644--- a/frontend/src/layout/panel-layout/ProjectTree/projectTreeDataLogic.test.ts+++ b/frontend/src/layout/panel-layout/ProjectTree/projectTreeDataLogic.test.ts@@ -1,3 +1,4 @@+import { router } from 'kea-router'import { expectLogic } from 'kea-test-utils'import api from 'lib/api'@@ -98,6 +99,54 @@ describe('projectTreeDataLogic', () => {})+ it('reloads starred folders after a move, preserving custom labels and untouched environments', async () => {+ await expectLogic(logic).toFinishAllListeners()+ logic.actions.loadShortcutsSuccess([+ { id: 'star-home', path: 'Alex', type: 'folder', ref: 'Users/Alex' },+ { id: 'star-child', path: 'Notes', type: 'folder', ref: 'Users/Alex/Notes' },+ { id: 'star-other', path: 'Alexandra', type: 'folder', ref: 'Users/Alexandra' },+ { id: 'star-custom', path: 'Pinned work', type: 'folder', ref: 'Users/Alex' },+ { id: 'star-sibling', path: 'Alex', type: 'folder', ref: 'Users/Alex' },+ ])+ const updatedShortcuts = [+ { id: 'star-home', path: 'My work', type: 'folder', ref: 'Users/My work' },+ { id: 'star-child', path: 'Notes', type: 'folder', ref: 'Users/My work/Notes' },+ { id: 'star-other', path: 'Alexandra', type: 'folder', ref: 'Users/Alexandra' },+ { id: 'star-custom', path: 'Pinned work', type: 'folder', ref: 'Users/My work' },+ { id: 'star-sibling', path: 'Alex', type: 'folder', ref: 'Users/Alex' },+ ]+ jest.mocked(api.fileSystemShortcuts.list).mockResolvedValue({ count: 5, results: updatedShortcuts })+ await expectLogic(logic, () => {+ logic.actions.movedItem({ id: 'home', path: 'Users/Alex', type: 'folder' }, 'Users/Alex', 'Users/My work')+ }).toFinishAllListeners()+ expect(api.fileSystemShortcuts.list).toHaveBeenCalled()+ expect(logic.values.shortcutData).toEqual(updatedShortcuts)+ })++ it.each([false, true])('keeps starred navigation in place unless explicitly revealed (%s)', async (explicit) => {+ const projectTree = projectTreeLogic({ key: 'navbar-files', root: 'project://' })+ projectTree.mount()+ await expectLogic(projectTree).toFinishAllListeners()+ logic.actions.createSavedItem({ id: 'note', type: 'notebook', ref: 'note1', path: 'Research/Notes' })+ logic.actions.setStarredNavigationRef({ type: 'notebook', ref: 'note1' }, '/notebooks/note1')+ router.actions.push('/project/997/notebooks/note1')++ await expectLogic(projectTree, () => {+ projectTree.actions.assureVisibility({ type: 'notebook', ref: 'note1' }, explicit)+ }).toFinishAllListeners()+ expect(projectTree.values.scrollTargetId).toBe(explicit ? 'project/note' : '')+ expect(projectTree.values.expandedFolders.includes('project://Research')).toBe(explicit)++ router.actions.push('/project/997/notebooks/note2')+ expect(logic.values.starredNavigationRef).toBeNull()+ router.actions.push('/project/997/notebooks/note1')+ await expectLogic(projectTree, () => {+ projectTree.actions.assureVisibility({ type: 'notebook', ref: 'note1' }, false)+ }).toFinishAllListeners()+ expect(projectTree.values.scrollTargetId).toBe('project/note')+ projectTree.unmount()+ })+it('shows only the products the user added, with nothing injected alongside them', () => {customProductsLogic.actions.loadCustomProductsSuccess([{diff --git a/frontend/src/layout/panel-layout/ProjectTree/projectTreeDataLogic.tsx b/frontend/src/layout/panel-layout/ProjectTree/projectTreeDataLogic.tsxindex 65b7d6c64a50..574942c47aba 100644--- a/frontend/src/layout/panel-layout/ProjectTree/projectTreeDataLogic.tsx+++ b/frontend/src/layout/panel-layout/ProjectTree/projectTreeDataLogic.tsx@@ -1,5 +1,7 @@import { MakeLogicType, actions, afterMount, connect, kea, listeners, path, reducers, selectors } from 'kea'import { loaders } from 'kea-loaders'+import { router } from 'kea-router'+import type { LocationChangedPayload } from 'kea-router/lib/types'import posthog from 'posthog-js'import { IconDocument, IconFolder, IconPlus } from '@posthog/icons'@@ -15,6 +17,7 @@ import { getEntryAccessDisabledReason, getProductAccessDisabledReason } from 'liimport { withTimeout } from 'lib/utils/async'import { eventUsageLogic } from 'lib/utils/eventUsageLogic'import { getCurrentTeamIdOrNone } from 'lib/utils/getAppContext'+import { removeProjectIdIfPresent } from 'lib/utils/kea-router'import { capitalizeFirstLetter, humanList, identifierToHuman, pluralize } from 'lib/utils/strings'import { urls } from 'scenes/urls'import { userLogic } from 'scenes/userLogic'@@ -225,6 +228,11 @@ export interface projectTreeDataLogicValues {shortcutEntryIdMap: Map<string, string>shortcutNonFolderPaths: Set<string>sortedItems: FileSystemEntry[]+ starredNavigationRef:+ | (ProjectTreeRef & {+ pathname: string+ })+ | nulltreeItemsNew: TreeDataItem[]unfiledItems: booleanunfiledItemsLoading: boolean@@ -245,6 +253,27 @@ export interface projectTreeDataLogicActions {setActivePanelIdentifier: (identifier: PanelLayoutNavIdentifier) => {identifier: PanelLayoutNavIdentifier} // panelLayoutLogic+ locationChanged: ({+ method,+ pathname,+ search,+ searchParams,+ hash,+ hashParams,+ initial,+ url,+ routerState,+ }: LocationChangedPayload) => {+ hash: string+ hashParams: Record<string, any>+ initial: boolean+ method: 'POP' | 'PUSH' | 'REPLACE'+ pathname: string+ routerState: Record<string, any>+ search: string+ searchParams: Record<string, any>+ url: string+ } // routeraddLoadedResults: (results: RecentResults | SearchResults) => {results: RecentResults | SearchResults}@@ -525,6 +554,13 @@ export interface projectTreeDataLogicActions {setLastNewFolder: (folder: string | null) => {folder: string | null}+ setStarredNavigationRef: (+ ref: ProjectTreeRef | null,+ href?: string+ ) => {+ href: string | undefined+ ref: ProjectTreeRef | null+ }syncTypeAndRef: (type: string,ref: string@@ -614,9 +650,17 @@ export const projectTreeDataLogic = kea<projectTreeDataLogicType>([userLogic,['user'],],- actions: [panelLayoutLogic, ['setActivePanelIdentifier'], featureFlagLogic, ['setFeatureFlags']],+ actions: [+ panelLayoutLogic,+ ['setActivePanelIdentifier'],+ featureFlagLogic,+ ['setFeatureFlags'],+ router,+ ['locationChanged'],+ ],})),actions({+ setStarredNavigationRef: (ref: ProjectTreeRef | null, href?: string) => ({ ref, href }),loadUnfiledItems: true,loadFolder: (folder: string, forceReload: boolean = false) => ({ folder, forceReload }),@@ -1064,6 +1108,15 @@ export const projectTreeDataLogic = kea<projectTreeDataLogicType>([],})),reducers({+ starredNavigationRef: [+ null as (ProjectTreeRef & { pathname: string }) | null,+ {+ setStarredNavigationRef: (_, { ref, href }) =>+ ref ? { ...ref, pathname: removeProjectIdIfPresent(href ?? '').split(/[?#]/)[0] } : null,+ locationChanged: (state, { pathname }) =>+ state?.pathname === removeProjectIdIfPresent(pathname) ? state : null,+ },+ ],homeFolderLoaded: [false, { loadHomeFolderSuccess: () => true }],folders: [{} as Record<string, FileSystemEntry[]>,@@ -1734,6 +1787,12 @@ export const projectTreeDataLogic = kea<projectTreeDataLogicType>([],}),listeners(({ actions, values, cache }) => ({+ movedItem: ({ item }) => {+ if (item.type === 'folder') {+ // Matching paths can belong to folders in other environments that did not move.+ actions.loadShortcuts()+ }+ },setFeatureFlags: () => {if (values.featureFlags[FEATURE_FLAGS.SIMPLE_SIDEPANEL] &&diff --git a/frontend/src/layout/panel-layout/ProjectTree/projectTreeLogic.tsx b/frontend/src/layout/panel-layout/ProjectTree/projectTreeLogic.tsxindex 5ed567fea6e2..4f849a1f3151 100644--- a/frontend/src/layout/panel-layout/ProjectTree/projectTreeLogic.tsx+++ b/frontend/src/layout/panel-layout/ProjectTree/projectTreeLogic.tsx@@ -1666,6 +1666,16 @@ export const projectTreeLogic = kea<projectTreeLogicType>([},assureVisibility: async ({ projectTreeRef, expandIfHidden }, breakpoint) => {if (projectTreeRef) {+ const starredRef = projectTreeDataLogic.values.starredNavigationRef+ if (+ !expandIfHidden &&+ props.key === 'navbar-files' &&+ starredRef &&+ matchesRefType(starredRef.type, projectTreeRef.type) &&+ starredRef.ref === projectTreeRef.ref+ ) {+ return+ }if (projectTreeRef.type === 'insight' && !expandIfHidden && !isProjectTreeActive(props, values)) {return}diff --git a/frontend/src/layout/panel-layout/ProjectTree/utils.tsx b/frontend/src/layout/panel-layout/ProjectTree/utils.tsxindex 3caf9d8df82e..919ab2fd3003 100644--- a/frontend/src/layout/panel-layout/ProjectTree/utils.tsx+++ b/frontend/src/layout/panel-layout/ProjectTree/utils.tsx@@ -141,7 +141,7 @@ export function convertFileSystemEntryToTreeDataItem({const user: UserBasicType | undefined = item.meta?.created_by ? users?.[item.meta.created_by] : undefined// Check for custom icon component first (e.g., badges), then fall back to static icon- const CustomIcon = getCustomIcon(item.type)+ const CustomIcon = getCustomIcon(item.type, item.href)const icon = CustomIcon ? (<CustomIcon />) : (diff --git a/frontend/src/layout/panel-layout/navbar/tabs/NavAppRow.tsx b/frontend/src/layout/panel-layout/navbar/tabs/NavAppRow.tsxindex e52f658365b3..267a28118dc2 100644--- a/frontend/src/layout/panel-layout/navbar/tabs/NavAppRow.tsx+++ b/frontend/src/layout/panel-layout/navbar/tabs/NavAppRow.tsx@@ -44,7 +44,7 @@ export function NavAppRow({ item }: { item: FileSystemImport }): JSX.Element {(href === urls.projectRoot() && currentPath === urls.projectHomepage()) ||(item.path === 'Session replay' && currentPath.startsWith('/replay/'))const disabledReason = getProductAccessDisabledReason(item)- const CustomIcon = getCustomIcon(item.type)+ const CustomIcon = getCustomIcon(item.type, item.href)const iconType = item.iconType ?? (item.type as FileSystemIconType | undefined)const hasProductMenu = ['Product analytics', 'Dashboards', 'Session replay'].includes(item.path)diff --git a/frontend/src/layout/panel-layout/navbar/tabs/NavTabSection.tsx b/frontend/src/layout/panel-layout/navbar/tabs/NavTabSection.tsxindex 29bb294631b1..dd0349972a64 100644--- a/frontend/src/layout/panel-layout/navbar/tabs/NavTabSection.tsx+++ b/frontend/src/layout/panel-layout/navbar/tabs/NavTabSection.tsx@@ -18,10 +18,11 @@ export function NavTabSection({const [open, setOpen] = useState(true)return (- <Collapsible open={open} onOpenChange={setOpen}>+ <Collapsible open={open} onOpenChange={setOpen} className="border-t first:border-t-0"><div className="flex items-center justify-between"><Collapsible.Trigger- labelClassName="text-xs font-semibold text-secondary normal-case"+ className="min-h-7 rounded hover:bg-fill-button-tertiary-hover focus-visible:bg-fill-button-tertiary-hover pr-2"+ labelClassName="flex-1 text-xs font-semibold text-secondary normal-case"data-attr={dataAttr}><span>{open ? label : collapsedLabel}</span>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.tsxindex a5a93a2e7dfb..3a78080f4697 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@@ -95,7 +95,7 @@ export function FlatNavProducts(): JSX.Element {// A product can register an icon that carries live state, such as the// support unread counter. iconForType supplies the color wrapper itself,// so a registered icon needs that wrapper added around it.- const CustomIcon = getCustomIcon(item.type)+ const CustomIcon = getCustomIcon(item.type, item.href)return (<NavLinkkey={item.path}diff --git a/frontend/src/lib/lemon-ui/LemonTree/LemonTree.tsx b/frontend/src/lib/lemon-ui/LemonTree/LemonTree.tsxindex b0b95f6d5afb..32a92aca9c02 100644--- a/frontend/src/lib/lemon-ui/LemonTree/LemonTree.tsx+++ b/frontend/src/lib/lemon-ui/LemonTree/LemonTree.tsx@@ -360,7 +360,7 @@ const LemonTreeItemRow = forwardRef<HTMLDivElement, LemonTreeItemRowProps>('hover:bg-transparent opacity-50 cursor-default':(selectMode === 'folder-only' && !isFolder) || isEmptyFolder,'opacity-50 cursor-not-allowed': !!item.disabledReason,- 'h-auto min-h-[var(--lemon-tree-button-height)] items-start': isEmptyFolder,+ 'h-auto min-h-[var(--lemon-tree-button-height)] items-center py-0': isEmptyFolder,'rounded-l-[var(--radius)] justify-center [&_svg]:size-4': size === 'narrow','group-hover/lemon-tree-button-group:pr-[30px] group-has-data-[state=open]/lemon-tree-button-group:pr-[30px] group-has-focus-within/lemon-tree-button-group:pr-[30px]':size !== 'narrow' && !isEmptyFolder,diff --git a/posthog/api/file_system/file_system.py b/posthog/api/file_system/file_system.pyindex 1c0f72a5d77a..da0556f22e91 100644--- a/posthog/api/file_system/file_system.py+++ b/posthog/api/file_system/file_system.py@@ -46,6 +46,7 @@ from posthog.models.file_system.file_system import ()from posthog.models.file_system.file_system_home_folder import FileSystemHomeFolderfrom posthog.models.file_system.file_system_representation import FileSystemRepresentation+from posthog.models.file_system.file_system_shortcut import FileSystemShortcutfrom posthog.models.file_system.file_system_view_log import get_recent_file_system_items, recent_view_logsfrom posthog.models.file_system.unfiled_file_saver import save_unfiled_filesfrom posthog.models.team import Team@@ -978,6 +979,13 @@ class FileSystemViewSet(TeamAndOrgViewSetMixin, viewsets.ModelViewSet):status=status.HTTP_200_OK,)+ def _move_folder_shortcuts(self, old_path: str, new_path: str, team_id: int) -> None:+ shortcuts = self._scope_by_project(+ FileSystemShortcut.objects.filter(team_id=team_id, type="folder", ref=old_path)+ )+ shortcuts.filter(path=join_path([split_path(old_path)[-1]])).update(path=join_path([split_path(new_path)[-1]]))+ shortcuts.update(ref=new_path)+@action(methods=["POST"], detail=True)def move(self, request: Request, *args: Any, **kwargs: Any) -> Response:instance = self.get_object()@@ -998,9 +1006,14 @@ class FileSystemViewSet(TeamAndOrgViewSetMixin, viewsets.ModelViewSet):qs = self._scope_by_project_and_environment(qs)qs = self._filter_by_access_control(qs)for file in qs:+ old_child_path = file.pathfile.path = new_path + file.path[len(instance.path) :]file.depth = len(split_path(file.path))file.save()+ if file.type == "folder":+ self._move_folder_shortcuts(old_child_path, file.path, file.team_id)++ self._move_folder_shortcuts(old_path, new_path, instance.team_id)targets = FileSystem.objects.filter(path=new_path).all()targets = self._scope_by_project_and_environment(targets)diff --git a/posthog/api/file_system/test/test_file_system.py b/posthog/api/file_system/test/test_file_system.pyindex 4a3493f1e8a9..627b9da152a1 100644--- a/posthog/api/file_system/test/test_file_system.py+++ b/posthog/api/file_system/test/test_file_system.py@@ -28,6 +28,7 @@ from posthog.api.file_system.file_system import (from posthog.models import OrganizationMembership, Project, Team, Userfrom posthog.models.activity_logging.activity_log import ActivityLogfrom posthog.models.file_system.file_system import FileSystem+from posthog.models.file_system.file_system_shortcut import FileSystemShortcutfrom posthog.session_recordings.models.session_recording_playlist import SessionRecordingPlaylistfrom products.access_control.backend.models.access_control import AccessControl@@ -693,7 +694,14 @@ class TestFileSystemAPI(APIBaseTest):self.assertEqual(folder.depth, depth_index)self.assertEqual(folder.type, "folder")- def test_move_files_and_folders(self):+ @parameterized.expand(+ [+ ("short_path", "NewFolder"),+ ("over_previous_shortcut_limit", "x" * 101),+ ("maximum_nested_path", "x" * (MAX_PATH_LENGTH - len("/Notes"))),+ ]+ )+ def test_move_files_and_folders(self, _name: str, new_path: str) -> None:"""Moving a folder should update all child paths correctly."""@@ -706,22 +714,69 @@ class TestFileSystemAPI(APIBaseTest):team=self.team, path="OldFolder/File2", type="feature_flag", created_by=self.user)+ FileSystem.objects.create(team=self.team, path="OldFolder/Notes", type="folder", created_by=self.user)+ other_user = User.objects.create_user(email="[email protected]", first_name="Sam", password="test")+ shortcuts = [+ FileSystemShortcut.objects.create(team=self.team, user=user, path=label, type="folder", ref=ref)+ for user in [self.user, other_user]+ for label, ref in [("OldFolder", "OldFolder"), ("Notes", "OldFolder/Notes")]+ ]+ sibling_team = Team.objects.create(organization=self.organization, project=self.team.project)+ custom_shortcut = FileSystemShortcut.objects.create(+ team=self.team, user=self.user, path="Pinned work", type="folder", ref="OldFolder"+ )+ sibling_folder = FileSystem.objects.create(+ team=sibling_team, path="OldFolder", type="folder", created_by=self.user+ )+ FileSystem.objects.create(team=sibling_team, path="OldFolder/Notes", type="folder", created_by=self.user)+ shortcuts.append(+ FileSystemShortcut.objects.create(+ team=sibling_team, user=self.user, path="Notes", type="folder", ref="OldFolder/Notes"+ )+ )+ other_team = Team.objects.create(organization=self.organization, name="Other project")+ untouched = [+ FileSystemShortcut.objects.create(+ team=team, user=self.user, path=ref, type="folder", ref=ref, surface=surface+ )+ for team, ref, surface in [+ (self.team, "OldFolderSuffix", None),+ (self.team, "OldFolder", "desktop"),+ (other_team, "OldFolder", None),+ (sibling_team, "OldFolder", None),+ ]+ ]+# Move the folderresponse = self.client.post(f"/api/projects/{self.team.id}/file_system/{folder.pk}/move",- {"new_path": "NewFolder"},+ {"new_path": new_path},)self.assertEqual(response.status_code, status.HTTP_200_OK, response.json())# Check that the folder and files have been movedfolder.refresh_from_db()- self.assertEqual(folder.path, "NewFolder")+ self.assertEqual(folder.path, new_path)+ sibling_folder.refresh_from_db()+ self.assertEqual(sibling_folder.path, "OldFolder")file1.refresh_from_db()- self.assertEqual(file1.path, "NewFolder/File1")+ self.assertEqual(file1.path, f"{new_path}/File1")file2.refresh_from_db()- self.assertEqual(file2.path, "NewFolder/File2")+ self.assertEqual(file2.path, f"{new_path}/File2")++ for shortcut in shortcuts:+ shortcut.refresh_from_db()+ self.assertEqual(shortcut.ref, f"{new_path}/Notes" if shortcut.path == "Notes" else new_path)+ self.assertIn(shortcut.path, [new_path, "Notes"])+ for shortcut in untouched:+ old_ref = shortcut.ref+ shortcut.refresh_from_db()+ self.assertEqual(shortcut.ref, old_ref)+ custom_shortcut.refresh_from_db()+ self.assertEqual(custom_shortcut.ref, new_path)+ self.assertEqual(custom_shortcut.path, "Pinned work")def test_count_of_files(self):"""diff --git a/posthog/migrations/1378_expand_file_system_shortcut_ref.py b/posthog/migrations/1378_expand_file_system_shortcut_ref.pynew file mode 100644index 000000000000..40aab01b2431--- /dev/null+++ b/posthog/migrations/1378_expand_file_system_shortcut_ref.py@@ -0,0 +1,17 @@+# Generated by Django 5.2.17 on 2026-09-24 14:26++from django.db import migrations, models+++class Migration(migrations.Migration):+ dependencies = [+ ("posthog", "1377_untrack_superseded_experiment_settings"),+ ]++ operations = [+ migrations.AlterField(+ model_name="filesystemshortcut",+ name="ref",+ field=models.CharField(blank=True, max_length=4000, null=True),+ ),+ ]diff --git a/posthog/migrations/max_migration.txt b/posthog/migrations/max_migration.txtindex d726d70e216d..37b094e57848 100644--- a/posthog/migrations/max_migration.txt+++ b/posthog/migrations/max_migration.txt@@ -1 +1 @@-1377_untrack_superseded_experiment_settings+1378_expand_file_system_shortcut_refdiff --git a/posthog/models/file_system/file_system_shortcut.py b/posthog/models/file_system/file_system_shortcut.pyindex 511b9d3e9ab5..d26b1c814c14 100644--- a/posthog/models/file_system/file_system_shortcut.py+++ b/posthog/models/file_system/file_system_shortcut.py@@ -18,7 +18,7 @@ class FileSystemShortcut(models.Model):user = models.ForeignKey(User, on_delete=models.CASCADE)path = models.TextField()type = models.CharField(max_length=100, blank=True)- ref = models.CharField(max_length=100, null=True, blank=True)+ ref = models.CharField(max_length=4000, null=True, blank=True)href = models.TextField(null=True, blank=True)order = models.IntegerField(default=0)created_at = models.DateTimeField(default=timezone.now, editable=False)diff --git a/services/mcp/src/api/generated.ts b/services/mcp/src/api/generated.tsindex 9be6ff77f37a..d907f4f29324 100644--- a/services/mcp/src/api/generated.ts+++ b/services/mcp/src/api/generated.ts@@ -46704,7 +46704,7 @@ export namespace Schemas {type?: string;/*** Reference to the linked item, scoped to its type. Null for href-only shortcuts.- * @maxLength 100+ * @maxLength 4000* @nullable*/ref?: string | null;@@ -72425,7 +72425,7 @@ export namespace Schemas {type?: string;/*** Reference to the linked item, scoped to its type. Null for href-only shortcuts.- * @maxLength 100+ * @maxLength 4000* @nullable*/ref?: string | null;