: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
feat(onboarding): unified wizard progress with a completed-run handoff (#69024)
Fernando Gomesb13e0ca63054
diff --git a/frontend/snapshots.yml b/frontend/snapshots.ymlindex 94a18623fc02..712d1c9cd2f0 100644--- a/frontend/snapshots.yml+++ b/frontend/snapshots.yml@@ -7284,126 +7284,54 @@ snapshots:hash: v1.k794b7964.74f6b06befabb9a40b42d0fd9dcc2f5aa79000700dad94c775ee5296919efea3.8JWbggLS8K9zvSJVp-iPHM5ooB2UENgH4eGnF_y_ezYscenes-other-login--sso-error--light:hash: v1.k794b7964.dcb9dbd028e9325ec079706aaf108c905d2d6116d8fcbef7482d48f370cda6a1.IpTMqWIuRh6xGrQ4TzU6wCvTIYdToc9T6wkqkOenjSY- scenes-other-onboarding--ai-observability-sdk-install--dark:- hash: v1.k794b7964.bda729452fe657398c480b5294c7e56e7d3635b19abb4002709522f13f369305.rrDpmUmU4m7CapzCP3sWTjEmrgTZOSFyBM-I7n29TUg- scenes-other-onboarding--ai-observability-sdk-install--light:- hash: v1.k794b7964.64e2dadc01e847ba81ba43ae802bbfd18631e50257d614530d96ce653be5a79b.IlIEo0DfEWgbB_wnutNzeFZcD50RJeITnhM9QaYE-W8- scenes-other-onboarding--alerts--dark:- hash: v1.k794b7964.c22b202da34ceea01a9dc7162520e35f2366b891dc31dfef3f4cc1c02a732925.Zsv8Bo4o_X08cJdxFTd6O68BqhLEViaM9XxAGNO_T1k- scenes-other-onboarding--alerts--light:- hash: v1.k794b7964.ce9b591f02969ade39056c6b7cc75eb49d7779b60c56d45c841ceb289af42190.Ufkei6uIyW8zPsciSWsVCIgnaYmajnCUpUx6jbiig-4- scenes-other-onboarding--authorized-domains--dark:- hash: v1.k794b7964.a3f7b84ed10076d201b2951fc81e0056d7232c08491aa6f8d5e0563c8ab6d4c9.ccShIp_8mlTxdYheZ5dfKa3m96Rm_Y5dfEF1qhmBzGM- scenes-other-onboarding--authorized-domains--light:- hash: v1.k794b7964.d9142bc3060b026a57093900dd891f9dfe3907db6788498b3a156c52e6aa939c.MxCAtdO-MQn_-t6m3y4qUuo1GLXxjBR-MsYoTkStXyo- scenes-other-onboarding--billing-plans--dark:- hash: v1.k794b7964.ecb999b376bb32db76ebcf8a6d09c07cff017170ffa72a10c8305eeb77676295.DgRdgxDzck6r1GhV0zebK_SEnjy8mNXR2GcEVx8x_TI- scenes-other-onboarding--billing-plans--light:- hash: v1.k794b7964.ebdc63ab5d8e9d5e0a6a3e21b8664ef5336084fda360a8d2fef62973c84173c5.xefkFLzzfHpmpf4X3OOodjWkZ09Qbw0lBD4FQ6UY9ZY- scenes-other-onboarding--invite-teammates--dark:- hash: v1.k794b7964.46aeb5a0de7744d5989b9b982fe960000e8dbe856fbc62cbb8e4a389390cbe09.IarnKPTuvFuZbTj7HZhqeQMtFzrsdpPw-T8W2O-IFXo- scenes-other-onboarding--invite-teammates--light:- hash: v1.k794b7964.0ecb7b3ccb21817cf4268f4746b4849888cf522d0e5df1004a27a923f18ec5ce.tA8H5o5Z9UTxWivFXtadnpTFDSSHOF7dnqHiWO1ZWZg- scenes-other-onboarding--link-data--dark:- hash: v1.k794b7964.4a05dc95932b34a9cf538b1ed57e0b4886154182c2da8db3452160829235cc35.tKmyVtrB8i09zcnal2-2C5M2WRsRmf9XYKmrf80EKPY- scenes-other-onboarding--link-data--light:- hash: v1.k794b7964.ec18d1eaceb62ce82857243eea231337cc6beae276a1f18812c7529f3927fcc7.9XGo7ZyjB1SLqMzFUYHo5L9S-XIP-5MKDuWBhOimrTk- scenes-other-onboarding--product-analytics-configuration--dark:- hash: v1.k794b7964.fbc16142cac9ccdc364cdfaca1f249aed2b4c59d4e0e0d672c4b44682dbd9925.qlwoMDqmixiT3Bu-lxaAOgoiBuxt1nfmiBmyZmBZam4- scenes-other-onboarding--product-analytics-configuration--light:- hash: v1.k794b7964.d02bcfb00b3c281c7310a239267f4df3eddd8ac9535c73da67f6f308ecc802db.mDI4QEeK68vppMWjGJHD6ZKuEO7QsQ1xTMZfiN2Wzo4- scenes-other-onboarding--sdk-install--dark:- hash: v1.k794b7964.f13a0b1bc0a7c913b5a646ad6f4b5b7a7ce710f2e47cda5a690223b520081e04.bNHvfIPBNeq6nd8a7TM3_Ai4fC8ZxI9W0FUMUoCRPuQ- scenes-other-onboarding--sdk-install--light:- hash: v1.k794b7964.18d05e299c4a40b287c82a60336a90fb0274a4b80f0d508ac133bc8d45eb0b85.TKBPTekWV2GkQ6kryFoHl0wGg2SyGU4k4h6GHkRFc1c- scenes-other-onboarding--session-replay-configuration--dark:- hash: v1.k794b7964.482b435a0c7fb6c0dca145e39284ac5aa006030ab1035b723e003d35848e5e2d.bxNfbPaPp_uaTpzKBdvrkiORbiuHnOotSAQGLHQ1Np4- scenes-other-onboarding--session-replay-configuration--light:- hash: v1.k794b7964.51819a0eb5226dd8e0602aa7a7a00ef33cc6178f4f97227063edc66d60ac0fce.Imm6ojDP1VLNrDRbtbJtPrQxxBZv2NxALQuvJ9mEWDM- scenes-other-onboarding--session-replay-opt-in--dark:- hash: v1.k794b7964.8d012f5aa22d108d1eee0078db387adb11a73d94474edca06bf072b9f86df55d.QKqstyAqdhGiosquUf8VViFdd52-XMhJuJIzl8HfIYA- scenes-other-onboarding--session-replay-opt-in--light:- hash: v1.k794b7964.188fb758d2252204b4a562f27af497452245fecf2c853afd16d31284a2c62bb8.2Qlk8_9bE6sNPiZpfo4VN1f60lLqmJzRr2veYqGB3Co- scenes-other-onboarding--source-maps--dark:- hash: v1.k794b7964.47c5cb84356f04445556a4447583a81d26a280d62875f04d8cc5b1c8d231db94.PSLXknv-lPzq4G3YJI9ldbw8lXw1mIPpr-D320obKlk- scenes-other-onboarding--source-maps--light:- hash: v1.k794b7964.5b16201cc8c0adaae60f4771c0b1dffdd2b355c6a9a45edbbceda84ea4a89d7b.oJHT8hlXUpR6-O_Cv4Rrtx_UmrN-AkPUWXTeAUXHpBo- scenes-other-onboarding--workflows-custom-installation-instructions--dark:- hash: v1.k794b7964.dd81a223dd76d082e354b4635025f2164f33d40c98ac905328517316e5b35d98.pd5woKnIzU5rN72oQC0_XSkgSwVZzxXp3M3MvpYL9aY- scenes-other-onboarding--workflows-custom-installation-instructions--light:- hash: v1.k794b7964.2e4c7a2a3622c774e52dca6381164f33c47e31e315e4a2809e08721b32bba1c5.rTv8V7rrbsvgftsUgo5ubSGb7tIwPifxDuVssbvUKl8- scenes-other-onboarding-connect-data--connecting--dark:- hash: v1.k794b7964.59f96f7b6102b81524fe52d51ca88ca8dadb1702a307fd7976737864a9088a53.eO9mz6WENzTopgbZIyuZ6fZ6K73TWyK0zpSmsllgamw- scenes-other-onboarding-connect-data--connecting--light:- hash: v1.k794b7964.5b338475ab40e23c3c7df99665746ec76622e5a063c35969ee683a4a5179a1d3.6STqoe7n5Uxz8BWHZw_UpQUpG9ccZJGY7noNzzdMbTc- scenes-other-onboarding-connect-data--loading--dark:- hash: v1.k794b7964.cff95b9c6cd8993906e6c5d3734a032440d3ccb0017fe5da49357a240533f528.eA247Lw54fjpxxUbFb6tpHp6XlIWC-Mm0wjTzxeygyk- scenes-other-onboarding-connect-data--loading--light:- hash: v1.k794b7964.003f072de0cb2b35ef54ac9f418af4a58f29fd9c646b399b6423ee678732ad53.0srRwCdU2Q_X-Rgew5OrdpzcbSUgtG_VqDYkEiJA7kk- scenes-other-onboarding-connect-data--picker--dark:- hash: v1.k794b7964.cff95b9c6cd8993906e6c5d3734a032440d3ccb0017fe5da49357a240533f528.P-Fo6sZAj_nHgIVIJUzi_s9kCDz3EA3fikc_EwidLSY- scenes-other-onboarding-connect-data--picker--light:- hash: v1.k794b7964.f083877853d6068a01c9f31582525d06f727b0c442d2485aae9e55ee33cbdd91.EQ3t-Afb0a933J_TWCrbzn4kgtuxOmJim1_u8c6ySRI- scenes-other-onboarding-connect-data--searching--dark:- hash: v1.k794b7964.4dfe30e4eb72702ecbe738b0171e9b4b1248c7650702bc3b1036abde0f882cf5.CIGvBp0xqjxixv7mvyTx23W1JbS5O4UgyhhwdWmz8MA- scenes-other-onboarding-connect-data--searching--light:- hash: v1.k794b7964.d5096577fad44f35c23e70a3ce2baf1fde5619b4ccc62d200639b8260d23deaa.0czfvMgcpCeTUA3pM_4IStk5TFVWTyEsiAcURgV1CSc- scenes-other-onboarding-connect-data--searching-empty--dark:- hash: v1.k794b7964.c085d8e2525a239ebfa0674ce610350da4d7fd5f574fb7a5adbd51e4e632595c.lDRO-S0EV4HXSnZ5NKcRKVtrXpdXp_1EZrDilS_RXPE- scenes-other-onboarding-connect-data--searching-empty--light:- hash: v1.k794b7964.024aa0fc5f3b8a45b26908456dda88616f4c20aace6107556a0f38d1be7933cb.8elv50MLAQzusw3ULW0148JmHs2cBw0Ry7qYs59ea4c- scenes-other-onboarding-connect-data--with-connected-source--dark:- hash: v1.k794b7964.9ff8c7351c60e7795d73c6bd8b5acfbc68f98bbd9723e06dadb41d5741fb3da9.iV9GduYUxpZaxgVKQ4aZ5OQyfHH38NE9HJ1bQRCXVBE- scenes-other-onboarding-connect-data--with-connected-source--light:- hash: v1.k794b7964.06446de6c861c43300008a041b7b4a1e17722178ed540089489ead06b6224f0b.ByLedO_F2tAefEViHmnFDkditVMrV9Ip_hTJxIeuguE- scenes-other-onboarding-installation-progress--all-states--dark:- hash: v1.k794b7964.608b660c61b7b4f39c7763ba3070648aca5633c9bbf3a25f49a91b57ae14a6bb.4s_2CstH1F6vk2XeiaA0utSU-DYNIiNBKzvjCGgXe9Q- scenes-other-onboarding-installation-progress--all-states--light:- hash: v1.k794b7964.760bed983f2886ca75b5a420b5a9217034e8f43c7876a1c633e9c0933102f8a7.yhvPVgpzwKd0XDN5D2fNuGtBYMZJ6ldqoxi737PWPdc- scenes-other-onboarding-installation-progress--completed--dark:- hash: v1.k794b7964.483efaa879a0ea562a2607b8e597c93ede2ca5675fe8027d276925c6fb770399.m-FRsNmoeODgPULYEvrBvQ5jL8SYCkGCd2uZhxoc_Lc- scenes-other-onboarding-installation-progress--completed--light:- hash: v1.k794b7964.4e5ceba8d02ac9697d20fb4e8e4ddcfc94063e28af001f75adb1df147be8daa5.cq6z_V7Lb9mKnhY1uA7yzEMEG-R5YJ2XE7f8Mx9Fwb8- scenes-other-onboarding-installation-progress--connecting--dark:- hash: v1.k794b7964.88ee5c432ee6bc83b1dc1f1d44ad4612b2b18b0b62808ea0c4175c7835810a66.-X7mQanLZf7YmO1K1Lf_1P2fQogx1njST-UkFd-hitA- scenes-other-onboarding-installation-progress--connecting--light:- hash: v1.k794b7964.10e5daf699a87a22c9e6eb2debc30d98ad143164bfeca9d37e1a84172b1a3917.v1St8xxGJvpmhEog42RyGaRlgngKi2WiFwwqURs8qnA- scenes-other-onboarding-installation-progress--failed-clone--dark:- hash: v1.k794b7964.b367d6930c3a427c3c76721541da2b5a69d6026a2af7048a1928887374013702.3wNcM6ngav3Ja3G3Jk329o0maGdv4KzTHXX_7mmlZLk- scenes-other-onboarding-installation-progress--failed-clone--light:- hash: v1.k794b7964.19d4372a7d94d2d4374aec17b89ce081fa9f16bed1761c8a391ff665e4fb12a0.-3PAzSj_DF60usjqJS4zwtFmDfoZiioEr2A7IxsnYfs- scenes-other-onboarding-installation-progress--failed-no-detail--dark:- hash: v1.k794b7964.6df130ee2a3fdfc1c029f5f81318696a8077e818eb831950d95fbf7034dabcf7.xO7LaNniBBlD1dPLkT4_ZteGgt6G2H6A0UrKMfByHzM- scenes-other-onboarding-installation-progress--failed-no-detail--light:- hash: v1.k794b7964.5991f74c2c2c03dfc42df0586a3a5526c2c1c3077dbb4cce75ba192be46316c7.465tarsHPZF2CCJFmJGY17i6qWZrYPQO4FGwLkfoLpc- scenes-other-onboarding-installation-progress--failed-provisioning--dark:- hash: v1.k794b7964.6f232eda4339190a4f8f5083c2d1c5e50b94b673d1fd7ab1fda8a95b4d3bce08.S7bjTikG5rNKu9QmIBQiVeDoMywDv2MTQZoTZ6YUAV4- scenes-other-onboarding-installation-progress--failed-provisioning--light:- hash: v1.k794b7964.cc7c7f9cd6e345a1dad49131a3dfbb57404fa4bd3b16bcf322d48c748c4c6e97.VQRyqi9UtAMvKNXXN8DQXGdlTathTJ3UePI0FErmiHw- scenes-other-onboarding-installation-progress--failed-wizard--dark:- hash: v1.k794b7964.b7ba105af0a2ef8ff07d15f20691086625b9511eec6851ef3aa0a92be03aa8e9.WOWyfrPE1PjYFvKJaso0t9OZUlTTCOs0Cswu1P-ITxE- scenes-other-onboarding-installation-progress--failed-wizard--light:- hash: v1.k794b7964.8d687e80b53eb492b92b67f6906c9603f98e5a4063448954b79081da9c76bd81.BifPAIKybTaFKMRFdM6hA-grT-km140b9kbYwxMEisU- scenes-other-onboarding-installation-progress--floating-dismissible--dark:- hash: v1.k794b7964.edf9fd01639ebfd8c5bb4190a85bcab1fc9d0a475edd6425b49e03470d55fc53.TLoOIi12uQOj7pgNfA4skG6g7hxGuXSqi44pYhSW7ho- scenes-other-onboarding-installation-progress--floating-dismissible--light:- hash: v1.k794b7964.c2842653f9a0c0f288a6dd8433fdd47caaa535a4fdcc374dfe850cde1e2cd482.5mcqjf9QckE5cKg6a3rvepx4hZhsj8TKEO8GQ1lT07E- scenes-other-onboarding-installation-progress--playground--dark:- hash: v1.k794b7964.ffd7be72bc0ce9f36ca0a796b6442f5ce0998097ea97b430771d495a484696aa.Wp1cSAv5alGyYw_0VqAsCdPm9BpFFEq3jkKkqP6Voqg- scenes-other-onboarding-installation-progress--playground--light:- hash: v1.k794b7964.bed8dbddcefaceb919731b1f6f03f2da690748891ca9793d8098e88fd0bc16f5.TmEtQEGqZau4hqvSnE6d2RYKdLdsxWP5RGMRdJClCj4- scenes-other-onboarding-installation-progress--pull-request-ready--dark:- hash: v1.k794b7964.69bc043993731b9da0b26e26f1bdb8c00f7171a6e06f13195b7aaa51ad8dc9bc.jD8IejKEE7kxkleD413Q4TNKIgUyV_IsdbRlvUwRmiE- scenes-other-onboarding-installation-progress--pull-request-ready--light:- hash: v1.k794b7964.ce6574e551b1f5d71be71662360bbe1d72584c1a230c733033cddd6713572809.UTZtB-Wx3Hnp4YViWXSpKAsnQeT0UDTdlZ-d8jq1qVw- scenes-other-onboarding-installation-progress--running-provisioning--dark:- hash: v1.k794b7964.b8a2bc0f45a9116e527fa8218d8cb07cf58532d1b72b4e93803cc47b0e5de0d4.VU61B569TgjnZ6fckrzqnYba1cBdzdRkrtUdlerJP0w- scenes-other-onboarding-installation-progress--running-provisioning--light:- hash: v1.k794b7964.1a588dcfd2d5649d5afaf144666e23daac15ff7b85ec37d6e122aae855659db9.6199ncdnmhET929iyTd6AWxe9kZs_lmnbrMIjXrPXlk- scenes-other-onboarding-installation-progress--running-wizard--dark:- hash: v1.k794b7964.ffd7be72bc0ce9f36ca0a796b6442f5ce0998097ea97b430771d495a484696aa.RA5dclhzxUp4XuBbYRa8Ktlvad8SDQyOsgz-fvExZqE- scenes-other-onboarding-installation-progress--running-wizard--light:- hash: v1.k794b7964.bed8dbddcefaceb919731b1f6f03f2da690748891ca9793d8098e88fd0bc16f5.fmMcElO_fj3DC8dQpk-EEt1o_yEwyFESioVLyAD6oTk+ scenes-other-onboarding-legacy--ai-observability-sdk-install--dark:+ hash: v1.k794b7964.bda729452fe657398c480b5294c7e56e7d3635b19abb4002709522f13f369305.LhnETlVSPxPSo_ngJjnaI12lyQMOsH0FpWWkQEq2KiM+ scenes-other-onboarding-legacy--ai-observability-sdk-install--light:+ hash: v1.k794b7964.64e2dadc01e847ba81ba43ae802bbfd18631e50257d614530d96ce653be5a79b.6FFnEwMajbRRFZskpqcVbBDQuJvWHC2I4CmuVZ9Hmls+ scenes-other-onboarding-legacy--alerts--dark:+ hash: v1.k794b7964.c22b202da34ceea01a9dc7162520e35f2366b891dc31dfef3f4cc1c02a732925.NcL-srF2HqgOaQZS2T1bWylckrTCHkBSYe72zVWgpIw+ scenes-other-onboarding-legacy--alerts--light:+ hash: v1.k794b7964.ce9b591f02969ade39056c6b7cc75eb49d7779b60c56d45c841ceb289af42190.6sBMcZVQZIRfxIPeDlmprkilV0VSXmgotP2AsllDYGg+ scenes-other-onboarding-legacy--authorized-domains--dark:+ hash: v1.k794b7964.a3f7b84ed10076d201b2951fc81e0056d7232c08491aa6f8d5e0563c8ab6d4c9.GFLBlTetlwuTcaChdsrLtRKDIPSH-Mw9aIthAXLhll0+ scenes-other-onboarding-legacy--authorized-domains--light:+ hash: v1.k794b7964.d9142bc3060b026a57093900dd891f9dfe3907db6788498b3a156c52e6aa939c.9klMXxpMhoA-iwEmWANTJqhGVTJJWc6LgtzzDVhZkdA+ scenes-other-onboarding-legacy--billing-plans--dark:+ hash: v1.k794b7964.ecb999b376bb32db76ebcf8a6d09c07cff017170ffa72a10c8305eeb77676295.6td9xv_2kfFEnxGxinIh0TXYO-iHLnbx-lcbVyZ5eWs+ scenes-other-onboarding-legacy--billing-plans--light:+ hash: v1.k794b7964.ebdc63ab5d8e9d5e0a6a3e21b8664ef5336084fda360a8d2fef62973c84173c5.E6FYslMDKelO8fhQsUEAEBl7dzXUi_Qn2U-HH8-3PCw+ scenes-other-onboarding-legacy--invite-teammates--dark:+ hash: v1.k794b7964.46aeb5a0de7744d5989b9b982fe960000e8dbe856fbc62cbb8e4a389390cbe09.VSx95NpfU3z0i0ebKUjujQw0W56sxZgC1c-K2Gh6dmo+ scenes-other-onboarding-legacy--invite-teammates--light:+ hash: v1.k794b7964.0ecb7b3ccb21817cf4268f4746b4849888cf522d0e5df1004a27a923f18ec5ce.wRjBhAJLUjswRy-jo27y8V-7jTUU4zL81bmbCLidol0+ scenes-other-onboarding-legacy--link-data--dark:+ hash: v1.k794b7964.4a05dc95932b34a9cf538b1ed57e0b4886154182c2da8db3452160829235cc35.LXx0y_33OWagkDqtcdYNajDxZSajvJEcuHXvpFHWFaU+ scenes-other-onboarding-legacy--link-data--light:+ hash: v1.k794b7964.ec18d1eaceb62ce82857243eea231337cc6beae276a1f18812c7529f3927fcc7.puu4dG-p3FbwDz2fSl8bStwW3J0PFlaSL4h47AcuFuc+ scenes-other-onboarding-legacy--product-analytics-configuration--dark:+ hash: v1.k794b7964.fbc16142cac9ccdc364cdfaca1f249aed2b4c59d4e0e0d672c4b44682dbd9925.xSF2mfgFZymjJe9-fEDGnMM5uuE42UmzLayq3icvjDk+ scenes-other-onboarding-legacy--product-analytics-configuration--light:+ hash: v1.k794b7964.d02bcfb00b3c281c7310a239267f4df3eddd8ac9535c73da67f6f308ecc802db.OmxDRZDrpo5t3HvUBH0I9LvOZxcGJJF4X9oLNSTvoIo+ scenes-other-onboarding-legacy--sdk-install--dark:+ hash: v1.k794b7964.f13a0b1bc0a7c913b5a646ad6f4b5b7a7ce710f2e47cda5a690223b520081e04.lvFIUEL8PE1wjTEDg9pkETDK92FthhUTV-NcPWAMS7o+ scenes-other-onboarding-legacy--sdk-install--light:+ hash: v1.k794b7964.18d05e299c4a40b287c82a60336a90fb0274a4b80f0d508ac133bc8d45eb0b85.vUUYGmiP92yv5fyRj_Q2XUNZhIMNnMwYXhwATJSHmdE+ scenes-other-onboarding-legacy--session-replay-configuration--dark:+ hash: v1.k794b7964.482b435a0c7fb6c0dca145e39284ac5aa006030ab1035b723e003d35848e5e2d.i34nHHj6IPgy0lXkozVwUKpCPi2VwzUdeElaD7rz6Vc+ scenes-other-onboarding-legacy--session-replay-configuration--light:+ hash: v1.k794b7964.51819a0eb5226dd8e0602aa7a7a00ef33cc6178f4f97227063edc66d60ac0fce.BNfDgMEg2d41P900q0w6BSijbgDQ5D151XQ8Icuv7ys+ scenes-other-onboarding-legacy--session-replay-opt-in--dark:+ hash: v1.k794b7964.8d012f5aa22d108d1eee0078db387adb11a73d94474edca06bf072b9f86df55d.vlnu65Ji2vVzxxsN94ERJwdAjxSMEi2y2XQkrU06dmc+ scenes-other-onboarding-legacy--session-replay-opt-in--light:+ hash: v1.k794b7964.188fb758d2252204b4a562f27af497452245fecf2c853afd16d31284a2c62bb8.FA6Bxl-38gENNvA1GDx60nuRWfMF-qSCk6iIZzmJxDQ+ scenes-other-onboarding-legacy--source-maps--dark:+ hash: v1.k794b7964.47c5cb84356f04445556a4447583a81d26a280d62875f04d8cc5b1c8d231db94.Z-652Sfo4jo4mnhkdD97U8LSesxOqaBI_UxHLmJCB4g+ scenes-other-onboarding-legacy--source-maps--light:+ hash: v1.k794b7964.5b16201cc8c0adaae60f4771c0b1dffdd2b355c6a9a45edbbceda84ea4a89d7b.3rM6sEkMmecNvQevo2tJAy2N_zyIqtAebIlEei8lDNc+ scenes-other-onboarding-legacy--workflows-custom-installation-instructions--dark:+ hash: v1.k794b7964.dd81a223dd76d082e354b4635025f2164f33d40c98ac905328517316e5b35d98.4HihmxNQLrg1bqWk64AX2to8IGHSIeUO2ntT8uD7hV8+ scenes-other-onboarding-legacy--workflows-custom-installation-instructions--light:+ hash: v1.k794b7964.2e4c7a2a3622c774e52dca6381164f33c47e31e315e4a2809e08721b32bba1c5.PhnLd-CI_Bygrdk5gTu1nVy1chhblwOhJC0fP3ld7TAscenes-other-onboarding-legacy-install-step--cloud-run-in-progress--dark:hash: v1.k794b7964.b5ee945088ebf73e06ff4e3a3f0b7f506e20b902df8f50aef779ac3b0e433ecd.xNlLf3OVO2wRHIaGxXcEivkhq2Wbyl1eIag4VtxIru8scenes-other-onboarding-legacy-install-step--cloud-run-in-progress--light:@@ -7416,110 +7344,166 @@ snapshots:hash: v1.k794b7964.5963b383d7d2a3f876f2047c116e50bc3a092fd34fe42c659b76a57767de8268.aZlFPXrA9RCYIpXFCV50iqgffZ-26-8qKML2-PffSuQscenes-other-onboarding-legacy-install-step--test-arm--light:hash: v1.k794b7964.421b5cebe6bb09aa509224da47b266ece6cd81b1e8a8c4346865724be53d493f.oJXUzGGMy03cEx_8ZvnJMPVdfAF_SksSZgShSA_WsX4- scenes-other-onboarding-product-selection--base--dark:- hash: v1.k794b7964.6b35abf90f865d866bfe83ead0b3d2b6d1686a4efbb6f513d2d3470a36a3928b.51PN1rmvasAVWZFwSu5wHcNhcntw6epUCisAuCTGClY- scenes-other-onboarding-product-selection--base--light:- hash: v1.k794b7964.aa412a66d8dd426bc052ed9dfcff6407481d29126aa19c2522912abb582d0bb3.ex6768hN0un9VFnIJYgpVru3-L-2hMuP8otcRusqtx4- scenes-other-onboarding-turn-on-your-sources--codebase-not-connected--dark:- hash: v1.k794b7964.f0b260fd91ecf3b551fa05abf6cf9bd4dd941167116076b52bc7e473faad750d.4rlCsndcSuACbhFW2BFukTYIls77a22iu9hcASa6VVU- scenes-other-onboarding-turn-on-your-sources--codebase-not-connected--light:- hash: v1.k794b7964.e0fcaa079f4277b0f8f377c48d5af25dd13880d434c3288a4f6fa68eb1fd5f61.Cutjp5--WwOYFODAYqqyzCwQiJzISFEtFf5h62a8QmQ- scenes-other-onboarding-turn-on-your-sources--default--dark:- hash: v1.k794b7964.55cc900bbf87d5f49763dde7a1e797a2d642701d020a6c1eb227a80b5f922bef.R_M8I_gNABLLheMzo4IKohSZ_NXMJl0G4hOYlof4DYM- scenes-other-onboarding-turn-on-your-sources--default--light:- hash: v1.k794b7964.ce56c10cb866870e46cbf39b72472fa8b775b28c4b43bdc271b7389a4c17cb58.3mf2uE2x44ydDYNvfVufEkuQNvKsS0jv-_h9HaCytjQ- scenes-other-onboarding-turn-on-your-sources--installing--dark:- hash: v1.k794b7964.8609ff257bfd96471493de9057ca62c9dfe0b1be9acc68040901a190a723b7a1.hyoOd4OE1uWqQxs0fM1gelQD2saeBV88rhHBfO4DSzQ- scenes-other-onboarding-turn-on-your-sources--installing--light:- hash: v1.k794b7964.590622ed5297b876808a485cec16410eb702136bbdcb79095aa6008570391411.H-VFafR-EQ7dJwFfa6LZKOeh9fC48tdZahHT3AkFEL4- scenes-other-onboarding-wizard-cloud-run--connected--dark:- hash: v1.k794b7964.b27c577a62c3e47cc7a0917231b2af5e680ea5c698fa16d75b4022f9b82de3c8.wcnq-pC4TGQ9ijVmgcSdF4Y0ExumqDrCYvvGkgdVTso- scenes-other-onboarding-wizard-cloud-run--connected--light:- hash: v1.k794b7964.160218c52d4ec68f6b9ab5b759fcb4fcb487c9e8c0066117b6b622fe9fa68aba.62m6VFC7FPwx0uDqb1QFcPRAcoQSrWfjoa31YChjebg- scenes-other-onboarding-wizard-cloud-run--not-connected--dark:- hash: v1.k794b7964.92f6748367f48e84137421d12cd06dbed93cd283224ef223c2b51423eca709bf.XP5DWCP2ZmKqYt3TWvrlNj8d0ZYCLa_e2_xn2rHDPvI- scenes-other-onboarding-wizard-cloud-run--not-connected--light:- hash: v1.k794b7964.e47960ce3187732b7e0f35eb5ef5bd5617f0097908806b662ff24b28b8f82091.b5N57QpypwDzjAit9wGL4PZAbw0CFheVsE0m1i3eI08- scenes-other-onboarding-wizard-cloud-run--playground--dark:- hash: v1.k794b7964.b2feecc661458ca5039f0ab6263dce6cfa4b34b7390e66a13ee0fb0d120def7e.WPmldl1Ne8Z25Qp-CrbG6rl2KYpDJNoNRmyRWPkjhn0- scenes-other-onboarding-wizard-cloud-run--playground--light:- hash: v1.k794b7964.50bf99b6d89ef586c14617f3dc8ce12b3a8d99f794b3c5239ed214fcad284146.aMkYyN7f9MsUG75thr_h82pTZmlReDHXXxVItL1No4A- scenes-other-onboarding-wizard-cloud-run--pull-request-queued--dark:- hash: v1.k794b7964.3069f1824db30b78cdb1142ad23c4d2cce49abe8e3919dc8ddc91d2c44dc8c47.60_6XIseWPhsaDkstpaacDfBZ8iKaPe7fyU-rE90lEo- scenes-other-onboarding-wizard-cloud-run--pull-request-queued--light:- hash: v1.k794b7964.7ec7e9d1698b2e62f5228a13c1991d64086be0fbc9840457922b154816df2431._3G5m4OvpJfstbF-BUJDMQTFS2FoeE9XTKma9jqxcrU- scenes-other-onboarding-wizard-cloud-run--repo-picker-open--dark:- hash: v1.k794b7964.b27c577a62c3e47cc7a0917231b2af5e680ea5c698fa16d75b4022f9b82de3c8.dkAJzTjKSUDPqLlCEJGqvhmRwTr2r-VHlcT8fH4uY-Q- scenes-other-onboarding-wizard-cloud-run--repo-picker-open--light:- hash: v1.k794b7964.328392d2d599698983c7b66e37c85c98d02067df7543fe215500277f774f628c.RZ-FkA8Z_wKviBGQMgQ5SwSSDp6JGNy-0gIouLHetac- scenes-other-onboarding-wizard-cloud-run--repo-selected--dark:- hash: v1.k794b7964.b2feecc661458ca5039f0ab6263dce6cfa4b34b7390e66a13ee0fb0d120def7e.O9G-GIjj0XrLACkq_mg9zCU60hg0zMkkUpSHz2f9VUc- scenes-other-onboarding-wizard-cloud-run--repo-selected--light:- hash: v1.k794b7964.50bf99b6d89ef586c14617f3dc8ce12b3a8d99f794b3c5239ed214fcad284146.oxZGa1QI9uJ2QoyAQbdzsHg13hJdk8rINK-mhUqgULQ- scenes-other-onboarding-wizard-cloud-run--run-it-yourself--dark:- hash: v1.k794b7964.b47c4a7d9e5841fdc8d70a435424ac91e2546a3b6becd9f6d649203cf6490183.WFhh4-Ml3BPa72xy_h0PoQ-N9pa2WDwgRdu8ekPT0Wc- scenes-other-onboarding-wizard-cloud-run--run-it-yourself--light:- hash: v1.k794b7964.cabea59cead5a63f867d0315becf9f5d1b488340305be7134e352166f067fb40.FFpoYgYVURL8Ob8tbMfOenNkVqXHAK6VSSexTyZjJmI- scenes-other-onboarding-wizard-progress-fab--hidden--light:- hash: v1.k794b7964.0d3a4f8e7f33f2272e482ad27457ab4049c226bc79f1890c6fa226f23591deba.e_cl0m4YPweYHNfhJMUGz23I399q0SBrD5KIaOKFm2Y- scenes-other-onboarding-wizard-progress-fab--hidden-by-panel--light:- hash: v1.k794b7964.c2a6a04011e6bd719f766c602fa680edcee8fd6b2197e780c66b53b34ea3abdf.MBVoq34i5Hz_cY8Jg0GlbpOPlondJ2Zlh3qe7qi6r4c- scenes-other-onboarding-wizard-progress-tracker--completed--dark:- hash: v1.k794b7964.40300540642571bceefd9c444f1d50bcbdcb1e2960977b59e2ce198604c464bc.n9HmMfe4IHoOrJxOfCp0RRPPBab8sT7BV-JETmUWgT4- scenes-other-onboarding-wizard-progress-tracker--completed--light:- hash: v1.k794b7964.806443d3896007183b03def7d1ce67137a1416692fea1c77066ec366cc0d8bc9.pj7ukmXItg2Fw54n9-nBmkpi9vvrmvZ2ff2dIR09kys- scenes-other-onboarding-wizard-progress-tracker--errored--dark:- hash: v1.k794b7964.d19ba7c2d21cc21880a35710ad16d4e6a473bc6d10aa1d4147a5aa70f1f7de86.5660iOqhvENg6G3OnDs8aVcklE7q9SJh1rWx5AgLGWM- scenes-other-onboarding-wizard-progress-tracker--errored--light:- hash: v1.k794b7964.b9b78f2b1e2588d982b9e7bb97735475224eb65232f8e238171c48b96b1709ac.FW9UdqlOaXodC0XJUSzfhx0To5f68AIJnvNEJdE6uEE- scenes-other-onboarding-wizard-progress-tracker--full-install-step-with-error--dark:- hash: v1.k794b7964.d73d66038db0c6f5e88e2764e59ce049d6738e4e85a07a2c360a976b694f13b0.73LqEq8lThsGRpfKZVnaXUZyPAQjtKhaIF-80UnlSro- scenes-other-onboarding-wizard-progress-tracker--full-install-step-with-error--light:- hash: v1.k794b7964.3f209b376b57f43e59e81a211c83a3f56f800fe2ccf1964b7ceee17d623b8e40.A2ZjgKExpAch5Ds-mvpsmNZvd1UPXmp6nIUDu6DgOxM- scenes-other-onboarding-wizard-progress-tracker--pre-takeover--dark:- hash: v1.k794b7964.222ab27e09e9b7c980a49a4bd606c34ebe83324d6263e1cba0c5ec83a9637a27.zApjAUAQ_976loAE3MTGmkp3UBwNS87nju_4wKCphhs- scenes-other-onboarding-wizard-progress-tracker--pre-takeover--light:- hash: v1.k794b7964.69198ec44b6b0a59dac5f3f1489343ee83a3700a3c4d3a290d51567586233fed.Bsasw0wKjeDvnR6UPN8RCWEk-GGpkZqUVsRbiPJxBhw- scenes-other-onboarding-wizard-progress-tracker--reconnecting--dark:- hash: v1.k794b7964.769936e46b5d7dcf2dcd2fe82ac2d51d3ae402f2119e4912cf33be8f04b338b1.nVWLmFcASqXYDz1F1GtUI4_TCkZrFu_EB6PolX7Lq1o- scenes-other-onboarding-wizard-progress-tracker--reconnecting--light:- hash: v1.k794b7964.f1f55d041e27850fc273f05286fe394591194c5d098a322f4ab62da35272d34e.yJHzUDzOJgQEecNhz1dz2lPEbaklFCONaJo1v3lmL6E- scenes-other-onboarding-wizard-progress-tracker--running--dark:- hash: v1.k794b7964.d71edca979d6b2f8bffdec56369d58c6836516fdf055ed3d4154d877e39885bb.wFm_V5SLfvkUraIfrRKVTGrAFLInu1skroKRh2YJChk- scenes-other-onboarding-wizard-progress-tracker--running--light:- hash: v1.k794b7964.f5369826708b010cb25bfc3a92f8013a168ae6e3b9721e4c2527e1739f2f0a2b.fO171E9T_aXdHuwocYd2_261sekGGr6J5cOmTVdoowE- scenes-other-onboarding-wizard-sync-card--all-states--dark:- hash: v1.k794b7964.58dc138d1585677aa2d648bc1c612338d82e4e78b5b770436414d311c192e5b5.1mKUAtBcGxEoCskUdlx4QzdezEwkIaP4k97vsypdkqI- scenes-other-onboarding-wizard-sync-card--all-states--light:- hash: v1.k794b7964.0cc65480ceb6ba681dc3ff66ddbe7586ab36168d78e567beabdd4b5045dc517f.eG3RYysuTf9PzPwyeML--_oIPVfqmYJKzvSUvVgQG8g- scenes-other-onboarding-wizard-sync-card--cloud-keeping-ci-green--dark:- hash: v1.k794b7964.698010f52d1f6a068af50f838d560fdd3fd0b0c499697e0e08d8747cb5d0ad53.xB2q7n60ow5WFoZ7-b-cNpXgqog-zIqMkJWdXhzOsf4- scenes-other-onboarding-wizard-sync-card--cloud-keeping-ci-green--light:- hash: v1.k794b7964.9a604165bf1835302e43f8334c28b27201a7f3715a905bcc9d2d38a915371b0b.8svPLE7SFPZgsXoxi7Zojt8uB5fQGj81e9a4GnMrkDY- scenes-other-onboarding-wizard-sync-card--cloud-wizard-running--dark:- hash: v1.k794b7964.c69534afe39d0311b0ed3247beb145b94381706a25f2e6c7b5d3415c87564375.BhFx814SkAQ06867es0znUZpC7Ar-2iigoAaAJO4grQ- scenes-other-onboarding-wizard-sync-card--cloud-wizard-running--light:- hash: v1.k794b7964.0cfae6b396d23d4bf84998b078b2bc21d231cff6ca91c6ad72287015ffbc3612.xqAxC2OFrTOOAjYibZDZmt8pAGWh1rVgpWUrdZieRe4- scenes-other-onboarding-wizard-sync-card--completed--dark:- hash: v1.k794b7964.f1d998ba6eab3c39c0cededb58660743576a877fa3de51b848a597db69f19827.bkZSi72ueVwAdzLOqTGdvn_lSVMkFKNO-cvQ6pu3Y9w- scenes-other-onboarding-wizard-sync-card--completed--light:- hash: v1.k794b7964.74517a371e77e79819faf936409917cfebc320d14767b3b43e72ca40c20f75b4.-ktzzMAdNYqQuR-WSmKfBNz02nhrKjQz08TbztIO_RY- scenes-other-onboarding-wizard-sync-card--connecting--dark:- hash: v1.k794b7964.61398434096848c5eb49dc43a6649548981357049ad0e237bee837e83da9eaf7.w43LwctvdIarLnYq9o-Bo99weEVPs0XjsCuwOmxMuFE- scenes-other-onboarding-wizard-sync-card--connecting--light:- hash: v1.k794b7964.00de83bd008d8ea2c3020e7c09d2acde3da28546225c780c6df558ce588403bf.aYMyLPzhiIndK2D-JlR2rNBCXOP8V_-fh4MhNx3SQDQ- scenes-other-onboarding-wizard-sync-card--failed--dark:- hash: v1.k794b7964.0699d0268f15fd6d9502d0642c901b5d233088e66dae63e4529bf8dfad525932.bjaXmHatF5FslsTRdwe4gWrjbUlM3Nu8PtCehHTYzqo- scenes-other-onboarding-wizard-sync-card--failed--light:- hash: v1.k794b7964.50b5fa9355ae6176715bf17f02954d776dbcf74ed53ba5cb084f7272aa6334f0.-yDywPBww0uwHwzLiX9q3z4nDZBtEDJ0mbhXQX24T7s- scenes-other-onboarding-wizard-sync-card--local-running--dark:- hash: v1.k794b7964.8ebd0fb0b9db1f2cc68bcb63d890a44003403e27688a938e5cb04fbffb3b5d5e.yI70PdoKLWuUKMz4yvqpgQmPCJx7WjRu-g85Tt_m7n4- scenes-other-onboarding-wizard-sync-card--local-running--light:- hash: v1.k794b7964.644de0941a464befbdd1c1173307918762ec7bf580d08b6bb73e0170da71ab57.5vo2PyQfwdHSirsLkTypR4P6PHWRN7GJmU_JwNWSgjs- scenes-other-onboarding-wizard-sync-card--playground--dark:- hash: v1.k794b7964.c69534afe39d0311b0ed3247beb145b94381706a25f2e6c7b5d3415c87564375.yoqL-l9uwnSk7HPL43goI5OURF9xTvFpndNX2oKlHys- scenes-other-onboarding-wizard-sync-card--playground--light:- hash: v1.k794b7964.0cfae6b396d23d4bf84998b078b2bc21d231cff6ca91c6ad72287015ffbc3612.D_3QkuWWnYtitl6lT72dKDF4F4Pw9hfTKs5zBOkY8f4+ scenes-other-onboarding-legacy-product-selection--base--dark:+ hash: v1.k794b7964.aaff710f4f8a004ff7bc73a2709377bd3ac83bccafec478086396c0beae1e832.jqsB3nXBYy8WbHSVAPz-o8Vu46etxe4uDx3zXbtlf-U+ scenes-other-onboarding-legacy-product-selection--base--light:+ hash: v1.k794b7964.d5a6e4d5e44b84e7a1b0a9eb095fb62a08eea227968860911c9e23757eb99d33.mrMEqKjXZgfMivqJdaamdN2nJVc-I_8Sccv6XXQylg8+ scenes-other-onboarding-self-driving-connect-data--connecting--dark:+ hash: v1.k794b7964.59f96f7b6102b81524fe52d51ca88ca8dadb1702a307fd7976737864a9088a53.j9swRCt2XdmhgzxnD9vTqp0_THZ27ZLJO4KAML1nd8M+ scenes-other-onboarding-self-driving-connect-data--connecting--light:+ hash: v1.k794b7964.5b338475ab40e23c3c7df99665746ec76622e5a063c35969ee683a4a5179a1d3.bmqzZNaoDdYh0PgVo1bGwG74TZOTsucwzPpOq3BJs4c+ scenes-other-onboarding-self-driving-connect-data--loading--dark:+ hash: v1.k794b7964.cff95b9c6cd8993906e6c5d3734a032440d3ccb0017fe5da49357a240533f528.7mwRCH5QJocTHdBTG2C0tKZh7c9M4K4r5Dk5O7TFkpE+ scenes-other-onboarding-self-driving-connect-data--loading--light:+ hash: v1.k794b7964.003f072de0cb2b35ef54ac9f418af4a58f29fd9c646b399b6423ee678732ad53.MFgP16Oth2lA2cLlya5Jk4ZNML0MDMweplWVhkAshUg+ scenes-other-onboarding-self-driving-connect-data--picker--dark:+ hash: v1.k794b7964.cff95b9c6cd8993906e6c5d3734a032440d3ccb0017fe5da49357a240533f528.YjMz8mKbADTS5vupqwjYh9NXCHZb3OUP5lbR9Kr_WkM+ scenes-other-onboarding-self-driving-connect-data--picker--light:+ hash: v1.k794b7964.f083877853d6068a01c9f31582525d06f727b0c442d2485aae9e55ee33cbdd91.rvIq6BlK_PQe16XO_kmNScu6Xc9OqxZMhhkEzRwja4c+ scenes-other-onboarding-self-driving-connect-data--searching--dark:+ hash: v1.k794b7964.4dfe30e4eb72702ecbe738b0171e9b4b1248c7650702bc3b1036abde0f882cf5.recxMx45ifz2eajErQC8SW9KYExDkFg3w2JPdK6aLEo+ scenes-other-onboarding-self-driving-connect-data--searching--light:+ hash: v1.k794b7964.d5096577fad44f35c23e70a3ce2baf1fde5619b4ccc62d200639b8260d23deaa.pMBUMoeKsJVRcHMBLKz7_V0Y9pvLE_v5cZwHDCqKiHo+ scenes-other-onboarding-self-driving-connect-data--searching-empty--dark:+ hash: v1.k794b7964.c085d8e2525a239ebfa0674ce610350da4d7fd5f574fb7a5adbd51e4e632595c.RrH7b3NCUgkFMiFu-F79iUolp7s26q5Lpu0DeRBK66w+ scenes-other-onboarding-self-driving-connect-data--searching-empty--light:+ hash: v1.k794b7964.024aa0fc5f3b8a45b26908456dda88616f4c20aace6107556a0f38d1be7933cb.CMuGracqauaJk87a_SiKc3BOf2wDfoAXaiVqCuARwGI+ scenes-other-onboarding-self-driving-connect-data--with-connected-source--dark:+ hash: v1.k794b7964.9ff8c7351c60e7795d73c6bd8b5acfbc68f98bbd9723e06dadb41d5741fb3da9.MqSNygYUXQFNBTvWGY9HySvx1DhuVOMmdtUH2B_OPwk+ scenes-other-onboarding-self-driving-connect-data--with-connected-source--light:+ hash: v1.k794b7964.06446de6c861c43300008a041b7b4a1e17722178ed540089489ead06b6224f0b.KIKpfLbHHTn7U63D8lOtW-1xbvWEFkJeKKYuJ-8u0jU+ scenes-other-onboarding-self-driving-turn-on-your-sources--codebase-not-connected--dark:+ hash: v1.k794b7964.f0b260fd91ecf3b551fa05abf6cf9bd4dd941167116076b52bc7e473faad750d.DkujYAeFuy54kB6B2KshFMgGbZuk9qNsvjDYGsZ3sTI+ scenes-other-onboarding-self-driving-turn-on-your-sources--codebase-not-connected--light:+ hash: v1.k794b7964.e0fcaa079f4277b0f8f377c48d5af25dd13880d434c3288a4f6fa68eb1fd5f61.xRiQvZhEvquByeOMDLvOC5lzJCHjTEU0ZqTekw0-ogc+ scenes-other-onboarding-self-driving-turn-on-your-sources--default--dark:+ hash: v1.k794b7964.55cc900bbf87d5f49763dde7a1e797a2d642701d020a6c1eb227a80b5f922bef.dDdu7RseEZA3Z8ygeQvWG_XLh0xLyigchsQ-vegSTqo+ scenes-other-onboarding-self-driving-turn-on-your-sources--default--light:+ hash: v1.k794b7964.ce56c10cb866870e46cbf39b72472fa8b775b28c4b43bdc271b7389a4c17cb58.2a3e3ocSCfiycoBKmqh8KTWsLKoJ9xNsxOBs6ly1vMk+ scenes-other-onboarding-self-driving-turn-on-your-sources--installing--dark:+ hash: v1.k794b7964.8609ff257bfd96471493de9057ca62c9dfe0b1be9acc68040901a190a723b7a1.1t02u9Nc49DI1MH5Ru2URseb9bmwG1KkrYmGL15VcPc+ scenes-other-onboarding-self-driving-turn-on-your-sources--installing--light:+ hash: v1.k794b7964.590622ed5297b876808a485cec16410eb702136bbdcb79095aa6008570391411._g7ycFESkKS1Yq1Sxg-lQ6rwsEFSV_ewojLgqiE0ptE+ scenes-other-onboarding-shared-installation-progress--all-states--dark:+ hash: v1.k794b7964.43f9476179509106d3956800578f0ffec7b55113b91bfb001971af44db535b13.TJ6oEw_MWvCvLZxOLHSKQk1eqNNEFzDxUyhQrPXQpyE+ scenes-other-onboarding-shared-installation-progress--all-states--light:+ hash: v1.k794b7964.e54778063d1d0784847b7c72edbabf486833cdb26ba0477e67589e51b35a740c.OonSw5OD_pYc3--2OmBfZnNA2rPr6MlMsjY0NptjO5s+ scenes-other-onboarding-shared-installation-progress--completed--dark:+ hash: v1.k794b7964.bc62e998d12dab100d890d691c2ab27590b9e5360922284c382624cc01173ee7.47YBKRVF1Nic4a3PZhKGMFJppRo6Hm3F3UYM1PNJx6w+ scenes-other-onboarding-shared-installation-progress--completed--light:+ hash: v1.k794b7964.33b3b52245a7f45c0faf844127fa914e201fc8d8e159f8dc85ed406e3dcafbed.v7VOuBycrHExkxsoYCwm-n_6SpC1Czlx-1u3QSjOzo4+ scenes-other-onboarding-shared-installation-progress--completed-local-handoff--dark:+ hash: v1.k794b7964.36cf7228ba594332bed453ada313646e689878696d65f2e732ef4f20b9942b27.f5PtRTQsoB2LQF0JI-0_pmtiH7Lkd8HH3BnE6uSLoGU+ scenes-other-onboarding-shared-installation-progress--completed-local-handoff--light:+ hash: v1.k794b7964.0f40b7a983cb6f76ca10f79e72e7dfba4f974171a9e0ae670d6beae5ca6a5804.8x3ZMHjKx92IRRDfpRdipq0OEhUp0EmRlhjz9ZwrCsc+ scenes-other-onboarding-shared-installation-progress--connecting--dark:+ hash: v1.k794b7964.c979fc93fe8ea9d6a8d7ecfc667cba31879bfcafce56b1f09ae143d43e77efce.cHHBvXk9MnAaTdks6cwqJLv_--qKj8AwUXIv6FZRV3U+ scenes-other-onboarding-shared-installation-progress--connecting--light:+ hash: v1.k794b7964.9756674a28d3c94044365cb117f7fcec0a8e061bacdb8c34da44f261718861d1.ABe2yJtJxh7Equd6fqvtNOicfspqj6BE6m3TIazDHdc+ scenes-other-onboarding-shared-installation-progress--connecting-local--dark:+ hash: v1.k794b7964.883bd63d429ca952e3fada4ffb8d6079068ecb39cfa9a36ade3f1f10c09ea293.Jp3lHkTTExFAPCEN83NenmIXpRikBD6O99Cs6QpdyNw+ scenes-other-onboarding-shared-installation-progress--connecting-local--light:+ hash: v1.k794b7964.4691e4cc4f73c17168f502c50bcfb9654eaac629609a1362c21a21ef3025d02d.DiXbWHT2TBOodnBTsRpvL56LZU-ISxFUg2BpvsE3rL8+ scenes-other-onboarding-shared-installation-progress--failed-clone--dark:+ hash: v1.k794b7964.b367d6930c3a427c3c76721541da2b5a69d6026a2af7048a1928887374013702.urUNAcXj_1KReMrBdJVZvz9zOMH5sYrLU_Lxt2m5ivQ+ scenes-other-onboarding-shared-installation-progress--failed-clone--light:+ hash: v1.k794b7964.19d4372a7d94d2d4374aec17b89ce081fa9f16bed1761c8a391ff665e4fb12a0.u7T3W8M_lk4z0SQYP8A_Pk6repyaqaa6zYmsg4SvjIU+ scenes-other-onboarding-shared-installation-progress--failed-no-detail--dark:+ hash: v1.k794b7964.58610476a191d7d7ed2c8594ffffbd14d485ae8ff3b3cb52650034c879982ee8.alL7O2YP-vp0_l-YCMpnXOaX-FfhEV9eO6vHSH3izBQ+ scenes-other-onboarding-shared-installation-progress--failed-no-detail--light:+ hash: v1.k794b7964.5991f74c2c2c03dfc42df0586a3a5526c2c1c3077dbb4cce75ba192be46316c7.Gs16jzYhNytlMnlz_X-_bKYcDFBDNdYgliVKiONjP1Q+ scenes-other-onboarding-shared-installation-progress--failed-provisioning--dark:+ hash: v1.k794b7964.6f232eda4339190a4f8f5083c2d1c5e50b94b673d1fd7ab1fda8a95b4d3bce08.pIpvTN2U9JI0QloopLC0cjg1GvHO1CF3wpZRcp-zIzc+ scenes-other-onboarding-shared-installation-progress--failed-provisioning--light:+ hash: v1.k794b7964.cc7c7f9cd6e345a1dad49131a3dfbb57404fa4bd3b16bcf322d48c748c4c6e97.SItaoRxjP5W9HM04_8mbOWIOw4fWQ92iS8RMwY3tij8+ scenes-other-onboarding-shared-installation-progress--failed-wizard--dark:+ hash: v1.k794b7964.28b342b3c5c42ea9ea6817a9a5ebdc06215d631806df5b95f020ead507842f0b.rQ2WyE3OniJop5jxpLouAswEIERBDEKAjmqOJMYQO2o+ scenes-other-onboarding-shared-installation-progress--failed-wizard--light:+ hash: v1.k794b7964.8d687e80b53eb492b92b67f6906c9603f98e5a4063448954b79081da9c76bd81.b104GyJ_V3bIcjApMDPTG_Jym9KleG8p30R4kUlQIMQ+ scenes-other-onboarding-shared-installation-progress--floating-dismissible--dark:+ hash: v1.k794b7964.9b570a49e8ac8dfc934d386c081f7fae1d4282de06afae86bd7c5a36a7754948.dlJN-Winmieb8CReOxRv0AHUwAkrSYEIX0uT6oFBiMA+ scenes-other-onboarding-shared-installation-progress--floating-dismissible--light:+ hash: v1.k794b7964.e8d02d56edcf2e5ab2998c7407b12d1eef019d6dfe4e468a1299ed6c16ba3882.XkNbvIk-X1rTmnRo8guX8oFQyzVvdjqHxQEDNOLlRK8+ scenes-other-onboarding-shared-installation-progress--playground--dark:+ hash: v1.k794b7964.73dd3b1ca302d1d915814fb1c93516188ee3a6c010a9deedc21aba892b0c4eaa.TED9G6l7yoWOiiXzoG27nGeTlcy4E02tWrI0-iEqOBM+ scenes-other-onboarding-shared-installation-progress--playground--light:+ hash: v1.k794b7964.136fe9ea63b8e3301642e87d677f6e9d46f1796683a666a3ab18ee23fbbf5539.4sb2JpWGGJR3UBjBelT0C_Y2JvuppqCQCzwvFT5RptI+ scenes-other-onboarding-shared-installation-progress--pull-request-ready--dark:+ hash: v1.k794b7964.c0dd7977c4b4e125098401eb4643e2896f600b116c04bf0ff56f09de25579835.x7qV5sJxPaxI27L4YuzDnvP5qLdsHcFQtGRM1cQE23c+ scenes-other-onboarding-shared-installation-progress--pull-request-ready--light:+ hash: v1.k794b7964.458e8704b135fff8915a132d5b7f53ab5c9afb7656c9bf9e4f76b56e12de8741.2KxhAyq-ILY_fcnXJLF9UCFJTVOXjMG71pclz8wapDI+ scenes-other-onboarding-shared-installation-progress--running-provisioning--dark:+ hash: v1.k794b7964.e58710cd2f0ff91e2bd88191284a11f60187e134263860dffd3df13cca06f21b.59LsqQjRRlzraOnea_lmuyDVCNXp9a0GP7x7vszqzKI+ scenes-other-onboarding-shared-installation-progress--running-provisioning--light:+ hash: v1.k794b7964.7ff8e865d2204e4590a08310af89c661a026733e32b38d2070afd64feecfcc9c.68gauNpNM6Sg22Ydjqc_KYxJuBlSLoIQhIjwC-Fr-30+ scenes-other-onboarding-shared-installation-progress--running-wizard--dark:+ hash: v1.k794b7964.79adfbd6331ef6d2d893fa8dbfd8ef3f7669cd44c78b105abc94a95ec176f21c.7PqVKbq6z8ASe9S4ILXbDZMFzXT5KMKYnIf9-Fu0Ld4+ scenes-other-onboarding-shared-installation-progress--running-wizard--light:+ hash: v1.k794b7964.c6ad24b9d785ebe203a5bd7f52d8ce95c22627709eb99f43a8035c27805a6a4d.65BK591qtOlIdohy6c4QY_b0-4qLXTGPiilnI8BuMp8+ scenes-other-onboarding-shared-wizard-cloud-run--connected--dark:+ hash: v1.k794b7964.0c903b9c3884ef83e1a10473b1e9acdbebc5b38b588a99bed35441b8b7ee8c0b.Omb8q4H4h2Szw69UvEHIVm7KSTReG7XazA2tF2VIfls+ scenes-other-onboarding-shared-wizard-cloud-run--connected--light:+ hash: v1.k794b7964.4a4081541ed8303ac183359a9ca8e594b33d3b056abb86e0e936599fae609f4b.sa0g40gecP98ZMFLV-1TfJ5A-KmwkkYf2nlpb8W-u7A+ scenes-other-onboarding-shared-wizard-cloud-run--not-connected--dark:+ hash: v1.k794b7964.50a8969eeeb71152057cc1ea24c33d8713adae1126df02b125876e65834d36d3.iDwWz7kkpm32mhrWTdXxKPszWBR6n37l-Vot9hENRFU+ scenes-other-onboarding-shared-wizard-cloud-run--not-connected--light:+ hash: v1.k794b7964.2fae86241c7b429587b0957389248c1365b660eb1bb7565d01b33ab620e38f0d.GXO6gusmhMMKFWM_5nLZqX746CL3UPZNnvZ4jj5oWzA+ scenes-other-onboarding-shared-wizard-cloud-run--playground--dark:+ hash: v1.k794b7964.c83127f9e424470e3a9dbef3100148560455f9b3a9b5a17c82c67a63e10bd6c4.xJzDCfkU3USYFTZTg6vU9Hu8pkFjckrjs6Xy8qje1qM+ scenes-other-onboarding-shared-wizard-cloud-run--playground--light:+ hash: v1.k794b7964.23701c15f744c0137a71c7ca2f1e94b57bc6deb4a3e943542cecaa676cd7b928.A1E1GKjD7V8u9sVsw9ArM6v9jh_zY3wW_aV0WDMkncc+ scenes-other-onboarding-shared-wizard-cloud-run--pull-request-queued--dark:+ hash: v1.k794b7964.3069f1824db30b78cdb1142ad23c4d2cce49abe8e3919dc8ddc91d2c44dc8c47.sSk9IT_qsJUC2r_UP3L3JN7rnu9mgm88YK2eCSaTU1U+ scenes-other-onboarding-shared-wizard-cloud-run--pull-request-queued--light:+ hash: v1.k794b7964.7ec7e9d1698b2e62f5228a13c1991d64086be0fbc9840457922b154816df2431.nTPGOZUNcBJ1gNrgTQKjPqKNAbhaFCjmCARBoKuu2lo+ scenes-other-onboarding-shared-wizard-cloud-run--repo-picker-open--dark:+ hash: v1.k794b7964.0c903b9c3884ef83e1a10473b1e9acdbebc5b38b588a99bed35441b8b7ee8c0b.66xwKVU7w_BHjzjGHEkDulTABAKCpGSpl94tgE8nYSE+ scenes-other-onboarding-shared-wizard-cloud-run--repo-picker-open--light:+ hash: v1.k794b7964.4a4081541ed8303ac183359a9ca8e594b33d3b056abb86e0e936599fae609f4b.5xbzTpuLkhIYejeCA54MJabm-t9nCGSmB5zi0kJQT-c+ scenes-other-onboarding-shared-wizard-cloud-run--repo-selected--dark:+ hash: v1.k794b7964.c83127f9e424470e3a9dbef3100148560455f9b3a9b5a17c82c67a63e10bd6c4.eptdbuPervntKMHipq7abx7efzF8oT1sm7zKS2Jhtxg+ scenes-other-onboarding-shared-wizard-cloud-run--repo-selected--light:+ hash: v1.k794b7964.23701c15f744c0137a71c7ca2f1e94b57bc6deb4a3e943542cecaa676cd7b928.gC0HQGAXbp5d4Yxqu-5lJlkR8LYFMHUeXh9YEbdvCFI+ scenes-other-onboarding-shared-wizard-cloud-run--run-it-yourself--dark:+ hash: v1.k794b7964.c342ae6e7d6cbb05a01a9c8f6de0cc356aa9951d8541df40b34717d88dd142b3.Ivg2GWt6-i4caJOyc9Ack1SujpDKAIceZbZGjKFRn30+ scenes-other-onboarding-shared-wizard-cloud-run--run-it-yourself--light:+ hash: v1.k794b7964.6929d887dd4bcc9ac0c6fcc32e16d829771b0f97f38af905b7e62752c0b39a97.p5weyrIGjeKhnV6FuarEp-O82xPcQjs8cKYuLGLiEzc+ scenes-other-onboarding-shared-wizard-sync-card--all-states--dark:+ hash: v1.k794b7964.c2680b2e5066715a5caf292f6c2f62453c11ef9efba55da9447b9c7e045d29b4.OHXSrZvJDQRwp3-m3pMUP78D1ncOUJZniMHLEgebdhI+ scenes-other-onboarding-shared-wizard-sync-card--all-states--light:+ hash: v1.k794b7964.ad65b946a5b7047aca4d2dd00a20402b9a39d27af424b9f6a1efe9e765f1ffe9.2iLK2CGn5yzUsqr994YZBAGtzyIw7BfxmA_knJ3NSDM+ scenes-other-onboarding-shared-wizard-sync-card--cloud-keeping-ci-green--dark:+ hash: v1.k794b7964.fba9c3af456f60a00dec760305609433d1d8ffb609f1573352f71cb29f1fa6b2.2tmy7T0O1t2rw1SYTOXCMCePVPleYZWjuUnc4EU5a7Q+ scenes-other-onboarding-shared-wizard-sync-card--cloud-keeping-ci-green--light:+ hash: v1.k794b7964.5f4e8d2dc89a2d72257ff2f0d8f31037586de10147d2afb4258b51393dd2422e.UalM3WZh4Z42LDzofIc770L1bL-I3--5yYoPyHkE_rw+ scenes-other-onboarding-shared-wizard-sync-card--cloud-wizard-running--dark:+ hash: v1.k794b7964.c69534afe39d0311b0ed3247beb145b94381706a25f2e6c7b5d3415c87564375.0VCSVCtYrJPx_h_nck6OJYWoF1WYaitbX1wtcql9JUA+ scenes-other-onboarding-shared-wizard-sync-card--cloud-wizard-running--light:+ hash: v1.k794b7964.0cfae6b396d23d4bf84998b078b2bc21d231cff6ca91c6ad72287015ffbc3612.Nqks6pgFbq51kBcq0GujrhNTSnl__D3lqAVAdBvfSaQ+ scenes-other-onboarding-shared-wizard-sync-card--completed--dark:+ hash: v1.k794b7964.cbe10b004d48825cb5d32c97202005cfd962aa87bce2b10012be22db03d25d22.HqoMOp0OoJZqLjwfHXRn13XRvwdOFObzdPKfijwaWLY+ scenes-other-onboarding-shared-wizard-sync-card--completed--light:+ hash: v1.k794b7964.466de6282ec983ff5917df90ea8d0e65106e91957af246554375d8ea140b22f5.Nn7X9ZeY0nRHXoYWbI7DphrUf5qfvB-31Pr8bn-a9LQ+ scenes-other-onboarding-shared-wizard-sync-card--completed-local--dark:+ hash: v1.k794b7964.33d722e02d5a53770da3e3d9358fae107fe29d3cdb98f8dc7945f4f6e82dbfb2.t7QGs-4jsBwmqsmcGHK7eW33QvNrDQg6Ph9CeN5Hy4o+ scenes-other-onboarding-shared-wizard-sync-card--completed-local--light:+ hash: v1.k794b7964.8f248577fa64ea554f49153a5e139bc874561111328e10f7fb94ae55f6f31d2e.TW1BWApDo6cYwwv5TfISjmQWk1XeY-gQr-rFe3kntpg+ scenes-other-onboarding-shared-wizard-sync-card--connecting--dark:+ hash: v1.k794b7964.61398434096848c5eb49dc43a6649548981357049ad0e237bee837e83da9eaf7.wPw2Z4LDdDur-vsryi8JhcHJ-LFpgwc1rVX6rmn1Ng0+ scenes-other-onboarding-shared-wizard-sync-card--connecting--light:+ hash: v1.k794b7964.00de83bd008d8ea2c3020e7c09d2acde3da28546225c780c6df558ce588403bf.GI2el38jH7WJgGOjVlTOEppP2tfVFQIlutUsIDe9S58+ scenes-other-onboarding-shared-wizard-sync-card--failed--dark:+ hash: v1.k794b7964.0699d0268f15fd6d9502d0642c901b5d233088e66dae63e4529bf8dfad525932.hZeKlAlNg4bCEKbgqL48EJtg3Os2FKEmfFx0aQho69g+ scenes-other-onboarding-shared-wizard-sync-card--failed--light:+ hash: v1.k794b7964.50b5fa9355ae6176715bf17f02954d776dbcf74ed53ba5cb084f7272aa6334f0.0Gs7PPLNlQ8aUC47bK5rAgtYKWhs8ZTzxUl-Xpqobvo+ scenes-other-onboarding-shared-wizard-sync-card--local-running--dark:+ hash: v1.k794b7964.8ebd0fb0b9db1f2cc68bcb63d890a44003403e27688a938e5cb04fbffb3b5d5e.aKxLz7jngQZcJL6b0nrArk3V-pDEoGNoPsYUiGbIYy4+ scenes-other-onboarding-shared-wizard-sync-card--local-running--light:+ hash: v1.k794b7964.644de0941a464befbdd1c1173307918762ec7bf580d08b6bb73e0170da71ab57.roPN1jIIWT47y5Xh3Gluqd744nCUVhJkfniX1oq__3M+ scenes-other-onboarding-shared-wizard-sync-card--playground--dark:+ hash: v1.k794b7964.c69534afe39d0311b0ed3247beb145b94381706a25f2e6c7b5d3415c87564375.ViSw0_amXLmDYynCEuR_kgnY5Ncm4ULveglgIJoTIaU+ scenes-other-onboarding-shared-wizard-sync-card--playground--light:+ hash: v1.k794b7964.0cfae6b396d23d4bf84998b078b2bc21d231cff6ca91c6ad72287015ffbc3612.G64MtMVMRObRn64tStKU_8edvGJThXVEEXPHQhxtMOYscenes-other-org-member-invites--current-user-is-admin--dark:hash: v1.k794b7964.a513d2d2902b9bed180ef998cfa04a5e291f1cc8072d67739072199cf25debec.Ubcb2mL9HqKazuyRseAkOQVNa1J9hrioFTBZpVnE8PEscenes-other-org-member-invites--current-user-is-admin--light:diff --git a/frontend/src/layout/panel-layout/InstallationStatusNavButton.tsx b/frontend/src/layout/panel-layout/InstallationStatusNavButton.tsxindex f45939ee4104..73513e632b41 100644--- a/frontend/src/layout/panel-layout/InstallationStatusNavButton.tsx+++ b/frontend/src/layout/panel-layout/InstallationStatusNavButton.tsx@@ -72,7 +72,7 @@ export function InstallationStatusNavButton({ iconOnly = false }: { iconOnly?: bconst sidebarEnabled = useFeatureFlag('ONBOARDING_WIZARD_SIDEBAR', 'test')// Gate BEFORE mounting any logic: the inner component mounts the session detector (directly and// via installationStatusNavLogic's connect), whose afterMount starts a 60s REST poll. Flag-off- // users must not pay that traffic (INC-886 pattern, mirrors WizardProgressFab).+ // users must not pay that traffic (INC-886 pattern, mirrors WizardSyncLocalGate).if (!sidebarEnabled) {return null}diff --git a/frontend/src/lib/utils/eventUsageLogic.ts b/frontend/src/lib/utils/eventUsageLogic.tsindex b9d8db8409d0..5feaea97adb1 100644--- a/frontend/src/lib/utils/eventUsageLogic.ts+++ b/frontend/src/lib/utils/eventUsageLogic.ts@@ -982,8 +982,8 @@ export const eventUsageLogic = kea<eventUsageLogicType>([reportBillingUsageInteraction: (properties: BillingUsageInteractionProps) => ({ properties }),reportBillingSpendInteraction: (properties: BillingUsageInteractionProps) => ({ properties }),reportSDKSelected: (sdk: SDK) => ({ sdk }),- // Setup wizard sync (CLI ↔ app) funnel. Fired from the onboarding install step's- // progress tracker; guards for "once per session" live in that logic.+ // Setup wizard sync (CLI ↔ app) funnel. Fired from the Installation layer+ // (installationProgressLogic); guards for "once per session" live in that logic.reportWizardSyncSessionDetected: (props: {workflowId: stringskillId: string@@ -998,18 +998,6 @@ export const eventUsageLogic = kea<eventUsageLogicType>([completedTaskCount: numberelapsedSeconds: number}) => props,- reportWizardSyncDismissed: (props: {- workflowId: string- skillId?: string- outcome: string- elapsedSeconds: number- }) => props,- reportWizardSyncProgressExpanded: (props: {- workflowId?: string- skillId?: string- displayState: string- progressPct: number- }) => props,reportAccountOwnerClicked: ({ name, email }: { name: string; email: string }) => ({ name, email }),// revenue analyticsreportRevenueAnalyticsViewed: (delay?: number) => ({ delay }),@@ -2380,22 +2368,6 @@ export const eventUsageLogic = kea<eventUsageLogicType>([elapsed_seconds: elapsedSeconds,})},- reportWizardSyncDismissed: ({ workflowId, skillId, outcome, elapsedSeconds }) => {- posthog.capture('setup wizard sync dismissed', {- workflow_id: workflowId,- skill_id: skillId,- outcome,- elapsed_seconds: elapsedSeconds,- })- },- reportWizardSyncProgressExpanded: ({ workflowId, skillId, displayState, progressPct }) => {- posthog.capture('setup wizard sync progress expanded', {- workflow_id: workflowId,- skill_id: skillId,- display_state: displayState,- progress_pct: progressPct,- })- },// command barreportCommandBarStatusChanged: ({ status }) => {posthog.capture('command bar status changed', { status })diff --git a/frontend/src/scenes/onboarding/Onboarding.stories.tsx b/frontend/src/scenes/onboarding/Onboarding.stories.tsxindex 8b4f2ef6f2d6..663bb3a047a2 100644--- a/frontend/src/scenes/onboarding/Onboarding.stories.tsx+++ b/frontend/src/scenes/onboarding/Onboarding.stories.tsx@@ -18,7 +18,7 @@ import { OnboardingStepKey } from '~/types'import { onboardingLogic } from './legacy/onboardingLogic'const meta: Meta = {- title: 'Scenes-Other/Onboarding',+ title: 'Scenes-Other/Onboarding/Legacy',parameters: {layout: 'fullscreen',viewMode: 'story',diff --git a/frontend/src/scenes/onboarding/legacy/productSelection/ProductSelection.stories.tsx b/frontend/src/scenes/onboarding/legacy/productSelection/ProductSelection.stories.tsxindex 0a25a5886163..828b871eb1bf 100644--- a/frontend/src/scenes/onboarding/legacy/productSelection/ProductSelection.stories.tsx+++ b/frontend/src/scenes/onboarding/legacy/productSelection/ProductSelection.stories.tsx@@ -9,7 +9,7 @@ import preflightJson from '~/mocks/fixtures/_preflight.json'const meta: Meta = {component: App,- title: 'Scenes-Other/Onboarding/Product Selection',+ title: 'Scenes-Other/Onboarding/Legacy/Product Selection',parameters: {layout: 'fullscreen',viewMode: 'story',diff --git a/frontend/src/scenes/onboarding/legacy/sdks/OnboardingInstallStep/WizardInstallStep/WizardInstallStep.stories.tsx b/frontend/src/scenes/onboarding/legacy/sdks/OnboardingInstallStep/WizardInstallStep/WizardInstallStep.stories.tsxindex 6154c7459680..6d34ebc9d314 100644--- a/frontend/src/scenes/onboarding/legacy/sdks/OnboardingInstallStep/WizardInstallStep/WizardInstallStep.stories.tsx+++ b/frontend/src/scenes/onboarding/legacy/sdks/OnboardingInstallStep/WizardInstallStep/WizardInstallStep.stories.tsx@@ -83,7 +83,7 @@ const TASK_RUN_STREAM_BODY = [].join('')const meta: Meta = {- title: 'Scenes-Other/Onboarding/Legacy Install Step',+ title: 'Scenes-Other/Onboarding/Legacy/Install Step',parameters: {layout: 'fullscreen',viewMode: 'story',diff --git a/frontend/src/scenes/onboarding/legacy/sdks/OnboardingInstallStep/WizardInstallStep/index.tsx b/frontend/src/scenes/onboarding/legacy/sdks/OnboardingInstallStep/WizardInstallStep/index.tsxindex c13a124f2234..902aff955020 100644--- a/frontend/src/scenes/onboarding/legacy/sdks/OnboardingInstallStep/WizardInstallStep/index.tsx+++ b/frontend/src/scenes/onboarding/legacy/sdks/OnboardingInstallStep/WizardInstallStep/index.tsx@@ -8,6 +8,10 @@ import { OnboardingStepKey, type SDK } from '~/types'import { onboardingEventUsageLogic } from '../../../../onboardingEventUsageLogic'import { activeCloudRunLogic } from '../../../../shared/wizard-sync/activeCloudRunLogic'+import {+ InstallationProgressView,+ useLocalWizardRunActive,+} from '../../../../shared/wizard-sync/InstallationProgressView'import { WizardCommandBlock } from '../../../../shared/wizard-sync/WizardCommandBlock'import { WizardInstallOptions } from '../../../../shared/wizard-sync/WizardInstallOptions'import { OnboardingStep } from '../../../OnboardingStep'@@ -16,7 +20,6 @@ import { SDKGrid } from '../SDKGrid'import { SDKInstructionsModal } from '../SDKInstructionsModal'import { VariantProps } from '../types'import { wizardInstallStepLogic } from '../wizardInstallStepLogic'-import { WizardProgressTracker, useWizardTakeoverActive } from '../WizardProgressTracker'import { WizardInstallIntro } from './WizardInstallIntro'// The shared cloud/local switcher wrapped with legacy's own command block and instrumentation. An@@ -74,28 +77,30 @@ function WizardInstallStepStatic(props: VariantProps): JSX.Element {}function WizardInstallStepWithSync(props: VariantProps): JSX.Element {- const isTakeoverActive = useWizardTakeoverActive()+ const isLocalRunActive = useLocalWizardRunActive()// See WizardInstallStepStatic: an existing handle renders regardless of the experiment arm.const { activeCloudRun } = useValues(activeCloudRunLogic)// Once the wizard is in flight (cloud or local), trust it — installation events aren't required// to unblock Continue.const continueDisabledReason =- isTakeoverActive || activeCloudRun || props.installationComplete ? undefined : 'Installation is not complete'+ isLocalRunActive || activeCloudRun || props.installationComplete ? undefined : 'Installation is not complete'return (<WizardInstallShellcontinueDisabledReason={continueDisabledReason}- showSkip={!props.installationComplete && !isTakeoverActive && !activeCloudRun}+ showSkip={!props.installationComplete && !isLocalRunActive && !activeCloudRun}props={props}>- {/* A cloud run wins over the local tracker: the cloud wizard posts to the same session- stream, so rendering both would show the same run twice. The run's progress renders- inside LegacyInstallOptions (WizardCloudRunBlock pins to it). */}+ {/* A cloud run wins over the local run view: the cloud wizard posts to the same session+ stream, so rendering both would show the same run twice. The cloud run's progress+ renders inside LegacyInstallOptions (WizardCloudRunBlock pins to it). */}{activeCloudRun ? (<div className="max-w-xl mx-auto"><LegacyInstallOptions /></div>- ) : isTakeoverActive ? (- <WizardProgressTracker />+ ) : isLocalRunActive ? (+ <div className="max-w-xl mx-auto">+ <InstallationProgressView mode="local" />+ </div>) : (<><WizardInstallIntro />diff --git a/frontend/src/scenes/onboarding/legacy/sdks/OnboardingInstallStep/WizardProgressFab/ExpandedDetails.tsx b/frontend/src/scenes/onboarding/legacy/sdks/OnboardingInstallStep/WizardProgressFab/ExpandedDetails.tsxdeleted file mode 100644index 2fc47ca848bb..000000000000--- a/frontend/src/scenes/onboarding/legacy/sdks/OnboardingInstallStep/WizardProgressFab/ExpandedDetails.tsx+++ /dev/null@@ -1,39 +0,0 @@-import { Spinner } from 'lib/lemon-ui/Spinner'--import { TaskRow } from './TaskRow'--/**- * Drops below the FAB header when the user expands the card. Surfaces a short- * explainer plus the live task list with per-task elapsed time and simulated- * progress bars.- */-export function ExpandedDetails({- tasks,- taskStartedAt,- now,-}: {- tasks: Array<{ id: string; title: string; status: string }>- taskStartedAt: Record<string, number>- now: number-}): JSX.Element {- return (- <div className="border-t border-border px-3 py-3 space-y-3">- <div className="text-xs text-muted">- Close the tab or keep exploring — the wizard runs in the background and leaves a report when it's- done.- </div>- {tasks.length === 0 ? (- <div className="text-xs text-muted flex items-center gap-2">- <Spinner textColored speed="0.9s" />- <span>Analyzing your project…</span>- </div>- ) : (- <ul className="m-0 p-0 list-none space-y-1.5">- {tasks.map((task) => (- <TaskRow key={task.id} task={task} startedAtMs={taskStartedAt[task.id]} nowMs={now} />- ))}- </ul>- )}- </div>- )-}diff --git a/frontend/src/scenes/onboarding/legacy/sdks/OnboardingInstallStep/WizardProgressFab/ProgressRing.tsx b/frontend/src/scenes/onboarding/legacy/sdks/OnboardingInstallStep/WizardProgressFab/ProgressRing.tsxdeleted file mode 100644index 766d1ebdba36..000000000000--- a/frontend/src/scenes/onboarding/legacy/sdks/OnboardingInstallStep/WizardProgressFab/ProgressRing.tsx+++ /dev/null@@ -1,111 +0,0 @@-import { type DisplayState } from '../wizardProgressTrackerLogic'-import { ringToneClass } from './helpers'--const RING_SIZE = 44-const RING_STROKE = 4-const RING_RADIUS = (RING_SIZE - RING_STROKE) / 2-const RING_CIRCUMFERENCE = 2 * Math.PI * RING_RADIUS--/**- * Circular progress dial for the FAB header. Renders an indeterminate spin- * while connecting or before any tasks arrive, otherwise fills clockwise from- * 12 o'clock. The center glyph (`%`, `✓`, `✗`, blank) is delegated to- * {@link RingCenter}.- */-export function ProgressRing({- progress,- state,- hasTasks,-}: {- progress: number- state: DisplayState- hasTasks: boolean-}): JSX.Element {- const isIndeterminate = state === 'connecting' || (state === 'running' && !hasTasks)- const dashOffset = RING_CIRCUMFERENCE * (1 - progress / 100)- const toneClass = ringToneClass(state)-- return (- <div className="wizard-fab-ring relative shrink-0 flex items-center justify-center">- <svg width={RING_SIZE} height={RING_SIZE} viewBox={`0 0 ${RING_SIZE} ${RING_SIZE}`}>- <circle- cx={RING_SIZE / 2}- cy={RING_SIZE / 2}- r={RING_RADIUS}- fill="none"- stroke="currentColor"- className="text-border"- strokeWidth={RING_STROKE}- />- {isIndeterminate ? (- <g className="wizard-fab-ring-spin">- <circle- cx={RING_SIZE / 2}- cy={RING_SIZE / 2}- r={RING_RADIUS}- fill="none"- stroke="currentColor"- className={toneClass}- strokeWidth={RING_STROKE}- strokeLinecap="round"- strokeDasharray={`${RING_CIRCUMFERENCE * 0.25} ${RING_CIRCUMFERENCE}`}- transform={`rotate(-90 ${RING_SIZE / 2} ${RING_SIZE / 2})`}- />- </g>- ) : (- <circle- cx={RING_SIZE / 2}- cy={RING_SIZE / 2}- r={RING_RADIUS}- fill="none"- stroke="currentColor"- className={`wizard-fab-ring-progress ${toneClass}`}- strokeWidth={RING_STROKE}- strokeLinecap="round"- strokeDasharray={RING_CIRCUMFERENCE}- strokeDashoffset={dashOffset}- transform={`rotate(-90 ${RING_SIZE / 2} ${RING_SIZE / 2})`}- />- )}- </svg>- <span className="absolute inset-0 flex items-center justify-center text-[11px] font-semibold tabular-nums">- <RingCenter state={state} progress={progress} hasTasks={hasTasks} toneClass={toneClass} />- </span>- </div>- )-}--/**- * Center glyph for the {@link ProgressRing}. Private to this file because it- * only makes sense in conjunction with the ring's color + state semantics.- */-function RingCenter({- state,- progress,- hasTasks,- toneClass,-}: {- state: DisplayState- progress: number- hasTasks: boolean- toneClass: string-}): JSX.Element {- if (state === 'completed') {- return (- <span className={toneClass} aria-hidden>- ✓- </span>- )- }- if (state === 'error') {- return (- <span className={toneClass} aria-hidden>- ✗- </span>- )- }- if (state === 'connecting' || !hasTasks) {- return <span aria-hidden />- }- return <span className={toneClass}>{`${progress}%`}</span>-}diff --git a/frontend/src/scenes/onboarding/legacy/sdks/OnboardingInstallStep/WizardProgressFab/TaskRow.tsx b/frontend/src/scenes/onboarding/legacy/sdks/OnboardingInstallStep/WizardProgressFab/TaskRow.tsxdeleted file mode 100644index 055a5dfdecbc..000000000000--- a/frontend/src/scenes/onboarding/legacy/sdks/OnboardingInstallStep/WizardProgressFab/TaskRow.tsx+++ /dev/null@@ -1,54 +0,0 @@-import { simulatedTaskFraction } from './helpers'-import { TaskStatusIcon } from './TaskStatusIcon'--/**- * Single row in the FAB's expanded task list — status icon + title + per-task- * elapsed seconds and a simulated progress bar for `in_progress` rows.- *- * The progress bar uses {@link simulatedTaskFraction} so it's always moving- * between backend updates without ever claiming "done" on its own.- */-export function TaskRow({- task,- startedAtMs,- nowMs,-}: {- task: { id: string; title: string; status: string }- startedAtMs: number | undefined- nowMs: number-}): JSX.Element {- const isActive = task.status === 'in_progress'- const elapsedS = isActive && startedAtMs ? Math.max(0, Math.floor((nowMs - startedAtMs) / 1000)) : null- const titleClass =- task.status === 'completed' || task.status === 'canceled'- ? 'line-through text-muted'- : task.status === 'failed'- ? 'text-brand-red'- : 'text-default'-- const simPct = isActive ? Math.round(simulatedTaskFraction(startedAtMs, nowMs) * 100) : 0-- return (- <li className="flex items-start gap-2 text-xs">- <span className="mt-0.5">- <TaskStatusIcon status={task.status} />- </span>- <div className="flex-1 min-w-0">- <div className="flex items-center gap-2">- <span className={`flex-1 min-w-0 truncate ${titleClass}`}>{task.title}</span>- {elapsedS !== null ? (- <span className="text-[10px] text-muted tabular-nums shrink-0">{elapsedS}s</span>- ) : null}- </div>- {isActive ? (- <div className="h-0.5 bg-bg-3000 mt-1 relative overflow-hidden rounded-full">- <div- className="absolute inset-y-0 left-0 bg-brand-red transition-[width] duration-1000 ease-out"- style={{ width: `${simPct}%` }}- />- </div>- ) : null}- </div>- </li>- )-}diff --git a/frontend/src/scenes/onboarding/legacy/sdks/OnboardingInstallStep/WizardProgressFab/TaskStatusIcon.tsx b/frontend/src/scenes/onboarding/legacy/sdks/OnboardingInstallStep/WizardProgressFab/TaskStatusIcon.tsxdeleted file mode 100644index ec64a6a6eccf..000000000000--- a/frontend/src/scenes/onboarding/legacy/sdks/OnboardingInstallStep/WizardProgressFab/TaskStatusIcon.tsx+++ /dev/null@@ -1,19 +0,0 @@-import { Spinner } from 'lib/lemon-ui/Spinner'--/**- * Tiny status glyph used in the FAB's expanded task list. The in-progress case- * gets the live Lemon Spinner; terminal statuses use Unicode symbols sized to- * the same 14px column.- */-export function TaskStatusIcon({ status }: { status: string }): JSX.Element {- if (status === 'in_progress') {- return (- <span className="inline-flex items-center justify-center w-3.5 shrink-0 text-brand-red">- <Spinner textColored speed="0.9s" />- </span>- )- }- const symbol = status === 'completed' ? '✓' : status === 'failed' ? '✗' : status === 'canceled' ? '⊘' : '☐'- const color = status === 'completed' ? 'text-success' : status === 'failed' ? 'text-brand-red' : 'text-muted'- return <span className={`inline-block w-3.5 text-center shrink-0 ${color}`}>{symbol}</span>-}diff --git a/frontend/src/scenes/onboarding/legacy/sdks/OnboardingInstallStep/WizardProgressFab/WizardProgressFab.scss b/frontend/src/scenes/onboarding/legacy/sdks/OnboardingInstallStep/WizardProgressFab/WizardProgressFab.scssdeleted file mode 100644index 804c5d1f34e0..000000000000--- a/frontend/src/scenes/onboarding/legacy/sdks/OnboardingInstallStep/WizardProgressFab/WizardProgressFab.scss+++ /dev/null@@ -1,61 +0,0 @@-.wizard-fab-ring {- width: 44px;- height: 44px;-}--.wizard-fab-ring-progress {- transition: stroke-dashoffset 600ms ease-out;-}--@keyframes WizardFab__slideIn {- from {- opacity: 0;- transform: translateY(12px);- }-- to {- opacity: 1;- transform: translateY(0);- }-}--.wizard-fab-slide-in {- animation: WizardFab__slideIn 320ms ease-out both;-}--@keyframes WizardFab__ringSpin {- to {- transform: rotate(360deg);- }-}--.wizard-fab-ring-spin {- transform-box: fill-box;- transform-origin: 50%;- animation: WizardFab__ringSpin 1.2s linear infinite;-}--@keyframes WizardFab__sparkle {- 0%,- 60%,- 100% {- opacity: 1;- transform: scale(1) rotate(0deg);- }-- 70% {- opacity: 0.4;- transform: scale(0.85) rotate(-8deg);- }-- 85% {- opacity: 1;- transform: scale(1.1) rotate(8deg);- }-}--.wizard-fab-sparkle {- color: #b285ff;- transform-origin: center;- animation: WizardFab__sparkle 3.4s ease-in-out infinite;-}diff --git a/frontend/src/scenes/onboarding/legacy/sdks/OnboardingInstallStep/WizardProgressFab/WizardProgressFab.stories.tsx b/frontend/src/scenes/onboarding/legacy/sdks/OnboardingInstallStep/WizardProgressFab/WizardProgressFab.stories.tsxdeleted file mode 100644index aeb27bb67994..000000000000--- a/frontend/src/scenes/onboarding/legacy/sdks/OnboardingInstallStep/WizardProgressFab/WizardProgressFab.stories.tsx+++ /dev/null@@ -1,402 +0,0 @@-import { Meta, StoryFn } from '@storybook/react'-import { useMountedLogic } from 'kea'-import { useEffect, useRef } from 'react'--import { FEATURE_FLAGS } from 'lib/constants'--import { mswDecorator } from '~/mocks/browser'--import { wizardSessionStreamLogic } from 'products/wizard/frontend/wizardSessionStreamLogic'--import { WizardProgressFab } from '.'-import { wizardActiveSessionDetectorLogic } from '../../../../shared/wizard-sync/wizardActiveSessionDetectorLogic'-import { WIZARD_SKILL_IDS } from '../../skillBadge'-import { wizardProgressTrackerLogic } from '../wizardProgressTrackerLogic'--const WORKFLOW_ID = 'posthog-integration'-const DEFAULT_SKILL_ID = 'laravel'--const SKILL_OPTIONS: string[] = [...WIZARD_SKILL_IDS, 'unknown-skill']--interface StoryArgs {- skillId: string-}--if (typeof window !== 'undefined' && !(window as any).__wizardEventSourceStubbed) {- class StubEventSource {- readyState = 0- url = ''- withCredentials = false- onopen: ((ev: Event) => void) | null = null- onmessage: ((ev: MessageEvent) => void) | null = null- onerror: ((ev: Event) => void) | null = null- addEventListener(): void {}- removeEventListener(): void {}- dispatchEvent(): boolean {- return false- }- close(): void {}- static readonly CONNECTING = 0- static readonly OPEN = 1- static readonly CLOSED = 2- }- ;(window as any).EventSource = StubEventSource- ;(window as any).__wizardEventSourceStubbed = true-}--type TaskStatus = 'pending' | 'in_progress' | 'completed' | 'failed' | 'canceled'--type WizardSessionFixture = {- session_id: string- team_id: number- workflow_id: string- skill_id: string- started_at: string- run_phase: 'idle' | 'running' | 'completed' | 'error'- tasks: Array<{- id: string- title: string- status: TaskStatus- }>- event_plan: unknown | null- error: { type: string; message: string } | null- created_at: string- updated_at: string- is_stale: boolean-}--const SAMPLE_TASKS = [- { id: '1', title: 'Install posthog-node package' },- { id: '2', title: 'Set up PostHog environment variables' },- { id: '3', title: 'Create PostHog client module' },- { id: '4', title: 'Insert event tracking in API handlers' },- { id: '5', title: 'Wrapping up' },-] as const--function buildTasks(statuses: TaskStatus[]): WizardSessionFixture['tasks'] {- return SAMPLE_TASKS.map((t, i) => ({ ...t, status: statuses[i] ?? 'pending' }))-}--function makeSession(overrides: Partial<WizardSessionFixture> = {}): WizardSessionFixture {- const skill_id = overrides.skill_id ?? DEFAULT_SKILL_ID- const startedAt = new Date(Date.now() - 74_000).toISOString()- return {- session_id: `${WORKFLOW_ID}-${skill_id}-${startedAt}`,- team_id: 1,- workflow_id: WORKFLOW_ID,- skill_id,- started_at: startedAt,- run_phase: 'running',- tasks: [],- event_plan: null,- error: null,- created_at: startedAt,- updated_at: new Date().toISOString(),- is_stale: false,- ...overrides,- }-}--function withSession(buildSession: (skillId: string) => WizardSessionFixture | null): StoryFn<StoryArgs> {- return function StoryRender({ skillId }) {- useMountedLogic(wizardActiveSessionDetectorLogic)- useMountedLogic(wizardProgressTrackerLogic)- const streamLogic = wizardSessionStreamLogic({ workflowId: WORKFLOW_ID })- useMountedLogic(streamLogic)-- useEffect(() => {- streamLogic.actions.connectionOpened()- const session = buildSession(skillId)- if (session) {- streamLogic.actions.sessionUpdated(session as any)- // Explicitly flip the gate so visual-regression snapshots don't- // race the tracker's subscription firing path.- wizardActiveSessionDetectorLogic.actions.markActive()- }- // eslint-disable-next-line react-hooks/exhaustive-deps- }, [skillId])-- return (- <SceneFrame>- <WizardProgressFab />- </SceneFrame>- )- }-}--const meta: Meta<StoryArgs> = {- title: 'Scenes-Other/Onboarding/Wizard Progress FAB',- parameters: {- layout: 'fullscreen',- viewMode: 'story',- // FAB is flag-gated; storybook's useFeatureFlag treats any truthy value as "on".- featureFlags: [FEATURE_FLAGS.ONBOARDING_WIZARD_SYNC],- // The tracker ticks `now` at 1Hz; freezing the clock keeps the relative-time- // sub-line stable across snapshot passes.- mockDate: '2024-05-01 12:00:00',- testOptions: {- // Snapshot light theme only. The test-runner takes a `light` then a `dark`- // screenshot per story by toggling `body[theme]`; the FAB mounts live kea- // logics (SSE tracker + jittered REST detector) whose background timers can- // re-render mid-capture, racing that toggle and occasionally landing a- // wrong-theme screenshot (the `--light` snapshot captured in dark — flake- // verification, 2026-06). Dropping the dark pass removes the only source of- // a dark `body[theme]`, so the remaining light snapshot is deterministic.- // Dark-mode rendering is still exercisable manually via the Storybook- // theme toolbar.- skipDarkMode: true,- },- },- decorators: [- // The active-session detector polls `sessions/latest/` after a randomized- // (0–30s) jitter on mount. With no handler that fetch hangs, so the- // test-runner's `networkidle` wait never settles whenever the jittered poll- // lands inside the snapshot window — it times out at 60s, retries, and lands- // a wrong-theme screenshot. A 204 (no run) resolves the poll instantly so the- // page reaches networkidle every pass; the visible FAB state is still driven- // imperatively by each story via `markActive()` + `sessionUpdated()`.- mswDecorator({- get: {- '/api/projects/:projectId/wizard/sessions/latest/': () => [204, ''],- },- }),- ],- args: { skillId: DEFAULT_SKILL_ID },- argTypes: {- skillId: {- control: { type: 'select' },- options: SKILL_OPTIONS,- description: 'Wizard skill_id — drives the session_id and any badge surface.',- },- },-}-export default meta--function SceneFrame({ children }: { children: React.ReactNode }): JSX.Element {- return (- <div className="min-h-screen bg-bg-light text-default px-6 py-10 relative">- <div className="max-w-4xl mx-auto">- <h1 className="text-2xl font-bold mb-1">Onboarding (some later step)</h1>- <p className="text-muted mb-8">- The user has navigated away from the wizard install step. The FAB persists across the rest of the- onboarding flow until the run finishes — click it to jump back to the install step.- </p>- </div>- {children}- </div>- )-}--/** No session — FAB renders nothing. */-export const Hidden: StoryFn<StoryArgs> = withSession(() => null)--/**- * Live session in flight, but the user is on the install step — the inline confirmation- * card has set `panelMounted: true`, so the FAB suppresses itself. Documents the- * "card and FAB never overlap" contract.- */-export const HiddenByPanel: StoryFn<StoryArgs> = function HiddenByPanelStory({ skillId }) {- useMountedLogic(wizardActiveSessionDetectorLogic)- useMountedLogic(wizardProgressTrackerLogic)- const streamLogic = wizardSessionStreamLogic({ workflowId: WORKFLOW_ID })- useMountedLogic(streamLogic)-- useEffect(() => {- streamLogic.actions.connectionOpened()- streamLogic.actions.sessionUpdated(- makeSession({- skill_id: skillId,- run_phase: 'running',- tasks: buildTasks(['completed', 'in_progress', 'pending', 'pending', 'pending']),- }) as any- )- wizardActiveSessionDetectorLogic.actions.markActive()- wizardProgressTrackerLogic.actions.setPanelMounted(true)- return () => wizardProgressTrackerLogic.actions.setPanelMounted(false)- // eslint-disable-next-line react-hooks/exhaustive-deps- }, [skillId])-- return (- <SceneFrame>- <p className="max-w-4xl mx-auto text-sm text-muted italic">- Imagine the install step is rendered here — the confirmation card has flagged itself mounted, so the FAB- stays out of the way. You should see nothing in the corner below.- </p>- </SceneFrame>- )-}--/** Wizard just kicked off, no tasks yet — ring spins (indeterminate). */-export const Analyzing: StoryFn<StoryArgs> = withSession((skillId) =>- makeSession({- skill_id: skillId,- run_phase: 'running',- tasks: [],- })-)--/** Mid-run, ~40% done with a task currently running. */-export const RunningEarly: StoryFn<StoryArgs> = withSession((skillId) =>- makeSession({- skill_id: skillId,- run_phase: 'running',- tasks: buildTasks(['completed', 'completed', 'in_progress', 'pending', 'pending']),- })-)--/** Late mid-run, ~80% done. Demonstrates the ring filling. */-export const RunningLate: StoryFn<StoryArgs> = withSession((skillId) =>- makeSession({- skill_id: skillId,- run_phase: 'running',- tasks: buildTasks(['completed', 'completed', 'completed', 'completed', 'in_progress']),- })-)--/** Reconnecting state: live session mid-run, but the SSE transport just errored. */-export const Connecting: StoryFn<StoryArgs> = function ConnectingStory({ skillId }) {- useMountedLogic(wizardActiveSessionDetectorLogic)- useMountedLogic(wizardProgressTrackerLogic)- const streamLogic = wizardSessionStreamLogic({ workflowId: WORKFLOW_ID })- useMountedLogic(streamLogic)-- useEffect(() => {- streamLogic.actions.connectionOpened()- streamLogic.actions.sessionUpdated(- makeSession({- skill_id: skillId,- run_phase: 'running',- tasks: buildTasks(['completed', 'in_progress', 'pending', 'pending', 'pending']),- }) as any- )- wizardActiveSessionDetectorLogic.actions.markActive()- const id = window.setTimeout(() => {- streamLogic.actions.connectionErrored('EventSource transport error — reconnecting')- }, 50)- return () => window.clearTimeout(id)- // eslint-disable-next-line react-hooks/exhaustive-deps- }, [skillId])-- return (- <SceneFrame>- <WizardProgressFab />- </SceneFrame>- )-}--/** Wizard finished cleanly; green ring + ✓ + dismiss available. */-export const Completed: StoryFn<StoryArgs> = withSession((skillId) =>- makeSession({- skill_id: skillId,- run_phase: 'completed',- tasks: buildTasks(['completed', 'completed', 'completed', 'completed', 'completed']),- })-)--/** Wizard errored; red ring + ✗ + dismiss available. */-export const Errored: StoryFn<StoryArgs> = withSession((skillId) =>- makeSession({- skill_id: skillId,- run_phase: 'error',- tasks: buildTasks(['completed', 'completed', 'failed', 'canceled', 'canceled']),- error: { type: 'TimeoutError', message: 'Anthropic API timed out' },- })-)--/**- * Auto-playing run that mirrors the real-world timeline. Watch the ring fill, the- * shimmer rainbow underneath, and the sub-line update with each task transition.- *- * t=0s session opens (Analyzing — indeterminate ring spin)- * t=4s task 1 in_progress- * t=8s task 1 ✓, task 2 in_progress- * t=12s task 2 ✓, task 3 in_progress- * t=16s task 3 ✓, task 4 in_progress- * t=20s task 4 ✓, task 5 in_progress- * t=24s task 5 ✓, run_phase = completed (green ring + dismiss visible)- */-export const SimulatedRun: StoryFn<StoryArgs> = function SimulatedRunStory({ skillId }) {- useMountedLogic(wizardActiveSessionDetectorLogic)- useMountedLogic(wizardProgressTrackerLogic)- const streamLogic = wizardSessionStreamLogic({ workflowId: WORKFLOW_ID })- useMountedLogic(streamLogic)-- const timersRef = useRef<number[]>([])-- useEffect(() => {- const { actions } = streamLogic- const startedAt = new Date().toISOString()- const base: WizardSessionFixture = {- session_id: `${WORKFLOW_ID}-${skillId}-${startedAt}`,- team_id: 1,- workflow_id: WORKFLOW_ID,- skill_id: skillId,- started_at: startedAt,- run_phase: 'running',- tasks: [],- event_plan: null,- error: null,- created_at: startedAt,- updated_at: startedAt,- is_stale: false,- }-- actions.connectionOpened()- actions.sessionUpdated(base as any)- wizardActiveSessionDetectorLogic.actions.markActive()-- const schedule: Array<{ atMs: number; tasks: TaskStatus[]; phase?: 'running' | 'completed' }> = [- { atMs: 4_000, tasks: ['in_progress', 'pending', 'pending', 'pending', 'pending'] },- { atMs: 8_000, tasks: ['completed', 'in_progress', 'pending', 'pending', 'pending'] },- { atMs: 12_000, tasks: ['completed', 'completed', 'in_progress', 'pending', 'pending'] },- { atMs: 16_000, tasks: ['completed', 'completed', 'completed', 'in_progress', 'pending'] },- { atMs: 20_000, tasks: ['completed', 'completed', 'completed', 'completed', 'in_progress'] },- {- atMs: 24_000,- tasks: ['completed', 'completed', 'completed', 'completed', 'completed'],- phase: 'completed',- },- ]-- timersRef.current = schedule.map(({ atMs, tasks, phase }) =>- window.setTimeout(() => {- actions.sessionUpdated({- ...base,- run_phase: phase ?? 'running',- tasks: buildTasks(tasks),- updated_at: new Date().toISOString(),- } as any)- }, atMs)- )-- return () => {- timersRef.current.forEach((id) => window.clearTimeout(id))- timersRef.current = []- }- // eslint-disable-next-line react-hooks/exhaustive-deps- }, [skillId])-- return (- <SceneFrame>- <WizardProgressFab />- </SceneFrame>- )-}-// Auto-playing timeline: its setTimeout-driven task transitions (which MockDate can't-// freeze) re-render mid-snapshot, so it has no stable reference image — watch it live-// in Storybook instead of asserting on it in visual regression.-SimulatedRun.tags = ['test-skip']--// The FAB-visible stories render a drop-shadowed, rounded card whose right/bottom-// edges rasterize with ~1px sub-pixel jitter between otherwise-identical runs, so at-// the 1% SSIM threshold their snapshots flake intermittently (a different story each-// run — see flake verification). The rendered states stay browsable in Storybook and-// the underlying logic is covered by the unit tests; exclude only the pixel snapshot-// from CI. The empty Hidden / HiddenByPanel states stay snapshotted to lock the "FAB-// suppressed" contract, which is the part the snapshots actually protect.-Analyzing.tags = ['test-skip']-RunningEarly.tags = ['test-skip']-RunningLate.tags = ['test-skip']-Connecting.tags = ['test-skip']-Completed.tags = ['test-skip']-Errored.tags = ['test-skip']diff --git a/frontend/src/scenes/onboarding/legacy/sdks/OnboardingInstallStep/WizardProgressFab/helpers.ts b/frontend/src/scenes/onboarding/legacy/sdks/OnboardingInstallStep/WizardProgressFab/helpers.tsdeleted file mode 100644index 6645a65b94ae..000000000000--- a/frontend/src/scenes/onboarding/legacy/sdks/OnboardingInstallStep/WizardProgressFab/helpers.ts+++ /dev/null@@ -1,70 +0,0 @@-import { type DisplayState } from '../wizardProgressTrackerLogic'--// Characteristic time for the simulated per-task progress curve. The fraction-// asymptotically approaches 0.95 — fast initial fill, then slowing down so it-// never claims "done" until the backend confirms. 45s is close to a typical-// wizard task duration while still moving visibly on short tasks.-export const SIMULATED_TASK_DECAY_SECONDS = 45-export const SIMULATED_TASK_CAP = 0.95--/**- * 0 → 0.95 asymptotic curve from a task's observed start time. Used to keep the- * ring and per-task bars moving while a task is in flight, without any backend- * micro-progress signal. The call site upgrades to 1.0 only once the task- * transitions to `completed`.- */-export function simulatedTaskFraction(startedAtMs: number | undefined, nowMs: number): number {- if (!startedAtMs) {- return 0- }- const elapsedSeconds = Math.max(0, (nowMs - startedAtMs) / 1000)- return Math.min(SIMULATED_TASK_CAP, 1 - Math.exp(-elapsedSeconds / SIMULATED_TASK_DECAY_SECONDS))-}--export function headlineFor(state: DisplayState): string {- switch (state) {- case 'completed':- return 'PostHog is set up'- case 'error':- return 'Wizard hit a snag'- case 'connecting':- return 'Reconnecting…'- default:- return 'PostHog is being installed'- }-}--export function subLineFor(state: DisplayState, currentTask: string | undefined, elapsedSeconds: number): string {- if (state === 'completed') {- return 'tap to see what was set up'- }- if (state === 'error') {- return ''- }- if (state === 'connecting') {- return 'restoring connection to the wizard'- }- const elapsed = formatElapsed(elapsedSeconds)- if (currentTask) {- return `${currentTask} · ${elapsed}`- }- return 'analyzing your project...'-}--/**- * Tailwind text-color class for the ring's accent. The ring uses- * `stroke="currentColor"` on its SVG circles + the center glyph, so the whole- * widget picks up its tone from a single class on the wrapping element.- */-export function ringToneClass(state: DisplayState): string {- if (state === 'completed') {- return 'text-success'- }- return 'text-brand-red'-}--export function formatElapsed(seconds: number): string {- const m = Math.floor(seconds / 60)- const s = seconds % 60- return `${m}:${s.toString().padStart(2, '0')}`-}diff --git a/frontend/src/scenes/onboarding/legacy/sdks/OnboardingInstallStep/WizardProgressFab/index.tsx b/frontend/src/scenes/onboarding/legacy/sdks/OnboardingInstallStep/WizardProgressFab/index.tsxdeleted file mode 100644index 2edae79a9f2f..000000000000--- a/frontend/src/scenes/onboarding/legacy/sdks/OnboardingInstallStep/WizardProgressFab/index.tsx+++ /dev/null@@ -1,141 +0,0 @@-import './WizardProgressFab.scss'--import { useActions, useValues } from 'kea'-import { useState } from 'react'--import { IconChevronDown, IconX } from '@posthog/icons'--import { useFeatureFlag } from 'lib/hooks/useFeatureFlag'-import { eventUsageLogic } from 'lib/utils/eventUsageLogic'--import { wizardActiveSessionDetectorLogic } from '../../../../shared/wizard-sync/wizardActiveSessionDetectorLogic'-import { wizardProgressTrackerLogic } from '../wizardProgressTrackerLogic'-import { ExpandedDetails } from './ExpandedDetails'-import { headlineFor, simulatedTaskFraction, subLineFor } from './helpers'-import { ProgressRing } from './ProgressRing'--export function WizardProgressFab(): JSX.Element | null {- const isSyncEnabled = useFeatureFlag('ONBOARDING_WIZARD_SYNC', 'test')- if (!isSyncEnabled) {- return null- }- return <WizardProgressFabGate />-}--// Gates whether we mount the streaming tracker logic at all. The detector does-// a cheap REST poll and only flips `shouldStream` once it has evidence that a-// wizard run is in flight — so the SSE connection isn't held open for every-// authenticated user just because the flag is on (INC-886).-function WizardProgressFabGate(): JSX.Element | null {- const { shouldStream } = useValues(wizardActiveSessionDetectorLogic)- if (!shouldStream) {- return null- }- return <WizardProgressFabInner />-}--function WizardProgressFabInner(): JSX.Element | null {- const {- displayState,- latestSession,- elapsedSeconds,- dismissed,- panelMounted,- sessionIsCurrent,- taskStartedAt,- now,- } = useValues(wizardProgressTrackerLogic)- const { dismiss } = useActions(wizardProgressTrackerLogic)- const { reportWizardSyncProgressExpanded } = useActions(eventUsageLogic)-- const [expanded, setExpanded] = useState(false)-- if (dismissed || panelMounted || displayState === 'preTakeover' || !sessionIsCurrent) {- return null- }- const tasks = latestSession?.tasks ?? []- const totalCount = tasks.length- const completedCount = tasks.filter((t) => t.status === 'completed').length- const inProgressTask = tasks.find((t) => t.status === 'in_progress')- const currentTask = inProgressTask?.title- // Ring fill = real completed count plus a simulated fraction of the in-progress- // task, so the ring keeps moving between backend updates.- const inProgressFraction = inProgressTask ? simulatedTaskFraction(taskStartedAt[inProgressTask.id], now) : 0- const progressPct = totalCount > 0 ? Math.round(((completedCount + inProgressFraction) / totalCount) * 100) : 0-- const isTerminal = displayState === 'completed' || displayState === 'error'-- return (- <div className="fixed bottom-5 right-5 z-[60] wizard-fab-slide-in">- <div- role="status"- aria-live="polite"- className="relative w-[300px] bg-bg-light rounded-xl shadow-xl shadow-black/15 border border-border overflow-hidden"- >- <button- type="button"- onClick={() => {- const next = !expanded- setExpanded(next)- // Only the expand direction is an intentful "show me the details"- // signal worth tracking; collapsing is just tidying up.- if (next) {- reportWizardSyncProgressExpanded({- workflowId: latestSession?.workflow_id,- skillId: latestSession?.skill_id,- displayState,- progressPct,- })- }- }}- className="w-full text-left flex items-center gap-3 px-3 py-3 hover:bg-bg-3000 transition-colors cursor-pointer"- aria-label={expanded ? 'Collapse wizard details' : 'Expand wizard details'}- aria-expanded={expanded}- >- <ProgressRing- progress={displayState === 'completed' ? 100 : progressPct}- state={displayState}- hasTasks={totalCount > 0}- />- <div className="flex-1 min-w-0 leading-tight">- <div className="flex items-center gap-1.5 text-xs uppercase tracking-wider text-muted font-semibold">- <span>Setup wizard</span>- </div>- <div className="text-sm font-semibold text-default truncate mt-0.5">- {headlineFor(displayState)}- </div>- <div className="text-xs text-muted truncate mt-0.5 tabular-nums">- {subLineFor(displayState, currentTask, elapsedSeconds)}- </div>- </div>- <IconChevronDown- className={`text-base text-muted shrink-0 transition-transform duration-200 ${- expanded ? 'rotate-180' : ''- }`}- aria-hidden- />- </button>- {isTerminal ? (- <button- type="button"- onClick={(e) => {- e.stopPropagation()- dismiss()- }}- aria-label="Dismiss"- className="absolute top-1.5 right-1.5 p-1 rounded-md text-muted hover:text-default hover:bg-bg-3000 transition-colors z-10"- >- <IconX className="text-base" />- </button>- ) : null}- {expanded && (- <div className="grid grid-rows-[1fr]">- <div className="overflow-hidden">- <ExpandedDetails tasks={tasks} taskStartedAt={taskStartedAt} now={now} />- </div>- </div>- )}- </div>- </div>- )-}diff --git a/frontend/src/scenes/onboarding/legacy/sdks/OnboardingInstallStep/WizardProgressTracker/WizardProgressTracker.stories.tsx b/frontend/src/scenes/onboarding/legacy/sdks/OnboardingInstallStep/WizardProgressTracker/WizardProgressTracker.stories.tsxdeleted file mode 100644index 92b959fed4e2..000000000000--- a/frontend/src/scenes/onboarding/legacy/sdks/OnboardingInstallStep/WizardProgressTracker/WizardProgressTracker.stories.tsx+++ /dev/null@@ -1,337 +0,0 @@-import { Meta, StoryFn } from '@storybook/react'-import { useMountedLogic } from 'kea'-import { useEffect } from 'react'--import { IconArrowRight, IconCheckCircle } from '@posthog/icons'-import { LemonButton } from '@posthog/lemon-ui'--import { Logomark } from 'lib/brand'--import { wizardSessionStreamLogic } from 'products/wizard/frontend/wizardSessionStreamLogic'--import { WizardProgressTracker } from '.'-import { WIZARD_SKILL_IDS } from '../../skillBadge'-import { wizardProgressTrackerLogic } from '../wizardProgressTrackerLogic'--const WORKFLOW_ID = 'posthog-integration'-const DEFAULT_SKILL_ID = 'laravel'--/** Every framework the wizard CLI ships, plus a sentinel for the unknown-skill fallback. */-const SKILL_OPTIONS: string[] = [...WIZARD_SKILL_IDS, 'unknown-skill']--interface StoryArgs {- skillId: string-}--/**- * Run phase override for the full-scene story. `connecting` is a derived UI- * state (session is `running` + transport errored) — the rest map 1:1 to the- * session's `run_phase` field.- */-type RunPhaseArg = 'running' | 'connecting' | 'completed' | 'error'-const RUN_PHASE_OPTIONS: RunPhaseArg[] = ['running', 'connecting', 'completed', 'error']--interface FullSceneArgs extends StoryArgs {- runPhase: RunPhaseArg-}--if (typeof window !== 'undefined' && !(window as any).__wizardEventSourceStubbed) {- class StubEventSource {- readyState = 0- url = ''- withCredentials = false- onopen: ((ev: Event) => void) | null = null- onmessage: ((ev: MessageEvent) => void) | null = null- onerror: ((ev: Event) => void) | null = null- addEventListener(): void {}- removeEventListener(): void {}- dispatchEvent(): boolean {- return false- }- close(): void {}- static readonly CONNECTING = 0- static readonly OPEN = 1- static readonly CLOSED = 2- }- ;(window as any).EventSource = StubEventSource- ;(window as any).__wizardEventSourceStubbed = true-}--type WizardSessionFixture = {- session_id: string- team_id: number- workflow_id: string- skill_id: string- started_at: string- run_phase: 'idle' | 'running' | 'completed' | 'error'- tasks: Array<{- id: string- title: string- status: 'pending' | 'in_progress' | 'completed' | 'failed' | 'canceled'- }>- event_plan: unknown | null- error: { type: string; message: string } | null- created_at: string- updated_at: string-}--function makeSession(overrides: Partial<WizardSessionFixture> = {}): WizardSessionFixture {- const skill_id = overrides.skill_id ?? DEFAULT_SKILL_ID- const startedAt = new Date(Date.now() - 30_000).toISOString()- return {- session_id: `${WORKFLOW_ID}-${skill_id}-${startedAt}`,- team_id: 1,- workflow_id: WORKFLOW_ID,- skill_id,- started_at: startedAt,- run_phase: 'running',- tasks: [],- event_plan: null,- error: null,- created_at: startedAt,- updated_at: new Date().toISOString(),- ...overrides,- }-}--function withSession(buildSession: (skillId: string) => WizardSessionFixture | null): StoryFn<StoryArgs> {- return function StoryRender({ skillId }) {- useMountedLogic(wizardProgressTrackerLogic)- const streamLogic = wizardSessionStreamLogic({ workflowId: WORKFLOW_ID })- useMountedLogic(streamLogic)-- useEffect(() => {- streamLogic.actions.connectionOpened()- const session = buildSession(skillId)- if (session) {- streamLogic.actions.sessionUpdated(session as any)- }- // eslint-disable-next-line react-hooks/exhaustive-deps- }, [skillId])-- return (- <SceneFrame>- <WizardProgressTracker />- </SceneFrame>- )- }-}--const meta: Meta<StoryArgs> = {- title: 'Scenes-Other/Onboarding/Wizard Progress Tracker',- parameters: {- layout: 'fullscreen',- viewMode: 'story',- },- args: { skillId: DEFAULT_SKILL_ID },- argTypes: {- skillId: {- control: { type: 'select' },- options: SKILL_OPTIONS,- description: 'Wizard skill_id — drives the badge logo + display name.',- },- },-}-export default meta--function SceneFrame({ children }: { children: React.ReactNode }): JSX.Element {- return (- <div className="min-h-screen bg-bg-light text-default px-6 py-10">- <div className="max-w-4xl mx-auto">- <h1 className="text-2xl font-bold mb-1">Install</h1>- <p className="text-muted mb-8">- Once the wizard session is observed, this confirmation card replaces the install command block. The- live progress lives in the floating FAB.- </p>- <div className="max-w-2xl mx-auto">{children}</div>- </div>- </div>- )-}--/** No session yet — tracker renders nothing (parent shows the command block). */-export const PreTakeover: StoryFn<StoryArgs> = withSession(() => null)--/** Live session in flight — AI-toned confirmation with the skill badge. */-export const Running: StoryFn<StoryArgs> = withSession((skillId) =>- makeSession({ skill_id: skillId, run_phase: 'running' })-)--/** Connection blip while running — same card, sub-line shifts to "restoring connection". */-export const Reconnecting: StoryFn<StoryArgs> = function ReconnectingStory({ skillId }) {- useMountedLogic(wizardProgressTrackerLogic)- const streamLogic = wizardSessionStreamLogic({ workflowId: WORKFLOW_ID })- useMountedLogic(streamLogic)-- useEffect(() => {- streamLogic.actions.connectionOpened()- streamLogic.actions.sessionUpdated(- makeSession({- skill_id: skillId,- run_phase: 'running',- }) as any- )- const id = window.setTimeout(() => {- streamLogic.actions.connectionErrored('EventSource transport error')- }, 50)- return () => window.clearTimeout(id)- // eslint-disable-next-line react-hooks/exhaustive-deps- }, [skillId])-- return (- <SceneFrame>- <WizardProgressTracker />- </SceneFrame>- )-}--/** Run finished cleanly — success card pointing the user at the Continue button. */-export const Completed: StoryFn<StoryArgs> = withSession((skillId) =>- makeSession({ skill_id: skillId, run_phase: 'completed' })-)--/** Run hit an error — error card with type + message + manual-setup fallback. */-export const Errored: StoryFn<StoryArgs> = withSession((skillId) =>- makeSession({- skill_id: skillId,- run_phase: 'error',- error: {- type: 'CompositionError',- message: 'Could not detect a writable .env file. Re-run from the project root and try again.',- },- })-)--/**- * Full install-step scene with the wizard in error state. Mirrors what the user- * actually sees in production: PostHog nav at the top, "Install" page title with- * installation-complete + feature-flag indicators in the actions slot, the error- * confirmation card, the manual-setup escape hatch, and the Next CTA.- *- * Useful for design review — shows the card sized and balanced inside the real- * install-step chrome rather than floating on a bare page.- */-export const FullInstallStepWithError: StoryFn<FullSceneArgs> = function FullInstallStepWithErrorStory({- skillId,- runPhase,-}) {- useMountedLogic(wizardProgressTrackerLogic)- const streamLogic = wizardSessionStreamLogic({ workflowId: WORKFLOW_ID })- useMountedLogic(streamLogic)-- useEffect(() => {- streamLogic.actions.connectionOpened()- // `connecting` is a derived state — the session stays `running` and we drop the- // transport on the floor to flip the displayState selector.- const sessionRunPhase = runPhase === 'connecting' ? 'running' : runPhase- streamLogic.actions.sessionUpdated(- makeSession({- skill_id: skillId,- run_phase: sessionRunPhase,- error:- runPhase === 'error'- ? {- type: 'wizard_error',- message:- 'Could not access the setup resource. This may indicate a version mismatch or a temporary service issue. Please try again, or check the documentation: https://posthog.com/docs/libraries/node',- }- : null,- }) as any- )- if (runPhase === 'connecting') {- const id = window.setTimeout(() => {- streamLogic.actions.connectionErrored('EventSource transport error — reconnecting')- }, 50)- return () => window.clearTimeout(id)- }- // eslint-disable-next-line react-hooks/exhaustive-deps- }, [skillId, runPhase])-- return (- <FullInstallSceneFrame- stepIndicator={- <span className="inline-flex items-center gap-1.5 text-success font-semibold">- <IconCheckCircle className="text-lg" />- <span>Installation complete</span>- </span>- }- secondaryIndicator={- <div className="px-3 py-1.5 rounded border border-border inline-flex items-center gap-2 text-xs">- <span className="w-2 h-2 rounded-full bg-success" aria-hidden />- <span className="font-semibold">Feature flag called</span>- <span className="text-muted">a few seconds ago</span>- </div>- }- >- <WizardProgressTracker />- <div className="mt-6 text-sm">Need to set up manually?</div>- <div className="mt-12 flex justify-end">- <LemonButton- type="primary"- size="medium"- sideIcon={<IconArrowRight />}- onClick={() => alert('Advance to the next onboarding step')}- >- Next- </LemonButton>- </div>- </FullInstallSceneFrame>- )-}-FullInstallStepWithError.args = { skillId: 'javascript-node', runPhase: 'error' }-FullInstallStepWithError.argTypes = {- runPhase: {- control: { type: 'select' },- options: RUN_PHASE_OPTIONS,- description: 'Wizard phase — drives the banner type (ai / success / error) and copy.',- },-}--/**- * Faux install-step chrome — nav bar, page title, status indicators, content slot.- * Not pixel-perfect; just enough scaffolding to evaluate the card's position and- * rhythm against the rest of the page.- */-function FullInstallSceneFrame({- children,- stepIndicator,- secondaryIndicator,-}: {- children: React.ReactNode- stepIndicator?: React.ReactNode- secondaryIndicator?: React.ReactNode-}): JSX.Element {- return (- <div className="min-h-screen bg-bg-light text-default flex flex-col">- <div className="border-b border-border bg-bg-light px-6 py-3 flex items-center justify-between">- <div className="flex items-center gap-2">- <span className="inline-flex w-8 h-8 items-center justify-center">- <Logomark className="w-8 h-auto" />- </span>- </div>- <div className="flex items-center gap-4 text-sm">- <span className="inline-flex items-center gap-1">- <span>Hedgebox</span>- <span className="text-muted">▾</span>- </span>- <span className="inline-flex items-center gap-2">- <span className="w-7 h-7 rounded-full bg-purple-300 inline-flex items-center justify-center text-xs font-semibold text-purple-900">- J- </span>- <span>Josh</span>- </span>- </div>- </div>- <div className="flex-1 w-full max-w-4xl mx-auto px-6 py-10">- <div className="flex items-center justify-between gap-4 flex-wrap mb-8">- <h1 className="text-3xl font-bold m-0">Install</h1>- <div className="flex items-center gap-4 text-sm">- {stepIndicator}- {secondaryIndicator}- </div>- </div>- {children}- </div>- </div>- )-}diff --git a/frontend/src/scenes/onboarding/legacy/sdks/OnboardingInstallStep/WizardProgressTracker/helpers.ts b/frontend/src/scenes/onboarding/legacy/sdks/OnboardingInstallStep/WizardProgressTracker/helpers.tsdeleted file mode 100644index e4e7efb1abb2..000000000000--- a/frontend/src/scenes/onboarding/legacy/sdks/OnboardingInstallStep/WizardProgressTracker/helpers.ts+++ /dev/null@@ -1,35 +0,0 @@-import { type DisplayState } from '../wizardProgressTrackerLogic'--export function bannerTypeFor(state: DisplayState): 'ai' | 'success' | 'error' {- if (state === 'completed') {- return 'success'- }- if (state === 'error') {- return 'error'- }- return 'ai'-}--export function headlineFor(state: DisplayState): string {- switch (state) {- case 'completed':- return 'PostHog is set up.'- case 'error':- return 'The wizard hit a snag.'- case 'connecting':- return 'Reconnecting to the wizard…'- default:- return "You've got ~10 minutes back. Go explore."- }-}--export function subLineFor(state: DisplayState): string {- switch (state) {- case 'completed':- return 'Check your terminal — the wizard left a report of what it changed. Then hit Next.'- case 'connecting':- return 'restoring connection — your run is still going'- default:- return "Close the tab, poke around the product, grab some water — the wizard keeps going and leaves a report when it's done."- }-}diff --git a/frontend/src/scenes/onboarding/legacy/sdks/OnboardingInstallStep/WizardProgressTracker/index.tsx b/frontend/src/scenes/onboarding/legacy/sdks/OnboardingInstallStep/WizardProgressTracker/index.tsxdeleted file mode 100644index 95e8cbfce127..000000000000--- a/frontend/src/scenes/onboarding/legacy/sdks/OnboardingInstallStep/WizardProgressTracker/index.tsx+++ /dev/null@@ -1,72 +0,0 @@-import { useActions, useValues } from 'kea'-import { useEffect } from 'react'--import { LemonBanner } from '@posthog/lemon-ui'--import { activeCloudRunLogic } from '../../../../shared/wizard-sync/activeCloudRunLogic'-import { wizardProgressTrackerLogic } from '../wizardProgressTrackerLogic'-import { bannerTypeFor, headlineFor, subLineFor } from './helpers'--/**- * Inline confirmation card shown on the install step once a wizard session- * exists. The FAB carries the live progress everywhere else — this card just- * acknowledges the run so the user knows they can keep moving in onboarding.- */-export function WizardProgressTracker(): JSX.Element | null {- const { displayState, latestSession } = useValues(wizardProgressTrackerLogic)- const { setPanelMounted } = useActions(wizardProgressTrackerLogic)- const { setPanelMounted: setSharedPanelMounted } = useActions(activeCloudRunLogic)-- // Claim BOTH inline-panel flags: the legacy one (WizardProgressFab) and the shared one the- // app-wide WizardSyncFab reads — otherwise the FAB shows the same local run next to this card.- // Only while actually rendering something, or a null render would hide the FAB for nothing.- const showing = displayState !== 'preTakeover' && !!latestSession- useEffect(() => {- if (!showing) {- return- }- setPanelMounted(true)- setSharedPanelMounted(true)- return () => {- setPanelMounted(false)- setSharedPanelMounted(false)- }- }, [showing, setPanelMounted, setSharedPanelMounted])-- if (displayState === 'preTakeover' || !latestSession) {- return null- }-- const errorPayload =- displayState === 'error' && latestSession.error && typeof latestSession.error === 'object'- ? (latestSession.error as { type?: string; message?: string })- : null-- return (- <LemonBanner type={bannerTypeFor(displayState)}>- <div className="min-w-0 space-y-1">- <div className="font-semibold">{headlineFor(displayState)}</div>- {displayState === 'error' && errorPayload ? (- <div className="text-xs">- <span className="font-semibold">{errorPayload.type}: </span>- <span className="text-muted">{errorPayload.message}</span>- </div>- ) : (- <div className="text-xs text-muted flex items-center flex-wrap gap-x-2 gap-y-1">- <span>{subLineFor(displayState)}</span>- </div>- )}- </div>- </LemonBanner>- )-}--/**- * Used by the parent variant to decide whether to render the takeover at all.- * Mounts the logic on first call. Returns `true` once we have observed a- * recent session — stale terminal sessions sitting in the DB don't trigger it.- */-export function useWizardTakeoverActive(): boolean {- const { displayState, sessionIsCurrent } = useValues(wizardProgressTrackerLogic)- return displayState !== 'preTakeover' && sessionIsCurrent-}diff --git a/frontend/src/scenes/onboarding/legacy/sdks/OnboardingInstallStep/wizardProgressTrackerLogic.test.ts b/frontend/src/scenes/onboarding/legacy/sdks/OnboardingInstallStep/wizardProgressTrackerLogic.test.tsdeleted file mode 100644index c6cdd712d7d5..000000000000--- a/frontend/src/scenes/onboarding/legacy/sdks/OnboardingInstallStep/wizardProgressTrackerLogic.test.ts+++ /dev/null@@ -1,227 +0,0 @@-import { expectLogic } from 'kea-test-utils'-import posthog from 'posthog-js'--import { initKeaTests } from '~/test/init'--import type { WizardSessionDTOApi } from 'products/wizard/frontend/generated/api.schemas'-import { wizardSessionStreamLogic } from 'products/wizard/frontend/wizardSessionStreamLogic'--import { wizardActiveSessionDetectorLogic } from '../../../shared/wizard-sync/wizardActiveSessionDetectorLogic'-import { resetWizardSyncTelemetryForTests, wizardProgressTrackerLogic } from './wizardProgressTrackerLogic'--// The detector polls a REST endpoint from afterMount and the stream logic builds an SSE-// URL on connect; stub both so mounting the tracker (which connects them) never hits the-// network or a missing import during these tests.-jest.mock('products/wizard/frontend/generated/api', () => ({- wizardSessionsLatestRetrieve: jest.fn().mockResolvedValue(null),- getWizardSessionsStreamRetrieveUrl: jest.fn(() => '/mock/wizard/stream'),-}))--const WORKFLOW_ID = 'posthog-integration'-const ONE_HOUR_MS = 60 * 60 * 1000--// jsdom has no EventSource; the stream logic's connect() constructs one. A no-op stub-// keeps connect() inert so the tracker drives state purely through sessionUpdated().-beforeAll(() => {- ;(global as any).EventSource = class {- static readonly CONNECTING = 0- static readonly OPEN = 1- static readonly CLOSED = 2- readyState = 0- onopen: ((ev: Event) => void) | null = null- onmessage: ((ev: MessageEvent) => void) | null = null- onerror: ((ev: Event) => void) | null = null- close(): void {}- }-})--function makeSession(overrides: Partial<WizardSessionDTOApi> = {}): WizardSessionDTOApi {- const nowIso = new Date().toISOString()- return {- session_id: 'sess-1',- team_id: 997,- workflow_id: WORKFLOW_ID,- skill_id: 'nextjs',- started_at: nowIso,- run_phase: 'running',- tasks: [],- event_plan: null,- error: null,- created_at: nowIso,- updated_at: nowIso,- is_stale: false,- ...overrides,- }-}--describe('wizardProgressTrackerLogic', () => {- let logic: ReturnType<typeof wizardProgressTrackerLogic.build>- let streamLogic: ReturnType<typeof wizardSessionStreamLogic.build>- let detector: ReturnType<typeof wizardActiveSessionDetectorLogic.build>-- beforeEach(() => {- initKeaTests()- ;(posthog.capture as jest.Mock).mockClear()- resetWizardSyncTelemetryForTests()- streamLogic = wizardSessionStreamLogic({ workflowId: WORKFLOW_ID })- detector = wizardActiveSessionDetectorLogic()- logic = wizardProgressTrackerLogic()- logic.mount()- })-- const capturedEvents = (name: string): any[][] =>- (posthog.capture as jest.Mock).mock.calls.filter((call) => call[0] === name)-- afterEach(() => {- logic?.unmount()- })-- it('arms the detector and marks current when a fresh running session arrives', async () => {- await expectLogic(detector, () => {- streamLogic.actions.sessionUpdated(makeSession({ run_phase: 'running' }))- }).toDispatchActions(['markActive'])-- await expectLogic(logic).toMatchValues({ sessionIsCurrent: true })- await expectLogic(detector).toMatchValues({ hasActiveSession: true, shouldStream: true })- })-- it('defers teardown (not immediate) when a running session transitions to completed', async () => {- streamLogic.actions.sessionUpdated(makeSession({ run_phase: 'running' }))- await expectLogic(detector).toMatchValues({ hasActiveSession: true })-- // running -> completed: the prior session was eligible, the new one is terminal,- // so teardown is scheduled behind the grace window rather than firing now.- await expectLogic(detector, () => {- streamLogic.actions.sessionUpdated(makeSession({ run_phase: 'completed' }))- })- .toDispatchActions(['scheduleMarkInactive'])- .toNotHaveDispatchedActions(['markInactive'])- await expectLogic(detector).toMatchValues({ hasActiveSession: true })- })-- it('does not re-arm the detector for a session past the max lifetime (single-user INC-886)', async () => {- // A wedged CLI keeps heartbeating updated_at (fresh) but started_at is past the- // 1h lifetime cap, so the session is ineligible and must not re-open the stream.- const pastCap = makeSession({- run_phase: 'running',- started_at: new Date(Date.now() - 2 * ONE_HOUR_MS).toISOString(),- updated_at: new Date().toISOString(),- })-- await expectLogic(detector, () => {- streamLogic.actions.sessionUpdated(pastCap)- }).toNotHaveDispatchedActions(['markActive'])- await expectLogic(detector).toMatchValues({ hasActiveSession: false, shouldStream: false })- })-- it('captures "session detected" once per session_id for a fresh session', async () => {- streamLogic.actions.sessionUpdated(makeSession({ run_phase: 'running' }))- await expectLogic(logic).toMatchValues({ sessionIsCurrent: true })-- expect(posthog.capture).toHaveBeenCalledWith('setup wizard sync session detected', {- workflow_id: WORKFLOW_ID,- skill_id: 'nextjs',- run_phase: 'running',- task_count: 0,- })-- // A later update for the same session must not re-fire the reach metric.- streamLogic.actions.sessionUpdated(makeSession({ run_phase: 'running' }))- expect(capturedEvents('setup wizard sync session detected')).toHaveLength(1)- })-- it('does not re-fire "session detected" after a full unmount/remount of the same session', async () => {- const session = makeSession({ session_id: 'sess-remount', run_phase: 'running' })- streamLogic.actions.sessionUpdated(session)- await expectLogic(logic).toMatchValues({ sessionIsCurrent: true })- expect(capturedEvents('setup wizard sync session detected')).toHaveLength(1)-- // A remount wipes the kea cache; the module-level guard must still suppress the- // re-delivered (still in-flight) session so reach isn't double-counted.- logic.unmount()- logic = wizardProgressTrackerLogic()- logic.mount()- streamLogic.actions.sessionUpdated(makeSession({ session_id: 'sess-remount', run_phase: 'running' }))-- expect(capturedEvents('setup wizard sync session detected')).toHaveLength(1)- })-- it('does not capture "session detected" for a stale session', async () => {- const stale = makeSession({- run_phase: 'completed',- updated_at: new Date(Date.now() - 20 * 60 * 1000).toISOString(),- })- streamLogic.actions.sessionUpdated(stale)- expect(capturedEvents('setup wizard sync session detected')).toHaveLength(0)- })-- it.each(['completed', 'error'] as const)(- 'captures "session finished" once when a running session transitions to %s',- async (outcome) => {- streamLogic.actions.sessionUpdated(- makeSession({- run_phase: 'running',- tasks: [- { id: 't1', title: 'Install SDK', status: 'completed' },- { id: 't2', title: 'Capture events', status: 'in_progress' },- ],- })- )- streamLogic.actions.sessionUpdated(- makeSession({- run_phase: outcome,- tasks: [- { id: 't1', title: 'Install SDK', status: 'completed' },- { id: 't2', title: 'Capture events', status: 'completed' },- ],- })- )-- expect(posthog.capture).toHaveBeenCalledWith('setup wizard sync session finished', {- workflow_id: WORKFLOW_ID,- skill_id: 'nextjs',- outcome,- task_count: 2,- completed_task_count: 2,- elapsed_seconds: expect.any(Number),- })-- // Re-delivering the terminal state must not double-count the outcome.- streamLogic.actions.sessionUpdated(makeSession({ run_phase: outcome }))- expect(capturedEvents('setup wizard sync session finished')).toHaveLength(1)- }- )-- it('captures "session dismissed" with the terminal outcome', async () => {- streamLogic.actions.sessionUpdated(makeSession({ run_phase: 'completed' }))- ;(posthog.capture as jest.Mock).mockClear()-- logic.actions.dismiss()-- expect(posthog.capture).toHaveBeenCalledWith('setup wizard sync dismissed', {- workflow_id: WORKFLOW_ID,- skill_id: 'nextjs',- outcome: 'completed',- elapsed_seconds: expect.any(Number),- })- })-- it('captures "session dismissed" only once when dismiss fires twice', async () => {- streamLogic.actions.sessionUpdated(makeSession({ run_phase: 'completed' }))- ;(posthog.capture as jest.Mock).mockClear()-- logic.actions.dismiss()- logic.actions.dismiss()-- expect(capturedEvents('setup wizard sync dismissed')).toHaveLength(1)- })-- it('does not capture "session dismissed" when there is no current session', async () => {- // No session_id means the once-per-session guard can't hold, so the listener- // must bail rather than fire an unguarded event on every dispatch.- logic.actions.dismiss()- logic.actions.dismiss()-- expect(capturedEvents('setup wizard sync dismissed')).toHaveLength(0)- })-})diff --git a/frontend/src/scenes/onboarding/legacy/sdks/OnboardingInstallStep/wizardProgressTrackerLogic.ts b/frontend/src/scenes/onboarding/legacy/sdks/OnboardingInstallStep/wizardProgressTrackerLogic.tsdeleted file mode 100644index 7ef116e1fa52..000000000000--- a/frontend/src/scenes/onboarding/legacy/sdks/OnboardingInstallStep/wizardProgressTrackerLogic.ts+++ /dev/null@@ -1,357 +0,0 @@-import { actions, afterMount, beforeUnmount, connect, kea, listeners, path, reducers, selectors } from 'kea'-import { subscriptions } from 'kea-subscriptions'--import { elapsedSecondsFrom } from 'lib/utils/datetime'-import { eventUsageLogic } from 'lib/utils/eventUsageLogic'--import type { WizardSessionDTOApi } from 'products/wizard/frontend/generated/api.schemas'-import { wizardSessionStreamLogic } from 'products/wizard/frontend/wizardSessionStreamLogic'--import {- isSessionActive,- wizardActiveSessionDetectorLogic,-} from '../../../shared/wizard-sync/wizardActiveSessionDetectorLogic'-import type { wizardProgressTrackerLogicType } from './wizardProgressTrackerLogicType'--export type DisplayState =- | 'preTakeover' // No session yet — keep the command card visible.- | 'connecting' // Session exists but transport is reconnecting.- | 'running' // run_phase === 'running'- | 'completed' // run_phase === 'completed'- | 'error' // run_phase === 'error'--export interface ActivityEntry {- /** Wall-clock timestamp (ms epoch) used for the visible HH:MM:SS prefix. */- at: number- /** Pre-formatted line: terse, lowercase, terminal-tail style. */- text: string-}--const MAX_ACTIVITY_ENTRIES = 50-const TICK_INTERVAL_MS = 1_000-const HEARTBEAT_INTERVAL_MS = 30_000-const HEARTBEAT_QUIET_THRESHOLD_MS = 25_000--// A session counts as "current" if it was updated within the last 10 minutes.-// Lets the FAB ignore stale terminal sessions left over from previous runs / test-// data when a user lands on the app, while still re-surfacing recently-completed-// runs after a quick navigation away and back.-const SESSION_CURRENT_THRESHOLD_MS = 10 * 60 * 1000--const WORKFLOW_ID = 'posthog-integration'--// Per-session telemetry guards, deliberately module-scoped rather than on the kea-// `cache`. The tracker logic unmounts whenever the FAB's `shouldStream` flips false-// and the install step isn't mounted, and a remount wipes `cache` — so a cache-based-// guard would let the SSE redeliver a still-in-flight session and re-fire these-// events. Keying by session_id at module scope makes "once per session" hold across-// remounts for the whole page load. (A hard reload starts a fresh page session; the-// reach funnel is read on unique users, so that boundary is acceptable.)-const reportedDetectedSessions = new Set<string>()-const reportedFinishedSessions = new Set<string>()-const reportedDismissedSessions = new Set<string>()--// Test-only: clear the module-level guards so each case starts from a clean slate.-export function resetWizardSyncTelemetryForTests(): void {- reportedDetectedSessions.clear()- reportedFinishedSessions.clear()- reportedDismissedSessions.clear()-}--function runPhaseMessage(phase: string): string {- if (phase === 'completed') {- return 'wizard finished'- }- if (phase === 'error') {- return 'wizard hit an error'- }- if (phase === 'running') {- return 'wizard started running'- }- return `wizard phase: ${phase}`-}--function taskStatusVerb(status: string): string {- switch (status) {- case 'in_progress':- return 'started:'- case 'completed':- return 'done:'- case 'failed':- return 'failed:'- case 'canceled':- return 'skipped:'- case 'pending':- return 'queued:'- default:- return `${status}:`- }-}--/**- * Drives the wizard takeover panel:- * - subscribes to wizardSessionStreamLogic for live session state- * - keeps a synthetic activity log (tail -f vibe) so the panel never goes silent- * - ticks a 1Hz running-time counter- * - emits a "still working…" heartbeat when the log goes quiet during a run- * - exposes a derived DisplayState that the panel switches on- */-export const wizardProgressTrackerLogic = kea<wizardProgressTrackerLogicType>([- path(['scenes', 'onboarding', 'wizardProgressTrackerLogic']),- connect(() => ({- values: [- wizardSessionStreamLogic({ workflowId: WORKFLOW_ID }),- ['latestSession', 'connectionStatus', 'lastError'],- ],- actions: [- wizardSessionStreamLogic({ workflowId: WORKFLOW_ID }),- ['connect', 'disconnect'],- wizardActiveSessionDetectorLogic,- ['markActive', 'scheduleMarkInactive'],- eventUsageLogic,- ['reportWizardSyncSessionDetected', 'reportWizardSyncSessionFinished', 'reportWizardSyncDismissed'],- ],- })),- actions({- appendActivity: (text: string) => ({ text, at: Date.now() }),- tick: (now: number) => ({ now }),- taskStarted: (taskId: string, at: number) => ({ taskId, at }),- // User-initiated dismiss of the floating FAB once a run has reached a terminal phase.- dismiss: true,- // Set by the install-step confirmation card on mount/unmount. While true, the FAB- // hides — so the inline acknowledgement and the floating widget never overlap.- setPanelMounted: (mounted: boolean) => ({ mounted }),- // Sticky flag — set the first time we observe a session that's recent enough to- // count as live. Old terminal sessions sitting in the DB stay invisible.- markSessionCurrent: true,- }),- reducers({- activityLog: [- [] as ActivityEntry[],- {- appendActivity: (state, { text, at }) => {- const next = [...state, { text, at }]- return next.length > MAX_ACTIVITY_ENTRIES ? next.slice(next.length - MAX_ACTIVITY_ENTRIES) : next- },- },- ],- now: [- Date.now(),- {- tick: (_, { now }) => now,- },- ],- // Wall-clock timestamp (ms) of the moment each task was observed entering `in_progress`.- // Used to render a per-task running timer. Last write wins so retries restart the clock.- taskStartedAt: [- {} as Record<string, number>,- {- taskStarted: (state, { taskId, at }) => ({ ...state, [taskId]: at }),- },- ],- dismissed: [- false,- {- dismiss: () => true,- },- ],- panelMounted: [- false,- {- setPanelMounted: (_, { mounted }) => mounted,- },- ],- sessionIsCurrent: [- false,- {- markSessionCurrent: () => true,- },- ],- }),- selectors({- displayState: [- (s) => [s.latestSession, s.connectionStatus],- (latestSession, connectionStatus): DisplayState => {- if (!latestSession) {- return 'preTakeover'- }- // Terminal run_phase states are sticky — the wizard CLI closes the SSE- // connection cleanly after `completed`/`error`, which would otherwise- // flip the panel back to a transient "reconnecting…" state right when- // the user is supposed to see the completion screen.- const phase = latestSession.run_phase- if (phase === 'completed') {- return 'completed'- }- if (phase === 'error') {- return 'error'- }- if (connectionStatus === 'connecting' || connectionStatus === 'error') {- return 'connecting'- }- return 'running'- },- ],- elapsedSeconds: [- (s) => [s.latestSession, s.now],- (latestSession, now): number => (latestSession ? elapsedSecondsFrom(latestSession.started_at, now) : 0),- ],- }),- subscriptions(({ actions }) => ({- connectionStatus: (status, prev) => {- if (status === prev) {- return- }- const messages: Record<string, string> = {- connecting: 'connecting…',- open: 'connected, waiting for wizard',- closed: 'stream closed',- error: 'connection error — reconnecting…',- idle: '',- }- const text = messages[status as string]- if (text) {- actions.appendActivity(text)- }- },- latestSession: (session: WizardSessionDTOApi | null, prev: WizardSessionDTOApi | null) => {- if (!session) {- return- }- const now = Date.now()- const updatedAt = new Date(session.updated_at).getTime()- const isFresh = !Number.isNaN(updatedAt) && now - updatedAt < SESSION_CURRENT_THRESHOLD_MS- if (isFresh) {- actions.markSessionCurrent()- // Reach metric: count each live wizard session the sync surfaces, once per- // session_id. Gated on freshness so stale terminal rows sitting in the DB —- // which never reach the user — don't inflate the funnel.- if (!reportedDetectedSessions.has(session.session_id)) {- reportedDetectedSessions.add(session.session_id)- actions.reportWizardSyncSessionDetected({- workflowId: WORKFLOW_ID,- skillId: session.skill_id,- runPhase: session.run_phase,- taskCount: session.tasks.length,- })- }- }- // Keep the global detector in sync so the FAB survives a navigation- // away from the install step. Gate on the detector's shared- // eligibility predicate (server staleness + lifetime cap + terminal- // phase) so the SSE and REST paths agree on when streaming may- // continue — a wedged CLI heartbeating `updated_at` past the lifetime- // cap stops re-arming markActive, letting teardown actually run. Only- // schedule teardown on the eligible → ineligible *transition* so- // repeated re-polls don't reset the clock (the detector's- // `scheduleMarkInactive` is also idempotent as a belt-and-braces guard).- const eligible = isSessionActive(session)- const wasEligible = isSessionActive(prev)- if (eligible) {- actions.markActive()- } else if (wasEligible) {- actions.scheduleMarkInactive()- }- if (!prev) {- actions.appendActivity(`session started for ${session.skill_id}`)- // Tasks we joined mid-run: best-effort, start the per-task clock now.- for (const task of session.tasks) {- if (task.status === 'in_progress') {- actions.taskStarted(task.id, now)- }- }- return- }- if (session.run_phase !== prev.run_phase) {- actions.appendActivity(runPhaseMessage(session.run_phase))- const isTerminal = session.run_phase === 'completed' || session.run_phase === 'error'- // Outcome metric: fire once when a run the user watched live reaches a- // terminal phase. Terminal phases are sticky, so this transition is observed- // at most once per session — the id guard covers any SSE redelivery.- if (isTerminal && !reportedFinishedSessions.has(session.session_id)) {- reportedFinishedSessions.add(session.session_id)- actions.reportWizardSyncSessionFinished({- workflowId: WORKFLOW_ID,- skillId: session.skill_id,- outcome: session.run_phase,- taskCount: session.tasks.length,- completedTaskCount: session.tasks.filter((t) => t.status === 'completed').length,- elapsedSeconds: elapsedSecondsFrom(session.started_at, now),- })- }- }- const prevTaskKeys = new Set(prev.tasks.map((t) => `${t.id}::${t.status}`))- for (const task of session.tasks) {- const key = `${task.id}::${task.status}`- if (!prevTaskKeys.has(key)) {- actions.appendActivity(`${taskStatusVerb(task.status)} ${task.title}`)- if (task.status === 'in_progress') {- actions.taskStarted(task.id, now)- }- }- }- },- })),- listeners(({ values, actions }) => ({- dismiss: () => {- const sessionId = values.latestSession?.session_id- // No session means nothing to attribute the dismissal to, and without a- // session_id the once-per-session guard can't hold — bail rather than fire- // an unguarded event on every dispatch.- if (!sessionId) {- return- }- // Guard against a double-click landing two `dismiss` dispatches before the- // FAB re-renders itself away: capture at most once per session.- if (reportedDismissedSessions.has(sessionId)) {- return- }- reportedDismissedSessions.add(sessionId)- actions.reportWizardSyncDismissed({- workflowId: WORKFLOW_ID,- skillId: values.latestSession?.skill_id,- outcome: values.displayState,- elapsedSeconds: values.elapsedSeconds,- })- },- })),- afterMount(({ actions, cache, values }) => {- actions.connect()- actions.appendActivity('opening wizard session stream…')- cache.disposables.add(() => {- const id = window.setInterval(() => actions.tick(Date.now()), TICK_INTERVAL_MS)- return () => window.clearInterval(id)- }, 'tick')- cache.disposables.add(() => {- const id = window.setInterval(() => {- // The kea-disposables plugin pauses timers when the tab is hidden and- // re-creates them on resume. That re-created interval can fire during a- // window where the connected wizardSessionStreamLogic has been torn down- // (e.g. the FAB unmounting after a feature-flag re-evaluation). Reading a- // value off an unmounted logic throws- // `[KEA] Can not find path "...wizardSessionStreamLogic..." in the store.`,- // so bail out unless the stream logic is currently mounted.- if (!wizardSessionStreamLogic.findMounted({ workflowId: WORKFLOW_ID })) {- return- }- // Heartbeat: if the log has gone quiet for HEARTBEAT_QUIET_THRESHOLD_MS- // while the wizard is still running, append a "still working" line so- // the panel never looks frozen.- const session = values.latestSession- if (!session || session.run_phase !== 'running') {- return- }- const log = values.activityLog- const latest = log.length > 0 ? log[log.length - 1] : null- const quietFor = latest ? Date.now() - latest.at : Infinity- if (quietFor >= HEARTBEAT_QUIET_THRESHOLD_MS) {- actions.appendActivity('still working…')- }- }, HEARTBEAT_INTERVAL_MS)- return () => window.clearInterval(id)- }, 'heartbeat')- }),- beforeUnmount(({ actions }) => {- actions.disconnect()- }),-])diff --git a/frontend/src/scenes/onboarding/legacy/sdks/allSDKs.tsx b/frontend/src/scenes/onboarding/legacy/sdks/allSDKs.tsxindex b1b1645533ee..1c5b99278b39 100644--- a/frontend/src/scenes/onboarding/legacy/sdks/allSDKs.tsx+++ b/frontend/src/scenes/onboarding/legacy/sdks/allSDKs.tsx@@ -9,57 +9,57 @@ import { Logomark } from 'lib/brand'import { SDK, SDKKey, SDKTag } from '~/types'-import androidImage from './logos/android.svg'-import angularImage from './logos/angular.svg'-import { AnthropicLogo } from './logos/AnthropicLogo'-import { AstroLogo } from './logos/AstroLogo'-import { BubbleLogo } from './logos/BubbleLogo'-import djangoImage from './logos/django.svg'-import docusaurusImage from './logos/docusaurus.svg'-import dotnetImage from './logos/dotnet.svg'-import elixirImage from './logos/elixir.svg'-import flutterImage from './logos/flutter.svg'-import { FramerLogo } from './logos/FramerLogo'-import gatsbyImage from './logos/gatsby.svg'-import geminiImage from './logos/gemini.svg'-import goImage from './logos/go.svg'-import gtmImage from './logos/gtm.svg'-import honoImage from './logos/hono.svg'-import { IOSLogo } from './logos/IOSLogo'-import javaImage from './logos/java.svg'-import jsImage from './logos/javascript_web.svg'-import { LangChainLogo } from './logos/LangChainLogo'-import langfuseImage from './logos/langfuse.svg'-import laravelImage from './logos/laravel.svg'-import moengageImage from './logos/moengage.png'-import n8nImage from './logos/n8n.svg'-import nextjsImage from './logos/nextjs.svg'-import nodejsImage from './logos/nodejs.svg'-import nuxtImage from './logos/nuxt.svg'-import { OpenAILogo } from './logos/OpenAILogo'-import { OpenRouterLogo } from './logos/OpenRouterLogo'-import phpImage from './logos/php.svg'-import pythonImage from './logos/python.svg'-import railsImage from './logos/rails.svg'-import reactImage from './logos/react.svg'-import reactNativeImage from './logos/react.svg'-import { ReactRouterLogo } from './logos/ReactRouterLogo'-import { RemixLogo } from './logos/RemixLogo'-import { RetoolLogo } from './logos/RetoolLogo'-import rubyImage from './logos/ruby.svg'-import { RudderstackLogo } from './logos/RudderstackLogo'-import rustImage from './logos/rust.svg'-import segmentImage from './logos/segment.svg'-import { SentryLogo } from './logos/SentryLogo'-import shopifyImage from './logos/shopify.svg'-import svelteImage from './logos/svelte.svg'-import tanStackImage from './logos/tanstack.png'-import traceloopImage from './logos/traceloop.svg'-import viteImage from './logos/vite.svg'-import vueImage from './logos/vue.svg'-import webflowImage from './logos/webflow.svg'-import { WordpressLogo } from './logos/WordpressLogo'-import zapierImage from './logos/zapier.svg'+import androidImage from '../../shared/logos/android.svg'+import angularImage from '../../shared/logos/angular.svg'+import { AnthropicLogo } from '../../shared/logos/AnthropicLogo'+import { AstroLogo } from '../../shared/logos/AstroLogo'+import { BubbleLogo } from '../../shared/logos/BubbleLogo'+import djangoImage from '../../shared/logos/django.svg'+import docusaurusImage from '../../shared/logos/docusaurus.svg'+import dotnetImage from '../../shared/logos/dotnet.svg'+import elixirImage from '../../shared/logos/elixir.svg'+import flutterImage from '../../shared/logos/flutter.svg'+import { FramerLogo } from '../../shared/logos/FramerLogo'+import gatsbyImage from '../../shared/logos/gatsby.svg'+import geminiImage from '../../shared/logos/gemini.svg'+import goImage from '../../shared/logos/go.svg'+import gtmImage from '../../shared/logos/gtm.svg'+import honoImage from '../../shared/logos/hono.svg'+import { IOSLogo } from '../../shared/logos/IOSLogo'+import javaImage from '../../shared/logos/java.svg'+import jsImage from '../../shared/logos/javascript_web.svg'+import { LangChainLogo } from '../../shared/logos/LangChainLogo'+import langfuseImage from '../../shared/logos/langfuse.svg'+import laravelImage from '../../shared/logos/laravel.svg'+import moengageImage from '../../shared/logos/moengage.png'+import n8nImage from '../../shared/logos/n8n.svg'+import nextjsImage from '../../shared/logos/nextjs.svg'+import nodejsImage from '../../shared/logos/nodejs.svg'+import nuxtImage from '../../shared/logos/nuxt.svg'+import { OpenAILogo } from '../../shared/logos/OpenAILogo'+import { OpenRouterLogo } from '../../shared/logos/OpenRouterLogo'+import phpImage from '../../shared/logos/php.svg'+import pythonImage from '../../shared/logos/python.svg'+import railsImage from '../../shared/logos/rails.svg'+import reactImage from '../../shared/logos/react.svg'+import reactNativeImage from '../../shared/logos/react.svg'+import { ReactRouterLogo } from '../../shared/logos/ReactRouterLogo'+import { RemixLogo } from '../../shared/logos/RemixLogo'+import { RetoolLogo } from '../../shared/logos/RetoolLogo'+import rubyImage from '../../shared/logos/ruby.svg'+import { RudderstackLogo } from '../../shared/logos/RudderstackLogo'+import rustImage from '../../shared/logos/rust.svg'+import segmentImage from '../../shared/logos/segment.svg'+import { SentryLogo } from '../../shared/logos/SentryLogo'+import shopifyImage from '../../shared/logos/shopify.svg'+import svelteImage from '../../shared/logos/svelte.svg'+import tanStackImage from '../../shared/logos/tanstack.png'+import traceloopImage from '../../shared/logos/traceloop.svg'+import viteImage from '../../shared/logos/vite.svg'+import vueImage from '../../shared/logos/vue.svg'+import webflowImage from '../../shared/logos/webflow.svg'+import { WordpressLogo } from '../../shared/logos/WordpressLogo'+import zapierImage from '../../shared/logos/zapier.svg'export const ALL_SDKS: SDK[] = [// Webdiff --git a/frontend/src/scenes/onboarding/onboardingEventUsageLogic.ts b/frontend/src/scenes/onboarding/onboardingEventUsageLogic.tsindex 509932b52802..36a815ed6411 100644--- a/frontend/src/scenes/onboarding/onboardingEventUsageLogic.ts+++ b/frontend/src/scenes/onboarding/onboardingEventUsageLogic.ts@@ -3,7 +3,6 @@ import posthog from 'posthog-js'import { FEATURE_FLAGS } from 'lib/constants'import { featureFlagLogic, type FeatureFlagsSet } from 'lib/logic/featureFlagLogic'-import { projectLogic } from 'scenes/projectLogic'import type { onboardingEventUsageLogicType } from './onboardingEventUsageLogicType'import { resolveOnboardingFlowVariant } from './onboardingVariants'@@ -45,13 +44,16 @@ function wizardSyncEventProps(featureFlags: FeatureFlagsSet): {}}-// One exposure per project per pageload: the install step remounts on navigation, and a re-fired-// exposure would inflate the denominator, but a project switch mid-session is a fresh exposure.-// Module-scoped, mirroring the wizard tracker's once-per-session report guards.-const reportedCloudRunExperimentExposures = new Set<string>()+// Once-per-run guards for the completed-handoff funnel (exposure → CTA shown → CTA clicked). The+// same run renders on several surfaces (inline panel, FAB card, dialog) and those remount freely —+// deduping here, keyed by run, keeps the funnel's denominators honest without every surface+// carrying its own guard.+const reportedHandoffShownRuns = new Set<string>()+const reportedDashboardCtaShownRuns = new Set<string>()export function resetCloudRunExperimentExposureForTests(): void {- reportedCloudRunExperimentExposures.clear()+ reportedHandoffShownRuns.clear()+ reportedDashboardCtaShownRuns.clear()}/**@@ -64,7 +66,7 @@ export function resetCloudRunExperimentExposureForTests(): void {export const onboardingEventUsageLogic = kea<onboardingEventUsageLogicType>([path(['scenes', 'onboarding', 'onboardingEventUsageLogic']),connect(() => ({- values: [featureFlagLogic, ['featureFlags'], projectLogic, ['currentProjectId']],+ values: [featureFlagLogic, ['featureFlags']],})),actions({reportContextOnboardingStarted: true,@@ -90,9 +92,6 @@ export const onboardingEventUsageLogic = kea<onboardingEventUsageLogicType>([prOpened: booleanprUrl: string | null}) => props,- // Exposure marker for the cloud-wizard AB test (GROW-117): fired when a user reaches the- // surface where the arms diverge (the install step on cloud/dev instances).- reportWizardCloudRunExperimentExposed: true,// Engagement with the shared wizard sync surface (FAB card / launcher / dialog), fired for// both variants and both run modes (GROW-121).reportWizardSyncExpanded: (props: { runKey: string; mode: 'cloud' | 'local'; phase: string }) => props,@@ -104,6 +103,25 @@ export const onboardingEventUsageLogic = kea<onboardingEventUsageLogicType>([phase: stringelapsedSeconds: number}) => props,+ // The completed-handoff funnel: exposure (a run's completed state rendered anywhere), the+ // dashboard CTA becoming visible, and the CTA click. Deduped per run per pageload here, so+ // surfaces can report unconditionally. No dashboard names or ids — same rule as repo names.+ reportWizardSyncHandoffShown: (props: {+ runKey: string+ mode: 'cloud' | 'local'+ surface: 'inline' | 'fab'+ prOpened: boolean+ }) => props,+ reportWizardSyncDashboardCtaShown: (props: {+ runKey: string+ mode: 'cloud' | 'local'+ surface: 'inline' | 'fab'+ }) => props,+ reportWizardSyncDashboardCtaClicked: (props: {+ runKey: string+ mode: 'cloud' | 'local'+ surface: 'inline' | 'fab'+ }) => props,}),listeners(({ values }) => ({// The flow always enters at the welcome step, so `started` carries a fixed entry point@@ -178,24 +196,6 @@ export const onboardingEventUsageLogic = kea<onboardingEventUsageLogicType>([...wizardSyncEventProps(values.featureFlags),})},- reportWizardCloudRunExperimentExposed: () => {- // Enrollment-gated: callers fire on readiness (preflight + receivedFeatureFlags), and a- // null arm means the user is not in the experiment — no exposure, no guard, so a later- // dispatch after enrollment resolves can still count them. Never stamp a guessed arm:- // a mis-bucketed exposure cannot be repaired retroactively.- const arm = resolveCloudRunExperimentArm(values.featureFlags)- if (arm === null) {- return- }- const projectKey = String(values.currentProjectId ?? 'unknown')- if (reportedCloudRunExperimentExposures.has(projectKey)) {- return- }- reportedCloudRunExperimentExposures.add(projectKey)- posthog.capture('wizard cloud run experiment exposed', {- ...wizardSyncEventProps(values.featureFlags),- })- },reportWizardSyncExpanded: ({ runKey, mode, phase }) => {posthog.capture('wizard sync expanded', {run_key: runKey,@@ -229,5 +229,40 @@ export const onboardingEventUsageLogic = kea<onboardingEventUsageLogicType>([...wizardSyncEventProps(values.featureFlags),})},+ reportWizardSyncHandoffShown: ({ runKey, mode, surface, prOpened }) => {+ if (reportedHandoffShownRuns.has(runKey)) {+ return+ }+ reportedHandoffShownRuns.add(runKey)+ posthog.capture('wizard sync handoff shown', {+ run_key: runKey,+ mode,+ surface,+ pr_opened: prOpened,+ ...wizardSyncEventProps(values.featureFlags),+ })+ },+ reportWizardSyncDashboardCtaShown: ({ runKey, mode, surface }) => {+ if (reportedDashboardCtaShownRuns.has(runKey)) {+ return+ }+ reportedDashboardCtaShownRuns.add(runKey)+ posthog.capture('wizard sync dashboard cta shown', {+ run_key: runKey,+ mode,+ surface,+ ...wizardSyncEventProps(values.featureFlags),+ })+ },+ // Clicks are NOT deduped: a user returning to the dashboard through the CTA twice is real+ // engagement, and the shown-event denominator is already stable.+ reportWizardSyncDashboardCtaClicked: ({ runKey, mode, surface }) => {+ posthog.capture('wizard sync dashboard cta clicked', {+ run_key: runKey,+ mode,+ surface,+ ...wizardSyncEventProps(values.featureFlags),+ })+ },})),])diff --git a/frontend/src/scenes/onboarding/self-driving/ContextOnboarding.tsx b/frontend/src/scenes/onboarding/self-driving/ContextOnboarding.tsxindex 3e811c1aad2c..cc6f98984d2e 100644--- a/frontend/src/scenes/onboarding/self-driving/ContextOnboarding.tsx+++ b/frontend/src/scenes/onboarding/self-driving/ContextOnboarding.tsx@@ -19,16 +19,15 @@ import type { TeamType } from '~/types'import selfDrivingHog from 'public/hedgehog/self-driving-hog.png'+// Deliberate self-driving → legacy import: onboardingLogic owns the completion flow (marking the+// team onboarded, redirecting out) for both variants.import { onboardingLogic } from '../legacy/onboardingLogic'-import {- useWizardTakeoverActive,- WizardProgressTracker,-} from '../legacy/sdks/OnboardingInstallStep/WizardProgressTracker'import { type ContextOnboardingStepId, onboardingEventUsageLogic } from '../onboardingEventUsageLogic'import { useWizardCommand } from '../shared/SetupWizardBanner'import { availableOnboardingProducts, getProductIcon, toSentenceCase } from '../shared/utils'import { activeCloudRunLogic, type CloudRunHandle } from '../shared/wizard-sync/activeCloudRunLogic'import { installationProgressLogic } from '../shared/wizard-sync/installationProgressLogic'+import { InstallationProgressView, useLocalWizardRunActive } from '../shared/wizard-sync/InstallationProgressView'import { wizardCloudRunLogic } from '../shared/wizard-sync/wizardCloudRunLogic'import { WizardCommandBlock } from '../shared/wizard-sync/WizardCommandBlock'import { WizardInstallOptions } from '../shared/wizard-sync/WizardInstallOptions'@@ -117,14 +116,14 @@ function InstallOptions({ onContinue }: { onContinue: () => void }): JSX.Element// When wizard sync is on and a LOCAL run is in flight, swap the options for the live tracker. A cloud// run is already surfaced by the unified Installation layer (WizardCloudRunBlock → InstallationProgressView),-// and the cloud wizard posts to the same session — so suppress the legacy tracker when a cloud run is+// and the cloud wizard posts to the same session — so suppress the local run view when a cloud run is// active to avoid showing two progress components.function InstallStepWithSync({ onContinue }: { onContinue: () => void }): JSX.Element {- const isTakeoverActive = useWizardTakeoverActive()+ const isLocalRunActive = useLocalWizardRunActive()const { activeCloudRun } = useValues(activeCloudRunLogic)- // The tracker claims the shared inline-panel flag itself, so no coordination is needed here.- const showLegacyTracker = isTakeoverActive && !activeCloudRun- return showLegacyTracker ? <WizardProgressTracker /> : <InstallOptions onContinue={onContinue} />+ // The view claims the shared inline-panel flag itself, so no FAB coordination is needed here.+ const showLocalRun = isLocalRunActive && !activeCloudRun+ return showLocalRun ? <InstallationProgressView mode="local" /> : <InstallOptions onContinue={onContinue} />}function InstallStep({ onContinue }: { onContinue: () => void }): JSX.Element {diff --git a/frontend/src/scenes/onboarding/self-driving/ContextWarehouseStep.stories.tsx b/frontend/src/scenes/onboarding/self-driving/ContextWarehouseStep.stories.tsxindex 378f9a07f9de..cbb8238ab9dc 100644--- a/frontend/src/scenes/onboarding/self-driving/ContextWarehouseStep.stories.tsx+++ b/frontend/src/scenes/onboarding/self-driving/ContextWarehouseStep.stories.tsx@@ -106,7 +106,7 @@ function OnboardingCard({ children }: { children: React.ReactNode }): JSX.Elemen}const meta: Meta<typeof ContextWarehouseStep> = {- title: 'Scenes-Other/Onboarding/Connect data',+ title: 'Scenes-Other/Onboarding/Self-Driving/Connect data',component: ContextWarehouseStep,parameters: {layout: 'fullscreen',diff --git a/frontend/src/scenes/onboarding/self-driving/SourcesStep.stories.tsx b/frontend/src/scenes/onboarding/self-driving/SourcesStep.stories.tsxindex 6bd37226b4ef..af3b7eefdcbe 100644--- a/frontend/src/scenes/onboarding/self-driving/SourcesStep.stories.tsx+++ b/frontend/src/scenes/onboarding/self-driving/SourcesStep.stories.tsx@@ -28,7 +28,7 @@ function OnboardingCard({ children }: { children: ReactNode }): JSX.Element {}const meta: Meta<typeof SourcesStepInner> = {- title: 'Scenes-Other/Onboarding/Turn on your sources',+ title: 'Scenes-Other/Onboarding/Self-Driving/Turn on your sources',component: SourcesStepInner,parameters: {layout: 'fullscreen',diff --git a/frontend/src/scenes/onboarding/legacy/sdks/logos/AnthropicLogo.tsx b/frontend/src/scenes/onboarding/shared/logos/AnthropicLogo.tsxsimilarity index 100%rename from frontend/src/scenes/onboarding/legacy/sdks/logos/AnthropicLogo.tsxrename to frontend/src/scenes/onboarding/shared/logos/AnthropicLogo.tsxdiff --git a/frontend/src/scenes/onboarding/legacy/sdks/logos/AstroLogo.tsx b/frontend/src/scenes/onboarding/shared/logos/AstroLogo.tsxsimilarity index 100%rename from frontend/src/scenes/onboarding/legacy/sdks/logos/AstroLogo.tsxrename to frontend/src/scenes/onboarding/shared/logos/AstroLogo.tsxdiff --git a/frontend/src/scenes/onboarding/legacy/sdks/logos/BubbleLogo.tsx b/frontend/src/scenes/onboarding/shared/logos/BubbleLogo.tsxsimilarity index 100%rename from frontend/src/scenes/onboarding/legacy/sdks/logos/BubbleLogo.tsxrename to frontend/src/scenes/onboarding/shared/logos/BubbleLogo.tsxdiff --git a/frontend/src/scenes/onboarding/legacy/sdks/logos/FramerLogo.tsx b/frontend/src/scenes/onboarding/shared/logos/FramerLogo.tsxsimilarity index 100%rename from frontend/src/scenes/onboarding/legacy/sdks/logos/FramerLogo.tsxrename to frontend/src/scenes/onboarding/shared/logos/FramerLogo.tsxdiff --git a/frontend/src/scenes/onboarding/legacy/sdks/logos/IOSLogo.tsx b/frontend/src/scenes/onboarding/shared/logos/IOSLogo.tsxsimilarity index 100%rename from frontend/src/scenes/onboarding/legacy/sdks/logos/IOSLogo.tsxrename to frontend/src/scenes/onboarding/shared/logos/IOSLogo.tsxdiff --git a/frontend/src/scenes/onboarding/legacy/sdks/logos/LangChainLogo.tsx b/frontend/src/scenes/onboarding/shared/logos/LangChainLogo.tsxsimilarity index 100%rename from frontend/src/scenes/onboarding/legacy/sdks/logos/LangChainLogo.tsxrename to frontend/src/scenes/onboarding/shared/logos/LangChainLogo.tsxdiff --git a/frontend/src/scenes/onboarding/legacy/sdks/logos/OpenAILogo.tsx b/frontend/src/scenes/onboarding/shared/logos/OpenAILogo.tsxsimilarity index 100%rename from frontend/src/scenes/onboarding/legacy/sdks/logos/OpenAILogo.tsxrename to frontend/src/scenes/onboarding/shared/logos/OpenAILogo.tsxdiff --git a/frontend/src/scenes/onboarding/legacy/sdks/logos/OpenRouterLogo.tsx b/frontend/src/scenes/onboarding/shared/logos/OpenRouterLogo.tsxsimilarity index 100%rename from frontend/src/scenes/onboarding/legacy/sdks/logos/OpenRouterLogo.tsxrename to frontend/src/scenes/onboarding/shared/logos/OpenRouterLogo.tsxdiff --git a/frontend/src/scenes/onboarding/legacy/sdks/logos/ReactRouterLogo.tsx b/frontend/src/scenes/onboarding/shared/logos/ReactRouterLogo.tsxsimilarity index 100%rename from frontend/src/scenes/onboarding/legacy/sdks/logos/ReactRouterLogo.tsxrename to frontend/src/scenes/onboarding/shared/logos/ReactRouterLogo.tsxdiff --git a/frontend/src/scenes/onboarding/legacy/sdks/logos/RemixLogo.tsx b/frontend/src/scenes/onboarding/shared/logos/RemixLogo.tsxsimilarity index 100%rename from frontend/src/scenes/onboarding/legacy/sdks/logos/RemixLogo.tsxrename to frontend/src/scenes/onboarding/shared/logos/RemixLogo.tsxdiff --git a/frontend/src/scenes/onboarding/legacy/sdks/logos/RetoolLogo.tsx b/frontend/src/scenes/onboarding/shared/logos/RetoolLogo.tsxsimilarity index 100%rename from frontend/src/scenes/onboarding/legacy/sdks/logos/RetoolLogo.tsxrename to frontend/src/scenes/onboarding/shared/logos/RetoolLogo.tsxdiff --git a/frontend/src/scenes/onboarding/legacy/sdks/logos/RudderstackLogo.tsx b/frontend/src/scenes/onboarding/shared/logos/RudderstackLogo.tsxsimilarity index 100%rename from frontend/src/scenes/onboarding/legacy/sdks/logos/RudderstackLogo.tsxrename to frontend/src/scenes/onboarding/shared/logos/RudderstackLogo.tsxdiff --git a/frontend/src/scenes/onboarding/legacy/sdks/logos/SentryLogo.tsx b/frontend/src/scenes/onboarding/shared/logos/SentryLogo.tsxsimilarity index 100%rename from frontend/src/scenes/onboarding/legacy/sdks/logos/SentryLogo.tsxrename to frontend/src/scenes/onboarding/shared/logos/SentryLogo.tsxdiff --git a/frontend/src/scenes/onboarding/legacy/sdks/logos/WordpressLogo.tsx b/frontend/src/scenes/onboarding/shared/logos/WordpressLogo.tsxsimilarity index 100%rename from frontend/src/scenes/onboarding/legacy/sdks/logos/WordpressLogo.tsxrename to frontend/src/scenes/onboarding/shared/logos/WordpressLogo.tsxdiff --git a/frontend/src/scenes/onboarding/legacy/sdks/logos/android.svg b/frontend/src/scenes/onboarding/shared/logos/android.svgsimilarity index 100%rename from frontend/src/scenes/onboarding/legacy/sdks/logos/android.svgrename to frontend/src/scenes/onboarding/shared/logos/android.svgdiff --git a/frontend/src/scenes/onboarding/legacy/sdks/logos/angular.svg b/frontend/src/scenes/onboarding/shared/logos/angular.svgsimilarity index 100%rename from frontend/src/scenes/onboarding/legacy/sdks/logos/angular.svgrename to frontend/src/scenes/onboarding/shared/logos/angular.svgdiff --git a/frontend/src/scenes/onboarding/legacy/sdks/logos/django.svg b/frontend/src/scenes/onboarding/shared/logos/django.svgsimilarity index 100%rename from frontend/src/scenes/onboarding/legacy/sdks/logos/django.svgrename to frontend/src/scenes/onboarding/shared/logos/django.svgdiff --git a/frontend/src/scenes/onboarding/legacy/sdks/logos/docusaurus.svg b/frontend/src/scenes/onboarding/shared/logos/docusaurus.svgsimilarity index 100%rename from frontend/src/scenes/onboarding/legacy/sdks/logos/docusaurus.svgrename to frontend/src/scenes/onboarding/shared/logos/docusaurus.svgdiff --git a/frontend/src/scenes/onboarding/legacy/sdks/logos/dotnet.svg b/frontend/src/scenes/onboarding/shared/logos/dotnet.svgsimilarity index 100%rename from frontend/src/scenes/onboarding/legacy/sdks/logos/dotnet.svgrename to frontend/src/scenes/onboarding/shared/logos/dotnet.svgdiff --git a/frontend/src/scenes/onboarding/legacy/sdks/logos/elixir.svg b/frontend/src/scenes/onboarding/shared/logos/elixir.svgsimilarity index 100%rename from frontend/src/scenes/onboarding/legacy/sdks/logos/elixir.svgrename to frontend/src/scenes/onboarding/shared/logos/elixir.svgdiff --git a/frontend/src/scenes/onboarding/legacy/sdks/logos/flask.svg b/frontend/src/scenes/onboarding/shared/logos/flask.svgsimilarity index 100%rename from frontend/src/scenes/onboarding/legacy/sdks/logos/flask.svgrename to frontend/src/scenes/onboarding/shared/logos/flask.svgdiff --git a/frontend/src/scenes/onboarding/legacy/sdks/logos/flutter.svg b/frontend/src/scenes/onboarding/shared/logos/flutter.svgsimilarity index 100%rename from frontend/src/scenes/onboarding/legacy/sdks/logos/flutter.svgrename to frontend/src/scenes/onboarding/shared/logos/flutter.svgdiff --git a/frontend/src/scenes/onboarding/legacy/sdks/logos/gatsby.svg b/frontend/src/scenes/onboarding/shared/logos/gatsby.svgsimilarity index 100%rename from frontend/src/scenes/onboarding/legacy/sdks/logos/gatsby.svgrename to frontend/src/scenes/onboarding/shared/logos/gatsby.svgdiff --git a/frontend/src/scenes/onboarding/legacy/sdks/logos/gemini.svg b/frontend/src/scenes/onboarding/shared/logos/gemini.svgsimilarity index 100%rename from frontend/src/scenes/onboarding/legacy/sdks/logos/gemini.svgrename to frontend/src/scenes/onboarding/shared/logos/gemini.svgdiff --git a/frontend/src/scenes/onboarding/legacy/sdks/logos/go.svg b/frontend/src/scenes/onboarding/shared/logos/go.svgsimilarity index 100%rename from frontend/src/scenes/onboarding/legacy/sdks/logos/go.svgrename to frontend/src/scenes/onboarding/shared/logos/go.svgdiff --git a/frontend/src/scenes/onboarding/legacy/sdks/logos/gtm.svg b/frontend/src/scenes/onboarding/shared/logos/gtm.svgsimilarity index 100%rename from frontend/src/scenes/onboarding/legacy/sdks/logos/gtm.svgrename to frontend/src/scenes/onboarding/shared/logos/gtm.svgdiff --git a/frontend/src/scenes/onboarding/legacy/sdks/logos/hono.svg b/frontend/src/scenes/onboarding/shared/logos/hono.svgsimilarity index 100%rename from frontend/src/scenes/onboarding/legacy/sdks/logos/hono.svgrename to frontend/src/scenes/onboarding/shared/logos/hono.svgdiff --git a/frontend/src/scenes/onboarding/legacy/sdks/logos/html.svg b/frontend/src/scenes/onboarding/shared/logos/html.svgsimilarity index 100%rename from frontend/src/scenes/onboarding/legacy/sdks/logos/html.svgrename to frontend/src/scenes/onboarding/shared/logos/html.svgdiff --git a/frontend/src/scenes/onboarding/legacy/sdks/logos/java.svg b/frontend/src/scenes/onboarding/shared/logos/java.svgsimilarity index 100%rename from frontend/src/scenes/onboarding/legacy/sdks/logos/java.svgrename to frontend/src/scenes/onboarding/shared/logos/java.svgdiff --git a/frontend/src/scenes/onboarding/legacy/sdks/logos/javascript_web.svg b/frontend/src/scenes/onboarding/shared/logos/javascript_web.svgsimilarity index 100%rename from frontend/src/scenes/onboarding/legacy/sdks/logos/javascript_web.svgrename to frontend/src/scenes/onboarding/shared/logos/javascript_web.svgdiff --git a/frontend/src/scenes/onboarding/legacy/sdks/logos/langfuse.svg b/frontend/src/scenes/onboarding/shared/logos/langfuse.svgsimilarity index 100%rename from frontend/src/scenes/onboarding/legacy/sdks/logos/langfuse.svgrename to frontend/src/scenes/onboarding/shared/logos/langfuse.svgdiff --git a/frontend/src/scenes/onboarding/legacy/sdks/logos/laravel.svg b/frontend/src/scenes/onboarding/shared/logos/laravel.svgsimilarity index 100%rename from frontend/src/scenes/onboarding/legacy/sdks/logos/laravel.svgrename to frontend/src/scenes/onboarding/shared/logos/laravel.svgdiff --git a/frontend/src/scenes/onboarding/legacy/sdks/logos/moengage.png b/frontend/src/scenes/onboarding/shared/logos/moengage.pngsimilarity index 100%rename from frontend/src/scenes/onboarding/legacy/sdks/logos/moengage.pngrename to frontend/src/scenes/onboarding/shared/logos/moengage.pngdiff --git a/frontend/src/scenes/onboarding/legacy/sdks/logos/n8n.svg b/frontend/src/scenes/onboarding/shared/logos/n8n.svgsimilarity index 100%rename from frontend/src/scenes/onboarding/legacy/sdks/logos/n8n.svgrename to frontend/src/scenes/onboarding/shared/logos/n8n.svgdiff --git a/frontend/src/scenes/onboarding/legacy/sdks/logos/nextjs.svg b/frontend/src/scenes/onboarding/shared/logos/nextjs.svgsimilarity index 100%rename from frontend/src/scenes/onboarding/legacy/sdks/logos/nextjs.svgrename to frontend/src/scenes/onboarding/shared/logos/nextjs.svgdiff --git a/frontend/src/scenes/onboarding/legacy/sdks/logos/nodejs.svg b/frontend/src/scenes/onboarding/shared/logos/nodejs.svgsimilarity index 100%rename from frontend/src/scenes/onboarding/legacy/sdks/logos/nodejs.svgrename to frontend/src/scenes/onboarding/shared/logos/nodejs.svgdiff --git a/frontend/src/scenes/onboarding/legacy/sdks/logos/nuxt.svg b/frontend/src/scenes/onboarding/shared/logos/nuxt.svgsimilarity index 100%rename from frontend/src/scenes/onboarding/legacy/sdks/logos/nuxt.svgrename to frontend/src/scenes/onboarding/shared/logos/nuxt.svgdiff --git a/frontend/src/scenes/onboarding/legacy/sdks/logos/openrouter.png b/frontend/src/scenes/onboarding/shared/logos/openrouter.pngsimilarity index 100%rename from frontend/src/scenes/onboarding/legacy/sdks/logos/openrouter.pngrename to frontend/src/scenes/onboarding/shared/logos/openrouter.pngdiff --git a/frontend/src/scenes/onboarding/legacy/sdks/logos/php.svg b/frontend/src/scenes/onboarding/shared/logos/php.svgsimilarity index 100%rename from frontend/src/scenes/onboarding/legacy/sdks/logos/php.svgrename to frontend/src/scenes/onboarding/shared/logos/php.svgdiff --git a/frontend/src/scenes/onboarding/legacy/sdks/logos/python.svg b/frontend/src/scenes/onboarding/shared/logos/python.svgsimilarity index 100%rename from frontend/src/scenes/onboarding/legacy/sdks/logos/python.svgrename to frontend/src/scenes/onboarding/shared/logos/python.svgdiff --git a/frontend/src/scenes/onboarding/legacy/sdks/logos/rails.svg b/frontend/src/scenes/onboarding/shared/logos/rails.svgsimilarity index 100%rename from frontend/src/scenes/onboarding/legacy/sdks/logos/rails.svgrename to frontend/src/scenes/onboarding/shared/logos/rails.svgdiff --git a/frontend/src/scenes/onboarding/legacy/sdks/logos/react.svg b/frontend/src/scenes/onboarding/shared/logos/react.svgsimilarity index 100%rename from frontend/src/scenes/onboarding/legacy/sdks/logos/react.svgrename to frontend/src/scenes/onboarding/shared/logos/react.svgdiff --git a/frontend/src/scenes/onboarding/legacy/sdks/logos/ruby.svg b/frontend/src/scenes/onboarding/shared/logos/ruby.svgsimilarity index 100%rename from frontend/src/scenes/onboarding/legacy/sdks/logos/ruby.svgrename to frontend/src/scenes/onboarding/shared/logos/ruby.svgdiff --git a/frontend/src/scenes/onboarding/legacy/sdks/logos/rust.svg b/frontend/src/scenes/onboarding/shared/logos/rust.svgsimilarity index 100%rename from frontend/src/scenes/onboarding/legacy/sdks/logos/rust.svgrename to frontend/src/scenes/onboarding/shared/logos/rust.svgdiff --git a/frontend/src/scenes/onboarding/legacy/sdks/logos/segment.svg b/frontend/src/scenes/onboarding/shared/logos/segment.svgsimilarity index 100%rename from frontend/src/scenes/onboarding/legacy/sdks/logos/segment.svgrename to frontend/src/scenes/onboarding/shared/logos/segment.svgdiff --git a/frontend/src/scenes/onboarding/legacy/sdks/logos/shopify.svg b/frontend/src/scenes/onboarding/shared/logos/shopify.svgsimilarity index 100%rename from frontend/src/scenes/onboarding/legacy/sdks/logos/shopify.svgrename to frontend/src/scenes/onboarding/shared/logos/shopify.svgdiff --git a/frontend/src/scenes/onboarding/legacy/sdks/logos/svelte.svg b/frontend/src/scenes/onboarding/shared/logos/svelte.svgsimilarity index 100%rename from frontend/src/scenes/onboarding/legacy/sdks/logos/svelte.svgrename to frontend/src/scenes/onboarding/shared/logos/svelte.svgdiff --git a/frontend/src/scenes/onboarding/legacy/sdks/logos/tanstack.png b/frontend/src/scenes/onboarding/shared/logos/tanstack.pngsimilarity index 100%rename from frontend/src/scenes/onboarding/legacy/sdks/logos/tanstack.pngrename to frontend/src/scenes/onboarding/shared/logos/tanstack.pngdiff --git a/frontend/src/scenes/onboarding/legacy/sdks/logos/traceloop.svg b/frontend/src/scenes/onboarding/shared/logos/traceloop.svgsimilarity index 100%rename from frontend/src/scenes/onboarding/legacy/sdks/logos/traceloop.svgrename to frontend/src/scenes/onboarding/shared/logos/traceloop.svgdiff --git a/frontend/src/scenes/onboarding/legacy/sdks/logos/vite.svg b/frontend/src/scenes/onboarding/shared/logos/vite.svgsimilarity index 100%rename from frontend/src/scenes/onboarding/legacy/sdks/logos/vite.svgrename to frontend/src/scenes/onboarding/shared/logos/vite.svgdiff --git a/frontend/src/scenes/onboarding/legacy/sdks/logos/vue.svg b/frontend/src/scenes/onboarding/shared/logos/vue.svgsimilarity index 100%rename from frontend/src/scenes/onboarding/legacy/sdks/logos/vue.svgrename to frontend/src/scenes/onboarding/shared/logos/vue.svgdiff --git a/frontend/src/scenes/onboarding/legacy/sdks/logos/webflow.svg b/frontend/src/scenes/onboarding/shared/logos/webflow.svgsimilarity index 100%rename from frontend/src/scenes/onboarding/legacy/sdks/logos/webflow.svgrename to frontend/src/scenes/onboarding/shared/logos/webflow.svgdiff --git a/frontend/src/scenes/onboarding/legacy/sdks/logos/zapier.svg b/frontend/src/scenes/onboarding/shared/logos/zapier.svgsimilarity index 100%rename from frontend/src/scenes/onboarding/legacy/sdks/logos/zapier.svgrename to frontend/src/scenes/onboarding/shared/logos/zapier.svgdiff --git a/frontend/src/scenes/onboarding/shared/wizard-sync/InstallationProgressView.stories.tsx b/frontend/src/scenes/onboarding/shared/wizard-sync/InstallationProgressView.stories.tsxindex e64e3a56ec22..abf0f085bd89 100644--- a/frontend/src/scenes/onboarding/shared/wizard-sync/InstallationProgressView.stories.tsx+++ b/frontend/src/scenes/onboarding/shared/wizard-sync/InstallationProgressView.stories.tsx@@ -9,7 +9,7 @@ import { InstallationProgressContent } from './InstallationProgressView'* glance.*/const meta: Meta<typeof InstallationProgressContent> = {- title: 'Scenes-Other/Onboarding/Installation Progress',+ title: 'Scenes-Other/Onboarding/Shared/Installation Progress',component: InstallationProgressContent,// Provide the local-fallback callback to every story so the failed-run states show the full// "Run it yourself" + "Read the docs" recovery (no-op on non-error phases).@@ -49,17 +49,32 @@ function progress(overrides: Partial<InstallationProgress>): InstallationProgres}export const Connecting: Story = {- args: { progress: progress({ phase: 'connecting' }) },+ args: { progress: progress({ phase: 'connecting' }), mode: 'cloud' },+}++export const ConnectingLocal: Story = {+ args: { progress: progress({ phase: 'connecting' }), mode: 'local' },}export const RunningProvisioning: Story = {args: { progress: progress({ steps: steps(['in_progress', 'pending', 'pending', 'pending']) }) },}+// The wizard's own sub-steps (session tasks) replace the pipeline's aggregate wizard stage in the+// flat timeline, indistinguishable from pipeline steps.+const wizardSubSteps: InstallationProgress['steps'] = [+ { id: 'wizard-task:a', label: 'Detected Next.js', status: 'completed', detail: null, source: 'wizard' },+ { id: 'wizard-task:b', label: 'Installing the PostHog SDK', status: 'in_progress', detail: null, source: 'wizard' },+ { id: 'wizard-task:c', label: 'Wiring up event capture', status: 'pending', detail: null, source: 'wizard' },+]+export const RunningWizard: Story = {args: {progress: progress({- steps: steps(['completed', 'completed', 'in_progress', 'pending'], { at: 2, text: 'Detecting Next.js' }),+ steps: (() => {+ const stages = steps(['completed', 'completed', 'in_progress', 'pending'])+ return [...stages.slice(0, 2), ...wizardSubSteps, ...stages.slice(3)]+ })(),}),},}@@ -71,9 +86,30 @@ export const Completed: Story = {steps: steps(['completed', 'completed', 'completed', 'completed']),prUrl: 'https://github.com/acme-co/web/pull/42',}),+ mode: 'cloud',+ dashboard: { id: 1, name: 'My app analytics' },},}+// The local run's final handoff: the wizard finished on the user's machine, so the review + deploy+// steps are theirs — plus the dashboard the wizard built as the payoff CTA.+export const CompletedLocalHandoff: Story = {+ args: {+ progress: progress({+ phase: 'completed',+ steps: [+ { id: 'a', label: 'Detected Next.js', status: 'completed', detail: null },+ { id: 'b', label: 'Installed the PostHog SDK', status: 'completed', detail: null },+ { id: 'c', label: 'Wired up event capture', status: 'completed', detail: null },+ { id: 'd', label: 'Created a dashboard', status: 'completed', detail: null },+ ],+ }),+ mode: 'local',+ dashboard: { id: 1, name: 'My app analytics' },+ },+ argTypes: { onDismiss: { action: 'dismissed' } },+}+// The PR is open but the run keeps going (keeping CI green): "Pull request ready" headline + the review// CTA surface mid-run, and the keep-green step shows as active rather than the run looking stuck.export const PullRequestReady: Story = {@@ -158,11 +194,13 @@ export const AllStates: Story = {parameters: { controls: { disable: true } },render: () => {const states: { label: string; args: Story['args'] }[] = [- { label: 'Connecting', args: Connecting.args },+ { label: 'Connecting (cloud)', args: Connecting.args },+ { label: 'Connecting (local)', args: ConnectingLocal.args },{ label: 'Running: provisioning', args: RunningProvisioning.args },{ label: 'Running: wizard', args: RunningWizard.args },{ label: 'Pull request ready', args: PullRequestReady.args },{ label: 'Completed', args: Completed.args },+ { label: 'Completed: local handoff', args: CompletedLocalHandoff.args },{ label: 'Failed: provisioning', args: FailedProvisioning.args },{ label: 'Failed: wizard', args: FailedWizard.args },{ label: 'Failed: no detail', args: FailedNoDetail.args },@@ -172,7 +210,12 @@ export const AllStates: Story = {{states.map(({ label, args }) => (<div key={label} className="flex flex-col gap-1"><span className="text-xs font-medium text-muted">{label}</span>- <InstallationProgressContent progress={args!.progress!} onRetryLocally={() => {}} />+ <InstallationProgressContent+ progress={args!.progress!}+ mode={args!.mode}+ dashboard={args!.dashboard}+ onRetryLocally={() => {}}+ /></div>))}</div>diff --git a/frontend/src/scenes/onboarding/shared/wizard-sync/InstallationProgressView.tsx b/frontend/src/scenes/onboarding/shared/wizard-sync/InstallationProgressView.tsxindex e68607c11a5d..9194a121af3f 100644--- a/frontend/src/scenes/onboarding/shared/wizard-sync/InstallationProgressView.tsx+++ b/frontend/src/scenes/onboarding/shared/wizard-sync/InstallationProgressView.tsx@@ -1,13 +1,32 @@import { useActions, useValues } from 'kea'import { useEffect } from 'react'-import { IconCheckCircle, IconPullRequest, IconTerminal, IconX } from '@posthog/icons'+import { HedgehogWizardHog } from '@posthog/brand/hoggies'+import {+ IconCheckCircle,+ IconDashboard,+ IconPullRequest,+ IconRocket,+ IconSearch,+ IconTerminal,+ IconX,+} from '@posthog/icons'import { LemonButton, Spinner } from '@posthog/lemon-ui'import { cn } from 'lib/utils/css-classes'+import { urls } from 'scenes/urls'+import { onboardingEventUsageLogic } from '../../onboardingEventUsageLogic'import { activeCloudRunLogic } from './activeCloudRunLogic'-import { InstallationProgress, installationProgressLogic, InstallationStepStatus } from './installationProgressLogic'+import { finishedLocalRunLogic } from './finishedLocalRunLogic'+import { prNameLabel } from './helpers'+import {+ InstallationMode,+ InstallationProgress,+ installationProgressLogic,+ InstallationStepStatus,+} from './installationProgressLogic'+import { DetectedDashboard, wizardDashboardLogic } from './wizardDashboardLogic'// Timeline dot for a single step.function StepIcon({ status }: { status: InstallationStepStatus }): JSX.Element {@@ -23,6 +42,19 @@ function StepIcon({ status }: { status: InstallationStepStatus }): JSX.Element {return <span className="w-4 h-4 rounded-full border-2 border-border" />}+// What's about to happen, shown as pending timeline rows while the stream connects. Same geometry+// (and, for cloud, the same gerund phrasing) as the streamed steps that replace them, so the swap+// reads as the plan lighting up rather than the card rewriting itself.+const UPCOMING_STEPS: Record<InstallationMode, string[]> = {+ cloud: ['Setting up sandbox', 'Cloning repository', 'Running setup wizard', 'Opening a pull request'],+ local: ['Detecting your framework', 'Installing the PostHog SDK', 'Wiring up event capture'],+}++const CONNECTING_SUBTITLE: Record<InstallationMode, string> = {+ cloud: 'Firing up a sandbox for your repo. The wizard takes it from there.',+ local: 'Waiting for the wizard in your terminal to check in.',+}+/*** Presentational renderer for an `InstallationProgress`: a text header, a connected step timeline, and* the terminal payoff (PR link) or failure detail. Pure (no logic/streams) so every state, including@@ -31,10 +63,19 @@ function StepIcon({ status }: { status: InstallationStepStatus }): JSX.Element {*/export function InstallationProgressContent({progress,+ mode,+ dashboard,+ onDashboardClick,onDismiss,onRetryLocally,}: {progress: InstallationProgress+ /** Tailors the connecting state (copy + upcoming-step preview) to where the run happens. */+ mode?: InstallationMode+ /** Dashboard the wizard built, when detected — surfaced as the completed state's payoff. */+ dashboard?: DetectedDashboard | null+ /** Telemetry hook for the dashboard CTA — navigation itself rides the button's `to`. */+ onDashboardClick?: () => voidonDismiss?: () => void/** When set, a failed run offers a "Run it yourself" button (switches the install step to the local* command). Omitted where no local fallback exists (e.g. the floating FAB), which shows only docs. */@@ -57,15 +98,24 @@ export function InstallationProgressContent({const subtitle =phase === 'completed'? prUrl- ? 'We opened a pull request for you to review.'- : "You're all set."+ ? 'Review and merge the pull request, then deploy. Data starts flowing the moment it ships.'+ : mode === 'local'+ ? 'The wizard finished its work on your machine.'+ : "You're all set.": phase === 'error'? "We couldn't finish the setup.": prReady? "Review it whenever you like; we'll keep CI green in the meantime.": phase === 'connecting'- ? 'Getting things ready…'- : 'Working on it. Feel free to keep going.'+ ? ((mode && CONNECTING_SUBTITLE[mode]) ?? 'Getting things ready…')+ : phase === 'idle'+ ? 'Not hearing back from this run right now. You can dismiss it and start over.'+ : 'Working on it. Feel free to keep going.'++ // Before the stream delivers steps there is nothing moving on screen — carry the "alive" signal in+ // the header, and preview the pipeline so the wait reads as "about to do X", not a mystery.+ const waitingForSteps = steps.length === 0 && (phase === 'connecting' || phase === 'running') && !prReady+ const upcomingSteps = phase === 'connecting' && steps.length === 0 && mode ? UPCOMING_STEPS[mode] : nullreturn (<div@@ -73,26 +123,36 @@ export function InstallationProgressContent({data-attr="installation-progress"><div className="flex items-start justify-between gap-2">- <div className="min-w-0">- <h4 className={cn('font-semibold m-0', phase === 'error' && 'text-danger')}>{headline}</h4>- <p className="text-sm text-muted m-0">{subtitle}</p>+ <div className="flex items-start gap-2.5 min-w-0">+ {waitingForSteps && <Spinner className="text-xl shrink-0 mt-0.5 text-accent" textColored />}+ <div className="min-w-0">+ <h4 className={cn('font-semibold m-0', phase === 'error' && 'text-danger')}>{headline}</h4>+ <p className="text-sm text-muted m-0">{subtitle}</p>+ </div>+ </div>+ <div className="flex items-start gap-1 shrink-0">+ {phase === 'completed' && <HedgehogWizardHog className="w-14 h-14 -my-2" aria-hidden="true" />}+ {/* Dismiss once the run is settled — mid-run, hiding the only progress surface+ (the FAB is suppressed while this panel is mounted) would orphan a live run.+ 'idle' is dismissible too: it means the stream stopped permanently without ever+ delivering state (deleted run, revoked access), and the persisted handle would+ otherwise be an undismissable zombie across reloads. */}+ {onDismiss && (phase === 'completed' || phase === 'error' || phase === 'idle') && (+ <LemonButton+ size="small"+ icon={<IconX />}+ onClick={onDismiss}+ tooltip="Dismiss"+ aria-label="Dismiss"+ />+ )}</div>- {/* Dismiss only once the run is settled — mid-run, hiding the only progress surface- (the FAB is suppressed while this panel is mounted) would orphan a live run. */}- {onDismiss && (phase === 'completed' || phase === 'error') && (- <LemonButton- size="small"- icon={<IconX />}- onClick={onDismiss}- tooltip="Dismiss"- aria-label="Dismiss"- />- )}</div>- {steps.length > 0 && (+ {steps.length > 0 ? (<ol className="flex flex-col m-0 p-0 list-none">{steps.map((step, i) => (+ // One flat rail for pipeline and wizard-reported steps alike.<li key={step.id} className="flex gap-3"><div className="flex flex-col items-center pt-0.5"><StepIcon status={step.status} />@@ -101,7 +161,7 @@ export function InstallationProgressContent({<div className="flex-1 min-w-0 pb-3"><divclassName={cn(- 'text-sm',+ 'text-sm truncate',step.status === 'pending' && 'text-muted',step.status === 'failed' && 'text-danger font-medium',step.status === 'in_progress' && 'font-medium'@@ -114,6 +174,50 @@ export function InstallationProgressContent({</li>))}</ol>+ ) : (+ upcomingSteps && (+ <ol className="flex flex-col m-0 p-0 list-none" aria-label="Upcoming setup steps">+ {upcomingSteps.map((label, i) => (+ <li key={label} className="flex gap-3">+ <div className="flex flex-col items-center pt-0.5">+ <StepIcon status="pending" />+ {i < upcomingSteps.length - 1 && (+ <div className="w-px flex-1 bg-border my-1 min-h-[0.75rem]" />+ )}+ </div>+ <div className="flex-1 min-w-0 pb-3 text-sm text-muted">{label}</div>+ </li>+ ))}+ </ol>+ )+ )}++ {phase === 'completed' && mode === 'local' && (+ // The wizard's changes sit uncommitted on the user's machine — only the user can+ // finish the last mile (review, deploy), so no button can carry this step.+ <div className="flex flex-col gap-1.5">+ <span className="text-xs font-semibold uppercase tracking-wide text-muted">Over to you</span>+ <ul className="flex flex-col gap-1.5 m-0 p-0 list-none text-sm">+ <li className="flex items-start gap-2">+ <IconSearch className="text-muted text-base mt-0.5 shrink-0" />+ <span>+ <strong>Review the changes</strong> in your editor before you commit.+ </span>+ </li>+ <li className="flex items-start gap-2">+ <IconTerminal className="text-muted text-base mt-0.5 shrink-0" />+ <span>+ <strong>Try it locally</strong> and your events show up here right away.+ </span>+ </li>+ <li className="flex items-start gap-2">+ <IconRocket className="text-muted text-base mt-0.5 shrink-0" />+ <span>+ <strong>Commit and deploy</strong> to get data from real users.+ </span>+ </li>+ </ul>+ </div>)}{phase === 'error' && error?.detail && (@@ -140,35 +244,72 @@ export function InstallationProgressContent({)}{prUrl && (- <LemonButton type="primary" to={prUrl} targetBlank icon={<IconPullRequest />} center>- Review PR+ // ph-no-capture: the label carries the customer's repo name and the href their PR+ // url — neither may reach autocapture in the shared app analytics project.+ <LemonButton+ type="primary"+ to={prUrl}+ targetBlank+ icon={<IconPullRequest />}+ center+ className="ph-no-capture"+ >+ <span className="truncate">{prNameLabel(prUrl)}</span></LemonButton>)}++ {phase === 'completed' && dashboard && (+ <div className="flex flex-col gap-2">+ <p className="text-sm text-muted m-0">+ The wizard also set up a dashboard for you. It fills up as soon as your events arrive. Feel free+ to look around.+ </p>+ <LemonButton+ type={prUrl ? 'secondary' : 'primary'}+ to={urls.dashboard(dashboard.id)}+ icon={<IconDashboard />}+ center+ tooltip={dashboard.name ?? undefined}+ onClick={onDashboardClick}+ >+ Preview your dashboard+ </LemonButton>+ </div>+ )}</div>)}/**- * Container: streams a cloud run's progress from the Installation layer and renders it. Inline on the- * install step (sets `panelMounted` to hide the floating FAB) or inside the FAB itself (`floating`).+ * Container: streams a run's progress from the Installation layer and renders it — the same view for+ * both modes, cloud runs just additionally track the TaskRun pipeline (`mode: 'cloud'` with the run+ * handle; `mode: 'local'` reads only the wizard session stream). Inline on the install step (sets+ * `panelMounted` to hide the floating FAB) or inside the FAB itself (`floating`).*/export function InstallationProgressView({+ mode,runId,taskId,floating = false,onDismiss,onRetryLocally,}: {- runId: string- taskId: string+ mode: 'local' | 'cloud'+ /** The TaskRun handle — required for cloud runs, absent for local ones. */+ runId?: string+ taskId?: string/** Rendered in the floating FAB rather than inline on the install step. */floating?: booleanonDismiss?: () => void/** Forwarded to the failed-run fallback (see InstallationProgressContent). */onRetryLocally?: () => void}): JSX.Element {- const { installationProgress } = useValues(installationProgressLogic({ mode: 'cloud', runId, taskId }))+ const { installationProgress, latestSession } = useValues(installationProgressLogic({ mode, runId, taskId }))const { setPanelMounted } = useActions(activeCloudRunLogic)+ const { detectedDashboard } = useValues(wizardDashboardLogic)+ const { dismissLocalRun } = useActions(finishedLocalRunLogic)+ const { reportWizardSyncHandoffShown, reportWizardSyncDashboardCtaShown, reportWizardSyncDashboardCtaClicked } =+ useActions(onboardingEventUsageLogic)// While shown inline on the install step, hide the floating FAB so the same run isn't in two places.useEffect(() => {@@ -179,11 +320,52 @@ export function InstallationProgressView({return () => setPanelMounted(false)}, [floating, setPanelMounted])+ const runKey = mode === 'cloud' ? runId : latestSession?.session_id+ const completed = installationProgress.phase === 'completed'+ const dashboard = completed ? detectedDashboard : null+ const prOpened = !!installationProgress.prUrl++ // The completed-handoff funnel (exposure + CTA impression), deduped per run inside the events+ // logic so remounts and the FAB showing the same run don't double count.+ useEffect(() => {+ if (completed && runKey) {+ reportWizardSyncHandoffShown({ runKey, mode, surface: 'inline', prOpened })+ }+ }, [completed, runKey, mode, prOpened, reportWizardSyncHandoffShown])+ const dashboardVisible = !!dashboard+ useEffect(() => {+ if (dashboardVisible && runKey) {+ reportWizardSyncDashboardCtaShown({ runKey, mode, surface: 'inline' })+ }+ }, [dashboardVisible, runKey, mode, reportWizardSyncDashboardCtaShown])++ // Local runs always get a dismissal: it releases the install-step takeover and the FAB in one+ // move, and nothing else knows the session to clear. Cloud dismissal stays with the caller+ // (it owns the persisted run handle).+ const defaultLocalDismiss =+ mode === 'local' && latestSession ? () => dismissLocalRun(latestSession.session_id) : undefined+return (<InstallationProgressContentprogress={installationProgress}- onDismiss={onDismiss}+ mode={mode}+ dashboard={dashboard}+ onDashboardClick={+ runKey ? () => reportWizardSyncDashboardCtaClicked({ runKey, mode, surface: 'inline' }) : undefined+ }+ onDismiss={onDismiss ?? defaultLocalDismiss}onRetryLocally={onRetryLocally}/>)}++/**+ * Whether a local wizard run should take over the install step: a session exists on the stream AND it+ * has been observed fresh (stale terminal rows from previous runs don't count). Mounts the local+ * Installation layer — and with it the wizard session stream — so use it only where the takeover can+ * actually render (the sync-enabled install steps).+ */+export function useLocalWizardRunActive(): boolean {+ const { installationProgress } = useValues(installationProgressLogic({ mode: 'local' }))+ return installationProgress.isCurrent+}diff --git a/frontend/src/scenes/onboarding/shared/wizard-sync/WizardCloudRunBlock.stories.tsx b/frontend/src/scenes/onboarding/shared/wizard-sync/WizardCloudRunBlock.stories.tsxindex e092f933f47c..8e922ecbcd3b 100644--- a/frontend/src/scenes/onboarding/shared/wizard-sync/WizardCloudRunBlock.stories.tsx+++ b/frontend/src/scenes/onboarding/shared/wizard-sync/WizardCloudRunBlock.stories.tsx@@ -80,7 +80,7 @@ const githubReposResponse = {}const meta: Meta = {- title: 'Scenes-Other/Onboarding/Wizard Cloud Run',+ title: 'Scenes-Other/Onboarding/Shared/Wizard Cloud Run',parameters: {layout: 'fullscreen',viewMode: 'story',diff --git a/frontend/src/scenes/onboarding/shared/wizard-sync/WizardCloudRunBlock.tsx b/frontend/src/scenes/onboarding/shared/wizard-sync/WizardCloudRunBlock.tsxindex f93059874d01..171b15e20881 100644--- a/frontend/src/scenes/onboarding/shared/wizard-sync/WizardCloudRunBlock.tsx+++ b/frontend/src/scenes/onboarding/shared/wizard-sync/WizardCloudRunBlock.tsx@@ -67,6 +67,7 @@ export function WizardCloudRunBlock({if (activeCloudRun) {return (<InstallationProgressView+ mode="cloud"runId={activeCloudRun.runId}taskId={activeCloudRun.taskId}onRetryLocally={onRetryLocally}diff --git a/frontend/src/scenes/onboarding/shared/wizard-sync/WizardInstallOptions.tsx b/frontend/src/scenes/onboarding/shared/wizard-sync/WizardInstallOptions.tsxindex a397a7838170..04f700085c11 100644--- a/frontend/src/scenes/onboarding/shared/wizard-sync/WizardInstallOptions.tsx+++ b/frontend/src/scenes/onboarding/shared/wizard-sync/WizardInstallOptions.tsx@@ -1,14 +1,11 @@import { useActions, useValues } from 'kea'import { useState } from 'react'-import { useEffect } from 'react'import { IconCloud, IconTerminal } from '@posthog/icons'import { LemonSegmentedButton } from '@posthog/lemon-ui'import { useFeatureFlag } from 'lib/hooks/useFeatureFlag'-import { featureFlagLogic } from 'lib/logic/featureFlagLogic'-import { onboardingEventUsageLogic } from '../../onboardingEventUsageLogic'import { useWizardCommand } from '../SetupWizardBanner'import { activeCloudRunLogic } from './activeCloudRunLogic'import { WizardCloudRunBlock } from './WizardCloudRunBlock'@@ -43,24 +40,10 @@ export function WizardInstallOptions({const { isCloudOrDev } = useWizardCommand()const { activeCloudRun } = useValues(activeCloudRunLogic)const { clearActiveCloudRun } = useActions(activeCloudRunLogic)- const { reportWizardCloudRunExperimentExposed } = useActions(onboardingEventUsageLogic)const [mode, setMode] = useState<WizardInstallMode>('cloud')const offerCloud = cloudRunEnabled && isCloudOrDev- // GROW-117: this component is where the cloud-run AB arms diverge — control collapses to the- // local block, test shows the picker — so showing it on a cloud/dev instance IS the exposure.- // Both gates resolve asynchronously (preflight for isCloudOrDev, posthog-js for the flags), so- // fire on readiness rather than once at mount: a mount-time snapshot would drop or mis-bucket- // exposures for exactly the fresh-signup population the experiment measures. The listener- // dedupes and skips unenrolled users, so re-fires are safe. Self-hosted never offers cloud- // runs on either arm, so it stays out of the experiment.- const { receivedFeatureFlags } = useValues(featureFlagLogic)- useEffect(() => {- if (isCloudOrDev && receivedFeatureFlags) {- reportWizardCloudRunExperimentExposed()- }- }, [isCloudOrDev, receivedFeatureFlags, reportWizardCloudRunExperimentExposed])// GROW-95: once a cloud run is spawned you cannot also run it locally, so the local tab is blocked// and the view pins to the cloud run's progress until it is cleared (e.g. via the failure fallback).const localBlocked = !!activeCloudRundiff --git a/frontend/src/scenes/onboarding/shared/wizard-sync/WizardModeShell.tsx b/frontend/src/scenes/onboarding/shared/wizard-sync/WizardModeShell.tsxindex 140e0eb55cfe..f0c4c3e2332f 100644--- a/frontend/src/scenes/onboarding/shared/wizard-sync/WizardModeShell.tsx+++ b/frontend/src/scenes/onboarding/shared/wizard-sync/WizardModeShell.tsx@@ -5,21 +5,21 @@ import type { ComponentType, ReactNode } from 'react'import { cn } from 'lib/utils/css-classes'import { WIZARD_HOG_URL } from 'scenes/onboarding/shared/wizardHog'-import androidImage from '../../legacy/sdks/logos/android.svg'-import angularImage from '../../legacy/sdks/logos/angular.svg'-import { AstroLogo } from '../../legacy/sdks/logos/AstroLogo'-import djangoImage from '../../legacy/sdks/logos/django.svg'-import flaskImage from '../../legacy/sdks/logos/flask.svg'-import { IOSLogo } from '../../legacy/sdks/logos/IOSLogo'-import laravelImage from '../../legacy/sdks/logos/laravel.svg'-import nextjsImage from '../../legacy/sdks/logos/nextjs.svg'-import nuxtImage from '../../legacy/sdks/logos/nuxt.svg'-import pythonImage from '../../legacy/sdks/logos/python.svg'-import railsImage from '../../legacy/sdks/logos/rails.svg'-import reactImage from '../../legacy/sdks/logos/react.svg'-import { ReactRouterLogo } from '../../legacy/sdks/logos/ReactRouterLogo'-import svelteImage from '../../legacy/sdks/logos/svelte.svg'-import vueImage from '../../legacy/sdks/logos/vue.svg'+import androidImage from '../logos/android.svg'+import angularImage from '../logos/angular.svg'+import { AstroLogo } from '../logos/AstroLogo'+import djangoImage from '../logos/django.svg'+import flaskImage from '../logos/flask.svg'+import { IOSLogo } from '../logos/IOSLogo'+import laravelImage from '../logos/laravel.svg'+import nextjsImage from '../logos/nextjs.svg'+import nuxtImage from '../logos/nuxt.svg'+import pythonImage from '../logos/python.svg'+import railsImage from '../logos/rails.svg'+import reactImage from '../logos/react.svg'+import { ReactRouterLogo } from '../logos/ReactRouterLogo'+import svelteImage from '../logos/svelte.svg'+import vueImage from '../logos/vue.svg'// Frameworks the wizard can set up — the same whichever way it runs, so both modes show them.const WIZARD_FRAMEWORKS: { name: string; icon: string | ComponentType }[] = [diff --git a/frontend/src/scenes/onboarding/shared/wizard-sync/WizardSyncCard.stories.tsx b/frontend/src/scenes/onboarding/shared/wizard-sync/WizardSyncCard.stories.tsxindex 417bb1b29b03..3691ed2f08e0 100644--- a/frontend/src/scenes/onboarding/shared/wizard-sync/WizardSyncCard.stories.tsx+++ b/frontend/src/scenes/onboarding/shared/wizard-sync/WizardSyncCard.stories.tsx@@ -8,7 +8,7 @@ import { WizardSyncCard, WizardSyncMode } from './WizardSyncCard'* reviewable in isolation. The component is pure, so no streams or mocks are needed.*/const meta: Meta<typeof WizardSyncCard> = {- title: 'Scenes-Other/Onboarding/Wizard Sync Card',+ title: 'Scenes-Other/Onboarding/Shared/Wizard Sync Card',component: WizardSyncCard,argTypes: {onExpand: { action: 'expand' },@@ -111,6 +111,25 @@ export const Completed: Story = {},}+// A finished local run: no PR to review, so the dashboard the wizard built is the footer payoff,+// and the X reads as a real dismissal.+export const CompletedLocal: Story = {+ args: {+ mode: 'local',+ elapsedSeconds: 421,+ progress: progress({+ phase: 'completed',+ steps: [+ { id: 'a', label: 'Detected Next.js', status: 'completed', detail: null },+ { id: 'b', label: 'Installed the PostHog SDK', status: 'completed', detail: null },+ { id: 'c', label: 'Wired up event capture', status: 'completed', detail: null },+ ],+ }),+ dashboard: { id: 1, name: 'My app analytics' },+ dismissTooltip: 'Dismiss',+ },+}+export const Failed: Story = {args: {mode: 'cloud',@@ -134,6 +153,7 @@ export const AllStates: Story = {{ label: 'Cloud, keeping CI green', args: CloudKeepingCiGreen.args },{ label: 'Local, running', args: LocalRunning.args },{ label: 'Completed', args: Completed.args },+ { label: 'Completed, local (dashboard payoff)', args: CompletedLocal.args },{ label: 'Failed', args: Failed.args },]return (@@ -145,6 +165,7 @@ export const AllStates: Story = {progress={args!.progress!}elapsedSeconds={args!.elapsedSeconds!}mode={args!.mode!}+ dashboard={args!.dashboard}onExpand={() => {}}onDismiss={() => {}}/>diff --git a/frontend/src/scenes/onboarding/shared/wizard-sync/WizardSyncCard.tsx b/frontend/src/scenes/onboarding/shared/wizard-sync/WizardSyncCard.tsxindex e393ea319c33..eb745e7cae72 100644--- a/frontend/src/scenes/onboarding/shared/wizard-sync/WizardSyncCard.tsx+++ b/frontend/src/scenes/onboarding/shared/wizard-sync/WizardSyncCard.tsx@@ -1,6 +1,7 @@import {IconCheckCircle,IconCloud,+ IconDashboard,IconExpand45,IconLaptop,IconPullRequest,@@ -10,9 +11,19 @@ import {import { LemonButton, Spinner } from '@posthog/lemon-ui'import { cn } from 'lib/utils/css-classes'+import { urls } from 'scenes/urls'-import { currentTaskLabel, formatElapsed, pipClass, stepCounts, syncHeadline, toneTextClass } from './helpers'+import {+ currentTaskLabel,+ formatElapsed,+ pipClass,+ prNameLabel,+ stepCounts,+ syncHeadline,+ toneTextClass,+} from './helpers'import { InstallationProgress } from './installationProgressLogic'+import { DetectedDashboard } from './wizardDashboardLogic'export type WizardSyncMode = 'cloud' | 'local'@@ -48,14 +59,23 @@ export function WizardSyncCard({progress,elapsedSeconds,mode,+ dashboard,+ onDashboardClick,onExpand,onDismiss,+ dismissTooltip = 'Dismiss',}: {progress: InstallationProgresselapsedSeconds: numbermode: WizardSyncMode+ /** Dashboard the wizard built, when detected — the completed card's payoff for runs with no PR. */+ dashboard?: DetectedDashboard | null+ /** Telemetry hook for the dashboard CTA — navigation itself rides the button's `to`. */+ onDashboardClick?: () => voidonExpand: () => voidonDismiss?: () => void+ /** What the X actually does here — "Minimize" while the run is live, "Dismiss" once terminal. */+ dismissTooltip?: string}): JSX.Element {const { completed, total } = stepCounts(progress.steps)const task = currentTaskLabel(progress)@@ -118,6 +138,10 @@ export function WizardSyncCard({<ModeChip mode={mode} /><div className="flex items-center gap-1">{progress.prUrl && (+ // ph-no-capture: the label carries the customer's repo name and the href+ // their PR url — neither may reach autocapture in shared app analytics.+ // Truncated: owner + repo can reach ~140 chars and this footer sits inside+ // a fixed 340px card next to the mode chip and two icon buttons.<LemonButtonsize="xsmall"// The PR is the run's payoff: promote it once the run has finished.@@ -126,8 +150,25 @@ export function WizardSyncCard({targetBlankicon={<IconPullRequest />}onClick={(e) => e.stopPropagation()}+ className="ph-no-capture"+ tooltip={prNameLabel(progress.prUrl)}+ >+ <span className="truncate max-w-32">{prNameLabel(progress.prUrl)}</span>+ </LemonButton>+ )}+ {progress.phase === 'completed' && !progress.prUrl && dashboard && (+ <LemonButton+ size="xsmall"+ type="primary"+ to={urls.dashboard(dashboard.id)}+ icon={<IconDashboard />}+ onClick={(e) => {+ e.stopPropagation()+ onDashboardClick?.()+ }}+ tooltip="The wizard set this up for you. It fills up as your events arrive">- Review PR+ Preview dashboard</LemonButton>)}<LemonButton@@ -142,8 +183,8 @@ export function WizardSyncCard({size="xsmall"icon={<IconX />}onClick={onDismiss}- tooltip="Dismiss"- aria-label="Dismiss"+ tooltip={dismissTooltip}+ aria-label={dismissTooltip}/>)}</div>diff --git a/frontend/src/scenes/onboarding/shared/wizard-sync/WizardSyncFab.tsx b/frontend/src/scenes/onboarding/shared/wizard-sync/WizardSyncFab.tsxindex 8fa5ea932452..2e31481fa982 100644--- a/frontend/src/scenes/onboarding/shared/wizard-sync/WizardSyncFab.tsx+++ b/frontend/src/scenes/onboarding/shared/wizard-sync/WizardSyncFab.tsx@@ -1,5 +1,5 @@import { useActions, useMountedLogic, useValues } from 'kea'-import { useEffect, useState } from 'react'+import { useEffect, useRef, useState } from 'react'import { LemonButton, LemonModal } from '@posthog/lemon-ui'@@ -9,10 +9,16 @@ import { elapsedSecondsFrom } from 'lib/utils/datetime'import { onboardingEventUsageLogic } from '../../onboardingEventUsageLogic'import { activeCloudRunLogic, CloudRunHandle } from './activeCloudRunLogic'+import { finishedLocalRunLogic } from './finishedLocalRunLogic'import { formatElapsed, syncHeadline, toneTextClass } from './helpers'-import { InstallationProgress, installationProgressLogic } from './installationProgressLogic'+import {+ InstallationProgress,+ installationProgressLogic,+ progressFromFinishedLocalRun,+} from './installationProgressLogic'import { InstallationProgressContent } from './InstallationProgressView'import { wizardActiveSessionDetectorLogic } from './wizardActiveSessionDetectorLogic'+import { DetectedDashboard, wizardDashboardLogic } from './wizardDashboardLogic'import { StatusGlyph, WizardSyncCard, WizardSyncMode } from './WizardSyncCard'import { wizardSyncUiLogic } from './wizardSyncUiLogic'@@ -21,12 +27,17 @@ import { wizardSyncUiLogic } from './wizardSyncUiLogic'const CORNER = 'fixed bottom-5 right-5 z-[60]'// 1Hz clock for the elapsed timer, scoped to a mounted run so nothing ticks when no run is active.-function useNow(): number {+// `frozen` stops the interval entirely — a finished run shows its fixed duration, so ticking for it+// would be pure re-render churn.+function useNow(frozen: boolean = false): number {const [now, setNow] = useState(() => Date.now())useEffect(() => {+ if (frozen) {+ return+ }const id = window.setInterval(() => setNow(Date.now()), 1000)return () => window.clearInterval(id)- }, [])+ }, [frozen])return now}@@ -69,16 +80,20 @@ function WizardSyncDialog({progress,elapsedSeconds,mode,+ dashboard,isOpen,onClose,onClear,+ onDashboardClick,}: {progress: InstallationProgresselapsedSeconds: numbermode: WizardSyncMode+ dashboard?: DetectedDashboard | nullisOpen: booleanonClose: () => voidonClear?: () => void+ onDashboardClick?: () => void}): JSX.Element {const isTerminal = progress.phase === 'completed' || progress.phase === 'error'return (@@ -90,7 +105,12 @@ function WizardSyncDialog({{mode === 'cloud' ? 'Cloud run' : 'On your machine'} · {formatElapsed(elapsedSeconds)}</span></div>- <InstallationProgressContent progress={progress} />+ <InstallationProgressContent+ progress={progress}+ mode={mode}+ dashboard={dashboard}+ onDashboardClick={onDashboardClick}+ />{isTerminal && onClear && (<LemonButton type="secondary" onClick={onClear} className="self-end">Dismiss this run@@ -106,12 +126,16 @@ function WizardSyncDialog({function WizardSyncSurface({progress,startedAt,+ endedAt,mode,runKey,onClear,}: {progress: InstallationProgressstartedAt: string | undefined+ /** When the run finished — freezes the elapsed timer so a finished run that stays on screen+ * until dismissed shows its duration, not a clock that keeps counting. */+ endedAt?: stringmode: WizardSyncModerunKey: stringonClear?: () => void@@ -123,19 +147,54 @@ function WizardSyncSurface({reportWizardSyncMinimized,reportWizardSyncRestored,reportWizardSyncRunDismissed,+ reportWizardSyncHandoffShown,+ reportWizardSyncDashboardCtaShown,+ reportWizardSyncDashboardCtaClicked,} = useActions(onboardingEventUsageLogic)- const now = useNow()- const elapsedSeconds = startedAt ? elapsedSecondsFrom(startedAt, now) : 0+ const { detectedDashboard } = useValues(wizardDashboardLogic)+ const endMs = endedAt ? new Date(endedAt).getTime() : NaN+ const now = useNow(!Number.isNaN(endMs))+ const elapsedSeconds = startedAt ? elapsedSecondsFrom(startedAt, Number.isNaN(endMs) ? now : endMs) : 0const minimized = dismissedKey === runKey+ const isTerminal = progress.phase === 'completed' || progress.phase === 'error'+ const dashboard = progress.phase === 'completed' ? detectedDashboard : nullconst eventProps = { runKey, mode, phase: progress.phase }++ // The completed-handoff funnel (exposure + CTA impression) — deduped per run inside the events+ // logic, so this fires safely even when the inline panel reported the same run first.+ const completed = progress.phase === 'completed'+ const prOpened = !!progress.prUrl+ useEffect(() => {+ if (completed) {+ reportWizardSyncHandoffShown({ runKey, mode, surface: 'fab', prOpened })+ }+ }, [completed, runKey, mode, prOpened, reportWizardSyncHandoffShown])+ const dashboardVisible = !!dashboard+ useEffect(() => {+ if (dashboardVisible) {+ reportWizardSyncDashboardCtaShown({ runKey, mode, surface: 'fab' })+ }+ }, [dashboardVisible, runKey, mode, reportWizardSyncDashboardCtaShown])+ const handleDashboardClick = (): void => reportWizardSyncDashboardCtaClicked({ runKey, mode, surface: 'fab' })+ // One-shot: a double-click can land two dispatches before the surface unmounts, which would+ // double-fire the dismissal telemetry and re-run onClear.+ const clearedRef = useRef(false)// Clearing a finished run also closes the dialog before the surface unmounts.const handleClear = onClear? () => {+ if (clearedRef.current) {+ return+ }+ clearedRef.current = truereportWizardSyncRunDismissed({ ...eventProps, elapsedSeconds })closeDialog()onClear()}: undefined+ const handleMinimize = (): void => {+ reportWizardSyncMinimized(eventProps)+ dismiss(runKey)+ }return (<>@@ -154,14 +213,17 @@ function WizardSyncSurface({progress={progress}elapsedSeconds={elapsedSeconds}mode={mode}+ dashboard={dashboard}+ onDashboardClick={handleDashboardClick}onExpand={() => {reportWizardSyncExpanded(eventProps)openDialog()}}- onDismiss={() => {- reportWizardSyncMinimized(eventProps)- dismiss(runKey)- }}+ // Mid-run, the X only minimizes — hiding a live run for good would orphan+ // it. Once terminal there is nothing to orphan, so the X is the real+ // dismissal (the run never leaves on its own; the user decides when).+ onDismiss={isTerminal && handleClear ? handleClear : handleMinimize}+ dismissTooltip={isTerminal && handleClear ? 'Dismiss' : 'Minimize'}/>)}</div>@@ -169,6 +231,8 @@ function WizardSyncSurface({progress={progress}elapsedSeconds={elapsedSeconds}mode={mode}+ dashboard={dashboard}+ onDashboardClick={handleDashboardClick}isOpen={dialogOpen}onClose={closeDialog}onClear={handleClear}@@ -179,14 +243,16 @@ function WizardSyncSurface({// A cloud run: the Installation layer streams the pipeline; elapsed comes from the handle's kickoff stamp.function WizardSyncCloudFab({ handle }: { handle: CloudRunHandle }): JSX.Element {- const { installationProgress } = useValues(+ const { installationProgress, taskRunState } = useValues(installationProgressLogic({ mode: 'cloud', runId: handle.runId, taskId: handle.taskId }))const { clearActiveCloudRun } = useActions(activeCloudRunLogic)+ const isTerminal = installationProgress.phase === 'completed' || installationProgress.phase === 'error'return (<WizardSyncSurfaceprogress={installationProgress}startedAt={handle.startedAt}+ endedAt={isTerminal ? (taskRunState?.completed_at ?? taskRunState?.updated_at) : undefined}mode="cloud"runKey={handle.runId}onClear={clearActiveCloudRun}@@ -194,29 +260,57 @@ function WizardSyncCloudFab({ handle }: { handle: CloudRunHandle }): JSX.Element)}-// A local run: the wizard session is the source; elapsed comes from its started_at. Local runs age out-// of the detector once terminal, so there is no explicit clear.+// A finished local run rendered from its persisted snapshot: the session stream gates itself off+// shortly after a terminal phase (INC-886), but the handoff stays until the user dismisses it.+function WizardSyncFinishedLocalFab(): JSX.Element | null {+ const { finishedLocalRun } = useValues(finishedLocalRunLogic)+ const { dismissLocalRun } = useActions(finishedLocalRunLogic)+ if (!finishedLocalRun) {+ return null+ }+ return (+ <WizardSyncSurface+ progress={progressFromFinishedLocalRun(finishedLocalRun)}+ startedAt={finishedLocalRun.startedAt}+ endedAt={finishedLocalRun.finishedAt}+ mode="local"+ runKey={finishedLocalRun.sessionId}+ onClear={() => dismissLocalRun(finishedLocalRun.sessionId)}+ />+ )+}++// A live local run: the wizard session stream is the source; elapsed comes from its started_at.function WizardSyncLocalFab(): JSX.Element | null {const { installationProgress, latestSession } = useValues(installationProgressLogic({ mode: 'local' }))- if (!latestSession) {- return null+ const { dismissedSessionId } = useValues(finishedLocalRunLogic)+ const { dismissLocalRun } = useActions(finishedLocalRunLogic)+ // No session on the stream yet, or the user already dismissed this one — fall back to the+ // persisted finished run (if any) rather than rendering nothing.+ if (!latestSession || latestSession.session_id === dismissedSessionId) {+ return <WizardSyncFinishedLocalFab />}+ const isTerminal = installationProgress.phase === 'completed' || installationProgress.phase === 'error'return (<WizardSyncSurfaceprogress={installationProgress}startedAt={latestSession.started_at}+ endedAt={isTerminal ? latestSession.updated_at : undefined}mode="local"runKey={latestSession.session_id}+ onClear={() => dismissLocalRun(latestSession.session_id)}/>)}-// Gate the local SSE behind the cheap detector poll, so a stream is opened only when a run is in flight.+// Gate the local SSE behind the cheap detector poll, so a stream is opened only when a run is in+// flight. Once the detector gates the stream off (terminal grace expired), the persisted finished+// run keeps the handoff on screen without any stream.function WizardSyncLocalGate(): JSX.Element | null {useMountedLogic(wizardActiveSessionDetectorLogic)const { shouldStream } = useValues(wizardActiveSessionDetectorLogic)if (!shouldStream) {- return null+ return <WizardSyncFinishedLocalFab />}return <WizardSyncLocalFab />}@@ -224,8 +318,9 @@ function WizardSyncLocalGate(): JSX.Element | null {/*** The single detached wizard sync widget, mounted app-wide (AuthenticatedShell). It surfaces whichever* run is in flight, cloud or local, in one place: a cloud run (the persisted handle) takes precedence,- * otherwise a local wizard session detected by the poll. Replaces the earlier separate cloud-run and- * WizardProgressFab so there is one corner widget, never two.+ * otherwise a local wizard session detected by the poll, otherwise a finished local run the user has+ * not yet dismissed. Replaces the earlier separate cloud-run and per-mode corner widgets so there is+ * one corner widget, never two.*/export function WizardSyncFab(): JSX.Element | null {const syncEnabled = useFeatureFlag('ONBOARDING_WIZARD_SYNC', 'test')@@ -246,5 +341,7 @@ export function WizardSyncFab(): JSX.Element | null {if (syncEnabled) {return <WizardSyncLocalGate />}- return null+ // Same reasoning as the cloud handle: a persisted finished run is proof it happened under the+ // test arm, and it must stay dismissible if the flag flips mid-experiment.+ return <WizardSyncFinishedLocalFab />}diff --git a/frontend/src/scenes/onboarding/shared/wizard-sync/activeCloudRunLogic.ts b/frontend/src/scenes/onboarding/shared/wizard-sync/activeCloudRunLogic.tsindex 3702e36137e4..d40efa213c2d 100644--- a/frontend/src/scenes/onboarding/shared/wizard-sync/activeCloudRunLogic.ts+++ b/frontend/src/scenes/onboarding/shared/wizard-sync/activeCloudRunLogic.ts@@ -45,7 +45,7 @@ export const activeCloudRunLogic = kea<activeCloudRunLogicType>([}),clearActiveCloudRun: true,// Set by the inline install-step progress view while it's mounted, so the floating FAB hides- // and the two never render the same run at once (mirrors wizardProgressTrackerLogic.panelMounted).+ // and the two never render the same run at once.// Last-writer-wins boolean, not a refcount: at most ONE inline view may be mounted at a time,// or the first unmount un-hides the FAB while the second view is still on screen.setPanelMounted: (mounted: boolean) => ({ mounted }),diff --git a/frontend/src/scenes/onboarding/shared/wizard-sync/finishedLocalRunLogic.ts b/frontend/src/scenes/onboarding/shared/wizard-sync/finishedLocalRunLogic.tsnew file mode 100644index 000000000000..f6e62b474f64--- /dev/null+++ b/frontend/src/scenes/onboarding/shared/wizard-sync/finishedLocalRunLogic.ts@@ -0,0 +1,105 @@+import { actions, afterMount, connect, kea, listeners, path, reducers, selectors } from 'kea'++import { projectLogic } from 'scenes/projectLogic'++import type { WizardSessionDTOApi } from 'products/wizard/frontend/generated/api.schemas'++import type { finishedLocalRunLogicType } from './finishedLocalRunLogicType'+import { wizardDashboardLogic } from './wizardDashboardLogic'++/** A terminal local wizard run, snapshotted so its handoff outlives the session stream. */+export interface FinishedLocalRunHandle {+ sessionId: string+ /** Project the run belongs to — the handle lives in localStorage, shared across accounts. */+ projectId: number+ startedAt: string+ finishedAt: string+ runPhase: 'completed' | 'error'+ tasks: { id: string; title: string; status: string }[]+ error: { message?: string } | null+}++/**+ * Keeps a finished local wizard run on screen until the user dismisses it. The live session stream+ * gates itself off shortly after a run goes terminal (INC-886), which used to take the FAB down with+ * it — dismissing the handoff surface is the user's call, not a timer's. Written by the Installation+ * layer's local bookkeeping the moment a watched run turns terminal; persisted so a reload doesn't+ * eat the handoff; superseded silently when a new local run starts.+ */+export const finishedLocalRunLogic = kea<finishedLocalRunLogicType>([+ path(['scenes', 'onboarding', 'finishedLocalRunLogic']),+ connect(() => ({+ values: [projectLogic, ['currentProjectId']],+ actions: [wizardDashboardLogic, ['detectWizardDashboard']],+ })),+ actions({+ recordFinishedLocalRun: (session: WizardSessionDTOApi) => ({ session }),+ setFinishedLocalRun: (handle: FinishedLocalRunHandle) => ({ handle }),+ // A different local run went live — the previous run's handoff is superseded, not dismissed+ // (no telemetry; mirrors setActiveCloudRun overwriting the previous cloud handle).+ supersedeFinishedLocalRun: (sessionId: string) => ({ sessionId }),+ // The user's explicit dismissal — the only path that removes a finished run without a+ // replacement. Remembered so an SSE redelivery of the same terminal session can't resurrect+ // the surface.+ dismissLocalRun: (sessionId: string) => ({ sessionId }),+ }),+ reducers({+ persistedFinishedLocalRun: [+ null as FinishedLocalRunHandle | null,+ { persist: true },+ {+ setFinishedLocalRun: (_, { handle }) => handle,+ supersedeFinishedLocalRun: (state, { sessionId }) =>+ state && state.sessionId !== sessionId ? null : state,+ dismissLocalRun: (state, { sessionId }) => (state?.sessionId === sessionId ? null : state),+ },+ ],+ dismissedSessionId: [+ null as string | null,+ { persist: true },+ {+ dismissLocalRun: (_, { sessionId }) => sessionId,+ },+ ],+ }),+ selectors({+ finishedLocalRun: [+ (s) => [s.persistedFinishedLocalRun, s.currentProjectId],+ (persistedFinishedLocalRun, currentProjectId): FinishedLocalRunHandle | null =>+ persistedFinishedLocalRun && persistedFinishedLocalRun.projectId === currentProjectId+ ? persistedFinishedLocalRun+ : null,+ ],+ }),+ listeners(({ actions, values }) => ({+ recordFinishedLocalRun: ({ session }) => {+ const isTerminal = session.run_phase === 'completed' || session.run_phase === 'error'+ if (!isTerminal || session.session_id === values.dismissedSessionId) {+ return+ }+ const projectId = values.currentProjectId+ if (projectId === null) {+ return+ }+ actions.setFinishedLocalRun({+ sessionId: session.session_id,+ projectId,+ startedAt: session.started_at,+ finishedAt: session.updated_at,+ runPhase: session.run_phase === 'error' ? 'error' : 'completed',+ tasks: (session.tasks ?? []).map((t) => ({ id: t.id, title: t.title, status: t.status })),+ error: (session.error as { message?: string } | null) ?? null,+ })+ if (session.run_phase === 'completed') {+ actions.detectWizardDashboard({ startedAt: session.started_at })+ }+ },+ })),+ afterMount(({ actions, values }) => {+ // A completed handle restored from a previous pageload still deserves its dashboard CTA.+ const handle = values.finishedLocalRun+ if (handle?.runPhase === 'completed') {+ actions.detectWizardDashboard({ startedAt: handle.startedAt })+ }+ }),+])diff --git a/frontend/src/scenes/onboarding/shared/wizard-sync/helpers.test.ts b/frontend/src/scenes/onboarding/shared/wizard-sync/helpers.test.tsnew file mode 100644index 000000000000..caf0ea768925--- /dev/null+++ b/frontend/src/scenes/onboarding/shared/wizard-sync/helpers.test.ts@@ -0,0 +1,39 @@+import { activeStep, prName } from './helpers'+import type { InstallationStep } from './installationProgressLogic'++describe('wizard-sync helpers', () => {+ it('activeStep prefers the wizard sub-step over the pipeline stage containing it', () => {+ // The card headline would otherwise read "Running setup wizard" while the wizard is+ // reporting something more specific like "Install SDK".+ const stage: InstallationStep = {+ id: 'setup:wizard',+ label: 'Running setup wizard',+ status: 'in_progress',+ detail: null,+ }+ const sub: InstallationStep = {+ id: 'wizard-task:a',+ label: 'Install SDK',+ status: 'in_progress',+ detail: null,+ source: 'wizard',+ }+ expect(activeStep([stage, sub])?.label).toBe('Install SDK')+ expect(activeStep([stage])?.label).toBe('Running setup wizard')+ expect(activeStep([])).toBeNull()+ })++ // The PR CTA interpolates this into the button label — a bad parse would render+ // "Review null" or leak a mangled identifier instead of falling back to "Review PR".+ it.each([+ ['https://github.com/acme-co/web/pull/42', 'acme-co/web#42'],+ ['https://github.com/acme-co/web/pull/42/files', 'acme-co/web#42'],+ ['https://github.com/acme-co/web/pull/42?diff=split', 'acme-co/web#42'],+ ['https://github.example.com/acme-co/web/pull/7', 'acme-co/web#7'],+ ['https://gitlab.com/acme-co/web/-/merge_requests/42', null],+ ['https://github.com/acme-co/web', null],+ ['not a url', null],+ ])('prName(%s) → %s', (url, expected) => {+ expect(prName(url)).toBe(expected)+ })+})diff --git a/frontend/src/scenes/onboarding/shared/wizard-sync/helpers.ts b/frontend/src/scenes/onboarding/shared/wizard-sync/helpers.tsindex 6b334f12e8a2..1999624b6d63 100644--- a/frontend/src/scenes/onboarding/shared/wizard-sync/helpers.ts+++ b/frontend/src/scenes/onboarding/shared/wizard-sync/helpers.ts@@ -31,7 +31,10 @@ export function syncHeadline(progress: InstallationProgress): string {}export function activeStep(steps: InstallationStep[]): InstallationStep | null {- return steps.find((s) => s.status === 'in_progress') ?? null+ const inProgress = steps.filter((s) => s.status === 'in_progress')+ // Prefer the wizard's own sub-step over the pipeline stage that contains it — "Installing the+ // SDK" says more than "Running setup wizard" when both are in flight.+ return inProgress.find((s) => s.source === 'wizard') ?? inProgress[0] ?? null}// The prominent line: the active step's live detail (the wizard's current sub-task) when present,@@ -57,6 +60,20 @@ export function stepCounts(steps: InstallationStep[]): { completed: number; tota}}+// "owner/repo#123" from a GitHub-style PR url, or null when it doesn't parse (self-hosted forges,+// unexpected shapes) — callers fall back to a generic label. The name makes the CTA concrete: the+// user may have kicked off runs against more than one repo, and "Review PR" doesn't say which.+export function prName(url: string): string | null {+ const match = url.match(/^https?:\/\/[^/]+\/([^/]+)\/([^/]+)\/pull\/(\d+)(?:[/?#]|$)/)+ return match ? `${match[1]}/${match[2]}#${match[3]}` : null+}++// The review CTA's label, shared by the inline view and the sync card.+export function prNameLabel(prUrl: string): string {+ const name = prName(prUrl)+ return name ? `Review ${name}` : 'Review PR'+}+// Accent tone for the whole widget, driven by phase. One accent plus the two terminal colors keeps it// colorful without going loud.export function toneTextClass(progress: InstallationProgress): string {diff --git a/frontend/src/scenes/onboarding/shared/wizard-sync/installationProgressLogic.test.ts b/frontend/src/scenes/onboarding/shared/wizard-sync/installationProgressLogic.test.tsindex ea3dcafc958c..623545f9d9f8 100644--- a/frontend/src/scenes/onboarding/shared/wizard-sync/installationProgressLogic.test.ts+++ b/frontend/src/scenes/onboarding/shared/wizard-sync/installationProgressLogic.test.ts@@ -1,6 +1,17 @@import type { WizardSessionDTOApi } from 'products/wizard/frontend/generated/api.schemas'-import { cloudProgress, localProgress } from './installationProgressLogic'+import type { FinishedLocalRunHandle } from './finishedLocalRunLogic'+import {+ cloudProgress,+ isSessionFresh,+ localProgress,+ progressFromFinishedLocalRun,+ resetWizardSyncTelemetryForTests,+ runLocalSessionBookkeeping,+} from './installationProgressLogic'++// Matches the fixtures' timestamps so sessions read as fresh where intended.+const NOW = new Date('2026-01-01T00:00:30Z').getTime()import { TaskRunProgressStep, TaskRunStreamState } from './taskRunStreamLogic'function taskState(overrides: Partial<TaskRunStreamState> = {}): TaskRunStreamState {@@ -82,7 +93,7 @@ describe('installationProgressLogic merge', () => {['something-else', 'pending'],])('maps backend step status %s → %s', (raw, expected) => {const result = cloudProgress(taskState(), [step({ status: raw })], 'open', null)- expect(result.steps[0].status).toBe(expected)+ expect(result.steps.find((s) => s.id === 'setup:clone')?.status).toBe(expected)})it('maps a step to id/label/detail', () => {@@ -92,7 +103,7 @@ describe('installationProgressLogic merge', () => {'open',null)- expect(result.steps[0]).toEqual({+ expect(result.steps.find((s) => s.id === 'setup:clone')).toEqual({id: 'setup:clone',label: 'Cloning',status: 'in_progress',@@ -100,54 +111,74 @@ describe('installationProgressLogic merge', () => {})})- it('enriches an in-progress wizard step with the session in-progress task title', () => {+ it('replaces the wizard stage with the session tasks once they exist', () => {const result = cloudProgress(taskState(),- [step({ step: 'wizard', status: 'in_progress', detail: null })],+ [+ step({ step: 'clone', status: 'completed', label: 'Cloned repository' }),+ step({ step: 'wizard', status: 'in_progress', label: 'Running setup wizard' }),+ step({ step: 'pr', status: 'pending', label: 'Opening pull request', group: 'deliver' }),+ ],'open',- session({ tasks: [{ id: 't', title: 'Installing SDK', status: 'in_progress' }] })+ session({+ tasks: [+ { id: 'a', title: 'Detect framework', status: 'completed' },+ { id: 'b', title: 'Install SDK', status: 'in_progress' },+ ],+ }),+ false,+ NOW)- expect(result.steps[0].detail).toBe('Installing SDK')+ expect(result.steps.map((s) => [s.label, s.status, s.source ?? null])).toEqual([+ ['Setting up sandbox', 'pending', null],+ ['Cloned repository', 'completed', null],+ ['Detect framework', 'completed', 'wizard'],+ ['Install SDK', 'in_progress', 'wizard'],+ ['Opening pull request', 'pending', null],+ ])})- it('enriches an in-progress wizard step with the wizard error when the session errored', () => {+ it('slots session tasks into the skeleton wizard slot before any stage is announced', () => {const result = cloudProgress(taskState(),- [step({ step: 'wizard', status: 'in_progress', detail: null })],+ [],'open',- session({ run_phase: 'error', tasks: [] })+ session({ tasks: [{ id: 'a', title: 'Detect framework', status: 'in_progress' }] }),+ false,+ NOW)- expect(result.steps[0].detail).toBe('Wizard hit an error')+ expect(result.steps.map((s) => [s.label, s.status, s.source ?? null])).toEqual([+ ['Setting up sandbox', 'pending', null],+ ['Cloning repository', 'pending', null],+ ['Detect framework', 'in_progress', 'wizard'],+ ['Opening a pull request', 'pending', null],+ ])})- it('leaves the wizard step detail alone when there is no session', () => {+ it('keeps the announced wizard stage when there is no session', () => {const result = cloudProgress(taskState(),[step({ step: 'wizard', status: 'in_progress', detail: 'own detail' })],'open',null)- expect(result.steps[0].detail).toBe('own detail')+ expect(result.steps.find((s) => s.id === 'setup:wizard')?.detail).toBe('own detail')})- it('does not enrich a non-wizard step', () => {+ it('clamps lingering in-progress wizard tasks once the run completes', () => {const result = cloudProgress(- taskState(),- [step({ step: 'clone', status: 'in_progress', detail: 'shallow' })],+ taskState({ status: 'completed' }),+ [step({ step: 'wizard', status: 'completed' })],'open',- session({ tasks: [{ id: 't', title: 'Installing SDK', status: 'in_progress' }] })+ session({ tasks: [{ id: 'a', title: 'Install SDK', status: 'in_progress' }] }),+ false,+ NOW)- expect(result.steps[0].detail).toBe('shallow')- })-- it('does not enrich a completed wizard step', () => {- const result = cloudProgress(- taskState(),- [step({ step: 'wizard', status: 'completed', detail: 'own detail' })],- 'open',- session({ tasks: [{ id: 't', title: 'Installing SDK', status: 'in_progress' }] })- )- expect(result.steps[0].detail).toBe('own detail')+ expect(result.steps.find((s) => s.source === 'wizard')).toMatchObject({+ label: 'Install SDK',+ status: 'completed',+ })+ expect(result.steps.find((s) => s.id === 'setup:wizard')).toBeUndefined()})it('uses the task run error message on failure', () => {@@ -165,7 +196,9 @@ describe('installationProgressLogic merge', () => {taskState({ status: 'failed', error_message: null }),[],'open',- session({ error: { message: 'wizard boom' } })+ session({ error: { message: 'wizard boom' } }),+ false,+ NOW).error).toEqual({ title: 'Installation failed', detail: 'wizard boom' })})@@ -215,7 +248,7 @@ describe('installationProgressLogic merge', () => {['running + error conn → connecting', { run_phase: 'running' }, 'error', 'connecting'],])('phase: %s', (_name, sessionOverrides, conn, expected) => {const s = sessionOverrides === null ? null : session(sessionOverrides as Partial<WizardSessionDTOApi>)- expect(localProgress(s, conn).phase).toBe(expected)+ expect(localProgress(s, conn, true).phase).toBe(expected)})it('maps session tasks to steps', () => {@@ -227,7 +260,8 @@ describe('installationProgressLogic merge', () => {{ id: 'b', title: 'Install SDK', status: 'in_progress' },],}),- 'open'+ 'open',+ true)expect(result.steps).toEqual([{ id: 'a', label: 'Detect framework', status: 'completed', detail: null },@@ -237,7 +271,7 @@ describe('installationProgressLogic merge', () => {it('surfaces the wizard error on the error phase', () => {expect(- localProgress(session({ run_phase: 'error', error: { message: 'wizard boom' } }), 'open').error+ localProgress(session({ run_phase: 'error', error: { message: 'wizard boom' } }), 'open', true).error).toEqual({title: 'Wizard hit an error',detail: 'wizard boom',@@ -245,23 +279,256 @@ describe('installationProgressLogic merge', () => {})it('error detail is null when the session has no error message', () => {- expect(localProgress(session({ run_phase: 'error', error: null }), 'open').error).toEqual({+ expect(localProgress(session({ run_phase: 'error', error: null }), 'open', true).error).toEqual({title: 'Wizard hit an error',detail: null,})})it('has no error outside the error phase', () => {- expect(localProgress(session({ run_phase: 'running' }), 'open').error).toBeNull()+ expect(localProgress(session({ run_phase: 'running' }), 'open', true).error).toBeNull()})it('never has a pr url', () => {- expect(localProgress(session({ run_phase: 'completed' }), 'open').prUrl).toBeNull()+ expect(localProgress(session({ run_phase: 'completed' }), 'open', true).prUrl).toBeNull()})- it('isCurrent is false only when idle', () => {- expect(localProgress(null, 'open').isCurrent).toBe(false)- expect(localProgress(session({ run_phase: 'running' }), 'open').isCurrent).toBe(true)+ it('isCurrent mirrors the sticky freshness flag, never a bare session', () => {+ // A stale terminal row replayed by the SSE on connect must not read as a run in flight —+ // that is what used to hijack the install step before the freshness guard.+ expect(localProgress(null, 'open', true).isCurrent).toBe(false)+ expect(localProgress(session({ run_phase: 'running' }), 'open', false).isCurrent).toBe(false)+ expect(localProgress(session({ run_phase: 'running' }), 'open', true).isCurrent).toBe(true)+ })++ it('a dismissed session is not current even while fresh', () => {+ // Dismissal must release the install-step takeover immediately — the sticky freshness+ // flag alone would keep the completed panel pinned until the next remount.+ expect(localProgress(session({ run_phase: 'completed' }), 'open', true, true).isCurrent).toBe(false)+ })+ })++ describe('progressFromFinishedLocalRun', () => {+ const handle = (overrides: Partial<FinishedLocalRunHandle> = {}): FinishedLocalRunHandle => ({+ sessionId: 's',+ projectId: 1,+ startedAt: '2026-01-01T00:00:00Z',+ finishedAt: '2026-01-01T00:05:00Z',+ runPhase: 'completed',+ tasks: [+ { id: 'a', title: 'Detect framework', status: 'completed' },+ { id: 'b', title: 'Install SDK', status: 'canceled' },+ ],+ error: null,+ ...overrides,+ })++ it('renders the snapshot like the live path rendered the same terminal session', () => {+ // The FAB switches from the live stream to this snapshot when the stream gates itself+ // off — a mapping drift would make the card visibly rewrite itself at that moment.+ expect(progressFromFinishedLocalRun(handle())).toEqual({+ phase: 'completed',+ steps: [+ { id: 'a', label: 'Detect framework', status: 'completed', detail: null },+ { id: 'b', label: 'Install SDK', status: 'failed', detail: null },+ ],+ error: null,+ prUrl: null,+ isCurrent: true,+ })+ })++ it('surfaces the persisted error on failed runs', () => {+ const result = progressFromFinishedLocalRun(handle({ runPhase: 'error', error: { message: 'boom' } }))+ expect(result.phase).toBe('error')+ expect(result.error).toEqual({ title: 'Wizard hit an error', detail: 'boom' })+ })+ })++ describe('isSessionFresh', () => {+ const NOW = new Date('2026-01-01T00:00:00Z').getTime()+ it.each([+ ['updated just now', '2026-01-01T00:00:00Z', true],+ ['updated 9 minutes ago', '2025-12-31T23:51:00Z', true],+ ['updated 11 minutes ago', '2025-12-31T23:49:00Z', false],+ ['unparseable timestamp', 'not-a-date', false],+ ])('%s → %s', (_name, updatedAt, expected) => {+ expect(isSessionFresh(session({ updated_at: updatedAt }), NOW)).toBe(expected)+ })+ })++ describe('cloudProgress agent-gap bridging', () => {+ const NOW_MS = new Date('2026-01-01T00:00:30Z').getTime()+ it('flips the pending PR slot to in-progress and hides the agent plumbing row', () => {+ // The quiet window between agent start and the PR opening must not read as stalled,+ // and 'Started agent' is internal plumbing the user shouldn't see at all.+ const result = cloudProgress(+ taskState(),+ [+ step({ step: 'sandbox', status: 'completed', label: 'Set up sandbox' }),+ step({ step: 'clone', status: 'completed', label: 'Cloned repository' }),+ step({ step: 'wizard', status: 'completed', label: 'Ran setup wizard' }),+ step({ step: 'agent', status: 'completed', label: 'Started agent' }),+ ],+ 'open',+ null+ )+ expect(result.steps.map((s) => [s.label, s.status])).toEqual([+ ['Set up sandbox', 'completed'],+ ['Cloned repository', 'completed'],+ ['Ran setup wizard', 'completed'],+ ['Opening a pull request', 'in_progress'],+ ])+ })++ it.each([+ ['a step is still in flight', [step({ step: 'wizard', status: 'in_progress' })], null],+ [+ 'a deliver-stage step already exists',+ [+ step({ step: 'agent', status: 'completed' }),+ step({ step: 'pr', status: 'completed', group: 'deliver', detail: 'https://x/pull/1' }),+ ],+ null,+ ],+ ['the run has completed', [step({ step: 'agent', status: 'completed' })], 'completed'],+ ])('does not synthesize when %s', (_name, progressSteps, status) => {+ const result = cloudProgress(+ taskState(status ? { status } : {}),+ progressSteps as TaskRunProgressStep[],+ 'open',+ null,+ false,+ NOW_MS+ )+ expect(result.steps.find((s) => s.id.endsWith(':pr'))?.status ?? 'pending').not.toBe('in_progress')+ })+ })++ describe('cloudProgress session freshness gate', () => {+ const NOW_MS = new Date('2026-01-01T00:00:30Z').getTime()+ it('ignores a stale session for both the timeline and the error fallback', () => {+ // A stale terminal row replayed on connect must not leak a previous run's tasks or error+ // text into a fresh cloud run.+ const stale = session({+ updated_at: '2025-12-01T00:00:00Z',+ tasks: [{ id: 'a', title: 'Old task', status: 'completed' }],+ error: { message: 'old boom' },+ })+ const running = cloudProgress(taskState(), [], 'open', stale, false, NOW_MS)+ expect(running.steps.filter((s) => s.source === 'wizard')).toEqual([])+ const failed = cloudProgress(+ taskState({ status: 'failed', error_message: null }),+ [],+ 'open',+ stale,+ false,+ NOW_MS+ )+ expect(failed.error?.detail).toBeNull()+ })++ it('replaces the skeleton wizard slot with wizard tasks', () => {+ const result = cloudProgress(+ taskState(),+ [+ step({ step: 'clone', status: 'completed', label: 'Cloned repository' }),+ step({ step: 'pr', status: 'pending', label: 'Opening pull request', group: 'deliver' }),+ ],+ 'open',+ session({ tasks: [{ id: 'a', title: 'Install SDK', status: 'in_progress' }] }),+ false,+ NOW_MS+ )+ expect(result.steps.map((s) => s.label)).toEqual([+ 'Setting up sandbox',+ 'Cloned repository',+ 'Install SDK',+ 'Opening pull request',+ ])+ })+ })++ describe('runLocalSessionBookkeeping', () => {+ const spyActions = (): {+ markSessionCurrent: jest.Mock+ recordFinishedLocalRun: jest.Mock+ supersedeFinishedLocalRun: jest.Mock+ reportWizardSyncSessionDetected: jest.Mock+ reportWizardSyncSessionFinished: jest.Mock+ } => ({+ markSessionCurrent: jest.fn(),+ recordFinishedLocalRun: jest.fn(),+ supersedeFinishedLocalRun: jest.fn(),+ reportWizardSyncSessionDetected: jest.fn(),+ reportWizardSyncSessionFinished: jest.fn(),+ })+ const fresh = (overrides: Partial<WizardSessionDTOApi> = {}): WizardSessionDTOApi =>+ session({ updated_at: new Date(Date.now() - 1000).toISOString(), ...overrides })++ beforeEach(() => resetWizardSyncTelemetryForTests())++ it('marks the session current and reports detected once per session across redeliveries', () => {+ const actions = spyActions()+ const s = fresh({ session_id: 'dup' })+ runLocalSessionBookkeeping(s, null, actions)+ runLocalSessionBookkeeping(s, s, actions)+ expect(actions.markSessionCurrent).toHaveBeenCalledTimes(2)+ expect(actions.reportWizardSyncSessionDetected).toHaveBeenCalledTimes(1)+ })++ it('ignores a stale session entirely for freshness and reach telemetry', () => {+ const actions = spyActions()+ runLocalSessionBookkeeping(session({ updated_at: '2020-01-01T00:00:00Z' }), null, actions)+ expect(actions.markSessionCurrent).not.toHaveBeenCalled()+ expect(actions.reportWizardSyncSessionDetected).not.toHaveBeenCalled()+ })++ it('reports finished only on an observed transition into a terminal phase, once', () => {+ const actions = spyActions()+ const running = fresh({ session_id: 'fin', run_phase: 'running' })+ const done = fresh({ session_id: 'fin', run_phase: 'completed' })+ runLocalSessionBookkeeping(done, null, actions) // replayed terminal state: no transition+ expect(actions.reportWizardSyncSessionFinished).not.toHaveBeenCalled()+ runLocalSessionBookkeeping(done, running, actions)+ runLocalSessionBookkeeping(done, running, actions)+ expect(actions.reportWizardSyncSessionFinished).toHaveBeenCalledTimes(1)+ })++ it.each([+ // Recording must fire on every fresh terminal delivery (a replayed terminal state after+ // a remount is exactly when the FAB needs its snapshot back), never on stale ones —+ // otherwise a finished run's handoff vanishes with the stream, or a stale row from a+ // previous run resurrects a surface the user never watched.+ ['fresh completed session', { run_phase: 'completed' }, true, true],+ ['fresh errored session', { run_phase: 'error' }, true, true],+ ['fresh running session', { run_phase: 'running' }, true, false],+ ['stale completed session', { run_phase: 'completed', updated_at: '2020-01-01T00:00:00Z' }, false, false],+ ])('records the finished-run handle for a %s: %s', (_name, overrides, isFresh, expectRecorded) => {+ const actions = spyActions()+ const s = isFresh+ ? fresh(overrides as Partial<WizardSessionDTOApi>)+ : session(overrides as Partial<WizardSessionDTOApi>)+ runLocalSessionBookkeeping(s, null, actions)+ expect(actions.recordFinishedLocalRun).toHaveBeenCalledTimes(expectRecorded ? 1 : 0)+ })++ it('supersedes the previous finished run when a fresh run goes live', () => {+ // Starting over must replace the old handoff with the live run — otherwise dismissing+ // requires clearing two surfaces, or the old completed card reappears mid-new-run.+ const actions = spyActions()+ runLocalSessionBookkeeping(fresh({ session_id: 'new-run', run_phase: 'running' }), null, actions)+ expect(actions.supersedeFinishedLocalRun).toHaveBeenCalledWith('new-run')+ expect(actions.recordFinishedLocalRun).not.toHaveBeenCalled()+ })++ it('tolerates a malformed session with null tasks', () => {+ const actions = spyActions()+ const s = fresh({ session_id: 'null-tasks', tasks: null as unknown as WizardSessionDTOApi['tasks'] })+ expect(() => runLocalSessionBookkeeping(s, null, actions)).not.toThrow()+ expect(actions.reportWizardSyncSessionDetected).toHaveBeenCalledWith(+ expect.objectContaining({ taskCount: 0 })+ )})})})diff --git a/frontend/src/scenes/onboarding/shared/wizard-sync/installationProgressLogic.ts b/frontend/src/scenes/onboarding/shared/wizard-sync/installationProgressLogic.tsindex ff8560e2836d..7b87dbace2e6 100644--- a/frontend/src/scenes/onboarding/shared/wizard-sync/installationProgressLogic.ts+++ b/frontend/src/scenes/onboarding/shared/wizard-sync/installationProgressLogic.ts@@ -1,15 +1,67 @@-import { afterMount, beforeUnmount, connect, kea, key, listeners, path, props, selectors } from 'kea'+import { actions, afterMount, beforeUnmount, connect, kea, key, listeners, path, props, reducers, selectors } from 'kea'++import { elapsedSecondsFrom } from 'lib/utils/datetime'+import { eventUsageLogic } from 'lib/utils/eventUsageLogic'import type { WizardSessionDTOApi } from 'products/wizard/frontend/generated/api.schemas'import { wizardSessionStreamLogic } from 'products/wizard/frontend/wizardSessionStreamLogic'+import { activeCloudRunLogic } from './activeCloudRunLogic'+import { finishedLocalRunLogic, FinishedLocalRunHandle } from './finishedLocalRunLogic'import type { installationProgressLogicType } from './installationProgressLogicType'import { taskRunPrUrl, taskRunStreamLogic, TaskRunProgressStep, TaskRunStreamState } from './taskRunStreamLogic'+import { isSessionActive, wizardActiveSessionDetectorLogic } from './wizardActiveSessionDetectorLogic'+import { wizardDashboardLogic } from './wizardDashboardLogic'// The wizard session stream the local CLI publishes to — and the channel a cloud wizard reports its-// own sub-progress on. Matches wizardProgressTrackerLogic's WORKFLOW_ID.+// own sub-progress on.const WORKFLOW_ID = 'posthog-integration'+// A session counts as "current" if it was updated within the last 10 minutes. Lets the install step+// ignore stale terminal sessions left over from previous runs / test data when a user lands on the+// app, while still re-surfacing recently-completed runs after a quick navigation away and back.+const SESSION_CURRENT_THRESHOLD_MS = 10 * 60 * 1000++export function isSessionFresh(session: WizardSessionDTOApi, now: number): boolean {+ const updatedAt = new Date(session.updated_at).getTime()+ return !Number.isNaN(updatedAt) && now - updatedAt < SESSION_CURRENT_THRESHOLD_MS+}++// Per-session telemetry guards, deliberately module-scoped rather than on the kea `cache`: the logic+// unmounts whenever its last consumer does (FAB gate flips, install step navigated away), and a+// remount wipes `cache` — so a cache-based guard would let the SSE redeliver a still-in-flight+// session and re-fire these events. Keying by session_id at module scope makes "once per session"+// hold across remounts for the whole page load.+const reportedDetectedSessions = new Set<string>()+const reportedFinishedSessions = new Set<string>()++// One "share" of the wizard session transport per mounted instance. wizardSessionStreamLogic+// connect/disconnect is NOT refcounted and the keyed instance is shared across instances of this+// logic, so nobody may cut the transport out from under a co-mounted consumer: shares are released+// on unmount (and early, by a cloud instance whose run went terminal), and only the LAST release+// disconnects. Without this, a finishing cloud run would kill the stream for the still-mounted+// local instance and the "Run it yourself" recovery flow would go deaf until a full remount.+const sessionStreamShares = new Set<string>()++function releaseSessionShare(shareKey: string, disconnectSession: () => void): void {+ if (!sessionStreamShares.delete(shareKey)) {+ return+ }+ if (sessionStreamShares.size === 0) {+ disconnectSession()+ }+}++export function resetWizardSyncTelemetryForTests(): void {+ reportedDetectedSessions.clear()+ reportedFinishedSessions.clear()+ sessionStreamShares.clear()+}++function instanceKey(props: InstallationProgressLogicProps): string {+ return props.mode === 'cloud' ? `cloud:${props.runId ?? ''}` : 'local'+}+export type InstallationMode = 'local' | 'cloud'export type InstallationPhase = 'idle' | 'connecting' | 'running' | 'completed' | 'error'export type InstallationStepStatus = 'pending' | 'in_progress' | 'completed' | 'failed'@@ -19,6 +71,9 @@ export interface InstallationStep {label: stringstatus: InstallationStepStatusdetail: string | null+ /** Set on steps reported by the wizard itself (session tasks), as opposed to the run pipeline —+ * the timeline renders them nested under the pipeline's wizard stage. */+ source?: 'wizard'}export interface InstallationProgress {@@ -43,19 +98,30 @@ const STEP_STATUSES: Record<string, InstallationStepStatus> = {canceled: 'failed',}+// The stages every cloud run walks, in order — the timeline's fixed plan. Labels match the+// connecting preview (UPCOMING_STEPS) so the handoff between the two is seamless; announced steps+// override them with the backend's own labels.+const CLOUD_PIPELINE_SKELETON: { group: string; step: string; label: string }[] = [+ { group: 'setup', step: 'sandbox', label: 'Setting up sandbox' },+ { group: 'setup', step: 'clone', label: 'Cloning repository' },+ { group: 'setup', step: 'wizard', label: 'Running setup wizard' },+ { group: 'deliver', step: 'pr', label: 'Opening a pull request' },+]+function stepStatus(raw: string): InstallationStepStatus {return STEP_STATUSES[raw] ?? 'pending'}-// Cloud: the TaskRun is the spine (phase, steps, PR url, terminal error); the wizard session enriches-// the wizard stage with its live sub-task (absent today while the cloud wizard is WIP — degrades to-// the bare TaskRun step).+// Cloud: the TaskRun is the spine (phase, steps, PR url, terminal error); the wizard session's own+// tasks expand into the timeline as wizard-sourced steps nested after the pipeline's wizard stage+// (absent while the cloud wizard hasn't reported yet — degrades to the bare TaskRun pipeline).export function cloudProgress(taskRunState: TaskRunStreamState | null,progressSteps: TaskRunProgressStep[],taskConnectionStatus: string,latestSession: WizardSessionDTOApi | null,- isStalled: boolean = false+ isStalled: boolean = false,+ now: number = Date.now()): InstallationProgress {let phase: InstallationPhaselet stalledError: { title: string; detail: string | null } | null = null@@ -80,41 +146,103 @@ export function cloudProgress(phase = 'running'}- const wizardDetail =- latestSession?.tasks?.find((t) => t.status === 'in_progress')?.title ??- (latestSession?.run_phase === 'error' ? 'Wizard hit an error' : null)+ // A completed run has nothing in flight: clamp a lingering in-progress step (e.g. "Keeping+ // CI green", emitted in-progress when the PR opened) to completed so the timeline matches.+ const clamp = (status: InstallationStepStatus): InstallationStepStatus =>+ phase === 'completed' && status === 'in_progress' ? 'completed' : status- const steps: InstallationStep[] = progressSteps.map((p) => {- const status = stepStatus(p.status)- return {- id: `${p.group}:${p.step}`,- label: p.label,- // A completed run has nothing in flight: clamp a lingering in-progress step (e.g. "Keeping- // CI green", emitted in-progress when the PR opened) to completed so the timeline matches.- status: phase === 'completed' && status === 'in_progress' ? 'completed' : status,- // The "pr" step carries the PR url in `detail` (surfaced as the CTA, not as raw step text).- detail:- p.step === 'pr'- ? null- : p.step === 'wizard' && p.status === 'in_progress'- ? (wizardDetail ?? p.detail)- : p.detail,- }+ // 'Started agent' is internal plumbing — it tells the user nothing about their setup. Hide it;+ // the pending "Opening a pull request" row (flipped in-progress below) narrates that window.+ const announced = progressSteps.filter((p) => p.step !== 'agent')+ const mapStep = (p: TaskRunProgressStep): InstallationStep => ({+ id: `${p.group}:${p.step}`,+ label: p.label,+ status: clamp(stepStatus(p.status)),+ // The "pr" step carries the PR url in `detail` (surfaced as the CTA, not as raw step text).+ detail: p.step === 'pr' ? null : p.detail,})+ // Every cloud run walks the same pipeline, so the whole plan is visible from the start as+ // pending rows — announced steps light their slot up in place (keeping the backend's label and+ // detail), and anything outside the skeleton (e.g. "Keeping CI green") appends in arrival+ // order. Skipped when no run state exists yet: the view's connecting preview owns that window.+ let pipelineSteps: InstallationStep[]+ if (taskRunState) {+ const byName = new Map(announced.map((p) => [p.step, p]))+ pipelineSteps = CLOUD_PIPELINE_SKELETON.map((sk) => {+ const real = byName.get(sk.step)+ return real+ ? mapStep(real)+ : { id: `${sk.group}:${sk.step}`, label: sk.label, status: 'pending' as const, detail: null }+ })+ const skeletonNames = new Set(CLOUD_PIPELINE_SKELETON.map((sk) => sk.step))+ pipelineSteps.push(...announced.filter((p) => !skeletonNames.has(p.step)).map(mapStep))+ } else {+ pipelineSteps = announced.map(mapStep)+ }++ // The session stream is keyed by workflow only and replays the latest session on connect even+ // when it's a stale terminal row from a previous (possibly local) run — apply the same freshness+ // gate the local path uses before letting it near this run's timeline or error detail. A fresh+ // unrelated session can still slip in (the cloud wizard posts to the same workflow by design).+ const session = latestSession && isSessionFresh(latestSession, now) ? latestSession : null++ // The cloud wizard reports its own sub-steps on the session stream — once they exist they+ // REPLACE the pipeline's aggregate "wizard" stage in the timeline (the tasks are that stage,+ // told in more detail). Until then the stage row stands in. When the stage hasn't been+ // announced at all (e.g. polling mode where step notifications are stream-borne), slot the+ // tasks before the first not-yet-completed pipeline step so in-flight wizard work never+ // renders after the PR stage.+ const wizardSteps: InstallationStep[] = (session?.tasks ?? []).map((t) => ({+ id: `wizard-task:${t.id}`,+ label: t.title,+ status: clamp(stepStatus(t.status)),+ detail: null,+ source: 'wizard',+ }))+ const wizardStageIndex = pipelineSteps.findIndex((s) => s.id.endsWith(':wizard'))+ let steps: InstallationStep[]+ if (wizardStageIndex !== -1 && wizardSteps.length > 0) {+ steps = [+ ...pipelineSteps.slice(0, wizardStageIndex),+ ...wizardSteps,+ ...pipelineSteps.slice(wizardStageIndex + 1),+ ]+ } else if (wizardSteps.length > 0) {+ const firstUnfinished = pipelineSteps.findIndex((s) => s.status !== 'completed')+ const insertIndex = firstUnfinished === -1 ? pipelineSteps.length : firstUnfinished+ steps = [...pipelineSteps.slice(0, insertIndex), ...wizardSteps, ...pipelineSteps.slice(insertIndex)]+ } else {+ steps = pipelineSteps+ }++ const prUrl = taskRunPrUrl(taskRunState, progressSteps)++ // The pipeline goes quiet between agent start and the PR opening: everything reads completed+ // while the agent is still writing code, committing, and drafting the PR — which looks stalled.+ // Flip the still-pending PR slot to in-progress with an honest detail line for that window; the+ // real deliver-stage step replaces it when it arrives.+ const allDoneExceptPr = steps.every((s) => s.id.endsWith(':pr') || s.status === 'completed')+ if (phase === 'running' && !prUrl && allDoneExceptPr) {+ steps = steps.map((s) =>+ s.id.endsWith(':pr') && s.status === 'pending'+ ? {+ ...s,+ status: 'in_progress' as const,+ detail: 'The agent is committing its changes and drafting the PR',+ }+ : s+ )+ }const error =phase === 'error'? (stalledError ?? {title: 'Installation failed',detail:- taskRunState?.error_message ??- (latestSession?.error as { message?: string } | null)?.message ??- null,+ taskRunState?.error_message ?? (session?.error as { message?: string } | null)?.message ?? null,}): null- const prUrl = taskRunPrUrl(taskRunState, progressSteps)-return {phase,steps,@@ -124,11 +252,15 @@ export function cloudProgress(}}-// Local: the wizard session is the only source — mirror wizardProgressTrackerLogic's displayState so-// the existing surfaces behave identically when they migrate onto this layer.+// Local: the wizard session is the only source. `sessionIsCurrent` is the sticky freshness flag —+// the SSE replays the latest session on connect even when it's a stale terminal row from a previous+// run, and those must not read as a run in flight. `dismissed` is the user's explicit dismissal of+// this session — it wins over freshness, so a dismissed run releases the install-step takeover.export function localProgress(latestSession: WizardSessionDTOApi | null,- sessionConnectionStatus: string+ sessionConnectionStatus: string,+ sessionIsCurrent: boolean,+ dismissed: boolean = false): InstallationProgress {if (!latestSession) {return {@@ -166,8 +298,22 @@ export function localProgress(}: null- // A session exists past the early return above, so this is always a current run.- return { phase, steps, error, prUrl: null, isCurrent: true }+ return { phase, steps, error, prUrl: null, isCurrent: sessionIsCurrent && !dismissed }+}++// A finished local run rendered from its persisted snapshot, after the live session stream has+// gated itself off — same shape the live path produces for the same terminal session.+export function progressFromFinishedLocalRun(handle: FinishedLocalRunHandle): InstallationProgress {+ return {+ phase: handle.runPhase,+ steps: handle.tasks.map((t) => ({ id: t.id, label: t.title, status: stepStatus(t.status), detail: null })),+ error:+ handle.runPhase === 'error'+ ? { title: 'Wizard hit an error', detail: handle.error?.message ?? null }+ : null,+ prUrl: null,+ isCurrent: true,+ }}/**@@ -187,9 +333,13 @@ export const installationProgressLogic = kea<installationProgressLogicType>([connect((props: InstallationProgressLogicProps) => ({values: [taskRunStreamLogic({ runId: props.runId ?? '', taskId: props.taskId ?? '' }),- ['taskRunState', 'progressSteps', 'connectionStatus as taskConnectionStatus', 'isComplete', 'isStalled'],+ ['taskRunState', 'progressSteps', 'connectionStatus as taskConnectionStatus', 'isStalled'],wizardSessionStreamLogic({ workflowId: WORKFLOW_ID }),['latestSession', 'connectionStatus as sessionConnectionStatus'],+ finishedLocalRunLogic,+ ['dismissedSessionId'],+ activeCloudRunLogic,+ ['activeCloudRun'],],actions: [taskRunStreamLogic({ runId: props.runId ?? '', taskId: props.taskId ?? '' }),@@ -199,9 +349,28 @@ export const installationProgressLogic = kea<installationProgressLogicType>(['streamCompleted as taskRunStreamCompleted',],wizardSessionStreamLogic({ workflowId: WORKFLOW_ID }),- ['connect as connectSession', 'disconnect as disconnectSession'],+ ['connect as connectSession', 'disconnect as disconnectSession', 'sessionUpdated'],+ eventUsageLogic,+ ['reportWizardSyncSessionDetected', 'reportWizardSyncSessionFinished'],+ finishedLocalRunLogic,+ ['recordFinishedLocalRun', 'supersedeFinishedLocalRun'],+ wizardDashboardLogic,+ ['detectWizardDashboard'],],})),+ actions({+ // Sticky flag — set the first time we observe a session that's recent enough to count as+ // live. Old terminal sessions sitting in the DB stay invisible to the install step.+ markSessionCurrent: true,+ }),+ reducers({+ sessionIsCurrent: [+ false,+ {+ markSessionCurrent: () => true,+ },+ ],+ }),selectors({installationProgress: [(s) => [@@ -210,7 +379,9 @@ export const installationProgressLogic = kea<installationProgressLogicType>([s.taskConnectionStatus,s.latestSession,s.sessionConnectionStatus,+ s.sessionIsCurrent,s.isStalled,+ s.dismissedSessionId,(_, props) => props.mode,],(@@ -219,34 +390,168 @@ export const installationProgressLogic = kea<installationProgressLogicType>([taskConnectionStatus,latestSession,sessionConnectionStatus,+ sessionIsCurrent,isStalled,+ dismissedSessionId,mode): InstallationProgress =>mode === 'cloud'? cloudProgress(taskRunState, progressSteps, taskConnectionStatus, latestSession, isStalled)- : localProgress(latestSession, sessionConnectionStatus),+ : localProgress(+ latestSession,+ sessionConnectionStatus,+ sessionIsCurrent,+ !!latestSession && latestSession.session_id === dismissedSessionId+ ),],}),- listeners(({ actions, props }) => ({- // Once the cloud run is terminal there is nothing left for the session source to enrich, and- // it has no terminal state of its own to stop on — without this, an undismissed finished run- // keeps a session stream/poll alive app-wide until the user clicks "Dismiss this run".- // CAVEAT: wizardSessionStreamLogic connect/disconnect is NOT refcounted, and the keyed- // instance is shared — this disconnect also cuts the transport for any co-mounted consumer- // (e.g. the legacy wizardProgressTrackerLogic). Fine today because the run is terminal;- // refcount before adding consumers that must outlive a finishing cloud run.+ listeners(({ actions, props, cache, values }) => ({+ // Once the cloud run is terminal there is nothing left for the session source to enrich —+ // release this instance's share so an undismissed finished run doesn't keep a session+ // stream/poll alive app-wide. The share accounting protects a co-mounted local instance,+ // whose "Run it yourself" recovery flow must outlive a finishing cloud run.taskRunStreamCompleted: () => {- if (props.mode === 'cloud') {- actions.disconnectSession()+ if (props.mode !== 'cloud') {+ return+ }+ releaseSessionShare(instanceKey(props), actions.disconnectSession)+ // The cloud wizard builds a dashboard too — look it up so the completed surfaces can+ // link to it. startedAt travels on the persisted run handle; without it there's no run+ // window to scope the search to, so skip.+ const startedAt =+ values.activeCloudRun?.runId === props.runId ? values.activeCloudRun?.startedAt : undefined+ if (values.taskRunState?.status === 'completed' && startedAt) {+ actions.detectWizardDashboard({ startedAt })+ }+ },+ // Local-run bookkeeping, owned by the single local-mode instance so cloud instances (which+ // share the session stream purely for wizard-stage detail) don't double-fire it.+ sessionUpdated: ({ session }) => {+ if (props.mode !== 'local') {+ return}+ const prev = (cache.prevSession ?? null) as WizardSessionDTOApi | null+ cache.prevSession = session+ runLocalSessionBookkeeping(session, prev, actions)},})),- afterMount(({ actions }) => {+ afterMount(({ actions, props, cache, values }) => {actions.connectTaskRun()+ sessionStreamShares.add(instanceKey(props))actions.connectSession()+ if (props.mode === 'local') {+ // The detector's REST poll is only useful to the local instance (it gates the FAB's+ // local stream and receives markActive sync) — mounting it from cloud instances would+ // run a background poll for the whole run for nothing (INC-886 family).+ cache.detectorUnmount = wizardActiveSessionDetectorLogic.mount()+ // Seed from a session already on the shared stream: the listener only sees NEW+ // deliveries, so a remount would otherwise wait for the next tick (long in polling+ // backoff) and flap the install-step takeover back to the command block.+ if (values.latestSession) {+ cache.prevSession = values.latestSession+ runLocalSessionBookkeeping(values.latestSession, null, actions)+ }+ }}),- beforeUnmount(({ actions }) => {+ beforeUnmount(({ actions, props, cache }) => {actions.disconnectTaskRun()- actions.disconnectSession()+ releaseSessionShare(instanceKey(props), actions.disconnectSession)+ if (cache.detectorUnmount) {+ cache.detectorUnmount()+ cache.detectorUnmount = undefined+ }}),])++// The local instance's per-delivery bookkeeping, shared by the sessionUpdated listener and the+// mount-time seed:+// - freshness: flip the sticky current flag so the install step can take over+// - reach/outcome telemetry, once per session_id (module-scoped guards survive remounts)+// - detector sync: keep the FAB's stream gate alive across navigation, and let a terminal+// session schedule its teardown grace window+// - finished-run handle: snapshot a fresh terminal run so its handoff surface outlives the+// stream, and supersede the previous run's handle once a new run goes live+export function runLocalSessionBookkeeping(+ session: WizardSessionDTOApi,+ prev: WizardSessionDTOApi | null,+ actions: {+ markSessionCurrent: () => void+ recordFinishedLocalRun: (session: WizardSessionDTOApi) => void+ supersedeFinishedLocalRun: (sessionId: string) => void+ reportWizardSyncSessionDetected: (props: {+ workflowId: string+ skillId: string+ runPhase: string+ taskCount: number+ }) => void+ reportWizardSyncSessionFinished: (props: {+ workflowId: string+ skillId: string+ outcome: string+ taskCount: number+ completedTaskCount: number+ elapsedSeconds: number+ }) => void+ }+): void {+ const now = Date.now()+ // Tolerate a malformed delivery: reducers already stored the session, and throwing here would+ // silently skip the detector/telemetry bookkeeping for this update.+ const tasks = session.tasks ?? []+ const isTerminalPhase = session.run_phase === 'completed' || session.run_phase === 'error'+ if (isSessionFresh(session, now)) {+ actions.markSessionCurrent()+ // The handoff surface must outlive the stream (the detector gates it off shortly after a+ // terminal phase): snapshot fresh terminal runs, and let a fresh run going live supersede+ // a previous run's snapshot.+ if (isTerminalPhase) {+ actions.recordFinishedLocalRun(session)+ } else {+ actions.supersedeFinishedLocalRun(session.session_id)+ }+ // Reach metric: count each live wizard session the sync surfaces, once per session_id.+ // Gated on freshness so stale terminal rows sitting in the DB — which never reach the+ // user — don't inflate the funnel.+ if (!reportedDetectedSessions.has(session.session_id)) {+ reportedDetectedSessions.add(session.session_id)+ actions.reportWizardSyncSessionDetected({+ workflowId: WORKFLOW_ID,+ skillId: session.skill_id,+ runPhase: session.run_phase,+ taskCount: tasks.length,+ })+ }+ }+ // Gate on the detector's shared eligibility predicate (server staleness + lifetime cap ++ // terminal phase) so the SSE and REST paths agree on when streaming may continue — a wedged+ // CLI heartbeating `updated_at` past the lifetime cap stops re-arming markActive, letting+ // teardown actually run. Only schedule teardown on the eligible → ineligible *transition* so+ // repeated re-polls don't reset the clock. The detector is mounted by the local instance's+ // afterMount, which always precedes this bookkeeping.+ const detector = wizardActiveSessionDetectorLogic.findMounted()+ if (detector) {+ const eligible = isSessionActive(session)+ const wasEligible = isSessionActive(prev)+ if (eligible) {+ detector.actions.markActive()+ } else if (wasEligible) {+ detector.actions.scheduleMarkInactive()+ }+ }+ // Outcome metric: fire once when a run the user watched live reaches a terminal phase.+ // Terminal phases are sticky, so this transition is observed at most once per session — the+ // id guard covers any SSE redelivery.+ if (prev && session.run_phase !== prev.run_phase) {+ if (isTerminalPhase && !reportedFinishedSessions.has(session.session_id)) {+ reportedFinishedSessions.add(session.session_id)+ actions.reportWizardSyncSessionFinished({+ workflowId: WORKFLOW_ID,+ skillId: session.skill_id,+ outcome: session.run_phase,+ taskCount: tasks.length,+ completedTaskCount: tasks.filter((t) => t.status === 'completed').length,+ elapsedSeconds: elapsedSecondsFrom(session.started_at, now),+ })+ }+ }+}diff --git a/frontend/src/scenes/onboarding/shared/wizard-sync/taskRunStreamLogic.ts b/frontend/src/scenes/onboarding/shared/wizard-sync/taskRunStreamLogic.tsindex 84e5ebfb07b1..7b31f93513cf 100644--- a/frontend/src/scenes/onboarding/shared/wizard-sync/taskRunStreamLogic.ts+++ b/frontend/src/scenes/onboarding/shared/wizard-sync/taskRunStreamLogic.ts@@ -1,18 +1,9 @@import { actions, connect, kea, key, listeners, path, props, reducers } from 'kea'-import { FEATURE_FLAGS } from 'lib/constants'-import { featureFlagLogic, getFeatureFlagPayload } from 'lib/logic/featureFlagLogic'-import {- createPollLoop,- isPermanentPollError,- resolvePollingIntervalMs,- resolveWizardSyncMode,- type WizardSyncMode,-} from 'lib/wizard-sync/pollLoop'import { logSyncDebug } from 'lib/wizard-sync/wizardSyncDebugLogic'import { projectLogic } from 'scenes/projectLogic'-import { getTasksRunsStreamRetrieveUrl, tasksRunsRetrieve } from 'products/tasks/frontend/generated/api'+import { getTasksRunsStreamRetrieveUrl } from 'products/tasks/frontend/generated/api'import type { TaskRunDetailDTOApi } from 'products/tasks/frontend/generated/api.schemas'import { onboardingEventUsageLogic } from '../../onboardingEventUsageLogic'@@ -131,8 +122,13 @@ function isTerminalStatus(status: string): status is TerminalTaskRunStatus {// The agent opens the PR mid-run (while it keeps CI green), so the url arrives via the "pr" progress// step before the run reaches a terminal output. Prefer the terminal output when present.export function taskRunPrUrl(state: TaskRunStreamState | null, steps: TaskRunProgressStep[]): string | null {+ // Both sources originate from agent output over the stream — only ever surface http(s) URLs.+ const outputUrl = state?.output?.pr_urlconst prStepUrl = steps.find((s) => s.step === 'pr')?.detail- return state?.output?.pr_url ?? (prStepUrl && prStepUrl.startsWith('http') ? prStepUrl : null)+ return (+ (outputUrl && outputUrl.startsWith('http') ? outputUrl : null) ??+ (prStepUrl && prStepUrl.startsWith('http') ? prStepUrl : null)+ )}export interface CloudRunCompletionReport {@@ -192,14 +188,7 @@ export const taskRunStreamLogic = kea<taskRunStreamLogicType>([key((props) => props.runId),path((key) => ['scenes', 'onboarding', 'taskRunStreamLogic', key]),connect(() => ({- values: [- projectLogic,- ['currentProjectId'],- activeCloudRunLogic,- ['activeCloudRun'],- featureFlagLogic,- ['featureFlags'],- ],+ values: [projectLogic, ['currentProjectId'], activeCloudRunLogic, ['activeCloudRun']],actions: [onboardingEventUsageLogic, ['reportContextOnboardingCloudRunCompleted']],})),actions({@@ -317,66 +306,14 @@ export const taskRunStreamLogic = kea<taskRunStreamLogicType>([return}- // Mode is re-sampled on every connect, and the setFeatureFlags listener below reconnects- // when the resolved mode changes — so a flag flip (or flags arriving after a cold-cache- // connect) swaps the transport live instead of waiting for a remount.- const syncMode: WizardSyncMode = resolveWizardSyncMode(- values.featureFlags[FEATURE_FLAGS.ONBOARDING_WIZARD_SYNC_MODE]- )- cache.syncMode = syncMode+ // SSE only, deliberately NOT governed by the onboarding-wizard-sync-mode flag: that flag+ // controls the WIZARD SESSION transport (whose infra can't take SSE fan-out yet, see+ // wizardSessionStreamLogic), while the per-run TaskRun stream is low-cardinality — one+ // connection per active cloud run — and its REST detail carries no progress steps, so a+ // polled fallback would render an empty pipeline. Cloud runs must work with the session+ // transport in either mode, so the two transports stay independent.const debugSource = `run ${props.runId.slice(0, 8)}`- if (syncMode === 'polling') {- const intervalMs = resolvePollingIntervalMs(- getFeatureFlagPayload(FEATURE_FLAGS.ONBOARDING_WIZARD_SYNC_MODE)- )- logSyncDebug(debugSource, 'connect', `polling every ~${intervalMs / 1000}s (±20% jitter)`, {- mode: 'polling',- intervalMs,- })- cache.disposables.add(- createPollLoop({- intervalMs,- // Re-checked each tick: tab-visibility resume re-runs this setup, so a run- // dismissed or superseded while hidden must not revive a stale loop.- shouldStop: () => values.activeCloudRun?.runId !== props.runId,- tick: async () => {- const dto = await tasksRunsRetrieve(String(projectId), props.taskId, props.runId)- logSyncDebug(- debugSource,- 'poll',- `poll ok: ${dto.status}${dto.stage ? `/${dto.stage}` : ''}`,- {- mode: 'polling',- intervalMs,- }- )- // Only on first open / recovery from error — not every tick.- if (values.connectionStatus !== 'open') {- actions.connectionOpened()- }- actions.taskRunStateUpdated(taskRunDetailToStreamState(dto))- if (isTerminalStatus(dto.status)) {- logSyncDebug(debugSource, 'complete', `terminal status ${dto.status}, polling stopped`)- actions.streamCompleted()- return 'terminal'- }- return 'ok'- },- onError: (err) => {- logSyncDebug(debugSource, 'error', `poll failed: ${String(err)}`)- actions.connectionErrored(`Failed to poll task run: ${String(err)}`)- return isPermanentPollError(err) ? 'stop' : 'retry'- },- // Dispose the key so a later tab-visibility resume doesn't restart a loop- // that ended itself.- onLoopEnd: () => cache.disposables.dispose('task-run-sync'),- }),- 'task-run-sync'- )- return- }-logSyncDebug(debugSource, 'connect', 'opening EventSource', { mode: 'sse' })cache.disposables.add((): (() => void) => {const url = getTasksRunsStreamRetrieveUrl(String(projectId), props.taskId, props.runId)@@ -442,20 +379,5 @@ export const taskRunStreamLogic = kea<taskRunStreamLogicType>([cache.disposables.dispose('task-run-sync')cache.disposables.dispose('queued-stall')},- // Flags can resolve after a cold-cache connect (posthog-js loads them async), and ops can flip- // the mode mid-incident. Reconnect when the resolved mode differs from the running transport —- // the keyed disposable makes the swap idempotent.- [featureFlagLogic.actionTypes.setFeatureFlags]: () => {- if (cache.syncMode === undefined || values.isComplete) {- return- }- if (values.connectionStatus === 'idle' || values.connectionStatus === 'closed') {- return- }- const mode = resolveWizardSyncMode(values.featureFlags[FEATURE_FLAGS.ONBOARDING_WIZARD_SYNC_MODE])- if (mode !== cache.syncMode) {- actions.connect()- }- },})),])diff --git a/frontend/src/scenes/onboarding/shared/wizard-sync/wizardCloudRunLogic.ts b/frontend/src/scenes/onboarding/shared/wizard-sync/wizardCloudRunLogic.tsindex 8bb6644dfaf4..94ebefd0c338 100644--- a/frontend/src/scenes/onboarding/shared/wizard-sync/wizardCloudRunLogic.ts+++ b/frontend/src/scenes/onboarding/shared/wizard-sync/wizardCloudRunLogic.ts@@ -9,6 +9,9 @@ import { urls } from 'scenes/urls'import { IntegrationType, OnboardingStepKey } from '~/types'+// Deliberate shared → legacy imports: onboardingLogic is the onboarding state machine both variants+// run on (step key for the GitHub-connect return URL), and sdksLogic carries the user's manual SDK+// pick (the cloud wizard's skill hint). Both no-op gracefully in flows that don't set them.import { onboardingLogic } from '../../legacy/onboardingLogic'import { sdksLogic } from '../../legacy/sdks/sdksLogic'import { onboardingEventUsageLogic } from '../../onboardingEventUsageLogic'@@ -35,7 +38,7 @@ export const WIZARD_CLOUD_RUN_WORKFLOW_ID = 'posthog-integration'** Live progress and the "your PR is ready" payoff are not owned here — the cloud* run posts wizard sessions under WIZARD_CLOUD_RUN_WORKFLOW_ID, so the existing- * session-sync surfaces (wizardProgressTrackerLogic + the global FAB) render them+ * session-sync surfaces (the Installation layer + the global FAB) render them* automatically. This logic only has to get the run started without blocking the* user from continuing onboarding.*/diff --git a/frontend/src/scenes/onboarding/shared/wizard-sync/wizardDashboardLogic.test.ts b/frontend/src/scenes/onboarding/shared/wizard-sync/wizardDashboardLogic.test.tsnew file mode 100644index 000000000000..768c1221fa6a--- /dev/null+++ b/frontend/src/scenes/onboarding/shared/wizard-sync/wizardDashboardLogic.test.ts@@ -0,0 +1,43 @@+import { pickWizardDashboard } from './wizardDashboardLogic'++// The run started at 00:10; the skew window reaches back to 00:08.+const STARTED_AT = '2026-01-01T00:10:00Z'++function dash(+ overrides: Partial<Parameters<typeof pickWizardDashboard>[0][number]> = {}+): Parameters<typeof pickWizardDashboard>[0][number] {+ return {+ id: 1,+ name: 'Product analytics',+ created_at: '2026-01-01T00:15:00Z',+ deleted: false,+ creation_mode: 'default',+ ...overrides,+ }+}++describe('pickWizardDashboard', () => {+ it.each([+ // Wrongly matching here surfaces a "See your dashboard" CTA pointing at somebody's+ // pre-existing or template dashboard — worse than showing nothing.+ ['created during the run', [dash()], 1],+ ['created before the run', [dash({ created_at: '2026-01-01T00:00:00Z' })], null],+ ['created within the clock-skew window', [dash({ created_at: '2026-01-01T00:09:00Z' })], 1],+ ['a template dashboard', [dash({ creation_mode: 'template' })], null],+ ['a deleted dashboard', [dash({ deleted: true })], null],+ ['an unparseable created_at', [dash({ created_at: 'not-a-date' })], null],+ [+ 'multiple matches → newest wins',+ [dash({ id: 1, created_at: '2026-01-01T00:12:00Z' }), dash({ id: 2, created_at: '2026-01-01T00:20:00Z' })],+ 2,+ ],+ ['no dashboards at all', [], null],+ ])('%s', (_name, dashboards, expectedId) => {+ const result = pickWizardDashboard(dashboards, STARTED_AT)+ expect(result?.id ?? null).toBe(expectedId)+ })++ it('returns null when the run start time is unparseable', () => {+ expect(pickWizardDashboard([dash()], 'not-a-date')).toBeNull()+ })+})diff --git a/frontend/src/scenes/onboarding/shared/wizard-sync/wizardDashboardLogic.ts b/frontend/src/scenes/onboarding/shared/wizard-sync/wizardDashboardLogic.tsnew file mode 100644index 000000000000..6a9b8b103abe--- /dev/null+++ b/frontend/src/scenes/onboarding/shared/wizard-sync/wizardDashboardLogic.ts@@ -0,0 +1,91 @@+import { connect, kea, path } from 'kea'+import { loaders } from 'kea-loaders'++import { projectLogic } from 'scenes/projectLogic'++import { dashboardsList } from 'products/dashboards/frontend/generated/api'+import type { DashboardBasicApi } from 'products/dashboards/frontend/generated/api.schemas'++import type { wizardDashboardLogicType } from './wizardDashboardLogicType'++// The wizard stamps started_at from its own clock (the user's machine or the sandbox), while+// dashboard created_at is server time — tolerate a skewed CLI clock so a dashboard created in the+// first seconds of a run isn't filtered out.+const CLOCK_SKEW_MS = 2 * 60 * 1000++// One page is plenty: detection runs during onboarding, where the project holds at most a handful+// of dashboards. If the wizard's dashboard falls outside this page the CTA silently doesn't show.+const DETECTION_PAGE_SIZE = 100++export interface DetectedDashboard {+ id: number+ name: string | null+}++type DashboardCandidate = Pick<DashboardBasicApi, 'id' | 'name' | 'created_at' | 'deleted' | 'creation_mode'>++/**+ * The dashboard most likely created by the wizard during this run: the newest non-template+ * dashboard created after the run started (with clock-skew tolerance). Heuristic by design — the+ * wizard doesn't report the dashboard it built, so a dashboard the user created mid-run can match.+ * Returns null when nothing plausible exists, in which case no CTA is shown.+ */+export function pickWizardDashboard(dashboards: DashboardCandidate[], startedAt: string): DetectedDashboard | null {+ const startedAtMs = new Date(startedAt).getTime()+ if (Number.isNaN(startedAtMs)) {+ return null+ }+ const cutoff = startedAtMs - CLOCK_SKEW_MS+ const candidates = dashboards.filter((d) => {+ if (d.deleted || d.creation_mode === 'template') {+ return false+ }+ const createdAt = new Date(d.created_at).getTime()+ return !Number.isNaN(createdAt) && createdAt >= cutoff+ })+ candidates.sort((a, b) => new Date(b.created_at).getTime() - new Date(a.created_at).getTime())+ const top = candidates[0]+ return top ? { id: top.id, name: top.name ?? null } : null+}++/**+ * Detects the dashboard the wizard was instructed to build, so completed-run surfaces can hand the+ * user straight to it. Fired by the Installation layer when a run (local or cloud) completes;+ * fetches once per (project, run start) and fails silent — the dashboard CTA is a bonus, never a+ * blocker.+ */+export const wizardDashboardLogic = kea<wizardDashboardLogicType>([+ path(['scenes', 'onboarding', 'wizardDashboardLogic']),+ connect(() => ({+ values: [projectLogic, ['currentProjectId']],+ })),+ loaders(({ values, cache }) => ({+ detectedDashboard: [+ null as DetectedDashboard | null,+ {+ detectWizardDashboard: async ({ startedAt }: { startedAt: string }, breakpoint) => {+ const projectId = values.currentProjectId+ if (projectId === null) {+ return values.detectedDashboard+ }+ // One fetch per run: every surface that shows the completed state dispatches+ // this, and re-listing dashboards for each of them buys nothing.+ const attempted: Set<string> = (cache.attemptedRuns ??= new Set())+ const key = `${projectId}:${startedAt}`+ if (attempted.has(key)) {+ return values.detectedDashboard+ }+ attempted.add(key)+ try {+ const page = await dashboardsList(String(projectId), { limit: DETECTION_PAGE_SIZE })+ breakpoint()+ return pickWizardDashboard(page.results ?? [], startedAt) ?? values.detectedDashboard+ } catch {+ // Detection is best-effort: a failed list just means no dashboard CTA.+ return values.detectedDashboard+ }+ },+ },+ ],+ })),+])diff --git a/products/ai_gateway/frontend/AIGatewayScene.tsx b/products/ai_gateway/frontend/AIGatewayScene.tsxindex 404fa22fecc7..0940205e9836 100644--- a/products/ai_gateway/frontend/AIGatewayScene.tsx+++ b/products/ai_gateway/frontend/AIGatewayScene.tsx@@ -10,8 +10,8 @@ import { NotFound } from 'lib/components/NotFound'import { FEATURE_FLAGS } from 'lib/constants'import { Link } from 'lib/lemon-ui/Link'import { featureFlagLogic } from 'lib/logic/featureFlagLogic'-import { AnthropicLogo } from 'scenes/onboarding/legacy/sdks/logos/AnthropicLogo'-import { OpenAILogo } from 'scenes/onboarding/legacy/sdks/logos/OpenAILogo'+import { AnthropicLogo } from 'scenes/onboarding/shared/logos/AnthropicLogo'+import { OpenAILogo } from 'scenes/onboarding/shared/logos/OpenAILogo'import { preflightLogic } from 'scenes/PreflightCheck/preflightLogic'import { SceneExport } from 'scenes/sceneTypes'import { urls } from 'scenes/urls'diff --git a/products/ai_observability/frontend/LLMProviderIcon.tsx b/products/ai_observability/frontend/LLMProviderIcon.tsxindex cdaead41bbfe..3598bd27a1ea 100644--- a/products/ai_observability/frontend/LLMProviderIcon.tsx+++ b/products/ai_observability/frontend/LLMProviderIcon.tsx@@ -1,7 +1,7 @@-import { AnthropicLogo } from 'scenes/onboarding/legacy/sdks/logos/AnthropicLogo'-import geminiImage from 'scenes/onboarding/legacy/sdks/logos/gemini.svg'-import { OpenAILogo } from 'scenes/onboarding/legacy/sdks/logos/OpenAILogo'-import { OpenRouterLogo } from 'scenes/onboarding/legacy/sdks/logos/OpenRouterLogo'+import { AnthropicLogo } from 'scenes/onboarding/shared/logos/AnthropicLogo'+import geminiImage from 'scenes/onboarding/shared/logos/gemini.svg'+import { OpenAILogo } from 'scenes/onboarding/shared/logos/OpenAILogo'+import { OpenRouterLogo } from 'scenes/onboarding/shared/logos/OpenRouterLogo'import azureImage from 'public/services/azure.png'diff --git a/products/error_tracking/frontend/components/SetupPrompt/SetupPrompt.tsx b/products/error_tracking/frontend/components/SetupPrompt/SetupPrompt.tsxindex e6b3f31dbd2c..0535e825e524 100644--- a/products/error_tracking/frontend/components/SetupPrompt/SetupPrompt.tsx+++ b/products/error_tracking/frontend/components/SetupPrompt/SetupPrompt.tsx@@ -11,14 +11,14 @@ import {import { RestrictionScope, useRestrictedArea } from 'lib/components/RestrictedArea'import { TeamMembershipLevel } from 'lib/constants'import { cn } from 'lib/utils/css-classes'-import androidImage from 'scenes/onboarding/legacy/sdks/logos/android.svg'-import flutterImage from 'scenes/onboarding/legacy/sdks/logos/flutter.svg'-import { IOSLogo } from 'scenes/onboarding/legacy/sdks/logos/IOSLogo'-import javascriptImage from 'scenes/onboarding/legacy/sdks/logos/javascript_web.svg'-import nextjsImage from 'scenes/onboarding/legacy/sdks/logos/nextjs.svg'-import nodejsImage from 'scenes/onboarding/legacy/sdks/logos/nodejs.svg'-import pythonImage from 'scenes/onboarding/legacy/sdks/logos/python.svg'-import reactImage from 'scenes/onboarding/legacy/sdks/logos/react.svg'+import androidImage from 'scenes/onboarding/shared/logos/android.svg'+import flutterImage from 'scenes/onboarding/shared/logos/flutter.svg'+import { IOSLogo } from 'scenes/onboarding/shared/logos/IOSLogo'+import javascriptImage from 'scenes/onboarding/shared/logos/javascript_web.svg'+import nextjsImage from 'scenes/onboarding/shared/logos/nextjs.svg'+import nodejsImage from 'scenes/onboarding/shared/logos/nodejs.svg'+import pythonImage from 'scenes/onboarding/shared/logos/python.svg'+import reactImage from 'scenes/onboarding/shared/logos/react.svg'import { teamLogic } from 'scenes/teamLogic'import { ProductIntentContext, ProductKey } from '~/queries/schema/schema-general'diff --git a/products/logs/frontend/components/SetupPrompt/SetupPrompt.tsx b/products/logs/frontend/components/SetupPrompt/SetupPrompt.tsxindex 84fc31eb4732..d2116ca8cade 100644--- a/products/logs/frontend/components/SetupPrompt/SetupPrompt.tsx+++ b/products/logs/frontend/components/SetupPrompt/SetupPrompt.tsx@@ -9,11 +9,11 @@ import { LemonButton, Link, Spinner } from '@posthog/lemon-ui'import { ProductIntroduction } from 'lib/components/ProductIntroduction/ProductIntroduction'import { useFeatureFlag } from 'lib/hooks/useFeatureFlag'import { useInterval } from 'lib/hooks/useInterval'-import goImage from 'scenes/onboarding/legacy/sdks/logos/go.svg'-import javaImage from 'scenes/onboarding/legacy/sdks/logos/java.svg'-import nextjsImage from 'scenes/onboarding/legacy/sdks/logos/nextjs.svg'-import nodejsImage from 'scenes/onboarding/legacy/sdks/logos/nodejs.svg'-import pythonImage from 'scenes/onboarding/legacy/sdks/logos/python.svg'+import goImage from 'scenes/onboarding/shared/logos/go.svg'+import javaImage from 'scenes/onboarding/shared/logos/java.svg'+import nextjsImage from 'scenes/onboarding/shared/logos/nextjs.svg'+import nodejsImage from 'scenes/onboarding/shared/logos/nodejs.svg'+import pythonImage from 'scenes/onboarding/shared/logos/python.svg'import { teamLogic } from 'scenes/teamLogic'import { ProductIntentContext, ProductKey } from '~/queries/schema/schema-general'diff --git a/products/tracing/frontend/components/SetupPrompt/SetupPrompt.tsx b/products/tracing/frontend/components/SetupPrompt/SetupPrompt.tsxindex a8b29fd95ada..1a9b0707aa4e 100644--- a/products/tracing/frontend/components/SetupPrompt/SetupPrompt.tsx+++ b/products/tracing/frontend/components/SetupPrompt/SetupPrompt.tsx@@ -7,10 +7,10 @@ import { LemonButton, Link, Spinner } from '@posthog/lemon-ui'import { ProductIntroduction } from 'lib/components/ProductIntroduction/ProductIntroduction'import { useInterval } from 'lib/hooks/useInterval'-import goImage from 'scenes/onboarding/legacy/sdks/logos/go.svg'-import javaImage from 'scenes/onboarding/legacy/sdks/logos/java.svg'-import nodejsImage from 'scenes/onboarding/legacy/sdks/logos/nodejs.svg'-import pythonImage from 'scenes/onboarding/legacy/sdks/logos/python.svg'+import goImage from 'scenes/onboarding/shared/logos/go.svg'+import javaImage from 'scenes/onboarding/shared/logos/java.svg'+import nodejsImage from 'scenes/onboarding/shared/logos/nodejs.svg'+import pythonImage from 'scenes/onboarding/shared/logos/python.svg'import { teamLogic } from 'scenes/teamLogic'import { ProductIntentContext, ProductKey } from '~/queries/schema/schema-general'