:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.
Python ab-testingai-analyticsanalyticscdpdata-warehouseexperimentsfeature-flagsjavascriptproduct-analyticspythonreactsession-replaysurveystypescriptweb-analytics
chore(signals): remove the fully rolled out inbox-redesign flag (#116740)
posthog[bot]21211a5832c4
diff --git a/frontend/snapshots.yml b/frontend/snapshots.ymlindex b81a3edb0279..35cf94879498 100644--- a/frontend/snapshots.yml+++ b/frontend/snapshots.yml@@ -11359,25 +11359,25 @@ snapshots:scenes-app-inbox-cards--agent-run-cards--light:hash: v1.k794b7964.0c1350cc50f4a98d14f58b5329d0e08437f276dad0b9736f094f68e853e57d2f.eq-SJ5v2scAJ-__cH2lH0HznF0weI4gaQ9Q0kYsoD4Yscenes-app-inbox-cards--pull-request-cards--dark:- hash: v1.k794b7964.4ce62fb05fc7b7b3451f940f333fe5894684ee134d50ed368bf05ed777466f3e.2arUhgxbdC9zFLt7VkffoeMNivMf_oZtsNPWQdrjH6c+ hash: v1.k794b7964.70b00316e1aca88871b08d53612a165c27d59976a613c0e79db48d824d3717ac.qQSJ5puVpCw3ggUbMnJcEESr793iR_DR5bx1BnJnoV4scenes-app-inbox-cards--pull-request-cards--light:- hash: v1.k794b7964.19291313347041d3b8311d7a7e9b97ee8e60b7ccca476b1b3c43945a006de3fe.Lf3Mkhh7fJ5mnyomCZa2-Jcw4fOG4rgHZ5udu8CQNxg+ hash: v1.k794b7964.ae590c681e673d8212086b182e35482779f30819265f94e6a20a60393e7b0a35.ftv-NAH82K41FXLPP28A05xAZ1_tiogVU-p9D98d0ooscenes-app-inbox-cards--report-card-ranking-tags--dark:hash: v1.k794b7964.294082f823ab2ce9f78f66e8746953db61e9223adb567a0f695fcd234b92df06.GcCaDeL0q5OBdxC6X5LATc1y6EER1pRwb4jC-CCI6j8scenes-app-inbox-cards--report-card-ranking-tags--light:hash: v1.k794b7964.8a2bda01a1685a8d2b69aa05b2ddf6b8d9164e1dc98ead1e26dbd8fadbb5e103.GnchgJgJyVKlTAgtUTqypg49s-yl7wLPRkR9a3InLyYscenes-app-inbox-cards--report-card-states--dark:- hash: v1.k794b7964.b987dc8b9a750647567259b3cfb6f65c1fc03c82294e599942d85f394182ec5f.tJh2uAs0GnyekhEbDh2gi3yZAm6ydVS4Tp8YEAowHcc+ hash: v1.k794b7964.73905a1ca2dcdf6532f4a623378a262b15b22f67bf1c3ba6d9c1a86a4a570a56.c5q0K0EVkk4mLF2OvlfGVOkTxhTpmLUcpvoQiPT_-mEscenes-app-inbox-cards--report-card-states--light:- hash: v1.k794b7964.9c2c8b7a61f3d6fe6458f5afe15a67853ea97e254845153e90f509825005d198.RvW7_RoKgKvw53_qILf_KlMrjJHTkgMjTT8jRCsp6Kk+ hash: v1.k794b7964.5e1aa8ef71958ecbd79be48dc598754bd7cf0bab165e3c09986f6a35f1fae7d0.wmD5Ce1WgO2dktMBfAxlG6XT642FG5obIzAwLG3bHgkscenes-app-inbox-cards--report-card-with-impact--dark:hash: v1.k794b7964.b1c7935b8f5bf3606bf17317d4b766db18716f571e5863a1a9bfca5274ea7d57.seV0a7y3Ag51yKQZbjfaUaBwnrjezpYZFG2GnCJTnWMscenes-app-inbox-cards--report-card-with-impact--light:hash: v1.k794b7964.56c68b5f31cc1cf6517260cff4e49ca7cd7e595e9c9d2aaa12b968c18f147901.bV7QKcVP3NG5ZdItrP1YgQ8pVPPKGgaB-bHapE4cxicscenes-app-inbox-cards--report-cards--dark:- hash: v1.k794b7964.5059ef43b09d7d539e721ae221c7862489eb56d6184a2425ec6fafc034d109f5.j1ttT2FTHkiJXiNtIny1AX_SshYpwTXMhYER8MrrrFc+ hash: v1.k794b7964.3f1fe346726398005b52e47715e2a7e70a99928f41755da0ead5f005b2d8f89e.ZAMhTLmOa4P5Jg7b7j9iHMHqx78hRgrTBrTPDOVa0nQscenes-app-inbox-cards--report-cards--light:- hash: v1.k794b7964.d38e40561e65bbfd62d2acfebcea25eb71335b16a2630225742dc31721eb3681.S5LF2_yea5zYnBCEhaQS5p2iOWwzBOG-1vgRc5ZhTPQ+ hash: v1.k794b7964.d739fb6d65a937f134cb5e3020cac7a23d4e3ca2aacd8dec6afa77e26a02c0b3.nZT64gJHVu5vMN6_MeZaL7Jf_b_whcF32WLNJqGPYQ8scenes-app-inbox-cards--skeleton--dark:hash: v1.k794b7964.da604dcafaf4ba22c7c00febc5956b4143660cb2455cdf613748ecb81688116e.tHlZgbxkc6M5nBT0v7CBw_TXlQHZNuNaQJI31HCHnQgscenes-app-inbox-cards--skeleton--light:@@ -11398,10 +11398,6 @@ snapshots:hash: v1.k794b7964.eac158ac0dad47be46920b96d059a2b844c0251ff74738c624ccc0f616fad8cf.39UaZEY5BYoiCxfJp7nRRje0pIe_nYIwWr7zmGebmAsscenes-app-inbox-detail--pull-request-inline-review--light:hash: v1.k794b7964.6e46ac95ee344c52fdb7114912898ff27879a61a5a068dc80c9b02c2c54cc68e.unkgZ1A8k6R9A6i-hqf5_Xr0lwtSjCAEBGUoFmvfnCI- scenes-app-inbox-detail--pull-request-legacy--dark:- hash: v1.k794b7964.a7adb8071789cd8e5dea6f5eacc672fed11f1ff29266aecdeb1c06b42bc9155c.VhPvZU1Zh3AxubfUmQsCmhIfNTgBW4Oq9qaW6Mp08GI- scenes-app-inbox-detail--pull-request-legacy--light:- hash: v1.k794b7964.641d303d811b3f82ac5720f06947def044ce2de08e6fad020e78bf5a41a7afd3.zEDG_Pij9EmmykHGcdbGTaRb3lfCWCM5SqUEi7NUDUEscenes-app-inbox-detail--pull-request-stack--dark:hash: v1.k794b7964.800c7ccd57a65ea0a62bece200ce4eb0f65f87cf4b593fc04f6a935fcfdf7c74.jAKYqCaW8lWokIDp080uSMwk3lJYUQ7d2l75FsU9xIEscenes-app-inbox-detail--pull-request-stack--light:@@ -11414,10 +11410,6 @@ snapshots:hash: v1.k794b7964.7c5fdee00eb64783cbd3679b1a4666eb94d32ab3979fc31f6fb49321eb6adf3e.i4N8yd315sb7BBoeqIznOadnoabzU0Q30EirBwUUnFsscenes-app-inbox-detail--report-follow-up-pending--light:hash: v1.k794b7964.d387c6c2df5673e7333383d6a5195da3b16c3c573bf12a3e772512813c99afb5.cxY_OXIkG9aRPCu0ETVk0UaaYAoz0Zjnfl8sYaH7pok- scenes-app-inbox-detail--report-legacy--dark:- hash: v1.k794b7964.92f20f83ec71e560c0bf6e0fb6c42d761f68f76052344957d1368cdd6e38f507.exzESVszbMhsdVWzJgqpeJRQPXbvSqM1KqXLAuApAcQ- scenes-app-inbox-detail--report-legacy--light:- hash: v1.k794b7964.f02a42a4a95b7b18636322b5e010339952af5e52afe6a7b4c9c3fff53f73dcfe.Gf_b1iNMQd8KAidnXBI9kSC2cKIyutiMcOiX7G_x7p8scenes-app-inbox-detail--report-minimal--dark:hash: v1.k794b7964.7b457e88868510c008646ab0ed37de232ec66ccbd001e82256e156e44a4cfa23.38qy-CrE1s8-psQTdpOZqMVW5alFzYnH7On3bETCnGUscenes-app-inbox-detail--report-minimal--light:@@ -11750,22 +11742,6 @@ snapshots:hash: v1.k794b7964.9c63d0aec1e590c399c59a6d974d4c57c2aaba654944bc18065c43212ea67c20.Vcq4DkgtGa7JtssCwGJMnDbhspFmWkFUrEyZpBbhEIIscenes-app-inbox-scene--installing-self-driving--light:hash: v1.k794b7964.8cfc123fae6e14b526a3c202050d2fe9cff47791f417466200c09887b9436143.ytlk3NbkM2J2hBovwE71l84_kmeMQqQAb6WwuSQ9uKU- scenes-app-inbox-scene--legacy--dark:- hash: v1.k794b7964.23af1667483348636b41fce7bc7e78b2650b763130c68866ff8ad127a39b1d89.Wn0VDoLcxKU35X8q8RdPrxeQSLeSARgpeT0YKacaF6s- scenes-app-inbox-scene--legacy--light:- hash: v1.k794b7964.62846c5376c7928b3684e4ac02626b0f35e7792ac4e346eeba39767d5143e3e1.y4I4APkYpB9QaNfDkGdfXdZPkYDKOK4dSMQiChEqlXY- scenes-app-inbox-scene--legacy-report--dark:- hash: v1.k794b7964.1494f60eb3c2104ba3e7c98d54824ad9f5b41719c2701fcaca39476ab64a7bdf.W8jps_qJf632vEQ6W8np3ahpVisr2Fqz0u1Zp3ev7EM- scenes-app-inbox-scene--legacy-report--light:- hash: v1.k794b7964.70278b94727ae76599a08dee797302d12fe8abe2d8a26f7ea97e491ad0deba47.yMl1GbGrrxVCo4iuyz8f0WoS7g157M9aCTK-_l0kf7Y- scenes-app-inbox-scene--legacy-scouts--dark:- hash: v1.k794b7964.aef8677fa43f11ff5f5b34c381208ef202da80771a5d2d17281d2a98d3361604.f8rgo5YeHpzk4rc50ylbjLdcTDBYNGJPqO--MNXk1Fw- scenes-app-inbox-scene--legacy-scouts--light:- hash: v1.k794b7964.9dd3dc8e6e80c8b05907082af42a22344b194f047b52fb748b67b7f801e95f5f.Z_d39bmfXBtFI0yeryorC9eA0mg0Uhgc01sSEDLa_vk- scenes-app-inbox-scene--legacy-with-value-summary--dark:- hash: v1.k794b7964.20ee6fce51c55f6dd8ee42bdb43e5be2e99f8a7eabaeb8a966b65975b3ce114b.PPjKVc4DfAnR46COWDLiAmarWSC0W4hpvQsMYoUstQg- scenes-app-inbox-scene--legacy-with-value-summary--light:- hash: v1.k794b7964.9a60fdda0fcf25cc34965bfedddadf9c4d4d9522c478f6b0fc8a4dcacf5ff886.JE0icmhQT3FrnbbeB2GJ4HiqsYOA_NkeSFzVR7apeLQscenes-app-inbox-scene--report-with-many-evidence-items--dark:hash: v1.k794b7964.cdf433915e692e878772c4299885f968c99c039e535ce00eedde96142225dc8a.3jz4_ynFjRQTKIFVz6-5ofn0AVAdDN3pilwzZWHmrKoscenes-app-inbox-scene--report-with-many-evidence-items--light:@@ -12170,10 +12146,6 @@ snapshots:hash: v1.k794b7964.bc5496dd845ecda6f0ad12cfb26aef001eebb616144626a43170c8a67febd43b.OvZS68_NkWoY-DVfy1T244ykeLC7vL8vDumGQzNbnicscenes-app-inbox-scoutsroster--large-fleet--light:hash: v1.k794b7964.ed67ad70f3fa88f0a8ec479cb91870ad1d9baab13bb4be71428c960c391bf0db.o6Eahjl27mO8luIjeK97HT62W6KldZEJDcPJDMaCx4c- scenes-app-inbox-scoutsroster--narrow--dark:- hash: v1.k794b7964.4f46e7d63afc2c1e1d30d6748e9dd97982bc40daa1057b76679b1ae973b2b34c.FXKomGBUCtnwOShb1cCohyS4J_coJlZPRd2pRY9Zqu4- scenes-app-inbox-scoutsroster--narrow--light:- hash: v1.k794b7964.e56543a591d0a834354a7a2c235661248d3d76152aed5c4dae11fae9e4f105cf.OMYWVSInB5z11FCVzRUhRvtdq1_U4hi4ALD4a4G32zIscenes-app-inbox-scoutsroster--roster--dark:hash: v1.k794b7964.1fa499f9b82d53b5303ac9c1aad41ae71c3181773bfebff8484f9aac6a5d7ad5.c9CzmU_NYRff7RF85AjHkQMh2xHZSlQNuLU0fF3-Utoscenes-app-inbox-scoutsroster--roster--light:@@ -12186,14 +12158,6 @@ snapshots:hash: v1.k794b7964.bc5496dd845ecda6f0ad12cfb26aef001eebb616144626a43170c8a67febd43b.JldNfdDLfUnEixxUwEc-HN7yzxRYqQesLQWPuf0gLrkscenes-app-inbox-scoutsroster--roster-costs-non-staff--light:hash: v1.k794b7964.ed67ad70f3fa88f0a8ec479cb91870ad1d9baab13bb4be71428c960c391bf0db.kS-qICwDGcauBM7y48IGpq2cxtE4M9qmalLa716nJN4- scenes-app-inbox-scoutsroster--roster-costs-table--dark:- hash: v1.k794b7964.508b273094f6e08573ddd45fd3eb9eb0ad462d2b3834dcac401272a61eb6f1e7.RPEKTl6gEq0dtaS5iWq-6zYyPZeHWxRwXyU8UJNPA_o- scenes-app-inbox-scoutsroster--roster-costs-table--light:- hash: v1.k794b7964.652892a536e1b8bbf01bf83291dcd7235882bc37623ac48f9f0722eebc287f4c.tDCNWTUu2RZ1wY30Q4P1KqzavMtnNKbj8TG5oPy6PN8- scenes-app-inbox-scoutsroster--roster-legacy--dark:- hash: v1.k794b7964.5339804f4cc136f9700b3329b0121ab62f3008197dcb4ff7c91d714e1fbdbbb5.peuyX_VFezfUR5E8LAdqk4e3GZWeYZ8qhq1Xp6HNLnc- scenes-app-inbox-scoutsroster--roster-legacy--light:- hash: v1.k794b7964.d0ee903a8da5dd314b8b60412ac603d71fe2780cf7f498895b6bd040fe62ea2b.HSpIhnqqTWXHITf3_Opkoex_umbGmYhw01fki4ZX2Dgscenes-app-inbox-scoutsuggestionsstrip--collapsed--dark:hash: v1.k794b7964.83c1649fea741bc937ef2be603c9bd7aabea26f78022b8accb37de85733e55d4.7qehj5PgTiUvxt50V7ALqkOG7HkNXYnaFg5yddoGaposcenes-app-inbox-scoutsuggestionsstrip--collapsed--light:@@ -12299,45 +12263,45 @@ snapshots:scenes-app-inbox-scoutwritescopespicker--with-granted-scopes--light:hash: v1.k794b7964.b8f03bd767f60a0683d5a0d86832550103f841990ed13063cd2810b991a9ada7.h6RI1wa6AxQOSUa3TL1WRokQoE5b7qRaJTip6w5qT2gscenes-app-inbox-selfdrivingsection--daily-limit-reached--dark:- hash: v1.k794b7964.4a44499b80e3b4929fae54d29924187253c3d56de5d4931e048e2d40f2a8fdbf._pm2YuKeybVX5dJoTbJTx9020tKZ9pl-Ygpdj5qX8jY+ hash: v1.k794b7964.695a20dbf7826fbf791988e3b2a6523449c284c5d39835ade9e0929e79011ad8.okw0M7KppUTBR-y3ZC-7sylkDQG-Q_8pOx4VysDqmcUscenes-app-inbox-selfdrivingsection--daily-limit-reached--light:- hash: v1.k794b7964.2552b9edb796ce8377be1e0732cf1a22b55337a87d337774ac15ba65ebafb719.nBjEZNigZaXr9oCbWV4FAxP4Afa_b4sSnT1y0QDj4Nk+ hash: v1.k794b7964.ea9f326e9c21fd8ddb7358cba50adb57a64aa865948f09d83f87fb73518ac122.bbzrauc2dw2j3ShmQ5L6XFS25_GKC1jk1HX-cW5y9wkscenes-app-inbox-selfdrivingsection--daily-limit-set--dark:- hash: v1.k794b7964.0286c8a73253ce434204531dfdca7301de61d8ecde26185b0c14c3ebfa7534c7.DWmxslsWzOwIkTISAFig_yWDTwzh177cOYzVx4syLVw+ hash: v1.k794b7964.cacf92112504e429d145dc2ab82eed5a08547cafe5530f94a2b447b747079d5c.nPscdaYJR2lZxwhuBgY6ilm-4j_JK1Kuz5EzxcYB5eEscenes-app-inbox-selfdrivingsection--daily-limit-set--light:- hash: v1.k794b7964.3c433b219e90c66e5b0d97a196be156017e8b4e082206134e41c7f3e1e5ffc95.zYPqWIq9JiYz2fLKcioxTPgX3poRKoUSt5e6uKHx2pU+ hash: v1.k794b7964.2f18adda62b380c4fd2a4b70194e7fa82506d1841d69de02e591de3bee7266b9.c-UfUcm8r9x1AVOo0yzeoAqWmlkp6MskHbJuFDC7TPkscenes-app-inbox-selfdrivingsection--disabled--dark:- hash: v1.k794b7964.67c52a409773b5aa738f4b428db3f0963d0f108e3898aa3b8488b93a5109f7e9.vxcpMUOLsJNUSWOTb5jgl6F5GFDZbn2TKBVyagdc7Wg+ hash: v1.k794b7964.9b205493fd9d6617bfb20a668f572ac2f9dfe6c9f018f35d8257e070b1f3f491.J-iN3vAcF8C9xfUgkS7pEGc0b4G6ry7d0jEroEGIFR0scenes-app-inbox-selfdrivingsection--disabled--light:- hash: v1.k794b7964.9d45ad19b3e57de007fd7267514b02d3d75905309cacfe802a02401e032d9142.scHTYMs1ht7uVcRdS66vUV8oif3bbpmH3VErvEEWXLQ+ hash: v1.k794b7964.fff36254b02b8a2869858b43485ea6226851f87473b8548c7e35c9bdff0fe6fe.VwrYwC9KZzA6EWDZB0WPfYRq_EVoeQ7U8LvdARodAPkscenes-app-inbox-selfdrivingsection--git-hub-assignment-on--dark:- hash: v1.k794b7964.2048d8af33dd1b7bdab7954f4f74cf69610e2ecd449d734b5dbb917a228a70e2.43SHYSmyRZTWRth2UKhusbdGQxTRIu7m8FLfUhv-xEc+ hash: v1.k794b7964.7012ab24a54f09d53d3aefdd8b03b7821a0d5df8d795c71dd8fd4ac1152e2bfe.Dyb5NhjSPXi-zFgsznPQNiin1isSUDk52YsGX737Iwsscenes-app-inbox-selfdrivingsection--git-hub-assignment-on--light:- hash: v1.k794b7964.0c87bc2bf8016881a8da21e17a391706bcdd1dab28591625ec52ad7252c6fda9.iMTiX71OrPQnFlNdHYXIPMjGVn0jkw6cEC4sfimtHT0+ hash: v1.k794b7964.8b006e6eb1178872cbb7ae65d8077576b4367bbe0f393de90d290a7148f8bb47.r0ABtt3jX87cE7ksiog72cKqbTjdHL1xLokBkop8W0Iscenes-app-inbox-selfdrivingsection--issue-tracker-configured--dark:- hash: v1.k794b7964.607b264792b74aa4eb84cd81cc88523dbc68c67b8b70c58f166bbd29a85ea552.NTBtiUUds9_UydNtWJjBTueBo8hlXyJnRNBaEvzQLDk+ hash: v1.k794b7964.5aaff58c67811d235b64cd6fd43ddaf86913c3ab8566a625768dc1d515957819.G7ZSNP_k8WGCiNGPdAwAF1llDl7UIE8JtpUjJV5yzY0scenes-app-inbox-selfdrivingsection--issue-tracker-configured--light:- hash: v1.k794b7964.130d64df000f7f250617ee7559681396e265dc5439f23f416c3b3489267d0cb7.xijSum1KIg5Lg2POz6YUqEF-np9r1EhOk__LzH3bflk+ hash: v1.k794b7964.8389492d2ddb18009bc6a8a883e6ec0ed35eb61ee7c964530158e7ca1e3c2a7e.xQrqqICvkdMBCGVf8AJXiHij3RrBrPLHdHwPHzBng00scenes-app-inbox-selfdrivingsection--issue-tracker-unavailable--dark:- hash: v1.k794b7964.ce5ebca0d7238acbaca6648c8d187e18949d1a0743c9947a6aee94f7565b4745.e6FgfFWM0JAbSQpXDU73zhQomAV9QIfUIC7ZuCFQqOY+ hash: v1.k794b7964.f33a9909ec4fddc5d498775dd6e61c2fa6031b7fe02210298ee00a9e63aa382b.87Pq7xLEshA0_0IyDTQjDJP4w-mAC4z39qh_VQxXmcUscenes-app-inbox-selfdrivingsection--issue-tracker-unavailable--light:- hash: v1.k794b7964.a40ce2bea2137f38dbc1be15138904319e657d645323d0bea0c368a3bddbac9c.-OqHP5x00JhIo2zm8O0xX3Q82uGR_DNdm_QpQdl-cnU+ hash: v1.k794b7964.543a84fd49a862be5dcf810a799fbdf8eba938e1a7b98793d61005943d71e16d.wUIEIbYH7OftoQiBgotYwp3Cab-ySlZQ5fnPL0ehq6Ascenes-app-inbox-selfdrivingsection--no-daily-limit--dark:- hash: v1.k794b7964.ce5ebca0d7238acbaca6648c8d187e18949d1a0743c9947a6aee94f7565b4745.Hkkcm4PfJBuG4Xz1U62W16vTgcR4hqoFbLn7PSt2ZeU+ hash: v1.k794b7964.f33a9909ec4fddc5d498775dd6e61c2fa6031b7fe02210298ee00a9e63aa382b.uIG5c3OSKvSQonzcOBlLpcoHQYe79z-3zzUeRLVX-Wwscenes-app-inbox-selfdrivingsection--no-daily-limit--light:- hash: v1.k794b7964.a40ce2bea2137f38dbc1be15138904319e657d645323d0bea0c368a3bddbac9c.iemHmMFrz7nZtk6diEOyQkka9LNU3DSVXbdJfYhM16M+ hash: v1.k794b7964.543a84fd49a862be5dcf810a799fbdf8eba938e1a7b98793d61005943d71e16d.RVrcDVFYZd54Wl_xRP4iaDOwZHAygiltQceUHUxm12kscenes-app-inbox-selfdrivingsection--personal-default--dark:- hash: v1.k794b7964.ce5ebca0d7238acbaca6648c8d187e18949d1a0743c9947a6aee94f7565b4745.t_zBEU56wdgvozh7MjKGyjJefOfR3elvu9OLwQ2eeKw+ hash: v1.k794b7964.f33a9909ec4fddc5d498775dd6e61c2fa6031b7fe02210298ee00a9e63aa382b.wJ6GU4dBRTn0F4uKxoMMM3C7v555n57rnDtnKaSiLZMscenes-app-inbox-selfdrivingsection--personal-default--light:- hash: v1.k794b7964.a40ce2bea2137f38dbc1be15138904319e657d645323d0bea0c368a3bddbac9c.dzCdwDl1FI8g5v0wt4dbBX66rk5b74S3DdrQ5GqyANc+ hash: v1.k794b7964.543a84fd49a862be5dcf810a799fbdf8eba938e1a7b98793d61005943d71e16d.VWJ9thKajurBG8TASBOiq9vsgie5LmCnNIR2t1s9oksscenes-app-inbox-selfdrivingsection--personal-override--dark:- hash: v1.k794b7964.3380e2b9e217d9d6d517b572e5fc4b780df3e9eecce44febefc42d47ad6d72a9.ZwWD89-G_Cd3Pj4TyRWekMexMrNjPL3MHXneD4p4vJ4+ hash: v1.k794b7964.c5e001303c0be7f344d98e2aa8b0b1ef240fa2671e018532555edcd94d3c74bd.MNwPoueXp4wjh609KgvlhAImFCbZYqeojq5PDWMCpicscenes-app-inbox-selfdrivingsection--personal-override--light:- hash: v1.k794b7964.3e9ce2bbce78b721b3078bc887f037ef12437631a285cb92a42e68fb674b7298.EPlCubG4ZhGsmOI1PW2grEa-dk-x8yBJGZeQ76p72f4+ hash: v1.k794b7964.83a9e5943153b7d497a8cd6e0a89e5b890af73a2c31acdab2df3991a3c79ce09.SS3WlXHY6Tabvby4jcJ4dQoh7Bl2UTF2y73ORYDOfj4scenes-app-inbox-selfdrivingsection--pull-request-ready-for-review--dark:- hash: v1.k794b7964.1a0e040104e8f46ccc9f26d865f2bfdb76cf6018000b3cf1af23e8656e94ec4b.yl0PvNcatqNQBK6oTIRVO98bHg38keelqIAnSwczBr4+ hash: v1.k794b7964.00e0d856117d243459367a3e4bd5f7cc6cd43cda3fe9872d342ae9b8bc688d54.9bB6hY7GnrtIZZRmXxo9lIF_5lvoiQiaQMkN8IWFORUscenes-app-inbox-selfdrivingsection--pull-request-ready-for-review--light:- hash: v1.k794b7964.0cc4df3d0c5f340bdb4d144eaecafe175a940e632c3c4cfbb966463381732653.0Lit1qJKj43L-25kqIQCmpDtahioNark9LhcgeVheHA+ hash: v1.k794b7964.f2257669bd57975e587db3908413b03cb8bfa26267804332361b2a0d72f0f078.hd9KNwc8ORnJdicHYOAJFU1GsewA6SiyFlNCe76CDq4scenes-app-inbox-selfdrivingsection--settings-tab--dark:hash: v1.k794b7964.73d54d684491b967580f16c8f040f7dc0672d1d47eea733dfd72515353f3a283.jsJn6NIkxuO4kW60JT5MNq2jqjhwywYIasG-hnKtgmEscenes-app-inbox-selfdrivingsection--settings-tab--light:@@ -12395,73 +12359,73 @@ snapshots:scenes-app-inbox-signal-cards--ticket-without-number--light:hash: v1.k794b7964.015ae3204d23d033c3a0b131e352122cbc3cfa019f66f8f230f059b100f8f2cc.ZMT3pKT2QFcOr116n_hOXdGWTMc0uwzvvfj8DVcWurMscenes-app-inbox-signalsourcespanel--armed-but-products-off--dark:- hash: v1.k794b7964.d11eeca04cea8261c7bdda249d58e1cea26de76dca4d67176d0054f52e5f167d.S1fedIExTZm4bRd26JJvDoVi6-o0GtNmaCO5tGhdwHo+ hash: v1.k794b7964.a2d8944eafde369e4f74f333c72585bfb11d763241ec6a04473e6b282c5b5101.fc7VWo5ALpSnQtFiSmxpw2CZ7CAvPKyeq7lMW87_fjsscenes-app-inbox-signalsourcespanel--armed-but-products-off--light:- hash: v1.k794b7964.e5bbba9dfbb5f49817091d81cd98d044881cfee2d5c161f8148b73806b99d94c.X4dWOUqX8LSPeaUgi8Kv3fQjOxWEH7dMyZaXNxtZP9w+ hash: v1.k794b7964.6bf07beb9a23edf5bca224e7fdec697a3593997141e892c4daa167ec0ceceb08.Bd2R_54n7smhx_z0WCWfHzKxgXb5h-dVCKcnX7QVqgcscenes-app-inbox-signalsourcespanel--arming-blocked--dark:- hash: v1.k794b7964.fef7c48dcc9b2fbfc27219b1413eec9efd153579fcf7b83f910f246611e01582.LhgdlWVqjSxmG2qEFiBQqWkehur-4vHGWVFHNuODsMc+ hash: v1.k794b7964.c519fc552e2370530c5e6fd3cea466db39a1fdb54495dfb45413b54c1570e80d.35JQHa2gDM0pivHe5qEabIQauiYtEidAxXiRqddO42Iscenes-app-inbox-signalsourcespanel--arming-blocked--light:- hash: v1.k794b7964.556d9a8b39a9e78c67f51f2de1f8cb8ce97e5a1493793633ef41505a84a6bc2b.-z4YGKPlpchvdw1WCnRy6PL1tWj8uRRjOI5_YLBVj_A+ hash: v1.k794b7964.61a4335bf80c2c71b08648f2cd22cca1f6a2273e11f387f488a02dc4c9c69d87.1FRm7F9fkXyIMeND4qL1fcedTw56JDKJoq2sFLHJVKgscenes-app-inbox-signalsourcespanel--error-tracking-expanded--dark:hash: v1.k794b7964.e76f849397b585435cb5c86079df492c3bc82eea9f72b94a105f2e64d63b12a2.fL6UtIc12THgb27_GBFws5GNEBby9x61_D4tgfP_ApAscenes-app-inbox-signalsourcespanel--error-tracking-expanded--light:hash: v1.k794b7964.94aa8d254893b653a61eaea44ef060889b109a669f14f79418f80d9132ced7e3.YiTAqW3coJllwVaTalTfhBrujz30GuRVOAW_4deFLtAscenes-app-inbox-signalsourcespanel--event-definitions-unavailable--dark:- hash: v1.k794b7964.8552b59a7a396955ace08d373e0e5be9bef701656c1ae3df14fd6821a8b468a8._B7vy88s3uCrlzIwkRLtaphTdrHRmq_H8pO1KanPBK8+ hash: v1.k794b7964.273ede1dee351b8264df23cea084c64c8651c6f898ba5e7498dfacb1dad3437b.NYfsLiQoQqnTRmLcV3CkrEQBN54UuQb05Z97nFqcyAYscenes-app-inbox-signalsourcespanel--event-definitions-unavailable--light:- hash: v1.k794b7964.4303870fbe9f5877e5413253e3cef9d7ad02d9f5828fe0c7937d235af80f0c3a.xOrlb8uikUbA-icPFLvj25JViC_LoEp5H4by6bil9LU+ hash: v1.k794b7964.a7feb1dc5040d392d657ed9e594ba944336ec8beaacef25f1ff49e0bb9d99d2d.Fi9lg22eJupE_UhaHaEJEh6uuvQ7gkYNtX6dDFYG7-oscenes-app-inbox-signalsourcespanel--everything-healthy--dark:- hash: v1.k794b7964.e361d70c2cdb136400249ae686e12dcba647ac2cee82d2921d241b1ca0d66924.MKcXWUxdpupY-2Zcz1Ao4q3wkCQe9SIcBEqw-8PgdWo+ hash: v1.k794b7964.6ef617f8bfa18c724d7242c91624a54e04c6619bda590227f5a75c49b339f71c.nP7WNiRJPNR5tPxH1cB8olCyfY9KCpOhUM8lFehxqQsscenes-app-inbox-signalsourcespanel--everything-healthy--light:- hash: v1.k794b7964.1309cb39b590cb39b6dcafff660a2e522b53d2a24bd61146842c9fd01dc1f265.JuNmD7LQcp1OPNe5rexJZ7bQNF1Rug0Y1pcSwKvnbZY+ hash: v1.k794b7964.0c4877da14c3517951fbff381331a330f2a3209f785f031a089f7bd3e0c9abc2._Vg9h8cPRrZlDuI3nbl3J6kY0VoOoYBu7HBRskpYntMscenes-app-inbox-signalsourcespanel--external-sources-connected--dark:- hash: v1.k794b7964.2e2e5f5660ac3f87f0b76ef18d23aa78a4c649db936c13d958d8f7bbdc93de1b.lCUbFTDSvIjC4nVfFKtbW9HXUwF246i4fyOhdl9qcKc+ hash: v1.k794b7964.6edd9deeccf0f0d829b5f765420f0dc83eded4480a42329b92af3d9a75725f00.C8_ZdyXc7FqU_x1cp3ns-KBL37uaGuzGIN5oFGEqTgkscenes-app-inbox-signalsourcespanel--external-sources-connected--light:- hash: v1.k794b7964.3e8954d26e3f79833018fec5af71c37455d855703c8d971ed9c70d726da95c76.cfi4mAzIhiDAzaiHEIpEMuCbFNzBAzVEAtWJMntRWy0+ hash: v1.k794b7964.ccc6b40bb4f682e7cf2924dd746b42bf096584fac7316d16d511f924a31a951e.5kdFKoS4IkFG3g-45HETGeAJ9ixO40TCbA6cwM5BmNYscenes-app-inbox-signalsourcespanel--playground--dark:- hash: v1.k794b7964.dc5d9b2af4fe4ceaf2dc2279e3c9d5411f58d8972940eead3b3cfbec19d02a64.E-8-6e3oTSpbdfBZhS_0MHvVAraG1K0F0HAqIdlQ5XQ+ hash: v1.k794b7964.9aaf9cb181bfb2ec3f099088207ca81630350771c95d932e45d758f8d365fede.ahDmXEv2LABmsxZhn_ceaeofqsv-P7pX_2FS5MaELqsscenes-app-inbox-signalsourcespanel--playground--light:- hash: v1.k794b7964.9538ca3cb132fbf319113686d7ee2c2f97caeb9b227d82e294ee8f0f997488be.m2flYmmOmwlP2uOjGrlVVH9zV8ucEcusNlPBYWJCsnc+ hash: v1.k794b7964.3ab39f6b9d00f603893a14d91acdeaf47025e0e2a1e03868e9330c1c550cf790.dg3vO2ihMZwM2ipjBCrIx9KTEgkN09lKBliMzoAmzLoscenes-app-inbox-signalsourcespanel--products-on-no-recent-data--dark:- hash: v1.k794b7964.be9a9327f58bde9d180c4a2b74ad4d2a1d9df8e74138da41c8e4e0018a162df2.husg4iq4YHLtBWP_IsKthbyK48p0dQq6I1qUxXKkjDc+ hash: v1.k794b7964.bfdb2db6f5d65762866c02d84e107baf47a192767b5c8dc4ed0a9db9ae3beaea.f_FbqaOlTxwPY3bmb4moLlwe_vHG6eOuQqdI0BiKCq8scenes-app-inbox-signalsourcespanel--products-on-no-recent-data--light:- hash: v1.k794b7964.7df9bf9ff498f4bd2419e205926d52796fa76788866b747b11b5e4eaabea85d8.kMEixgPWr8fx1WGUG8BR9aEj9sIlKuRAKf7H1XaKKm4+ hash: v1.k794b7964.ca0ebcb9705fb2514354c5a123e1805fa7d835df6406a49d927f4f176b5c7d9c.pTyxAFumNP6k9F4IvLGO5S5geNWsgKqNFPhrWYanaAwscenes-app-inbox-signalsourcespanel--replay-vision-expanded--dark:hash: v1.k794b7964.7c7f614c4974c75ea013e3532574cb64bff8b3f4ca26958333f185f7252f35f5.Mhg8AjKNmM34ybAJKlJDa5UKw2r0xw3whkigxPemnDoscenes-app-inbox-signalsourcespanel--replay-vision-expanded--light:hash: v1.k794b7964.943bcbebc067a2aac2c5d11750b427413af119fce7fcf4f7465d86d067a1f888.4uYLX-DhLeEBjEXK9fjYK-vHt_88kMD17ycJffEnHSgscenes-app-inbox-signalsourcespanel--server-side-exceptions-only--dark:- hash: v1.k794b7964.dc5d9b2af4fe4ceaf2dc2279e3c9d5411f58d8972940eead3b3cfbec19d02a64.ZgaERDAob32dWYCzcUqArIjSrudQDi4UA49jXU4oXYY+ hash: v1.k794b7964.9aaf9cb181bfb2ec3f099088207ca81630350771c95d932e45d758f8d365fede.xNsez_XmTmSXWBlDoHskgvpJv9DeTQ-9JlYgmzk_llwscenes-app-inbox-signalsourcespanel--server-side-exceptions-only--light:- hash: v1.k794b7964.9538ca3cb132fbf319113686d7ee2c2f97caeb9b227d82e294ee8f0f997488be.KUe0VsJdyQSWytb3Ub2oG0sDRRwoHx2w8cLVyJV6RDU+ hash: v1.k794b7964.3ab39f6b9d00f603893a14d91acdeaf47025e0e2a1e03868e9330c1c550cf790.xulkXtkahCopLOdirr15K8PSIFjcIARiT1dNfLDXomQscenes-app-inbox-signalsourcespanel--source-configs-unavailable--dark:- hash: v1.k794b7964.b73575fc8e51b4fb1233c6e9de86afcf217232ab059548ce8617ccff1ba3e27c.JZgD7AA2EEJO2ZYj2ZJLWxjYpLXoD94p3mu53X7JQE0+ hash: v1.k794b7964.eea094aa8cee2f15d923c99989991659aed0fc7a4bc272d6e0dea194a642a995.XZOrtI7rF_42vfigRqB4PH2fcbw1IAsF9J1ETxdivlUscenes-app-inbox-signalsourcespanel--source-configs-unavailable--light:- hash: v1.k794b7964.1fed2ac0bf8cd2cdefdeb244b372b69b9d88770423f392f54182d2172a1dc3b3.n8IBYIvTFC1p5OWpipLwlHWwlemWJ-qJ11ml4rgx27I+ hash: v1.k794b7964.ef9523ad30862e00a3a47e565bf6427f9728fe6de067add1157c7b7a83ef301f.XD6Xg94vD1nlIXeO6gCWpXsHPp2-TjQnF2x3OacnYr8scenes-app-inbox-slacknotificationssection--awaiting-target--dark:- hash: v1.k794b7964.8ea3584f9e8ba12a10845825520e5297ebf2c60282422cec693b0bd291ceee47.UdwureshdgpAitm-HeIekB6baljLm5XiV93vEw4z3-A+ hash: v1.k794b7964.45b41fad1dd8b6146ff7465279bf86d9e32f5447d189a1c54f687a6d729ee1fc._HO_rqQTGcO42B-T57VXA3yJ8kNYSWXBP-VFz8iS690scenes-app-inbox-slacknotificationssection--awaiting-target--light:- hash: v1.k794b7964.afc4ca112ec8c6aa017b68a925c7973c973490024f141f661bccba7af2135ce4.WA08pPg_tRzIld7tJyEZQxkBBfeXyQdx77Jp7IeICIs+ hash: v1.k794b7964.304794d0749486e7b323868d308a96bdeed3a9be0549c6d9435c934864c96e51.M1T0ps1Ltu4e4HeiELPGJ6BRBZ_yOVEvq4RxKG0MLRcscenes-app-inbox-slacknotificationssection--direct-message-to-me--dark:- hash: v1.k794b7964.b47818f5f154dfd4d14fe525e714980ec9f06e8c29802231d4e1ebf6df7a0de2.ru2rUWCNxUOD8UACkmW8-dfV0Q4rNvf-D-E7ut9kdXI+ hash: v1.k794b7964.73cac1d3e987e63edb81879b76df673b8ea3d882ac95cf8a674c9d2d954d49b1.qe_KYC6GEGBVwi3CDJ35bFJvxbpnse3sXfFZatFiamkscenes-app-inbox-slacknotificationssection--direct-message-to-me--light:- hash: v1.k794b7964.97016ccf994141237de98a7decd5fa540f8b8fecc6f9b67b6fe070e6fc86c6f6.YSImf6N-fF_YX2F4QDRwBpaQBi2b5C7UgU_s4h3xTDg+ hash: v1.k794b7964.14b4e786cdd617d18a3e8d72639798be8846939b99379113bd2168464a30946a.I0XujSZAw-8FWFHveywUMiX7IWYetcjTWBrAF7VK-M8scenes-app-inbox-slacknotificationssection--direct-message-unavailable--dark:- hash: v1.k794b7964.c0919593bf744127f368ed20b2cedf1cfa22e5f1af5ab217374b09e5b3a42967.iWW0VeeKA_6NsRR91wa3UUSdLiW25JlMYf7pKlRi44Y+ hash: v1.k794b7964.ab6d5e78fc96f8b547aaa062543e8d4debb7799651dc06b850eecfe11134492e.6YuGPols_LGn9nDHKWaMomvZrqdlayyK0ZRgPeHaHLgscenes-app-inbox-slacknotificationssection--direct-message-unavailable--light:- hash: v1.k794b7964.f0c171d1358f663f0cc699e8b012228fa2c6204569f66e99f5b0ff391ee587f2.n4pCX7buo8bGOu_BswREY22LJiyjDkbuauKq4nDiKCk+ hash: v1.k794b7964.2dfddf292df831d7452975d80a2a26150fcbe95043258b8b5d8307eb8fec522a.QielEjmJ7kIuCPST5NGHWUZvm42TLzIA1DoElKMNrhkscenes-app-inbox-slacknotificationssection--not-connected--dark:- hash: v1.k794b7964.28ba7f9bff784013ccce1e2a2fc0130d6bb7ce265f501308f221cbdf902614ad.Ou8BqYO_9RvcgnW9eECuR7tiWOtkJbX8mFSUXEkXzWw+ hash: v1.k794b7964.02eecdaecd783acd5eddc4eb18bdf31170845f2fa9b12d8263ef7f74579f0246.R5SA4lLRmjAVMExkshe46i4tf2a-BPmvJNKDOIxmxy8scenes-app-inbox-slacknotificationssection--not-connected--light:- hash: v1.k794b7964.3354167520829af3d1c6014d6eaf5b1f3a4651982251407c37850ae5cc1acecf.28_m7lUzxus-9IPwlhsbHZDN9i-Y0u55w_ciQt6ewAM+ hash: v1.k794b7964.b83f7fb2e02131ff205ade4b0b4b8cb08fe911e28a5b5343db44ec506d7358e3.flOIy8ZS6t4KZzWG97G8Ah-Q5JKLSH8V_2sA6KmyP08scenes-app-inbox-slacknotificationssection--nothing-configured--dark:- hash: v1.k794b7964.f18df82d8ee19d6c1d77c2a39707de1baa8ba95bb871771e855a08be8d6d72f5.kw_ozyO-TejXxIhuFd8rkW9aW3Y5e10IFOwl93QUhkk+ hash: v1.k794b7964.868e9c903d642b12c266254bcad4c95589bb118cb349fc43dd0e095de453e33b.-CGB4ajOLCc3CcB918VTx7ejcoNGTO7YJNcA_g6O_agscenes-app-inbox-slacknotificationssection--nothing-configured--light:- hash: v1.k794b7964.ebf2f4a8d1282b89b4d43396210ca77e3b79a1677f682604d81509864f5bbb92.02C3nsgbjhL-5KrD8GbSPcfBfqfSTZEmm6j5_ptYczg+ hash: v1.k794b7964.33f431089e36efd7fb7facf6351662b605c228bb0a4e1270e7940f3e872cf6de.e2w3Aad1meg6R9wNtDnLmMWgbk8KPkMUJ1JvI2xTV-Escenes-app-inbox-slacknotificationssection--personal-channel--dark:- hash: v1.k794b7964.039af1bc59057ad3e741687368f75e7a1c60d084505a9dda203e2e1e5c147a4c.nY40DHVp_R6hcU7ZMcRXiy-SdXwJXfOvupwdWsEnV9o+ hash: v1.k794b7964.6173461f72446f5c10eee14ecff6d2d1edfa157c29367c42ad0c181adf04f9e9.j7Kxo_30J_EWfGh3V89KDVcnFZfhgwORiwr_NSX4EN8scenes-app-inbox-slacknotificationssection--personal-channel--light:- hash: v1.k794b7964.146421752e601d082301cac6a9e6e876b230f0577ec852d002b46e7f20a96855.Jf8gfYZimmN2-9NcX-_7wLiTa5rgC1JiUyfDNqnGJ-8+ hash: v1.k794b7964.783c27989b223374df09dfed998a78ee30bc2445c5a5ce0eef388a433a4b4786.UGZTvAY_0az3KoRIdJDcLL5z8G-CO3UBroXkEs8Lu4Iscenes-app-inbox-sourcesteeringmodal--legacy-posture--dark:hash: v1.k794b7964.d8a52379e95bb0cabff2ab1ad8a4620d0f3ac91394cc057577f9a5c69cafb4d2.H8ZYcq__eOG2AMAmV26hDVqVtTuDsPY5dzZN1CkuwQkscenes-app-inbox-sourcesteeringmodal--legacy-posture--light:@@ -12474,10 +12438,6 @@ snapshots:hash: v1.k794b7964.740612fa137e304fc2840a5e41b44ac04614dfd183fd55a72c041e4168f46a04.eInqcr24eNVcNY1idkcXctdumOGkShuBP27l6pf2XsQscenes-app-inbox-sourcesteeringmodal--rules-set--light:hash: v1.k794b7964.d1279fa1214369e191ab56aeef694231fcd401abf93e1854000fdfdcf97399bc.BKbf7ywpJGW7XqCNbou14Du1jqORsoYt5No4mJCVU3Q- scenes-app-inbox-tabs--pull-requests-legacy--dark:- hash: v1.k794b7964.ea2d9121662cbe2949ebd9682fe66166bdee4b629247b3550a279b8e1f634cf5.76yqkry1Cg6E6AE4VaUvMxn8ciIU5mVlMc1RDq2tGJ8- scenes-app-inbox-tabs--pull-requests-legacy--light:- hash: v1.k794b7964.43939118a6c7870fc12e612c5b973b2058fdde444f403551f8f6011c82ca4949.EWtT_yr95gc5cVXtIii_dBY1un73ZJSKdJlcgiTWSQEscenes-app-inbox-tabs--reports--dark:hash: v1.k794b7964.de579e94a1887015af027dbecb7d2dcce02439872137ac00b0e4d5cc0a1e8589.YwsBhRpOZnH8C9lQakkHwKeCOwBUHpW5lGJ8lFGYR_Ascenes-app-inbox-tabs--reports--light:@@ -12486,10 +12446,6 @@ snapshots:hash: v1.k794b7964.a4766b945dbac1ec8fc6d4dd000b02c42912ca216f9f8e6b16cad697bd8e92a8.w39hYf6soNmmsPVoiutqVtA86Xx00ECeouUh022ElgEscenes-app-inbox-tabs--reports-empty--light:hash: v1.k794b7964.08f847fa4664de2be9a4e1942aec7a8c7444588bc02568f23d930abf19fc35a4.JadKDYvIFMx6zo9ddxk_VSix7S9GSXHtDow1E6yXVQg- scenes-app-inbox-tabs--reports-legacy--dark:- hash: v1.k794b7964.76e412d94a35a94be9e607e5b6b9b6999e75584d8b1d33860a4c30d6628cc865.G2qAGj6kpxsDYT26ll1LiVQIcgreRnJyKZJJxFzhl3k- scenes-app-inbox-tabs--reports-legacy--light:- hash: v1.k794b7964.803282f156dce837dfa6cc6423460eca7ffe9f210f66e63dfd958e528a6cb9c0.8vtgsr_oU-CqNE6HcibYDIvewF5uSZDakY7_J_DQuGwscenes-app-inbox-tabs--reports-state-filtered--dark:hash: v1.k794b7964.cd552155244b7fee125a642815382e031b6b1e6992a82fb18859ff2a95920c0a.E6OOCjW9Qo3XrsehudLeJi4gWzPPYoT1cjHTjgvy9Nwscenes-app-inbox-tabs--reports-state-filtered--light:@@ -12507,33 +12463,33 @@ snapshots:scenes-app-inbox-tabs--runs-loading--light:hash: v1.k794b7964.4eb178f9e66f29a39f3228c992661409215bf5b173ae458978b3c9876f14bb49.miH6CsWRVa_TkVCM3QJMhPicboUncrDXfrEEWYaVb24scenes-app-inbox-usagewidget--approaching-limit--dark:- hash: v1.k794b7964.bb258067fd5e4c1d488979422df5eca9612e3e9cecbc19f78473b5de70abe215.-Uz5oqZ3DlprzO-dB1Ijq3JOZoQo5qKcUP_vI77q5GU+ hash: v1.k794b7964.9569cc5327e5d7c1e60d9a0281681a6e8a2a56c0fb7656553b528ad7ea0d4fdf.MNU43hs83kTG4wrx8PNTS0SOX5iy02OpAWIGp_ABY6cscenes-app-inbox-usagewidget--approaching-limit--light:- hash: v1.k794b7964.9ce46e554d1f091544764f617297af317496b236fa7176ca7a83838905a804ee.H7yORek2WxrqrIsZXwNTpsEiUGnuM3RATvmXweHzpwQ+ hash: v1.k794b7964.dd27a74d15400ac51f99ac46dc20493ee165473e5c6939b84adf5a81b40f08ef.K_FM-FrfPqGMNhAkjDXC0mpuVH8gfQjMSmtwHuVX43gscenes-app-inbox-usagewidget--at-limit--dark:- hash: v1.k794b7964.961c32717eac3dedef649e175f4d1bbbf3f09cdee27db645e19f2dd3f0c30e00.UJQqMjfNVcfx8dwE2H3JZfAeszOeX2WibYtRRGjBcLk+ hash: v1.k794b7964.9ecfa9e00eadb29fb6258e54fdb00b2ebe1b50f0115a05f4ab1984fe3f18b9c9.ETlpygUZR8PTcqNjFe39bLfz2B-6r5r5EfpQHBRgL_0scenes-app-inbox-usagewidget--at-limit--light:- hash: v1.k794b7964.3a9dca8716d871a737a0f2259d59860efee188e7c990b33bf7ea3cf03e5d73c6.YnB9i9BaUpBOWLtdKKgawewzH6_q-0V3U5J_4DryhQg+ hash: v1.k794b7964.6305a030e05154f1a78dd49162213bc48f2382bfefb19cc0ca6477b8d9619766.Lj59B9WZzxLJ4XeAzqPTMjOrzx6fJ2tyixqfnpCPx9Uscenes-app-inbox-usagewidget--billable-usage--dark:- hash: v1.k794b7964.98f8a82c736522bb85a01f1c777d0ca0b4b9b7cb72a9334cc5c3ec74796931c0.PSJRRwgJVLLXJEiAWbwAgXAPE4RVZkawlbsZDsOXUnM+ hash: v1.k794b7964.d580247fe7097e5d42f58b5582142d9811eb053c1521f278311e69d0626614be.CTTp6JU1NM-cf0rgXbA_CCUZQ8ZEd0XQeKSgzzPbSCwscenes-app-inbox-usagewidget--billable-usage--light:- hash: v1.k794b7964.7465b1acab6836d36f3884d73ebcc126ab9d262bf0fa90404b72cdd35433e58e.02WU-qx6BZuF06cov9MX7Ok5WdjrYPqF06uHCGKOnSw+ hash: v1.k794b7964.d90ef8defcb70f29f9efc6c6de647f3e991f08781a508288218f68c26fe9ffe0.S2TZoPMMQ_JQzLOu6VvLrncYsXXDuXZVBspTy0UKlWgscenes-app-inbox-usagewidget--free-plan-zero-usage--dark:- hash: v1.k794b7964.73b24c2ad711ae1c47c71f6dd1fd9e945afe14a4cb07f86357a16469f2223083.GTvVgUxAQVwR9-fw_nfTA6k42IkLtt3jAmQ9PotAJ4Q+ hash: v1.k794b7964.bc4d28c190c409f44d3093b9f578de8bf70bc90902df6de9635876d24b3d773b.M-boW0gi2WvGoXKFnGvSJifpDYYGiMtmH1uZNKZIKHkscenes-app-inbox-usagewidget--free-plan-zero-usage--light:- hash: v1.k794b7964.31669bfef40ed11472d5175dabd7c1a48eed92b1dd7d50cc78c295166e268f6f.EypQJCPD06mg1k0MTyckwpZcgk6iJonGS8lwLpF7vKs+ hash: v1.k794b7964.1a3c17425f9fbc899f39394ad12df26a90506c366bedbcc69980e1d7be29e260.Liurs014SPMfwmufQNZyyd0CTpI9rslx_Oqqba3xXUoscenes-app-inbox-usagewidget--over-limit--dark:- hash: v1.k794b7964.f60272307d66f5b06bc0acb9c7a886ff496d4efa191cc75446a79150a60ee72c.6EiSeX2uMXtUryheZiut1SqlhALDhmUh3LJZ4OMHMlc+ hash: v1.k794b7964.3c0d6369013bd6513ba409af7ebe16f96d9d917950697fa70ef63f10974a1bc3.ppN86d3qej5tIaKKkmRcYkCB47sL4OH_ocuwfA8meqwscenes-app-inbox-usagewidget--over-limit--light:- hash: v1.k794b7964.d2fce435d5836f83b7682631fb6947918347bccca1eaac869540cc4b509c83ce.GqTDyFYonRUTsHIfyNOnlc2RGrjRSGzMFC5wIDOjESA+ hash: v1.k794b7964.6b8bb7cbb507f8ebc07f605f656475d32caedc932b9661a58258b63f72d1e7d6.dZ58JWli0ayd-xnSsmYbGXTpJvlOAWXxtfeVVB1fEVoscenes-app-inbox-usagewidget--with-refunded-prs--dark:- hash: v1.k794b7964.875a77e4c83d0726353378669a938b7b5928eaa137efda007484d00484cf8e5f.pYGPbBYNBaZYERh18RBaf6p9KWZbXdDZWug_yO53BLk+ hash: v1.k794b7964.5dc3c68ccb75c25bffe267c0039b2129a7299f69a3b7c25eb29aa5a8a3ea6e81.GPnBy9g8NaIeorbyGciY_mIZXCG3VcFS3Gp7_VgVN0Escenes-app-inbox-usagewidget--with-refunded-prs--light:- hash: v1.k794b7964.0cc78324f3aa6647cd3ccfa532b7dad83cda5f38383ba88db0f0336998a3974b.-qwM4Vm72oEySk95eu10Kmi_dZ-3aRTzfeRhrpnUF1A+ hash: v1.k794b7964.cfd3d02182eae5906ea96a99edb680344e97bbfaf3edb931cde0d40dcdb3026a.MwdBxHPugKe7UxkrD3DrhxnnfU5yPKnbfpnqsggVP70scenes-app-inbox-usagewidget--within-free-tier--dark:- hash: v1.k794b7964.f08e33da24a85604e6c034e0e75ea9aee591e95a89bd7f641d8e7fd14d035cba.jvSH7jzc9QVJhYUhHnmPZSZ6R4YZ3bIlaGEvQAGK5rA+ hash: v1.k794b7964.71b49c30c1c68c0c7fb3df2a2580b91b6afcf3d74324daa0699f0759885e7559.Y1sZI1K57lVqpkRcUX271NW8jm-JNlwZgS28zb_aqmkscenes-app-inbox-usagewidget--within-free-tier--light:- hash: v1.k794b7964.648bee645e8d97ed41b88b2f64ad75bbb9d0e54f6bf5395483e6f69717a80dc9.lU5ww7_KZ4Zxgkg2mtj0PyFXeH_CCdGCUyWkUD0q7AQ+ hash: v1.k794b7964.118fb70933c987a6ee09189caa6c0422b0a308182b5ffd11b7a0781e271fa812.yYq4R-Se0yXka4Sw2F2cdImWq8KfwneGw9KvaS80zk8scenes-app-inbox-valuesummary--complete--dark:hash: v1.k794b7964.fad6a3d2a448f5cde95c0075d7557f95735e5bb4cefb9584e740edf426a2d027.1IhRfMqjXy_sRLvPoB-GJr2aza7WDFNKyR3OcKI0J5Mscenes-app-inbox-valuesummary--complete--light:diff --git a/frontend/src/lib/constants.tsx b/frontend/src/lib/constants.tsxindex cc2f6e14c77c..fb857cd2af44 100644--- a/frontend/src/lib/constants.tsx+++ b/frontend/src/lib/constants.tsx@@ -348,7 +348,6 @@ export const FEATURE_FLAGS = {INBOX_GET_IT_MERGED: 'inbox-get-it-merged', // owner: #team-self-driving, gates the Get it merged action in the report Ask AI menuINBOX_MCP_USED: 'inbox-mcp-used', // owner: #team-self-driving, hides the MCP banner after confirmed Inbox tool useINBOX_MODEL_SORT: 'inbox-model-sort', // owner: #team-self-driving, gates the ranking model sort options and the score tag on inbox cards- INBOX_REDESIGN: 'inbox-redesign', // owner: #team-self-driving, gates the inbox redesign: report sections, triage mode, the Settings tab, and scout cardsINBOX_REPORT_FEEDBACK_BANG: 'inbox-report-feedback-bang', // owner: #team-self-driving, gates the party hog that pops on a report thumbs-up in the inbox and on the Today home pageINBOX_SLACK_NOTIFICATIONS: 'inbox-slack-notifications', // owner: #team-self-driving, gates the Slack notifications config card in the inboxINBOX_TIME_WINDOW: 'inbox-time-window', // owner: #team-self-driving, gates the created-in window filter on the inbox report listdiff --git a/frontend/src/scenes/settings/environment/AgentProjectInstructionsSettings.tsx b/frontend/src/scenes/settings/environment/AgentProjectInstructionsSettings.tsxindex 888be907ae44..91cfc779bf95 100644--- a/frontend/src/scenes/settings/environment/AgentProjectInstructionsSettings.tsx+++ b/frontend/src/scenes/settings/environment/AgentProjectInstructionsSettings.tsx@@ -4,15 +4,13 @@ import { IconArrowRight } from '@posthog/icons'import { LemonButton } from '@posthog/lemon-ui'import { RestrictionScope, useRestrictedArea } from 'lib/components/RestrictedArea'-import { FEATURE_FLAGS, TeamMembershipLevel } from 'lib/constants'-import { featureFlagLogic } from 'lib/logic/featureFlagLogic'+import { TeamMembershipLevel } from 'lib/constants'import { urls } from 'scenes/urls'import { agentInstructionsSettingsLogic } from './agentInstructionsSettingsLogic'import { InstructionsEditor } from './InstructionsEditor'export function AgentProjectInstructionsSettings(): JSX.Element {- const { featureFlags } = useValues(featureFlagLogic)const { projectInstructions, projectValue, projectDirty, projectInstructionsLoading } =useValues(agentInstructionsSettingsLogic)const { setProjectDraft, submitProjectDraft } = useActions(agentInstructionsSettingsLogic)@@ -35,18 +33,16 @@ export function AgentProjectInstructionsSettings(): JSX.Element {dataAttr="agent-project-instructions"ariaLabel="Project instructions"/>- {featureFlags[FEATURE_FLAGS.INBOX_REDESIGN] && (- <LemonButton- className="self-start"- type="tertiary"- size="small"- to={`${urls.inbox('settings')}#steering`}- sideIcon={<IconArrowRight aria-hidden />}- data-attr="agent-project-instructions-self-driving"- >- Customize Self-driving agents- </LemonButton>- )}+ <LemonButton+ className="self-start"+ type="tertiary"+ size="small"+ to={`${urls.inbox('settings')}#steering`}+ sideIcon={<IconArrowRight aria-hidden />}+ data-attr="agent-project-instructions-self-driving"+ >+ Customize Self-driving agents+ </LemonButton>{restrictionReason ? (<p className="text-secondary mb-0">Only project admins can change these. You can still add your own instructions below.diff --git a/frontend/src/scenes/settings/stories/SettingsEnvironment.stories.tsx b/frontend/src/scenes/settings/stories/SettingsEnvironment.stories.tsxindex f986edf3e16d..339a7897663e 100644--- a/frontend/src/scenes/settings/stories/SettingsEnvironment.stories.tsx+++ b/frontend/src/scenes/settings/stories/SettingsEnvironment.stories.tsx@@ -329,7 +329,6 @@ export const SettingsEnvironmentAiSubscriptionsCodexConnectModal: Story = {export const SettingsEnvironmentAgentInstructions: Story = {args: { sectionId: 'environment-task-agent-instructions' },- parameters: { featureFlags: [...STORYBOOK_FEATURE_FLAGS, FEATURE_FLAGS.INBOX_REDESIGN] },decorators: [mswDecorator({get: {diff --git a/products/signals/frontend/inbox/InboxScene.stories.tsx b/products/signals/frontend/inbox/InboxScene.stories.tsxindex 107a3e0892f6..a898f3836a91 100644--- a/products/signals/frontend/inbox/InboxScene.stories.tsx+++ b/products/signals/frontend/inbox/InboxScene.stories.tsx@@ -19,7 +19,6 @@ import {mockSourceMetadata,mockTask,mockTeamConfig,- pullRequestReports,reportTabReports,} from './__mocks__/inboxMocks'import { mockLargeScoutFleet, mockScoutConfigs, mockScoutRuns } from './__mocks__/scoutConfigs'@@ -92,7 +91,6 @@ const meta: Meta = {mockDate: '2026-06-11',featureFlags: {[FEATURE_FLAGS.PRODUCT_AUTONOMY]: true,- [FEATURE_FLAGS.INBOX_REDESIGN]: true,[FEATURE_FLAGS.SIGNALS_REPORT_METRICS]: true,},// The scene shell keeps a loader element mounted past the VR wait window, so don't block on it.@@ -140,17 +138,6 @@ export const WithValueSummary: Story = {decorators: [valueSummaryMocks],}-export const LegacyWithValueSummary: Story = {- parameters: {- featureFlags: {- ...meta.parameters?.featureFlags,- [FEATURE_FLAGS.SIGNALS_INBOX_VALUE_SUMMARY]: true,- [FEATURE_FLAGS.INBOX_REDESIGN]: false,- },- },- decorators: [valueSummaryMocks],-}-function reportWithEvidenceItems(count: number): Story {return {decorators: [@@ -192,44 +179,6 @@ export const Settings: Story = {decorators: [routeTo(urls.inbox('settings'))],}-// The layout the flag replaces: one tab per report list, the Runs and Configuration tabs, and the-// setup rail. Story parameters replace the meta's, so the meta-level flags are re-listed.-const LEGACY_FLAGS = {- [FEATURE_FLAGS.PRODUCT_AUTONOMY]: true,- [FEATURE_FLAGS.INBOX_REDESIGN]: false,-}--export const Legacy: Story = {- parameters: {- featureFlags: LEGACY_FLAGS,- testOptions: {- waitForLoadersToDisappear: true,- // The setup rail loads its own team config and integrations, sometimes after the loader wait.- // This button renders only after both loads finish.- waitForSelector: '[data-attr="signals-issue-tracker-connect"]',- },- },- decorators: [routeTo(urls.inbox('pulls'))],-}--export const LegacyReport: Story = {- parameters: { featureFlags: LEGACY_FLAGS },- decorators: [routeTo(urls.inboxReport('pulls', pullRequestReports[0].id))],-}--export const LegacyScouts: Story = {- parameters: { featureFlags: LEGACY_FLAGS },- decorators: [- routeTo(urls.inbox('scouts')),- mswDecorator({- get: {- '/api/projects/:id/signals/scout/configs': () => [200, mockScoutConfigs],- '/api/projects/:id/signals/scout/runs/recent-per-scout': () => [200, mockScoutRuns(mockScoutConfigs)],- },- }),- ],-}-// Set up (sources enabled) but no reports yet – exercises the empty list states.export const Empty: Story = {decorators: [diff --git a/products/signals/frontend/inbox/InboxScene.tsx b/products/signals/frontend/inbox/InboxScene.tsxindex 0c3f50e53d16..1a02d60b0084 100644--- a/products/signals/frontend/inbox/InboxScene.tsx+++ b/products/signals/frontend/inbox/InboxScene.tsx@@ -17,12 +17,10 @@ import { ScoutDetailView } from './components/config/scouts/ScoutDetailView'import { ScoutsRoster } from './components/config/scouts/ScoutsRoster'import { ScoutsRosterActions } from './components/config/scouts/ScoutsRosterActions'import { ReportDetail, ReportDetailSkeleton } from './components/detail/ReportDetail'-import { ReportDetailLegacy, ReportDetailSkeletonLegacy } from './components/detail/ReportDetailLegacy'import { FindingsPanel } from './components/findings/FindingsPanel'import { InboxOnboardingBanner } from './components/onboarding/InboxOnboardingBanner'import { InboxOnboardingEntry } from './components/onboarding/InboxOnboardingEntry'import { ScratchpadPanel } from './components/scratchpad/ScratchpadPanel'-import { InboxListViewLegacy } from './components/shell/InboxListViewLegacy'import { InboxTabBar } from './components/shell/InboxTabBar'import { InboxValueSummary } from './components/shell/InboxValueSummary'import { ReportsTab } from './components/tabs/ReportsTab'@@ -33,7 +31,7 @@ import { captureInboxPanelViewed } from './inboxAnalytics'import { inboxSceneLogic } from './inboxSceneLogic'import { inboxOnboardingLogic } from './logics/inboxOnboardingLogic'import { scoutFleetLogic } from './logics/scoutFleetLogic'-import { INBOX_LEGACY_TAB_DESCRIPTION, INBOX_TAB_DESCRIPTION, InboxTabKey, SignalReport } from './types'+import { INBOX_TAB_DESCRIPTION, InboxTabKey, SignalReport } from './types'export const scene: SceneExport = {component: InboxScene,@@ -76,7 +74,7 @@ function ActiveTabBody({ tab }: { tab: InboxTabKey }): JSX.Element | null {return <ScoutsRoster />case 'settings':return <SettingsTab />- // Legacy tab segments are redirected before they can become active under the redesign.+ // Old-layout tab segments are redirected before they can become active.default:return null}@@ -140,7 +138,6 @@ function InboxListView(): JSX.Element {* header (back link, actions) and the evidence-first two-column layout.*/function InboxDetailView({ report }: { report: SignalReport }): JSX.Element {- const { activeTab, isRedesign } = useValues(inboxSceneLogic)const { reportDetailScrolled } = useActions(inboxSceneLogic)// Report only the first scroll per report to the logic (which fires `Inbox report scrolled` once),// so a fast native scroll doesn't dispatch an action on every frame.@@ -148,11 +145,7 @@ function InboxDetailView({ report }: { report: SignalReport }): JSX.Element {return (<div- className={- isRedesign- ? '-mt-2 flex flex-col min-h-0 flex-1 overflow-auto'- : 'flex flex-col min-h-0 flex-1 overflow-auto'- }+ className="-mt-2 flex flex-col min-h-0 flex-1 overflow-auto"onScroll={() => {if (scrolledReportRef.current !== report.id) {scrolledReportRef.current = report.id@@ -161,11 +154,7 @@ function InboxDetailView({ report }: { report: SignalReport }): JSX.Element {}}>{/* Key on the report so per-report detail state (e.g. the active diff tab) resets on navigation. */}- {isRedesign ? (- <ReportDetail key={report.id} report={report} />- ) : (- <ReportDetailLegacy key={report.id} report={report} tab={activeTab} />- )}+ <ReportDetail key={report.id} report={report} /></div>)}@@ -220,7 +209,6 @@ export function InboxScene(): JSX.Element {isFindingsOpen,isRunsOpen,isTriageOpen,- isRedesign,} = useValues(inboxSceneLogic)const { setScratchpadOpen, setFindingsOpen, setRunsOpen } = useActions(inboxSceneLogic)const { onboardingMode } = useValues(inboxOnboardingLogic)@@ -245,8 +233,8 @@ export function InboxScene(): JSX.Element {isTriageOpen// `t` opens triage mode from the report list. Not while a surface covers the list, not while- // the inbox is locked behind onboarding, and not with the flag off (there is no triage mode).- const listInteractive = isRedesign && !showDetail && activeTab === 'reports' && onboardingMode === 'none'+ // the inbox is locked behind onboarding.+ const listInteractive = !showDetail && activeTab === 'reports' && onboardingMode === 'none'useKeyboardHotkeys({t: { action: () => router.actions.push(urls.inboxTriage()), disabled: !listInteractive },@@ -279,7 +267,7 @@ export function InboxScene(): JSX.Element {description={onboardingMode === 'pending' || onboardingMode === 'takeover'? null- : (isRedesign ? INBOX_TAB_DESCRIPTION : INBOX_LEGACY_TAB_DESCRIPTION)[activeTab]+ : INBOX_TAB_DESCRIPTION[activeTab]}resourceType={{ type: 'inbox' }}// Creating a scout is the Scouts tab's primary action, so it sits in the scene@@ -301,7 +289,7 @@ export function InboxScene(): JSX.Element {{onboardingMode !== 'takeover' && onboardingMode !== 'pending' && (<InboxValueSummary visible={!showDetail} />)}- {isRedesign ? <InboxListView /> : <InboxListViewLegacy />}+ <InboxListView /></div></div>@@ -326,15 +314,9 @@ export function InboxScene(): JSX.Element {) : selectedReport ? (<InboxDetailView report={selectedReport} />) : selectedReportLoading ? (- isRedesign ? (- <div className="-mt-2 flex flex-col min-h-0 flex-1 overflow-auto">- <ReportDetailSkeleton />- </div>- ) : (- <div className="flex flex-col min-h-0 flex-1 overflow-auto">- <ReportDetailSkeletonLegacy />- </div>- )+ <div className="-mt-2 flex flex-col min-h-0 flex-1 overflow-auto">+ <ReportDetailSkeleton />+ </div>) : (<div className="flex flex-1 flex-col items-center justify-center gap-3 text-center"><div>@@ -344,10 +326,7 @@ export function InboxScene(): JSX.Element {selected.</p></div>- <LemonButton- type="secondary"- to={backOverride ?? urls.inbox(isRedesign ? 'reports' : activeTab)}- >+ <LemonButton type="secondary" to={backOverride ?? urls.inbox('reports')}>{backOverride ? 'Back' : 'Back to self-driving inbox'}</LemonButton></div>diff --git a/products/signals/frontend/inbox/components/InboxReportList.test.tsx b/products/signals/frontend/inbox/components/InboxReportList.test.tsxdeleted file mode 100644index d3e300f029ee..000000000000--- a/products/signals/frontend/inbox/components/InboxReportList.test.tsx+++ /dev/null@@ -1,175 +0,0 @@-import '@testing-library/jest-dom'--import { act, cleanup, render, screen, waitFor } from '@testing-library/react'--import { useMocks } from '~/mocks/jest'-import { initKeaTests } from '~/test/init'--import { legacyTabListLogicProps, reportListLogic } from '../logics/reportListLogic'-import { SignalReport, SignalReportStatus } from '../types'-import { InboxReportList, InboxReportCardProps } from './InboxReportList'--// The list chrome is unrelated to paging and pulls in its own scout/filter endpoints.-jest.mock('./shell/InboxSearchFilterBar', () => ({ InboxSearchFilterBar: () => null }))-jest.mock('./shell/InboxBulkSelectionBar', () => ({ InboxBulkSelectionBar: () => null }))--/** Fires whatever the component handed to `IntersectionObserver.observe`, as if it scrolled into view. */-let intersectObservedElement: (() => void) | null = null--function StubCard({ report }: InboxReportCardProps): JSX.Element {- return <div>{report.title}</div>-}--function makeReport(id: string): SignalReport {- return {- id,- title: `Report ${id}`,- summary: 'summary',- status: SignalReportStatus.READY,- total_weight: 0,- signal_count: 1,- artefact_count: 0,- is_suggested_reviewer: false,- priority: 'P2',- source_products: ['error_tracking'],- created_at: '2026-06-11T10:00:00Z',- updated_at: '2026-06-11T10:00:00Z',- } satisfies SignalReport-}--describe('InboxReportList', () => {- let requestedOffsets: (string | null)[]-- beforeAll(() => {- // jsdom has no IntersectionObserver; the infinite-scroll sentinel needs one.- global.IntersectionObserver = class {- constructor(private callback: IntersectionObserverCallback) {}- observe(): void {- intersectObservedElement = () =>- this.callback([{ isIntersecting: true } as IntersectionObserverEntry], this as any)- }- unobserve(): void {}- disconnect(): void {}- } as unknown as typeof IntersectionObserver- })-- beforeEach(() => {- intersectObservedElement = null- requestedOffsets = []- useMocks({- get: {- // Reviewer scope loads alongside the list; an empty map keeps it out of the way.- '/api/projects/:team_id/signals/reports/available_reviewers': {},- '/api/projects/:team_id/signals/reports/': ({ request }) => {- const { searchParams } = new URL(request.url)- const offset = searchParams.get('offset')- const limit = searchParams.get('limit')- // The tab badge fires a separate count-only request; don't count it as a page.- if (limit !== '1') {- requestedOffsets.push(offset)- }- const page = offset === '0' || offset === null ? '1' : '2'- return [- 200,- {- count: 277,- // A non-null `next` is what tells the list there are more pages.- next: 'http://localhost/api/projects/997/signals/reports/?offset=50',- previous: null,- results: [makeReport(`page-${page}`)],- },- ]- },- },- })- initKeaTests()- })-- afterEach(cleanup)-- it('keeps paging once the sentinel scrolls into view', async () => {- render(<InboxReportList tabKey="reports" Card={StubCard} emptyState={{ content: <div>empty</div> }} />)-- await screen.findByText('Report page-1')- // The sentinel only enters the DOM after the first page lands, so the observer has to- // attach then — not on mount, when there is nothing to observe.- await waitFor(() => expect(intersectObservedElement).not.toBeNull())-- act(() => intersectObservedElement!())-- await screen.findByText('Report page-2')- expect(requestedOffsets).toEqual(['0', '1'])- })-- it('shows an error with retry when the first page fails, and recovers on retry', async () => {- let firstPageAttempts = 0- useMocks({- get: {- '/api/projects/:team_id/signals/reports/available_reviewers': {},- '/api/projects/:team_id/signals/reports/': ({ request }) => {- const { searchParams } = new URL(request.url)- // The badge count request must still succeed — a non-zero count is what used to- // hold the skeleton up forever once the page load failed.- if (searchParams.get('limit') === '1') {- return [200, { count: 5, next: null, previous: null, results: [] }]- }- firstPageAttempts += 1- if (firstPageAttempts === 1) {- return [500, { detail: 'boom' }]- }- return [200, { count: 5, next: null, previous: null, results: [makeReport('recovered')] }]- },- },- })-- render(<InboxReportList tabKey="reports" Card={StubCard} emptyState={{ content: <div>empty</div> }} />)-- const retry = await screen.findByText('Retry')- expect(screen.getByText("Couldn't load these reports.")).toBeInTheDocument()-- act(() => retry.click())-- await screen.findByText('Report recovered')- expect(screen.queryByText("Couldn't load these reports.")).not.toBeInTheDocument()- })-- it('retry refetches when a refresh fails on an already-loaded empty list', async () => {- let pageAttempts = 0- useMocks({- get: {- '/api/projects/:team_id/signals/reports/available_reviewers': {},- '/api/projects/:team_id/signals/reports/': ({ request }) => {- const { searchParams } = new URL(request.url)- if (searchParams.get('limit') === '1') {- return [200, { count: 0, next: null, previous: null, results: [] }]- }- pageAttempts += 1- // First load lands empty (a tab or filter with no matches), the refresh fails,- // then the retry recovers. A failed load keeps the earlier empty response, so- // `ensureLoaded` alone would send no request — the retry must refetch.- if (pageAttempts === 1) {- return [200, { count: 0, next: null, previous: null, results: [] }]- }- if (pageAttempts === 2) {- return [500, { detail: 'boom' }]- }- return [200, { count: 1, next: null, previous: null, results: [makeReport('recovered')] }]- },- },- })-- render(<InboxReportList tabKey="reports" Card={StubCard} emptyState={{ content: <div>empty</div> }} />)-- await screen.findByText('empty')- // A reload (filter/scope change, bulk broadcast) refetches the loaded list and fails here.- act(() => reportListLogic(legacyTabListLogicProps('reports')).actions.refresh())-- const retry = await screen.findByText('Retry')- expect(screen.getByText("Couldn't load these reports.")).toBeInTheDocument()-- act(() => retry.click())-- await screen.findByText('Report recovered')- expect(screen.queryByText("Couldn't load these reports.")).not.toBeInTheDocument()- })-})diff --git a/products/signals/frontend/inbox/components/InboxReportList.tsx b/products/signals/frontend/inbox/components/InboxReportList.tsxdeleted file mode 100644index 938eb93c451c..000000000000--- a/products/signals/frontend/inbox/components/InboxReportList.tsx+++ /dev/null@@ -1,307 +0,0 @@-import { BindLogic, useActions, useValues } from 'kea'-import { ComponentType, JSX, memo, useCallback, useEffect, useRef } from 'react'--import { LemonButton } from '@posthog/lemon-ui'--import { captureInboxReportsImpressed, captureInboxViewed } from '../inboxAnalytics'-import { inboxSceneLogic } from '../inboxSceneLogic'-import { inboxFiltersLogic } from '../logics/inboxFiltersLogic'-import { legacyTabListLogicProps, reportListLogic } from '../logics/reportListLogic'-import { INBOX_LEGACY_TAB_SECTION, InboxFlatListTabKey, InboxReportSectionKey, SignalReport } from '../types'-import { DismissalFeedback } from '../utils/dismissalReasons'-import { CardSkeleton } from './cards/CardSkeleton'-import { InboxMcpBanner } from './InboxMcpBanner'-import { InboxBulkSelectionBar } from './shell/InboxBulkSelectionBar'-import { InboxSearchFilterBar } from './shell/InboxSearchFilterBar'--export interface InboxReportCardProps {- report: SignalReport- sectionKey: InboxReportSectionKey- onDismiss: (dismissal: DismissalFeedback) => void- /** Restore a suppressed report back to the inbox. Only wired on the Archived tab. */- onRestore?: () => void- /** Rendered as an attached row inside a shared bordered container (vs. a freestanding card). */- attached?: boolean-}--interface InboxReportListProps {- tabKey: InboxFlatListTabKey- Card: ComponentType<InboxReportCardProps>- emptyState:- | { content: JSX.Element }- | { icon: JSX.Element; title: string; description: string; extra?: JSX.Element }-}--/**- * One row, memoized. The list re-renders on every badge count, page and poll that lands, and- * repainting every row each time is what made the inbox stop answering clicks. The row builds its- * own dismiss and restore closures from the list's stable actions, so its props stay comparable.- */-const LegacyReportRow = memo(function LegacyReportRow({- report,- sectionKey,- Card,- dismissReport,- restoreReport,-}: {- report: SignalReport- sectionKey: InboxReportSectionKey- Card: ComponentType<InboxReportCardProps>- dismissReport: (reportId: string, dismissal: DismissalFeedback) => void- restoreReport: (reportId: string, surface: 'list_row') => void-}): JSX.Element {- return (- <Card- report={report}- sectionKey={sectionKey}- onDismiss={(dismissal) => dismissReport(report.id, dismissal)}- onRestore={() => restoreReport(report.id, 'list_row')}- />- )-})--/**- * Shared body for the flat report-list tabs shown with the redesign flag off (Pull requests /- * Reports / Not actionable / Archive). Each is the same primitive – only the server filter and- * the empty-state copy differ. Binds the keyed `reportListLogic`, loads the first- * page lazily on mount, shows a skeleton while a known-non-empty tab loads, and- * appends pages via an IntersectionObserver sentinel.- */-export function InboxReportList(props: InboxReportListProps): JSX.Element {- return (- <BindLogic logic={reportListLogic} props={legacyTabListLogicProps(props.tabKey)}>- <InboxReportListInner {...props} />- </BindLogic>- )-}--function InboxReportListInner({ tabKey, Card, emptyState }: InboxReportListProps): JSX.Element {- const {- reports,- count,- totalCount,- hasMore,- reportsResponseLoading,- isLoaded,- reportsLoadFailed,- pageLoadFailed,- loadedQueryKey,- loadedContext,- loadedRanker,- } = useValues(reportListLogic)- const { ensureLoaded, loadMore, dismissReport, restoreReport, refresh } = useActions(reportListLogic)- const { hasActiveFilters, sourceProductFilter, priorityFilter, scope } = useValues(inboxFiltersLogic)- // The list stays mounted (hidden) while a report/scout detail is open, so gate the view event on- // the list actually being the visible surface — otherwise a deep-link to a report fires a phantom- // `Inbox viewed` and then suppresses the real one when the user navigates back to the list.- const { selectedReportId, selectedScoutSkillName, isScratchpadOpen, isFindingsOpen } = useValues(inboxSceneLogic)- const listVisible = !selectedReportId && !selectedScoutSkillName && !isScratchpadOpen && !isFindingsOpen-- // The Pull requests / Reports badge counts go on every `Inbox viewed`, whatever tab is open: the- // active tab's `total_count` alone says nothing about a user who lands on Pull requests and has- // 200 reports waiting. These share the tab bar's keyed instances, so no extra requests.- const { count: pullsTabCount, countLoading: pullsTabCountLoading } = useValues(- reportListLogic(legacyTabListLogicProps('pulls'))- )- const { count: reportsTabCount, countLoading: reportsTabCountLoading } = useValues(- reportListLogic(legacyTabListLogicProps('reports'))- )- // A badge count is settled once its request is no longer in flight: loaded, refreshed, or failed- // (count stays null). Waiting on the loading flags rather than non-null values means a scope or- // filter refresh in progress doesn't fire the event with the previous query's counts.- const badgeCountsSettled = !pullsTabCountLoading && !reportsTabCountLoading-- // Fire `Inbox viewed` once per tab mount, the first time its list and the badge counts settle- // while visible.- const viewedFiredRef = useRef(false)- useEffect(() => {- if (listVisible && isLoaded && count !== null && badgeCountsSettled && !viewedFiredRef.current) {- viewedFiredRef.current = true- captureInboxViewed({- tab: tabKey,- reports,- totalCount: count,- pullsTabCount,- reportsTabCount,- hasActiveFilters,- sourceProductFilter,- priorityFilter,- scope,- })- }- }, [- listVisible,- isLoaded,- count,- badgeCountsSettled,- pullsTabCount,- reportsTabCount,- reports,- tabKey,- hasActiveFilters,- sourceProductFilter,- priorityFilter,- scope,- ])-- // Impression log for ranking-model training: record each report the first time it appears in- // the visible list (initial page, pagination, refresh), with its rank at that moment. Deduped- // per tab mount so re-renders and detail-pane round-trips don't refire.- const impressedIdsRef = useRef(new Set<string>())- // Dedupe is per query: a sort/search/filter/scope change is a new ranking context, so a report- // re-shown under the new query must impress again (at its new rank) for its later open/action- // events to have a matching impression.- const impressionQueryKeyRef = useRef('')- useEffect(() => {- // totalCount, loadedQueryKey, and loadedContext come from the same response as `reports`- // (not the live filter state or the separately-loaded badge count), so impressions can't- // be stamped with a stale total or with scope/filter context the user switched to after- // the request went out, and rows from the previous query are never attributed to the new- // one while its refetch is still in flight.- if (!listVisible || !isLoaded || totalCount === null || loadedQueryKey === null || loadedContext === null) {- return- }- // The ranker is in the key because `sort=recommended` keeps the same query when the server switches rankers.- const impressionKey = `${loadedQueryKey}|${loadedRanker}`- if (impressionKey !== impressionQueryKeyRef.current) {- impressionQueryKeyRef.current = impressionKey- impressedIdsRef.current = new Set<string>()- }- const fresh = reports- .map((report, index) => ({ report, rank: index + 1 }))- .filter(({ report }) => !impressedIdsRef.current.has(report.id))- if (fresh.length === 0) {- return- }- fresh.forEach(({ report }) => impressedIdsRef.current.add(report.id))- captureInboxReportsImpressed({- tab: tabKey,- reports: fresh.map(({ report }) => report),- ranks: fresh.map(({ rank }) => rank),- listSize: reports.length,- totalCount,- hasActiveFilters: loadedContext.hasActiveFilters,- scope: loadedContext.scope,- sortField: loadedContext.sortField,- sortDirection: loadedContext.sortDirection,- createdWindow: loadedContext.createdWindow,- rankerId: loadedRanker,- })- }, [listVisible, isLoaded, totalCount, reports, tabKey, loadedQueryKey, loadedContext, loadedRanker])-- // Read fresh state at intersection time via refs so the observer isn't rebuilt twice per page- // fetch (`hasMore`/`reportsResponseLoading` both flip during a load).- const hasMoreRef = useRef(hasMore)- hasMoreRef.current = hasMore- const loadingRef = useRef(reportsResponseLoading)- loadingRef.current = reportsResponseLoading-- useEffect(() => {- ensureLoaded()- }, [ensureLoaded])-- // A callback ref, not an effect over `sentinelRef`: the sentinel only enters the DOM once the- // first page has landed and `hasMore` is true, which is after a mount-only effect has already- // run and found nothing to observe. Attaching as the node mounts is what keeps paging alive.- const observerRef = useRef<IntersectionObserver | null>(null)- const sentinelRef = useCallback(- (el: HTMLDivElement | null) => {- observerRef.current?.disconnect()- observerRef.current = null- if (!el) {- return- }- const observer = new IntersectionObserver(- (entries) => {- if (entries[0]?.isIntersecting && hasMoreRef.current && !loadingRef.current) {- loadMore()- }- },- // Generous prefetch margin so the next page lands well before the user reaches the bottom.- { rootMargin: '1500px' }- )- observer.observe(el)- observerRef.current = observer- },- [loadMore]- )- useEffect(() => () => observerRef.current?.disconnect(), [])-- // Skeleton while a tab we know is non-empty loads its first page. A settled failed load leaves- // `reportsResponse` null, so without the `reportsLoadFailed` guard a non-zero badge count would- // hold the skeleton up forever instead of surfacing the error below.- const showSkeleton = !isLoaded && !reportsLoadFailed && (reportsResponseLoading || (count ?? 0) > 0)-- return (- <div className="@container mx-auto max-w-4xl flex flex-col gap-4 px-6 py-4">- <InboxSearchFilterBar onRefresh={() => refresh()} refreshing={reportsResponseLoading} />- <InboxBulkSelectionBar reports={reports} />- <InboxMcpBanner />-- {showSkeleton ? (- <CardSkeleton count={Math.min(count ?? 4, 6)} variant="cards" dashed={tabKey !== 'pulls'} />- ) : reportsLoadFailed && reports.length === 0 ? (- <div className="flex flex-col items-start gap-2 px-1 py-2">- <p className="m-0 text-sm text-tertiary">Couldn't load these reports.</p>- <LemonButton- size="small"- type="secondary"- onClick={() => (isLoaded ? refresh() : ensureLoaded())}- data-attr="inbox-report-list-retry"- >- Retry- </LemonButton>- </div>- ) : reports.length === 0 ? (- 'content' in emptyState ? (- emptyState.content- ) : (- <div className="mx-auto max-w-md flex flex-col items-center text-center py-12 gap-2">- <div className="flex items-center justify-center h-12 w-12 rounded-full bg-fill-primary text-secondary mb-1">- {emptyState.icon}- </div>- <h3 className="text-base font-semibold m-0">{emptyState.title}</h3>- <p className="text-sm text-tertiary m-0">{emptyState.description}</p>- {emptyState.extra}- </div>- )- ) : (- <>- {/* Each report is its own freestanding card, separated by a small gap. */}- <div className="flex flex-col gap-1.5">- {reports.map((report) => (- <LegacyReportRow- key={report.id}- report={report}- sectionKey={INBOX_LEGACY_TAB_SECTION[tabKey]}- Card={Card}- dismissReport={dismissReport}- restoreReport={restoreReport}- />- ))}- {/* Skeleton cards continue the list while the next page loads – sleeker than a spinner. */}- {isLoaded && reportsResponseLoading && (- <CardSkeleton count={2} variant="cards" dashed={tabKey !== 'pulls'} />- )}- {/* A failed next page keeps the loaded rows and the sentinel may sit inside the- viewport without re-firing, so offer an explicit way to fetch it again. */}- {isLoaded && !reportsResponseLoading && pageLoadFailed && (- <div className="flex items-center gap-2 px-1 py-2">- <p className="m-0 text-sm text-tertiary">Couldn't load more reports.</p>- <LemonButton- size="xsmall"- type="secondary"- onClick={() => loadMore()}- data-attr="inbox-report-list-retry-page"- >- Retry- </LemonButton>- </div>- )}- </div>- {hasMore && <div ref={sentinelRef} className="h-1" aria-hidden />}- </>- )}- </div>- )-}diff --git a/products/signals/frontend/inbox/components/cards/InboxCards.stories.tsx b/products/signals/frontend/inbox/components/cards/InboxCards.stories.tsxindex 3a2660accdcd..82bc97c59080 100644--- a/products/signals/frontend/inbox/components/cards/InboxCards.stories.tsx+++ b/products/signals/frontend/inbox/components/cards/InboxCards.stories.tsx@@ -247,7 +247,7 @@ const impactReports: SignalReport[] = []export const ReportCardWithImpact: Story = {- parameters: { featureFlags: [FEATURE_FLAGS.INBOX_REDESIGN, FEATURE_FLAGS.SIGNALS_REPORT_METRICS] },+ parameters: { featureFlags: [FEATURE_FLAGS.SIGNALS_REPORT_METRICS] },render: () => (<CardList>{impactReports.map((report) => (@@ -294,7 +294,6 @@ const rankedReports: SignalReport[] = []export const ReportCardRankingTags: Story = {- parameters: { featureFlags: [FEATURE_FLAGS.INBOX_REDESIGN] },render: () => (<CardList>{rankedReports.map((report) => (diff --git a/products/signals/frontend/inbox/components/cards/ReportCard.test.tsx b/products/signals/frontend/inbox/components/cards/ReportCard.test.tsxindex a55b1da36f17..0c1fe3f0b9d8 100644--- a/products/signals/frontend/inbox/components/cards/ReportCard.test.tsx+++ b/products/signals/frontend/inbox/components/cards/ReportCard.test.tsx@@ -59,9 +59,8 @@ function makeMetric(overrides: Partial<ReportMetricApi> = {}): ReportMetricApi {}}-function enableRedesign(enabled = true): void {- featureFlagLogic.actions.setFeatureFlags([FEATURE_FLAGS.INBOX_REDESIGN, FEATURE_FLAGS.SIGNALS_REPORT_METRICS], {- [FEATURE_FLAGS.INBOX_REDESIGN]: enabled,+function enableImpactColumn(enabled = true): void {+ featureFlagLogic.actions.setFeatureFlags([FEATURE_FLAGS.SIGNALS_REPORT_METRICS], {[FEATURE_FLAGS.SIGNALS_REPORT_METRICS]: enabled,})}@@ -281,10 +280,10 @@ describe('ReportCard', () => {pending.mockRestore()})- it('shows the affected-user snapshot in a redesigned row and prefers it over the primary metric', async () => {+ it('shows the affected-user snapshot in a row and prefers it over the primary metric', async () => {// The harness renders a card for every test; these assert against their own.cleanup()- enableRedesign()+ enableImpactColumn()const user = userEvent.setup()const report = makeReport('r-2', {metrics: [@@ -331,7 +330,7 @@ describe('ReportCard', () => {it.each(rowPartCases)('prints %s as a figure above its unit word', (_label, metric, figure, unitWord) => {// The harness renders a card for every test; these assert against their own.cleanup()- enableRedesign()+ enableImpactColumn()const { container } = render(<ReportCard report={makeReport('r-2', { metrics: [metric] })} />)const block = container.querySelector('[data-attr="report-card-impact-metric"]')@@ -343,7 +342,7 @@ describe('ReportCard', () => {it('draws a rate strip as a line instead of bars', () => {// The harness renders a card for every test; these assert against their own.cleanup()- enableRedesign()+ enableImpactColumn()const { container } = render(<ReportCardreport={makeReport('r-2', {@@ -368,7 +367,7 @@ describe('ReportCard', () => {it('draws no strip for a single-bucket series but keeps the figure', () => {// The harness renders a card for every test; these assert against their own.cleanup()- enableRedesign()+ enableImpactColumn()const { container } = render(<ReportCard report={makeReport('r-2', { metrics: [makeMetric({ series: [9] })] })} />)@@ -385,7 +384,7 @@ describe('ReportCard', () => {] as const)('shows %s', (_name, impactColumn, timestampField, time, title) => {// The harness renders a card for every test; these assert against their own.cleanup()- enableRedesign(impactColumn)+ enableImpactColumn(impactColumn)const { container } = render(<ReportCardreport={makeReport('r-2', { metrics: [], updated_at: '2026-07-01T10:00:00Z' })}@@ -400,7 +399,7 @@ describe('ReportCard', () => {it('uses the primary snapshot when there is no affected-user snapshot', () => {// The harness renders a card for every test; these assert against their own.cleanup()- enableRedesign()+ enableImpactColumn()const report = makeReport('r-2', {metrics: [makeMetric({@@ -433,7 +432,7 @@ describe('ReportCard', () => {] as const)('shows the active head lift in the meta row %s', (_name, impactColumn, sortField, tagText) => {// The harness renders a card for every test; these assert against their own.cleanup()- enableRedesign(impactColumn)+ enableImpactColumn(impactColumn)const report = makeReport('r-2', {metrics: [makeMetric()],ranking: {@@ -459,7 +458,7 @@ describe('ReportCard', () => {it('marks an unscored report under a model sort and adds no tag under a time sort', () => {// The harness renders a card for every test; these assert against their own.cleanup()- enableRedesign()+ enableImpactColumn()const { rerender } = render(<ReportCard report={makeReport('r-2')} rankingSortField="ranking_fixed" />)expect(screen.getByText('Not scored yet')).toBeInTheDocument()@@ -484,29 +483,16 @@ describe('ReportCard', () => {expect(screen.queryByText('Not scored yet')).not.toBeInTheDocument()})- it('does not show a list metric without a stored snapshot, under the legacy design, or with the metrics flag off', () => {+ it('does not show a list metric without a stored snapshot or with the metrics flag off', () => {const report = makeReport('r-2', { metrics: [makeMetric({ value: null, value_at: null })] })// The harness renders a card for every test; these assert against their own.cleanup()- enableRedesign()+ enableImpactColumn()const { container, rerender } = render(<ReportCard report={report} />)expect(container.querySelector('[data-attr="report-card-impact-metric"]')).toBeNull()- enableRedesign(false)- rerender(- <ReportCard- report={makeReport('r-2', {- metrics: [{ ...report.metrics![0], value: 42 }],- })}- />- )- expect(container.querySelector('[data-attr="report-card-impact-metric"]')).toBeNull()-- featureFlagLogic.actions.setFeatureFlags([FEATURE_FLAGS.INBOX_REDESIGN, FEATURE_FLAGS.SIGNALS_REPORT_METRICS], {- [FEATURE_FLAGS.INBOX_REDESIGN]: true,- [FEATURE_FLAGS.SIGNALS_REPORT_METRICS]: false,- })+ enableImpactColumn(false)rerender(<ReportCardreport={makeReport('r-2', {diff --git a/products/signals/frontend/inbox/components/cards/ReportCard.tsx b/products/signals/frontend/inbox/components/cards/ReportCard.tsxindex a691b0037398..e4096c00e2fe 100644--- a/products/signals/frontend/inbox/components/cards/ReportCard.tsx+++ b/products/signals/frontend/inbox/components/cards/ReportCard.tsx@@ -1,5 +1,4 @@import clsx from 'clsx'-import { router } from 'kea-router'import { memo } from 'react'import { IconHide, IconUndo } from '@posthog/icons'@@ -14,13 +13,7 @@ import { PrBadge } from 'lib/signals/SignalReportPrBadge'import type { InboxRankingSortField } from '../../logics/inboxFiltersLogic'import { useReportCiStatus } from '../../logics/prCiStatusLogic'-import {- INBOX_SECTION_LEGACY_TAB,- InboxReportSectionKey,- SignalReport,- SignalReportStatus,- SignalSourceProduct,-} from '../../types'+import { SignalReport, SignalReportStatus, SignalSourceProduct } from '../../types'import { dismissalReasonLabel, DismissalFeedback, heldBackLabel, isResolveReason } from '../../utils/dismissalReasons'import { inboxReportDetailUrl } from '../../utils/inboxReportUrls'import {@@ -31,10 +24,8 @@ import {safeHttpUrl,} from '../../utils/reportPresentation'import { primaryReportPullRequest } from '../../utils/reportPullRequests'-import { SignalReportActionabilityBadge } from '../badges/SignalReportActionabilityBadge'import { SignalReportBillingBadge } from '../badges/SignalReportBillingBadge'import { SignalReportPriorityBadge } from '../badges/SignalReportPriorityBadge'-import { isStatusRedundantWithActionability, SignalReportStatusBadge } from '../badges/SignalReportStatusBadge'import {knownSourceProductEntries,SourceProductIconRow,@@ -108,16 +99,14 @@ export function InboxCardSourceMeta({* "Review" action; plain reports get a dashed border, a summary placeholder, and the* status/actionability chips.*- * Under the redesign the row itself is the way in: the whole card links to the report detail, so- * there is no separate open button. Dismissing and resolving live in the report detail pane and the- * bulk selection bar, where what is being judged is in full view. Other surfaces that embed this- * card can still opt into a row-level Dismiss via `onDismiss`. The redesign also drops the status- * and actionability chips: the state a row is in (Needs decision, Not actionable, ...) already says- * what they said. With the flag off every row keeps its chips, its Dismiss button, and "Review".+ * The row itself is the way in: the whole card links to the report detail, so there is no separate+ * open button. Dismissing and resolving live in the report detail pane and the bulk selection bar,+ * where what is being judged is in full view. Other surfaces that embed this card can still opt+ * into a row-level Dismiss via `onDismiss`. Rows show no status or actionability chips: the state a+ * row is in (Needs decision, Not actionable, ...) already says what they said.*/function ReportCardRaw({report,- sectionKey = 'needs-decision',attached = false,onDismiss,onRestore,@@ -128,7 +117,6 @@ function ReportCardRaw({timestampField = 'updated_at',}: {report: SignalReport- sectionKey?: InboxReportSectionKeyattached?: boolean/** Dismiss from the row. The inbox list omits it; surfaces that embed this card can opt in. */onDismiss?: (dismissal: DismissalFeedback) => void@@ -145,8 +133,6 @@ function ReportCardRaw({/** The time the card shows. Match it to the active time sort, so the list reads in order. */timestampField?: 'created_at' | 'updated_at'}): JSX.Element {- // Keyed on status, not the section: the legacy Archive tab lists dismissed and resolved rows- // through one section key, and the two need different affordances.const isDismissed = report.status === SignalReportStatus.SUPPRESSED// Resolved reports are terminal (a merged PR or a resolve) – shown for reference in the Resolved// section. They can't be restored or dismissed; refunding their PR lives in the detail pane.@@ -163,17 +149,10 @@ function ReportCardRaw({const headline = deriveHeadline(report.summary)const cardTime = timestampField === 'created_at' ? report.created_at : (report.updated_at ?? report.created_at)const cardTimeTitle = timestampField === 'created_at' ? 'Created' : 'Last updated'- const redesign = useFeatureFlag('INBOX_REDESIGN')- const metricsEnabled = useFeatureFlag('SIGNALS_REPORT_METRICS')- // The impact column carries its own flag on top of the redesign: its figures come from live- // queries, so it rolls out per team as the metric quality is verified.- const showImpactColumn = redesign && metricsEnabled- // The legacy layout addresses a report through the tab that listed it, so its back control returns there.- const detailUrl = inboxReportDetailUrl(- report.id,- backUrl,- redesign ? 'reports' : INBOX_SECTION_LEGACY_TAB[sectionKey]- )+ // The impact column carries its own flag: its figures come from live queries, so it rolls out+ // per team as the metric quality is verified.+ const showImpactColumn = useFeatureFlag('SIGNALS_REPORT_METRICS')+ const detailUrl = inboxReportDetailUrl(report.id, backUrl)const { isSelected, isHolding, cardHandlers } = useReportCardSelection(report.id,@@ -198,7 +177,7 @@ function ReportCardRaw({const glyphStatus = prCiGlyphStatus(prState, ciStatus)const isRefunded = !!report.refund- const showsDismiss = !!onDismiss || !redesign+ const showsDismiss = !!onDismiss// Why the report left the inbox (reason tag + note tooltip) when we have it: the dismiss reason// on dismissed rows, and a resolve reason on rows resolved by hand. A report that was dismissed,@@ -277,17 +256,6 @@ function ReportCardRaw({>{hasPr && repoSlug ? <span className="truncate font-mono">{repoSlug}</span> : null}<InboxCardSourceMeta sourceProducts={report.source_products} scoutSkillName={report.scout_name} />- {!hasPr &&- !redesign &&- !isStatusRedundantWithActionability(report.status, report.actionability) && (- <SignalReportStatusBadge- status={report.status}- suppressionSource={report.suppression_source}- />- )}- {!hasPr && !redesign && report.actionability && (- <SignalReportActionabilityBadge actionability={report.actionability} />- )}{outcomeLabel && (<Tooltip title={outcomeTooltip}><LemonTag@@ -375,7 +343,7 @@ function ReportCardRaw({pane, where the consequences are in view. Resolved reports are terminal and a refundeddismissed report can't be restored, so neither carries actions – skip the column (anddivider) for both. */}- {!isResolved && !(isDismissed && isRefunded) && (isDismissed || showsDismiss || !redesign) && (+ {!isResolved && !(isDismissed && isRefunded) && (isDismissed || showsDismiss) && (<div className="flex items-center justify-end gap-2.5 shrink-0 @lg:self-stretch @lg:border-l @lg:border-primary @lg:pl-3">{isDismissed ? (// A refunded report can't be restored (its PR can never be billed again).@@ -396,41 +364,18 @@ function ReportCardRaw({</LemonButton>)) : (- <>- {showsDismiss && (- <LemonButton- type="secondary"- size="small"- icon={<IconHide />}- tooltip="Dismiss this report"- aria-label="Dismiss this report"- loading={isDismissing}- onClick={preview ? undefined : onDismissClick}- tabIndex={preview ? -1 : undefined}- >- Dismiss- </LemonButton>- )}- {!redesign && (- <LemonButton- type="primary"- size="small"- tooltip="Open the full report to see its summary, evidence, and actions"- onClick={- preview- ? undefined- : (event) => {- event.preventDefault()- event.stopPropagation()- router.actions.push(detailUrl)- }- }- tabIndex={preview ? -1 : undefined}- >- Review- </LemonButton>- )}- </>+ <LemonButton+ type="secondary"+ size="small"+ icon={<IconHide />}+ tooltip="Dismiss this report"+ aria-label="Dismiss this report"+ loading={isDismissing}+ onClick={preview ? undefined : onDismissClick}+ tabIndex={preview ? -1 : undefined}+ >+ Dismiss+ </LemonButton>)}</div>)}diff --git a/products/signals/frontend/inbox/components/cards/ReportContextMenu.tsx b/products/signals/frontend/inbox/components/cards/ReportContextMenu.tsxindex d774c5d79ef4..cdc13b5bc3b9 100644--- a/products/signals/frontend/inbox/components/cards/ReportContextMenu.tsx+++ b/products/signals/frontend/inbox/components/cards/ReportContextMenu.tsx@@ -209,7 +209,7 @@ function ReportContextMenuItems({resolveWith(reason, '')}- // The menu only mounts in the redesign flat list, whose rows link to the reports tab with no+ // The menu only mounts in the flat Reports list, whose rows link to the reports tab with no// back param, so the default detail URL is exactly the row's own href.const detailUrl = inboxReportDetailUrl(report.id)diff --git a/products/signals/frontend/inbox/components/config/AgentsRoster.tsx b/products/signals/frontend/inbox/components/config/AgentsRoster.tsxindex 48fd82fa6735..49525bba511a 100644--- a/products/signals/frontend/inbox/components/config/AgentsRoster.tsx+++ b/products/signals/frontend/inbox/components/config/AgentsRoster.tsx@@ -12,10 +12,8 @@ import {LemonTag,Link,Spinner,- Tooltip,} from '@posthog/lemon-ui'-import { useFeatureFlag } from 'lib/hooks/useFeatureFlag'import { LemonTagType } from 'lib/lemon-ui/LemonTag/LemonTag'import type { CISignalsSyncStatusEnumApi } from 'products/engineering_analytics/frontend/generated/api.schemas'@@ -145,43 +143,6 @@ function AgentIcon({ source }: { source: AgentRosterDefinition }): JSX.Element |return <Icon className={`shrink-0 text-base ${meta.colorClass}`} />}-/** The legacy roster's per-row health dot; the redesign relies on the tag alone. */-function StatusDot({- status,- product,- productOff,-}: {- status: AgentRosterStatus- product?: SourceProductStatus- productOff: boolean-}): JSX.Element {- let className = 'bg-border-bold'- let title = 'Standby'- if (productOff) {- title = `${product?.productName} is off, so this source has nothing to read`- } else if (status === 'sync_failed') {- className = 'bg-danger'- title = 'Sync failed'- } else if (status === 'syncing') {- className = 'bg-accent'- title = 'Syncing'- } else if (status === 'watching') {- // A hollow dot means watching but nothing has arrived, so the two read apart at a glance.- className = product?.dataStatus === 'none' ? 'border border-success' : 'bg-success'- title =- product?.dataStatus === 'none'- ? 'Watching, no data in the last 30 days'- : product?.dataStatus === 'recent'- ? 'Watching, receiving data'- : 'Watching'- }- return (- <Tooltip title={title}>- <span className={`size-2 shrink-0 rounded-full ${className}`} />- </Tooltip>- )-}-/** Only the states worth interrupting a scan for. Everything healthy shows no tag at all. */function notableTag(status: AgentRosterStatus,@@ -526,7 +487,6 @@ const AgentRow = memo(function AgentRow({onSteer,onRetryData,}: AgentRowProps): JSX.Element {- const redesign = useFeatureFlag('INBOX_REDESIGN')const { armed, loading, requiresSetup, syncStatus, entities } = stateconst status = resolveAgentStatus(armed, syncStatus)const productOff = product?.enabled === false@@ -549,7 +509,6 @@ const AgentRow = memo(function AgentRow({expanded ? 'bg-surface-secondary' : 'hover:bg-surface-secondary'} ${agent.legacy ? 'opacity-60 hover:opacity-100' : ''}`}>- {!redesign && <StatusDot status={status} product={product} productOff={productOff} />}<buttontype="button"className="flex min-w-0 flex-1 items-center gap-2 border-0 bg-transparent p-0 text-left"@@ -651,32 +610,16 @@ const AgentRow = memo(function AgentRow({})/**- * Heading for one group of sources. Under the redesign it is set in the same type as the row titles- * so it reads as a section of the Settings card; the legacy rail keeps a muted eyebrow over a- * bordered list.+ * Heading for one group of sources, set in the same type as the row titles so it reads as a section+ * of the Settings card.*/-function AgentRosterGroupHeader({ group, redesign }: { group: AgentRosterGroup; redesign: boolean }): JSX.Element {- if (!redesign) {- return <span className="text-xs font-medium text-muted">{group.label}</span>- }+function AgentRosterGroupHeader({ group }: { group: AgentRosterGroup }): JSX.Element {return <h4 className="m-0 text-sm font-semibold text-default">{group.label}</h4>}-function agentGroupClassName(redesign: boolean): string {- return redesign ? 'flex flex-col gap-2 pt-2' : 'flex flex-col gap-1'-}--function agentListClassName(redesign: boolean): string {- return redesign- ? '-mx-2 divide-y divide-primary'- : 'divide-y divide-primary overflow-hidden rounded border border-primary'-}-export function AgentsRoster(): JSX.Element {- const redesign = useFeatureFlag('INBOX_REDESIGN')const {externalSourceStates,- rosterGroups,filteredRosterGroups,sourceSearchQuery,sourceCategory,@@ -1007,9 +950,6 @@ export function AgentsRoster(): JSX.Element {])- const allAgents = rosterGroups.flatMap((group) => group.agents)- const armedCount = allAgents.filter((agent) => stateFor(agent.source).armed).length-return (<div className="flex flex-col gap-3">{sourcesLoadError && (@@ -1038,18 +978,9 @@ export function AgentsRoster(): JSX.Element {</LemonBanner>)}- {!redesign && (- <div className="flex items-center gap-1.5 text-xs text-muted">- <span className={`size-2 rounded-full ${armedCount ? 'bg-success' : 'bg-border-bold'}`} />- <span>- {armedCount} of {allAgents.length} sources on- </span>- </div>- )}-{filteredRosterGroups.map((group) => (- <div key={group.label} className={agentGroupClassName(redesign)}>- <AgentRosterGroupHeader group={group} redesign={redesign} />+ <div key={group.label} className="flex flex-col gap-2 pt-2">+ <AgentRosterGroupHeader group={group} />{group.id === 'external' && (<div className="flex flex-wrap items-center gap-2 py-2"><LemonInput@@ -1075,7 +1006,7 @@ export function AgentsRoster(): JSX.Element {No sources match your search. Try another name or category.</LemonBanner>)}- <div className={agentListClassName(redesign)}>+ <div className="-mx-2 divide-y divide-primary">{group.id === 'external' ? (<VirtualizedSourceList sources={group.agents} renderSource={renderAgent} />) : (@@ -1122,14 +1053,13 @@ function AgentRowSkeleton(): JSX.Element {}export function AgentsRosterSkeleton(): JSX.Element {- const redesign = useFeatureFlag('INBOX_REDESIGN')return (<div className="flex flex-col gap-3"><LemonSkeleton className="h-3 w-48" />{AGENT_ROSTER_GROUPS.map((group) => (- <div key={group.label} className={agentGroupClassName(redesign)}>- <AgentRosterGroupHeader group={group} redesign={redesign} />- <div className={agentListClassName(redesign)}>+ <div key={group.label} className="flex flex-col gap-2 pt-2">+ <AgentRosterGroupHeader group={group} />+ <div className="-mx-2 divide-y divide-primary">{group.agents.map((agent) => (<AgentRowSkeleton key={agent.source} />))}diff --git a/products/signals/frontend/inbox/components/config/AutonomySettingRow.tsx b/products/signals/frontend/inbox/components/config/AutonomySettingRow.tsxindex a8ba3fb92953..96a767483e8d 100644--- a/products/signals/frontend/inbox/components/config/AutonomySettingRow.tsx+++ b/products/signals/frontend/inbox/components/config/AutonomySettingRow.tsx@@ -19,7 +19,6 @@ export function AutonomySettingRow({}): JSX.Element {return (<div className="flex flex-col gap-3 py-3">- {/* basis-48 leaves room for a switch beside the text in the 320px legacy rail. */}<div className="flex flex-wrap items-start justify-between gap-x-4 gap-y-2"><div className="flex min-w-0 flex-1 basis-48 flex-col gap-0.5"><span className="text-sm font-medium text-default">{title}</span>diff --git a/products/signals/frontend/inbox/components/config/SelfDrivingSection.stories.tsx b/products/signals/frontend/inbox/components/config/SelfDrivingSection.stories.tsxindex 83cd0e252171..b43a1887857a 100644--- a/products/signals/frontend/inbox/components/config/SelfDrivingSection.stories.tsx+++ b/products/signals/frontend/inbox/components/config/SelfDrivingSection.stories.tsx@@ -1,7 +1,5 @@import type { Meta, StoryObj } from '@storybook/react'-import { FEATURE_FLAGS } from 'lib/constants'-import { useStorybookMocks } from '~/mocks/browser'import { SettingsSection } from '../tabs/SettingsSection'@@ -124,23 +122,18 @@ export default metatype Story = StoryObj-const REDESIGN = { featureFlags: [FEATURE_FLAGS.INBOX_REDESIGN] }-// The Settings tab at full width: controls sit right of their labels.export const SettingsTab: Story = {- parameters: REDESIGN,render: () => <SettingsCard width="wide" dailyLimit={10} reportsToday={3} />,}// The Settings tab in a narrow scene: wide controls wrap below their labels, nothing clips.export const SettingsTabNarrow: Story = {- parameters: REDESIGN,render: () => <SettingsCard width="narrow" dailyLimit={10} reportsToday={3} />,}// A repository that branches from `develop`: the override list and the Add override button render under Base branches.export const SettingsTabBaseBranches: Story = {- parameters: REDESIGN,render: () => (<SettingsCardwidth="wide"@@ -152,13 +145,11 @@ export const SettingsTabBaseBranches: Story = {// GitHub disconnected after an override was saved: the override stays readable and removable, the picker hides.export const SettingsTabBaseBranchesWithoutGitHub: Story = {- parameters: REDESIGN,render: () => <SettingsCard width="wide" baseBranches={{ 'posthog/posthog.com': 'develop' }} />,}// A Jira tracker with a saved project: the target reads as text with a Change button, and no picker mounts.export const SettingsTabIssueTrackerJira: Story = {- parameters: REDESIGN,render: () => (<SettingsCardwidth="wide"@@ -173,13 +164,11 @@ export const SettingsTabIssueTrackerJira: Story = {// The PR label turned on with a name of the team's own: the name input renders under the row.export const SettingsTabPullRequestLabel: Story = {- parameters: REDESIGN,render: () => <SettingsCard width="wide" prLabelEnabled prLabel="agent-pr" />,}// Master switch off in the Settings tab: the project threshold hides. Base branches and your own threshold stay.export const SettingsTabDisabled: Story = {- parameters: REDESIGN,render: () => <SettingsCard width="wide" enabled={false} />,}diff --git a/products/signals/frontend/inbox/components/config/SelfDrivingSection.tsx b/products/signals/frontend/inbox/components/config/SelfDrivingSection.tsxindex 1141e901ca97..d1dd3f7f61a7 100644--- a/products/signals/frontend/inbox/components/config/SelfDrivingSection.tsx+++ b/products/signals/frontend/inbox/components/config/SelfDrivingSection.tsx@@ -11,7 +11,6 @@ import {Link,} from '@posthog/lemon-ui'-import { useFeatureFlag } from 'lib/hooks/useFeatureFlag'import { GitHubBranchCombobox } from 'lib/integrations/GitHubBranchCombobox'import { GitHubRepositoryCombobox } from 'lib/integrations/GitHubRepositoryCombobox'import { integrationsLogic } from 'lib/integrations/integrationsLogic'@@ -784,8 +783,6 @@ function PullRequestGenerationRow(): JSX.Element {* applies to, and every row shares one shape (`AutonomySettingRow`).*/export function SelfDrivingSection(): JSX.Element {- // The Settings tab wraps this in its own card; the legacy setup rail does not.- const redesign = useFeatureFlag('INBOX_REDESIGN')const { teamConfig, teamConfigLoading } = useValues(signalTeamConfigLogic)if (teamConfigLoading && teamConfig === null) {@@ -793,13 +790,7 @@ export function SelfDrivingSection(): JSX.Element {}return (- <div- className={- redesign- ? 'flex flex-col divide-y divide-primary'- : 'flex flex-col divide-y divide-primary rounded border border-primary bg-surface-primary px-3 py-3'- }- >+ <div className="flex flex-col divide-y divide-primary"><AutonomySettingGroup title="Pull requests" description="Applies to everyone in this project."><PullRequestGenerationRow /><BaseBranchesRow />diff --git a/products/signals/frontend/inbox/components/config/SignalSourcesPanel.stories.tsx b/products/signals/frontend/inbox/components/config/SignalSourcesPanel.stories.tsxindex 4faa9e451cdd..f26f3cfe8299 100644--- a/products/signals/frontend/inbox/components/config/SignalSourcesPanel.stories.tsx+++ b/products/signals/frontend/inbox/components/config/SignalSourcesPanel.stories.tsx@@ -6,7 +6,6 @@ import userEvent from '@testing-library/user-event'import { useActions } from 'kea'import { useEffect } from 'react'-import { FEATURE_FLAGS } from 'lib/constants'import { teamLogic } from 'scenes/teamLogic'import { useStorybookMocks } from '~/mocks/browser'@@ -427,7 +426,6 @@ export const SourceConfigsUnavailable: Story = {/** Replay vision opened: user-created scanners as sub-rows, capped at eight, with a filter. */export const ReplayVisionExpanded: Story = {- parameters: { featureFlags: [FEATURE_FLAGS.INBOX_REDESIGN] },play: async ({ canvasElement }) => {const [expandButton] = await within(canvasElement).findAllByLabelText('Expand Replay vision')await userEvent.click(expandButton)@@ -436,7 +434,6 @@ export const ReplayVisionExpanded: Story = {/** Error tracking opened: a fixed list of signal types, so no filter, no cap, and no New button. */export const ErrorTrackingExpanded: Story = {- parameters: { featureFlags: [FEATURE_FLAGS.INBOX_REDESIGN] },play: async ({ canvasElement }) => {const [expandButton] = await within(canvasElement).findAllByLabelText('Expand Error tracking')await userEvent.click(expandButton)diff --git a/products/signals/frontend/inbox/components/config/SlackNotificationsSection.tsx b/products/signals/frontend/inbox/components/config/SlackNotificationsSection.tsxindex 3d26437da6e9..9a7781700b9b 100644--- a/products/signals/frontend/inbox/components/config/SlackNotificationsSection.tsx+++ b/products/signals/frontend/inbox/components/config/SlackNotificationsSection.tsx@@ -13,7 +13,6 @@ import {} from '@posthog/lemon-ui'import api from 'lib/api'-import { useFeatureFlag } from 'lib/hooks/useFeatureFlag'import { useIntegrationManagementRestriction } from 'lib/integrations/integrationPermissions'import { getGrantedScopes } from 'lib/integrations/integrationScopes'import { integrationsLogic } from 'lib/integrations/integrationsLogic'@@ -51,24 +50,15 @@ function SlackCardHeader({ title, description }: { title: string; description: R)}-/** Shown when there's no Slack workspace connected – links out to integration settings. */-/** The Settings tab separates these cards with rules inside its own card; the legacy rail frames each one. */-function slackCardClassName(redesign: boolean): string {- return redesign- ? 'flex flex-col gap-3 border-b border-primary py-2.5 first:pt-0 last:border-b-0 last:pb-0'- : 'flex flex-col gap-3 rounded border bg-bg-light px-3 py-2.5'-}+/** The Settings tab separates these cards with rules inside its own card. */+const SLACK_CARD_CLASS_NAME = 'flex flex-col gap-3 border-b border-primary py-2.5 first:pt-0 last:border-b-0 last:pb-0'+/** Shown when there's no Slack workspace connected – links out to integration settings. */function ConnectSlackPrompt(): JSX.Element {- const redesign = useFeatureFlag('INBOX_REDESIGN')return (<Linkto={urls.settings('environment-integrations', 'integration-slack')}- className={- redesign- ? 'group -mx-2 flex items-center justify-between gap-3 rounded px-2 py-2.5 no-underline transition-colors hover:bg-surface-secondary'- : 'group flex items-center justify-between gap-3 rounded border bg-bg-light px-3 py-2.5 no-underline transition-colors hover:border-primary-3000 hover:bg-bg-3000'- }+ className="group -mx-2 flex items-center justify-between gap-3 rounded px-2 py-2.5 no-underline transition-colors hover:bg-surface-secondary"><SlackCardHeadertitle="Connect a Slack workspace"@@ -87,7 +77,6 @@ function ConnectSlackPrompt(): JSX.Element {* here too.*/function TeamChannelCard({ integration }: { integration: IntegrationType }): JSX.Element {- const redesign = useFeatureFlag('INBOX_REDESIGN')const { teamConfig, teamConfigLoading } = useValues(signalTeamConfigLogic)const { patchTeamConfig } = useActions(signalTeamConfigLogic)// Local view state: the toggle is on but no channel has been picked yet. A saved@@ -105,7 +94,7 @@ function TeamChannelCard({ integration }: { integration: IntegrationType }): JSX}return (- <div className={slackCardClassName(redesign)}>+ <div className={SLACK_CARD_CLASS_NAME}><div className="flex items-start justify-between gap-4"><SlackCardHeadertitle="Notify the whole team"@@ -256,7 +245,6 @@ function ChannelTarget({* Backed by the `slack_notification_*` fields on `userAutonomyLogic`.*/function PerUserNotificationCard({ integrations }: { integrations: IntegrationType[] }): JSX.Element {- const redesign = useFeatureFlag('INBOX_REDESIGN')const { autonomyConfig, autonomyConfigLoading, slackNotificationsSaving, slackPickersExpanded } =useValues(userAutonomyLogic)const { updateSlackNotifications, setSlackPickersExpanded } = useActions(userAutonomyLogic)@@ -333,7 +321,7 @@ function PerUserNotificationCard({ integrations }: { integrations: IntegrationTyconst showPickers = slackPickersExpanded || selectedIntegrationId !== null || !!channelreturn (- <div className={slackCardClassName(redesign)}>+ <div className={SLACK_CARD_CLASS_NAME}><div className="flex items-start justify-between gap-4"><SlackCardHeadertitle="Notify me directly"diff --git a/products/signals/frontend/inbox/components/config/scouts/ScoutCostCell.test.ts b/products/signals/frontend/inbox/components/config/scouts/ScoutCostCell.test.tsdeleted file mode 100644index 6ab89f355d5c..000000000000--- a/products/signals/frontend/inbox/components/config/scouts/ScoutCostCell.test.ts+++ /dev/null@@ -1,40 +0,0 @@-import { getNextSorting } from 'lib/lemon-ui/LemonTable/sorting'--import type { SignalScoutConfigApi as SignalScoutConfig } from 'products/signals/frontend/generated/api.schemas'--import { computeScoutCostRollups } from '../../../utils/scoutCosts'-import { ScoutRosterRow } from '../../../utils/scoutGroups'-import { scoutCostColumns } from './ScoutCostCell'--function row(skillName: string): ScoutRosterRow {- return { config: { skill_name: skillName } as SignalScoutConfig, group: 'working' }-}--describe('scoutCostColumns', () => {- // `unpriced` had runs but nothing attributed, so it gets no rollup and none of the three rates.- const rollups = computeScoutCostRollups({- window_days: 7,- available: true,- scouts: [- { skill_name: 'cheap', spend_usd: 0.7, run_count: 7, priced_run_count: 7, reports_touched: 7 },- { skill_name: 'unpriced', spend_usd: 0, run_count: 3, priced_run_count: 0, reports_touched: 0 },- { skill_name: 'pricey', spend_usd: 7, run_count: 7, priced_run_count: 7, reports_touched: 7 },- ],- })- const rows = [row('cheap'), row('unpriced'), row('pricey')]-- it.each(['cost-per-day', 'cost-per-run', 'cost-per-report'])(- 'sorts the biggest spender first and the scout with no number last on a first click of %s',- (key) => {- const column = scoutCostColumns(rollups, 7).find((candidate) => candidate.key === key)!- // The order the table itself lands on for an unsorted column, so a change to either- // the column's default or the table's fails here.- const { order } = getNextSorting(null, key, false, column.defaultSortOrder)!- const sorter = column.sorter as (a: ScoutRosterRow, b: ScoutRosterRow) => number-- const sorted = rows.slice().sort((a, b) => order * sorter(a, b))-- expect(sorted.map((sortedRow) => sortedRow.config.skill_name)).toEqual(['pricey', 'cheap', 'unpriced'])- }- )-})diff --git a/products/signals/frontend/inbox/components/config/scouts/ScoutCostCell.tsx b/products/signals/frontend/inbox/components/config/scouts/ScoutCostCell.tsxdeleted file mode 100644index be65141e445c..000000000000--- a/products/signals/frontend/inbox/components/config/scouts/ScoutCostCell.tsx+++ /dev/null@@ -1,76 +0,0 @@-import { Tooltip } from '@posthog/lemon-ui'--import { LemonTableColumn } from 'lib/lemon-ui/LemonTable'--import { ScoutCostRollup, scoutCostWindowLabel } from '../../../utils/scoutCosts'-import { ScoutRosterRow } from '../../../utils/scoutGroups'-import { formatRunCost } from '../../../utils/scoutRunsWindow'--type CostRate = { unit: 'day' | 'run' | 'report'; of: (rollup: ScoutCostRollup) => number | null; tooltip: string }--const COST_RATES: CostRate[] = [- { unit: 'day', of: (rollup) => rollup.perDay, tooltip: 'Spend over the window, divided by its days.' },- { unit: 'run', of: (rollup) => rollup.perRun, tooltip: 'Spend over the runs that had spend attributed.' },- {- unit: 'report',- of: (rollup) => rollup.perReport,- tooltip: 'Spend over the reports the scout filed or added to. Blank when it produced none.',- },-]--function ScoutCostCell({ value }: { value: number | null }): JSX.Element {- if (value === null) {- // The scout spent, but produced no report to price. A dash says that without claiming $0.00.- return <span className="text-xs text-muted">–</span>- }- // The header carries the unit, so the cell is the money alone.- return <span className="text-xs text-secondary tabular-nums">{formatRunCost(value)}</span>-}--/**- * The three cost columns for the roster table, staff only. Sorting by `$/day` answers which scouts- * the spend is in, and by `$/report` which are expensive for what they produce. A scout with no- * priced run in the window has no rollup, so its cells stay blank.- */-export function scoutCostColumns(- rollups: Map<string, ScoutCostRollup>,- windowDays: number-): LemonTableColumn<ScoutRosterRow, keyof ScoutRosterRow | undefined>[] {- return COST_RATES.map(({ unit, of, tooltip }) => ({- title: (- <Tooltip title={`${tooltip} Over the ${scoutCostWindowLabel(windowDays)}.`}>- <span>{`$/${unit}`}</span>- </Tooltip>- ),- key: `cost-per-${unit}`,- width: '7%',- align: 'right' as const,- // Descending first, so one click answers the question the column exists for: the biggest- // spenders on top, the scouts with no number out of the way at the bottom. Ascending would- // open with a block of blank cells.- defaultSortOrder: -1 as const,- sorter: (a: ScoutRosterRow, b: ScoutRosterRow) => {- const left = sortValue(rollups, a, of)- const right = sortValue(rollups, b, of)- // Two rows without a number are equal, and subtracting one infinity from the other- // would hand the table a NaN.- return left === right ? 0 : left - right- },- render: (_: any, row: ScoutRosterRow) => {- const rollup = rollups.get(row.config.skill_name)- return rollup ? <ScoutCostCell value={of(rollup)} /> : <span />- },- }))-}--// A scout without a number sorts below every scout that has one in the descending direction, which-// is the direction a first click takes. Sorting ascending asks for the cheapest first, and lifts-// the unpriced scouts with it.-function sortValue(- rollups: Map<string, ScoutCostRollup>,- row: ScoutRosterRow,- of: (rollup: ScoutCostRollup) => number | null-): number {- const rollup = rollups.get(row.config.skill_name)- return (rollup ? of(rollup) : null) ?? Number.NEGATIVE_INFINITY-}diff --git a/products/signals/frontend/inbox/components/config/scouts/ScoutCreateButton.tsx b/products/signals/frontend/inbox/components/config/scouts/ScoutCreateButton.tsxdeleted file mode 100644index e7a35f513691..000000000000--- a/products/signals/frontend/inbox/components/config/scouts/ScoutCreateButton.tsx+++ /dev/null@@ -1,54 +0,0 @@-import React, { useState } from 'react'--import { IconPlus } from '@posthog/icons'-import { LemonButton, type LemonButtonProps } from '@posthog/lemon-ui'--import type { SignalScoutCreateResponseApi } from 'products/signals/frontend/generated/api.schemas'--import type { ScoutCreateInitialValues } from '../../../logics/scoutCreateModalLogic'-import { ScoutCreateModalHost, useScoutCreateDisabledReason } from './ScoutCreateModalHost'--export interface ScoutCreateButtonProps {- children?: React.ReactNode- className?: string- initialValues?: ScoutCreateInitialValues- onCreated?: (scout: SignalScoutCreateResponseApi) => void- size?: LemonButtonProps['size']- type?: LemonButtonProps['type']- 'data-attr'?: string-}--/** Opens the scout form. Paired with `ScoutSuggestButton`, which drafts one with AI instead. */-export function ScoutCreateButton({- initialValues,- onCreated,- children = 'Create scout',- className,- size = 'small',- type = 'primary',- 'data-attr': dataAttr,-}: ScoutCreateButtonProps): JSX.Element {- const [isModalOpen, setIsModalOpen] = useState(false)- const creationDisabledReason = useScoutCreateDisabledReason()-- return (- <>- <LemonButton- type={type}- size={size}- icon={<IconPlus />}- disabledReason={creationDisabledReason ?? undefined}- onClick={() => setIsModalOpen(true)}- className={className}- data-attr={dataAttr}- >- {children}- </LemonButton>- <ScoutCreateModalHost- initialValues={isModalOpen ? (initialValues ?? {}) : null}- onClose={() => setIsModalOpen(false)}- onCreated={onCreated}- />- </>- )-}diff --git a/products/signals/frontend/inbox/components/config/scouts/ScoutDetailView.stories.tsx b/products/signals/frontend/inbox/components/config/scouts/ScoutDetailView.stories.tsxindex de319413dd00..90641a59d3f1 100644--- a/products/signals/frontend/inbox/components/config/scouts/ScoutDetailView.stories.tsx+++ b/products/signals/frontend/inbox/components/config/scouts/ScoutDetailView.stories.tsx@@ -31,7 +31,7 @@ const meta: Meta<typeof ScoutDetailView> = {layout: 'fullscreen',viewMode: 'story',mockDate: '2026-06-11',- featureFlags: { [FEATURE_FLAGS.PRODUCT_AUTONOMY]: true, [FEATURE_FLAGS.INBOX_REDESIGN]: true },+ featureFlags: { [FEATURE_FLAGS.PRODUCT_AUTONOMY]: true },testOptions: { waitForLoadersToDisappear: false },},decorators: [@@ -109,7 +109,7 @@ const trialsDecorators: Decorator[] = [export const ScoutPageTrials: Story = {parameters: {- featureFlags: [FEATURE_FLAGS.PRODUCT_AUTONOMY, FEATURE_FLAGS.INBOX_REDESIGN, FEATURE_FLAGS.SCOUT_TRIALS],+ featureFlags: [FEATURE_FLAGS.PRODUCT_AUTONOMY, FEATURE_FLAGS.SCOUT_TRIALS],},args: { skillName: trialFixtureConfig.skill_name },decorators: [@@ -124,7 +124,7 @@ export const ScoutPageTrials: Story = {export const ScoutPageTrialsNarrow: Story = {parameters: {- featureFlags: [FEATURE_FLAGS.PRODUCT_AUTONOMY, FEATURE_FLAGS.INBOX_REDESIGN, FEATURE_FLAGS.SCOUT_TRIALS],+ featureFlags: [FEATURE_FLAGS.PRODUCT_AUTONOMY, FEATURE_FLAGS.SCOUT_TRIALS],},args: { skillName: trialFixtureConfig.skill_name },decorators: [diff --git a/products/signals/frontend/inbox/components/config/scouts/ScoutNameCell.tsx b/products/signals/frontend/inbox/components/config/scouts/ScoutNameCell.tsxdeleted file mode 100644index 53e46c53d738..000000000000--- a/products/signals/frontend/inbox/components/config/scouts/ScoutNameCell.tsx+++ /dev/null@@ -1,50 +0,0 @@-import { Link } from '@posthog/lemon-ui'--import { cn } from 'lib/utils/css-classes'-import { urls } from 'scenes/urls'--import type { SignalScoutConfigApi as SignalScoutConfig } from 'products/signals/frontend/generated/api.schemas'--import { ScoutGroupKey, scoutSubtitle } from '../../../utils/scoutGroups'-import { scoutDisplayName, ScoutRollup } from '../../../utils/scoutRunsWindow'-import { ScoutExemptionBadge } from './ScoutBadges'-import { ScoutToolsTag } from './ScoutToolsTag'-import { ScoutWriteAccessTag } from './ScoutWriteAccessTag'--const SUBTITLE_TONE_CLASS = {- danger: 'text-danger',- warning: 'text-warning',- muted: 'text-muted',-} as const--export function ScoutNameCell({- config,- group,- rollup,- compact = false,-}: {- config: SignalScoutConfig- group: ScoutGroupKey- rollup: ScoutRollup | undefined- /** The table's compact layout, where the name column is too narrow for the tag's labels. */- compact?: boolean-}): JSX.Element {- const subtitle = scoutSubtitle(config, rollup, new Date())- return (- <div className="flex flex-col gap-0.5 py-0.5">- <div className="flex items-center gap-2">- <Link to={urls.inboxScout(config.skill_name)} subtle className="truncate text-sm font-medium">- {scoutDisplayName(config)}- </Link>- <ScoutWriteAccessTag writeScopes={config.write_scopes} emit={config.emit} compact={compact} />- <ScoutToolsTag allowedTools={config.allowed_mcp_tools} compact={compact} />- <ScoutExemptionBadge config={config} group={group} />- </div>- {subtitle && (- <span className={cn('line-clamp-1 text-[11.5px]', SUBTITLE_TONE_CLASS[subtitle.tone])}>- {subtitle.text}- </span>- )}- </div>- )-}diff --git a/products/signals/frontend/inbox/components/config/scouts/ScoutCreateButton.test.tsx b/products/signals/frontend/inbox/components/config/scouts/ScoutNewButton.test.tsxsimilarity index 83%rename from products/signals/frontend/inbox/components/config/scouts/ScoutCreateButton.test.tsxrename to products/signals/frontend/inbox/components/config/scouts/ScoutNewButton.test.tsxindex a90e10008bde..b8b62de62312 100644--- a/products/signals/frontend/inbox/components/config/scouts/ScoutCreateButton.test.tsx+++ b/products/signals/frontend/inbox/components/config/scouts/ScoutNewButton.test.tsx@@ -8,10 +8,8 @@ import { initKeaTests } from '~/test/init'import { mockScoutSuggestionSet } from '../../../__mocks__/scoutConfigs'import { scoutSuggestionsLogic } from '../../../logics/scoutSuggestionsLogic'import { SCOUT_CHAT_TEMPLATES } from './ScoutChatModal'-import { ScoutCreateButton } from './ScoutCreateButton'import { ScoutNewButton } from './ScoutNewButton'import { ScoutsRosterActions } from './ScoutsRosterActions'-import { ScoutSuggestButton } from './ScoutSuggestButton'jest.mock('lib/utils/accessControlUtils', () => ({...jest.requireActual('lib/utils/accessControlUtils'),@@ -80,27 +78,6 @@ describe('scout creation buttons', () => {afterEach(cleanup)- it('opens a prefilled form without starting a task', async () => {- const { findByText, getByText } = render(- <ScoutCreateButton initialValues={{ name: 'signals-scout-daily-digest' }} />- )-- fireEvent.click(getByText('Create scout'))-- expect(await findByText('Manual scout form')).toBeTruthy()- expect(await findByText('signals-scout-daily-digest')).toBeTruthy()- expect(startedChatTypes).toEqual([])- })-- it('starts the authoring task from the suggest button', async () => {- const { getByText, queryByText } = render(<ScoutSuggestButton />)-- fireEvent.click(getByText('Suggest a scout'))-- await waitFor(() => expect(startedChatTypes).toEqual(['author_scout']))- expect(queryByText('Manual scout form')).toBeNull()- })-// Closing the strip must not strand the picks: the header button reopens it in place of a chat.it('reopens the closed strip from the header without starting a task', async () => {const logic = scoutSuggestionsLogic()@@ -222,18 +199,17 @@ describe('scout creation buttons', () => {expect(startedChatTypes).toEqual([])})- it.each([- ['ScoutCreateButton', <ScoutCreateButton key="create" />, 'Create scout'],- ['ScoutSuggestButton', <ScoutSuggestButton key="suggest" />, 'Suggest a scout'],- ['ScoutNewButton', <ScoutNewButton key="new" surface="fleet_list" />, 'New scout'],- ])('disables %s without skill editor access', (_name, element, label) => {- mockGetAccessControlDisabledReason.mockReturnValue('Requires editor access')- const { getByText } = render(element)+ it.each([['ScoutNewButton', <ScoutNewButton key="new" surface="fleet_list" />, 'New scout']])(+ 'disables %s without skill editor access',+ (_name, element, label) => {+ mockGetAccessControlDisabledReason.mockReturnValue('Requires editor access')+ const { getByText } = render(element)- const button = getByText(label).closest<HTMLButtonElement>('button')+ const button = getByText(label).closest<HTMLButtonElement>('button')- expect(button?.getAttribute('aria-disabled')).toBe('true')- fireEvent.click(button!)- expect(startedChatTypes).toEqual([])- })+ expect(button?.getAttribute('aria-disabled')).toBe('true')+ fireEvent.click(button!)+ expect(startedChatTypes).toEqual([])+ }+ )})diff --git a/products/signals/frontend/inbox/components/config/scouts/ScoutOwnersCell.tsx b/products/signals/frontend/inbox/components/config/scouts/ScoutOwnersCell.tsxdeleted file mode 100644index d7598f1acb72..000000000000--- a/products/signals/frontend/inbox/components/config/scouts/ScoutOwnersCell.tsx+++ /dev/null@@ -1,24 +0,0 @@-import { ProfileBubbles } from 'lib/lemon-ui/ProfilePicture/ProfileBubbles'--import type { SignalScoutConfigApi as SignalScoutConfig } from 'products/signals/frontend/generated/api.schemas'--import { scoutOwnerBubbles, showsScoutOwnership } from '../../../utils/scoutOwners'--/**- * The roster's owner column: faces only, so a whole fleet can be scanned for unowned scouts in one- * pass. Names are on hover, and the scout page spells the ownership rule out in full.- */-export function ScoutOwnersCell({ config }: { config: SignalScoutConfig }): JSX.Element | null {- if (!showsScoutOwnership(config)) {- return null- }-- // Empty rather than undefined while an older API pod, mid-rollout, still omits the field.- const owners = config.owners ?? []- if (owners.length === 0) {- return <span className="text-xs text-muted">No owner</span>- }-- const people = scoutOwnerBubbles(owners)- return <ProfileBubbles limit={3} people={people} tooltip={people.map((person) => person.title).join(', ')} />-}diff --git a/products/signals/frontend/inbox/components/config/scouts/ScoutSuggestButton.tsx b/products/signals/frontend/inbox/components/config/scouts/ScoutSuggestButton.tsxdeleted file mode 100644index 59a18e24b14c..000000000000--- a/products/signals/frontend/inbox/components/config/scouts/ScoutSuggestButton.tsx+++ /dev/null@@ -1,55 +0,0 @@-import { useActions, useValues } from 'kea'--import { IconSparkles } from '@posthog/icons'-import { LemonButton, type LemonButtonProps } from '@posthog/lemon-ui'--import { getAccessControlDisabledReason } from 'lib/utils/accessControlUtils'--import { AccessControlLevel, AccessControlResourceType } from '~/types'--import { scoutFleetLogic } from '../../../logics/scoutFleetLogic'--export interface ScoutSuggestButtonProps {- children?: React.ReactNode- className?: string- size?: LemonButtonProps['size']- type?: LemonButtonProps['type']- 'data-attr'?: string-}--/** Navigates away to a running cloud task, unlike `ScoutCreateButton`, which opens a modal in place. */-export function ScoutSuggestButton({- children = 'Suggest a scout',- className,- size = 'small',- type = 'secondary',- 'data-attr': dataAttr,-}: ScoutSuggestButtonProps): JSX.Element {- const { startScoutChatTask } = useActions(scoutFleetLogic)- const { runningChatType, aiConsentDisabledReason } = useValues(scoutFleetLogic)- const isStarting = runningChatType === 'author_scout'- const anotherTaskIsStarting = runningChatType !== null && !isStarting- const creationDisabledReason = getAccessControlDisabledReason(- AccessControlResourceType.LlmSkill,- AccessControlLevel.Editor- )-- return (- <LemonButton- type={type}- size={size}- icon={<IconSparkles />}- loading={isStarting}- disabledReason={- anotherTaskIsStarting- ? 'Starting another task…'- : (creationDisabledReason ?? aiConsentDisabledReason ?? undefined)- }- onClick={() => startScoutChatTask('author_scout', 'scout authoring task')}- className={className}- data-attr={dataAttr}- >- {children}- </LemonButton>- )-}diff --git a/products/signals/frontend/inbox/components/config/scouts/ScoutSuggestionsStrip.stories.tsx b/products/signals/frontend/inbox/components/config/scouts/ScoutSuggestionsStrip.stories.tsxindex 68a2cd27fb50..8fedfe3f9eac 100644--- a/products/signals/frontend/inbox/components/config/scouts/ScoutSuggestionsStrip.stories.tsx+++ b/products/signals/frontend/inbox/components/config/scouts/ScoutSuggestionsStrip.stories.tsx@@ -56,7 +56,6 @@ const meta: Meta<typeof ScoutsRoster> = {mockDate: '2026-06-11',featureFlags: {[FEATURE_FLAGS.PRODUCT_AUTONOMY]: true,- [FEATURE_FLAGS.INBOX_REDESIGN]: true,},testOptions: { waitForLoadersToDisappear: false },},diff --git a/products/signals/frontend/inbox/components/config/scouts/ScoutsEmptyStateLegacy.tsx b/products/signals/frontend/inbox/components/config/scouts/ScoutsEmptyStateLegacy.tsxdeleted file mode 100644index e0db0a358245..000000000000--- a/products/signals/frontend/inbox/components/config/scouts/ScoutsEmptyStateLegacy.tsx+++ /dev/null@@ -1,30 +0,0 @@-import { useActions } from 'kea'--import { IconCompass } from '@posthog/icons'--import { scoutFleetLogic } from '../../../logics/scoutFleetLogic'-import { ScoutCreateButton } from './ScoutCreateButton'-import { ScoutHelperSkillLinks } from './ScoutHelperSkillLinks'-import { ScoutSuggestButton } from './ScoutSuggestButton'--/** The roster's empty state with the redesign flag off: a bordered card at the top of the tab. */-export function ScoutsEmptyStateLegacy(): JSX.Element {- const { loadScoutConfigs } = useActions(scoutFleetLogic)-- return (- <div className="m-6 flex flex-col items-start gap-2 rounded border border-primary bg-surface-primary px-5 py-5">- <div className="flex items-center gap-2">- <IconCompass className="size-[18px] text-accent" />- <span className="text-sm font-medium text-default">No scouts on this project yet</span>- </div>- <p className="mb-0 max-w-2xl text-xs leading-snug text-secondary">- Create a scout to investigate a recurring signal or behavior on a schedule.- </p>- <div className="flex flex-wrap items-center gap-2">- <ScoutCreateButton onCreated={() => loadScoutConfigs()} />- <ScoutSuggestButton />- </div>- <ScoutHelperSkillLinks />- </div>- )-}diff --git a/products/signals/frontend/inbox/components/config/scouts/ScoutsRoster.stories.tsx b/products/signals/frontend/inbox/components/config/scouts/ScoutsRoster.stories.tsxindex 1a8494a67cbb..58eb31e16c56 100644--- a/products/signals/frontend/inbox/components/config/scouts/ScoutsRoster.stories.tsx+++ b/products/signals/frontend/inbox/components/config/scouts/ScoutsRoster.stories.tsx@@ -8,7 +8,6 @@ import { mswDecorator } from '~/mocks/browser'import { mockLargeScoutFleet, mockScoutConfigs, mockScoutCosts, mockScoutRuns } from '../../../__mocks__/scoutConfigs'import { ScoutsRoster } from './ScoutsRoster'-import { ScoutsRosterLegacy } from './ScoutsRosterLegacy'// The roster: one column of scout cards under the search, filter, and sort toolbar. Use this to// check the card layout, the status dots, the run strips, and how a wide fleet reads.@@ -20,7 +19,7 @@ const meta: Meta<typeof ScoutsRoster> = {layout: 'fullscreen',viewMode: 'story',mockDate: '2026-06-11',- featureFlags: { [FEATURE_FLAGS.PRODUCT_AUTONOMY]: true, [FEATURE_FLAGS.INBOX_REDESIGN]: true },+ featureFlags: { [FEATURE_FLAGS.PRODUCT_AUTONOMY]: true },testOptions: { waitForLoadersToDisappear: false },},decorators: [@@ -62,45 +61,6 @@ export const LargeFleet: Story = {],}-// The table roster with the redesign flag off. Story parameters replace the meta's, so the-// meta-level flag is re-listed.-const LEGACY_FLAGS = { [FEATURE_FLAGS.PRODUCT_AUTONOMY]: true, [FEATURE_FLAGS.INBOX_REDESIGN]: false }--export const RosterLegacy: Story = {- parameters: { featureFlags: LEGACY_FLAGS },- decorators: [- mswDecorator({- get: {- '/api/projects/:id/signals/scout/configs/': () => [200, mockScoutConfigs],- '/api/projects/:id/signals/scout/runs/recent-per-scout/': () => [200, mockScoutRuns(mockScoutConfigs)],- },- }),- ],- render: () => <ScoutsRosterLegacy />,-}--// Phone width with the flag off. Owners, Cadence, and Next run drop out, and the table stops-// overflowing sideways, so the name, the status, the run strip, and the on/off toggle all stay on-// screen.-export const Narrow: Story = {- parameters: {- featureFlags: LEGACY_FLAGS,- testOptions: { viewport: { width: 375, height: 900 }, waitForLoadersToDisappear: false },- },- render: () => <ScoutsRosterLegacy />,- decorators: [- mswDecorator({- get: {- '/api/projects/:id/signals/scout/configs/': () => [200, mockLargeScoutFleet],- '/api/projects/:id/signals/scout/runs/recent-per-scout/': () => [- 200,- mockScoutRuns(mockLargeScoutFleet),- ],- },- }),- ],-}-// Cost, staff only. The fleet mixes the three cases: a scout that spent and filed reports, one that// spent and filed nothing, and one whose runs had no spend attributed and so shows no numbers.const COST_MOCKS = mswDecorator({@@ -124,10 +84,3 @@ export const RosterCostsNonStaff: Story = {}),],}--// The table roster with the cost columns: `$/day`, `$/run`, and `$/report` before the run strip.-export const RosterCostsTable: Story = {- parameters: { featureFlags: LEGACY_FLAGS },- render: () => <ScoutsRosterLegacy />,- decorators: [COST_MOCKS],-}diff --git a/products/signals/frontend/inbox/components/config/scouts/ScoutsRosterFiltersLegacy.tsx b/products/signals/frontend/inbox/components/config/scouts/ScoutsRosterFiltersLegacy.tsxdeleted file mode 100644index 961f97c6137a..000000000000--- a/products/signals/frontend/inbox/components/config/scouts/ScoutsRosterFiltersLegacy.tsx+++ /dev/null@@ -1,58 +0,0 @@-import { useActions, useValues } from 'kea'--import { LemonInput, LemonSegmentedButton } from '@posthog/lemon-ui'--import { cn } from 'lib/utils/css-classes'--import { scoutFleetLogic } from '../../../logics/scoutFleetLogic'-import { ScoutOwnerFilter } from './ScoutOwnerFilter'-import { ScoutTagsFilter } from './ScoutTagsFilter'--export function ScoutsRosterFiltersLegacy({ compact }: { compact: boolean }): JSX.Element {- const { scoutSearch, scoutEnabledFilter, scoutTagOptions, activeScoutTags, scoutOwnerOptions, activeScoutOwner } =- useValues(scoutFleetLogic)- const { setScoutSearch, setScoutEnabledFilter, setScoutTagFilter, setScoutOwnerFilter } =- useActions(scoutFleetLogic)-- return (- // Compact takes the whole line rather than being pushed right: at phone widths the filters- // never share a row with the stats anyway, and a right-hugging half-row just wastes it.- <div className={cn('flex flex-wrap items-center gap-2', compact ? 'w-full' : 'ml-auto')}>- <LemonSegmentedButton- size="small"- value={scoutEnabledFilter}- onChange={setScoutEnabledFilter}- options={[- { value: 'all', label: 'All' },- { value: 'enabled', label: 'On' },- { value: 'disabled', label: 'Off' },- ]}- />- <LemonInput- type="search"- size="small"- placeholder="Search scouts…"- value={scoutSearch}- onChange={setScoutSearch}- className={compact ? 'min-w-32 flex-1' : 'w-56'}- allowClear- />- {scoutTagOptions.length > 0 && (- <ScoutTagsFilter- size="xsmall"- options={scoutTagOptions}- selected={activeScoutTags}- onChange={setScoutTagFilter}- />- )}- {scoutOwnerOptions.length > 0 && (- <ScoutOwnerFilter- size="xsmall"- options={scoutOwnerOptions}- selected={activeScoutOwner}- onChange={setScoutOwnerFilter}- />- )}- </div>- )-}diff --git a/products/signals/frontend/inbox/components/config/scouts/ScoutsRosterHeader.tsx b/products/signals/frontend/inbox/components/config/scouts/ScoutsRosterHeader.tsxdeleted file mode 100644index c74ffb8e9609..000000000000--- a/products/signals/frontend/inbox/components/config/scouts/ScoutsRosterHeader.tsx+++ /dev/null@@ -1,90 +0,0 @@-import { useValues } from 'kea'--import { Tooltip } from '@posthog/lemon-ui'--import { cn } from 'lib/utils/css-classes'--import { scoutFleetLogic } from '../../../logics/scoutFleetLogic'-import { scratchpadLogic } from '../../../logics/scratchpadLogic'-import { SCOUT_ROSTER_WINDOW_LABEL } from '../../../utils/scoutRunsWindow'-import { ScoutsRosterFiltersLegacy } from './ScoutsRosterFiltersLegacy'--function Stat({ value, label, compact = false }: { value: string; label: string; compact?: boolean }): JSX.Element {- return (- <div className={cn('flex flex-col border-r border-primary last:border-r-0', compact ? 'pr-3' : 'pr-4')}>- <span className="text-lg font-semibold tabular-nums leading-tight">{value}</span>- <span className="text-[11px] text-muted">{label}</span>- </div>- )-}--/**- * Headline numbers on the left, search and the tag filter pushed right on the same line. They were- * two stacked rows before, which burned a whole row of height at every width — `ml-auto` keeps the- * search right-aligned, and the row only wraps once the two halves genuinely can't share a line.- */-export function ScoutsRosterHeader({ compact }: { compact: boolean }): JSX.Element {- return (- <div- className={cn(- 'flex flex-wrap items-center pt-4 pb-3',- compact ? 'gap-x-4 gap-y-3 px-4' : 'gap-x-6 gap-y-3 px-6'- )}- >- <RosterStats compact={compact} />- <ScoutsRosterFiltersLegacy compact={compact} />- </div>- )-}--/**- * The troop's headline numbers. Output is stated as reports filed rather than as a run success- * rate: every run completing tells you nothing crashed, not that the troop is earning its keep.- */-function RosterStats({ compact }: { compact: boolean }): JSX.Element {- const { enabledCount, emittedFindingsSummary, fleetFindingsSummaryLoadedOnce } = useValues(scoutFleetLogic)- // Mounted here rather than by the fleet logic, so the 1,000-entry scratchpad read only happens- // on the surfaces that show it, not on every inbox tab that mounts the fleet.- const { recentlyLearnedCount, entries: scratchpadEntries } = useValues(scratchpadLogic)- // A summary that hasn't landed is not zero runs. The number holds a dash until it does; a failed- // request keeps the dash rather than claiming a quiet week.- const summaryValue = (value: number): string => (fleetFindingsSummaryLoadedOnce ? String(value) : '—')-- return (- <div className={cn('flex flex-wrap items-center', compact ? 'gap-x-3 gap-y-2' : 'gap-4')}>- <Stat value={String(enabledCount)} label="on patrol" compact={compact} />- <Tooltip title={`Runs your scouts made in the ${SCOUT_ROSTER_WINDOW_LABEL}, quiet ones included.`}>- <span>- <Stat value={summaryValue(emittedFindingsSummary.runCount)} label="runs" compact={compact} />- </span>- </Tooltip>- <Tooltip title={`New reports your scouts filed in the ${SCOUT_ROSTER_WINDOW_LABEL}.`}>- <span>- <Stat- value={summaryValue(emittedFindingsSummary.authoredReportCount)}- label="reports filed"- compact={compact}- />- </span>- </Tooltip>- <Tooltip title={`Existing reports your scouts added to in the ${SCOUT_ROSTER_WINDOW_LABEL}.`}>- <span>- <Stat- value={summaryValue(emittedFindingsSummary.editedReportCount)}- label="reports edited"- compact={compact}- />- </span>- </Tooltip>- <Tooltip title={`Scratchpad entries your scouts wrote or refreshed in the ${SCOUT_ROSTER_WINDOW_LABEL}.`}>- <span>- <Stat- value={scratchpadEntries === null ? '—' : String(recentlyLearnedCount)}- label="learned"- compact={compact}- />- </span>- </Tooltip>- </div>- )-}diff --git a/products/signals/frontend/inbox/components/config/scouts/ScoutsRosterLegacy.tsx b/products/signals/frontend/inbox/components/config/scouts/ScoutsRosterLegacy.tsxdeleted file mode 100644index 1883a2a8d740..000000000000--- a/products/signals/frontend/inbox/components/config/scouts/ScoutsRosterLegacy.tsx+++ /dev/null@@ -1,126 +0,0 @@-import { useActions, useValues } from 'kea'-import { useEffect, useRef } from 'react'--import { LemonButton, LemonSkeleton } from '@posthog/lemon-ui'--import { useResizeBreakpoints } from 'lib/hooks/useResizeObserver'--import { captureScoutFleetViewed } from '../../../inboxAnalytics'-import { scoutFleetLogic } from '../../../logics/scoutFleetLogic'-import { SCOUT_ROSTER_WINDOW_LABEL, SCOUT_RUNS_PER_SCOUT_LABEL } from '../../../utils/scoutRunsWindow'-import { ScoutAlphaBanner } from './ScoutAlphaBanner'-import { ScoutHelperSkillLinks } from './ScoutHelperSkillLinks'-import { ScoutsEmptyStateLegacy } from './ScoutsEmptyStateLegacy'-import { ScoutsRosterHeader } from './ScoutsRosterHeader'-import { ScoutsRosterTable } from './ScoutsRosterTable'--/**- * Under this width the roster drops to its compact columns. Sits just above the ~763px the- * six-column table needs before it starts scrolling sideways, so the switch happens where the wide- * layout actually stops working rather than at a phone-sized guess. Measured on the roster itself- * rather than the window, so the tab reads the same inside a narrow embed as it does on a phone.- */-const ROSTER_COMPACT_MAX_PX = 768--/**- * The scout roster with the redesign flag off: one alphabetical table over the whole troop, with lifecycle as a sortable- * Status column. Replaces the card list that used to live in the Scout troop modal — the fleet- * outgrew a 760px portal, and a modal can't host the scout pages it links to.- */-export function ScoutsRosterLegacy(): JSX.Element {- const {- scoutConfigs,- scoutConfigsLoading,- scoutFleetSynced,- scoutFleetSyncOutcome,- enabledCount,- customScoutCount,- } = useValues(scoutFleetLogic)- const { loadScoutConfigs, materializeScoutFleet, startRunsPolling, stopRunsPolling } = useActions(scoutFleetLogic)- // One measurement for the whole roster, so the header chrome and the table agree on which- // layout they're in — two observers could disagree for a frame mid-resize.- const { ref: widthRef, size } = useResizeBreakpoints(- { 0: 'compact', [ROSTER_COMPACT_MAX_PX]: 'wide' },- { initialSize: 'wide' }- )- const compact = size === 'compact'-- useEffect(() => {- startRunsPolling()- return () => stopRunsPolling()- }, [startRunsPolling, stopRunsPolling])-- // Opening the roster is what materializes the fleet, so a project the coordinator never reached- // still gets its scouts. The logic decides whether a sync is actually owed.- useEffect(() => {- materializeScoutFleet()- }, [materializeScoutFleet])-- // Roster shape once per opening, the first time the fleet resolves. A failed load stays `null`- // and reports nothing — an unreachable scout API isn't an empty troop. The report waits for the- // materialization either way: an empty troop that is about to arrive is never counted as no- // troop, and `sync_outcome` only means something once the sync has settled.- const fleetViewedFiredRef = useRef(false)- useEffect(() => {- if (scoutConfigs === null || !scoutFleetSynced || fleetViewedFiredRef.current) {- return- }- fleetViewedFiredRef.current = true- captureScoutFleetViewed({- scoutCount: scoutConfigs.length,- enabledCount,- customCount: customScoutCount,- dryRunCount: scoutConfigs.filter((config) => !config.emit).length,- syncOutcome: scoutFleetSyncOutcome,- })- }, [scoutConfigs, scoutFleetSynced, scoutFleetSyncOutcome, enabledCount, customScoutCount])-- // An empty fleet before the first sync settles is a troop still being assembled, not an empty- // one — showing the empty state here would tell people to create a scout moments before their- // canonical fleet lands.- if ((scoutConfigsLoading && scoutConfigs === null) || (scoutConfigs?.length === 0 && !scoutFleetSynced)) {- return (- <div className="flex flex-col gap-2 p-6">- <LemonSkeleton className="h-8 w-full rounded" />- <LemonSkeleton className="h-8 w-full rounded" />- <LemonSkeleton className="h-8 w-full rounded" />- </div>- )- }-- // A failed request must not masquerade as an empty troop – a missing scope or- // regional rollout gap would otherwise be indistinguishable from "no scouts yet".- if (scoutConfigs === null) {- return (- <div className="m-6 flex items-center gap-3 rounded border border-danger bg-danger-highlight px-4 py-3.5">- <span className="flex-1 text-xs text-danger">- Couldn't load the scout roster. The scout API may be unavailable or this project may not be enrolled- yet.- </span>- <LemonButton type="secondary" size="small" status="danger" onClick={() => loadScoutConfigs()}>- Retry- </LemonButton>- </div>- )- }-- if (scoutConfigs.length === 0) {- return <ScoutsEmptyStateLegacy />- }-- return (- <div ref={widthRef} className="flex flex-col">- <ScoutAlphaBanner className="mx-6 mt-4" />- <ScoutsRosterHeader compact={compact} />- <ScoutsRosterTable compact={compact} />- <div className="flex flex-col gap-1 px-6 py-4">- <span className="text-xs text-muted">- The totals above cover the {SCOUT_ROSTER_WINDOW_LABEL}. Each scout's run strip shows its{' '}- {SCOUT_RUNS_PER_SCOUT_LABEL}, so scouts on different schedules stay comparable. New scouts are- created as skills in your PostHog project, under the name you give them.- </span>- <ScoutHelperSkillLinks />- </div>- </div>- )-}diff --git a/products/signals/frontend/inbox/components/config/scouts/ScoutsRosterTable.tsx b/products/signals/frontend/inbox/components/config/scouts/ScoutsRosterTable.tsxdeleted file mode 100644index 2d649ffd9dbe..000000000000--- a/products/signals/frontend/inbox/components/config/scouts/ScoutsRosterTable.tsx+++ /dev/null@@ -1,191 +0,0 @@-import { useActions, useValues } from 'kea'-import { router } from 'kea-router'--import { LemonTable } from '@posthog/lemon-ui'--import { cn } from 'lib/utils/css-classes'-import { urls } from 'scenes/urls'--import { scoutFleetLogic } from '../../../logics/scoutFleetLogic'-import { compareScoutsByName, SCOUT_GROUP_LABEL, SCOUT_GROUP_ORDER, ScoutRosterRow } from '../../../utils/scoutGroups'-import { showsScoutOwnership } from '../../../utils/scoutOwners'-import { runStripEmptyLabel, SCOUT_ROSTER_WINDOW_DAYS } from '../../../utils/scoutRunsWindow'-import { ScoutCadenceLabel } from './ScoutCadenceLabel'-import { ScoutEnabledSwitch } from './ScoutConfigControls'-import { scoutCostColumns } from './ScoutCostCell'-import { ScoutNameCell } from './ScoutNameCell'-import { ScoutNextRunLabel } from './ScoutNextRunLabel'-import { ScoutOwnersCell } from './ScoutOwnersCell'-import { ScoutRosterRunBoxes } from './ScoutRosterRunBoxes'-import { ScoutStatusDot } from './ScoutStatusDot'--/**- * The whole troop in one alphabetical table. A scout's lifecycle is a sortable Status column rather- * than a section heading, so finding one by name is a single scan instead of a guess at which bucket- * the scheduler put it in.- *- * `compact` is the phone-width roster: Owners, Cadence, and Next run drop out and their space goes- * to the name and the run strip. All three are detail rather than state, and the scout page states- * them in full — at 375px they were 45px columns holding a truncated word each.- *- * Owners drops out at full width too when the fleet holds no custom scout, since ownership has- * nothing to say about a canonical one.- */-export function ScoutsRosterTable({ compact }: { compact: boolean }): JSX.Element {- const { rosterScouts, rollups, updatingScoutIds, scoutRunsLoadedOnce, scoutRunsCoverFleet, scoutCostRollups } =- useValues(scoutFleetLogic)- const { updateScoutConfig } = useActions(scoutFleetLogic)-- if (rosterScouts.length === 0) {- return <span className="px-6 py-6 text-sm text-muted">No scouts match the current filters.</span>- }-- // Only a custom scout can carry an owner, so a fleet of canonical scouts would get a header over- // a column of blanks. It keeps the exact column set and widths it had before owners existed.- const showOwners = !compact && rosterScouts.some((row) => showsScoutOwnership(row.config))- // The cost response covers the whole team, so it can hold spend for a scout the filters hide- // and for one whose config is gone. Ask the visible rows instead of counting the rollups.- const showCosts = !compact && rosterScouts.some((row) => scoutCostRollups.has(row.config.skill_name))- const width = compact- ? { scout: '40%', status: '26%', cadence: '12%', nextRun: '12%', runs: '20%', enabled: '14%' }- : showOwners- ? { scout: '28%', status: '14%', cadence: '11%', nextRun: '11%', runs: '28%', enabled: '8%' }- : { scout: '34%', status: '14%', cadence: '12%', nextRun: '12%', runs: '28%', enabled: '8%' }-- return (- <LemonTable- embedded- size="small"- // Compact has no room to spare, and an auto layout sizes columns to their content — the- // run strip's fixed-width boxes alone push the table wider than a phone and the toggle- // off the right edge. Fixed makes the percentages below binding and lets cells clip.- tableLayout={compact ? 'fixed' : 'auto'}- rowKey={(row: ScoutRosterRow) => row.config.id}- dataSource={rosterScouts}- rowClassName={(row: ScoutRosterRow) => cn('cursor-pointer', !row.config.enabled && 'opacity-65')}- onRow={(row: ScoutRosterRow) => ({- // The row is one big target for the scout page, but a link or button inside it- // (a run box, the name) already navigates itself: a second push here would- // override the run box's task URL.- onClick: (event) => {- if ((event.target as HTMLElement).closest('a, button')) {- return- }- router.actions.push(urls.inboxScout(row.config.skill_name))- },- })}- columns={[- {- title: 'Scout',- key: 'scout',- width: width.scout,- sorter: (a: ScoutRosterRow, b: ScoutRosterRow) => compareScoutsByName(a.config, b.config),- render: (_, row: ScoutRosterRow) => (- <ScoutNameCell- config={row.config}- group={row.group}- rollup={rollups.get(row.config.skill_name)}- compact={compact}- />- ),- },- {- title: 'Status',- key: 'status',- width: width.status,- sorter: (a: ScoutRosterRow, b: ScoutRosterRow) =>- SCOUT_GROUP_ORDER.indexOf(a.group) - SCOUT_GROUP_ORDER.indexOf(b.group),- render: (_, row: ScoutRosterRow) => (- <span className="flex items-center gap-2 text-xs text-secondary">- <ScoutStatusDot group={row.group} />- {SCOUT_GROUP_LABEL[row.group]}- </span>- ),- },- {- // Custom scouts only, so canonical rows stay blank and read as they did before.- // Narrow on purpose: faces here, and the scout page names the owner in full.- title: 'Owners',- key: 'owners',- width: '10%',- isHidden: !showOwners,- render: (_, row: ScoutRosterRow) => <ScoutOwnersCell config={row.config} />,- },- {- title: 'Cadence',- key: 'cadence',- width: width.cadence,- isHidden: compact,- render: (_, row: ScoutRosterRow) => (- <span className="text-xs text-secondary">- <ScoutCadenceLabel config={row.config} />- </span>- ),- },- {- title: 'Next run',- key: 'nextRun',- width: width.nextRun,- isHidden: compact,- render: (_, row: ScoutRosterRow) => (- <span className="text-xs text-secondary tabular-nums">- <ScoutNextRunLabel config={row.config} />- </span>- ),- },- // Cost sits before the run strip, and drops out of the compact layout with the- // other detail columns. Absent for everyone but staff, and while no scout on the- // roster has a priced run in the window.- ...(showCosts ? scoutCostColumns(scoutCostRollups, SCOUT_ROSTER_WINDOW_DAYS) : []),- {- // "Recent runs" doesn't fit the compact column, and a right-aligned header clips- // from its left — it would read as "ent runs".- title: compact ? 'Runs' : 'Recent runs',- key: 'runs',- width: width.runs,- // The strip is a timeline ending at "now", anchored right so every row's- // newest run shares one vertical line; the header follows its content.- align: 'right',- render: (_, row: ScoutRosterRow) => {- const runs = rollups.get(row.config.skill_name)?.runs ?? []- if (runs.length) {- return <ScoutRosterRunBoxes skillName={row.config.skill_name} runs={runs} />- }- // Until the runs request has landed once, an empty rollup means "not- // loaded", not "never ran"; the poll retries a failed load on its own. Past- // the fleet the response covers it means neither, so the row says so.- return (- <span className="text-xs text-muted">- {runStripEmptyLabel({- loadedOnce: scoutRunsLoadedOnce,- coversFleet: scoutRunsCoverFleet,- })}- </span>- )- },- },- {- title: '',- key: 'enabled',- width: width.enabled,- render: (_, row: ScoutRosterRow) => (- // Stop the row's navigation: flipping a scout off is not a request to- // open it, and landing on its page afterwards hides the row you just changed.- <div- className="flex justify-end"- onClick={(event) => event.stopPropagation()}- onKeyDown={(event) => event.stopPropagation()}- role="presentation"- >- <ScoutEnabledSwitch- config={row.config}- onUpdate={updateScoutConfig}- updating={updatingScoutIds.includes(row.config.id)}- />- </div>- ),- },- ]}- />- )-}diff --git a/products/signals/frontend/inbox/components/detail/InboxDetail.stories.tsx b/products/signals/frontend/inbox/components/detail/InboxDetail.stories.tsxindex 1f7b0d44ec58..3ae23e741c79 100644--- a/products/signals/frontend/inbox/components/detail/InboxDetail.stories.tsx+++ b/products/signals/frontend/inbox/components/detail/InboxDetail.stories.tsx@@ -25,7 +25,6 @@ import { inboxReportDetailLogic } from '../../logics/inboxReportDetailLogic'import { SignalReport, SignalReportStatus } from '../../types'import { AgentRunDetail } from './AgentRunDetail'import { ReportDetail } from './ReportDetail'-import { ReportDetailLegacy } from './ReportDetailLegacy'import { ReportStatusSection } from './ReportStatusSection'const mixedPrChecks = {@@ -180,7 +179,6 @@ const meta: Meta = {viewMode: 'story',mockDate: '2026-06-11',featureFlags: {- [FEATURE_FLAGS.INBOX_REDESIGN]: true,[FEATURE_FLAGS.SIGNALS_REPORT_METRICS]: true,[FEATURE_FLAGS.SIGNALS_EXPECTED_IMPACT_DISPLAY]: true,},@@ -291,7 +289,6 @@ export const ReportWithFollowUpMetric: Story = {parameters: {mockDate: '2026-08-29',featureFlags: {- [FEATURE_FLAGS.INBOX_REDESIGN]: true,[FEATURE_FLAGS.SIGNALS_REPORT_METRICS]: true,[FEATURE_FLAGS.SIGNALS_EXPECTED_IMPACT_DISPLAY]: true,},@@ -323,7 +320,6 @@ export const ReportWithFollowUpMetricHidden: Story = {parameters: {mockDate: '2026-08-29',featureFlags: {- [FEATURE_FLAGS.INBOX_REDESIGN]: true,[FEATURE_FLAGS.SIGNALS_REPORT_METRICS]: true,[FEATURE_FLAGS.SIGNALS_EXPECTED_IMPACT_DISPLAY]: false,},@@ -332,9 +328,7 @@ export const ReportWithFollowUpMetricHidden: Story = {export const ReportFollowUpPending: Story = {parameters: {- featureFlags: {- [FEATURE_FLAGS.INBOX_REDESIGN]: true,- },+ featureFlags: {},},render: () => (<Frame>@@ -524,23 +518,3 @@ export const PullRequestInlineReview: Story = {</Frame>),}--// The detail pages with the redesign flag off: summary on the left, evidence on the right, and the-// "Files changed" tab for a report with a PR.-export const ReportLegacy: Story = {- parameters: { featureFlags: { [FEATURE_FLAGS.INBOX_REDESIGN]: false } },- render: () => (- <Frame>- <ReportDetailLegacy report={reportTabReports[0]} tab="reports" />- </Frame>- ),-}--export const PullRequestLegacy: Story = {- parameters: { featureFlags: { [FEATURE_FLAGS.INBOX_REDESIGN]: false } },- render: () => (- <Frame>- <ReportDetailLegacy report={pullRequestReports[0]} tab="pulls" />- </Frame>- ),-}diff --git a/products/signals/frontend/inbox/components/detail/PullRequestFilesChanged.tsx b/products/signals/frontend/inbox/components/detail/PullRequestFilesChanged.tsxindex 7e5964bad9e0..896d95e15fcf 100644--- a/products/signals/frontend/inbox/components/detail/PullRequestFilesChanged.tsx+++ b/products/signals/frontend/inbox/components/detail/PullRequestFilesChanged.tsx@@ -26,7 +26,7 @@ function summarizeDiffFiles(diff: string, cacheKey: string): DiffFileSummary[] |/*** "Files changed" tab body: a sticky file tree beside the stacked per-file diffs. The tree follows the* file at the top of the viewport as the page scrolls, and clicking a row scrolls its diff into view.- * The diff itself is `PullRequestDiffPanel`, shared with the legacy tab, so nothing about loading,+ * The diff itself is `PullRequestDiffPanel`, so nothing about loading,* inline comments, or the unified/split toggle lives here.*/export function PullRequestFilesChanged({diff --git a/products/signals/frontend/inbox/components/detail/ReportDetailLegacy.tsx b/products/signals/frontend/inbox/components/detail/ReportDetailLegacy.tsxdeleted file mode 100644index 01fcd33c137c..000000000000--- a/products/signals/frontend/inbox/components/detail/ReportDetailLegacy.tsx+++ /dev/null@@ -1,668 +0,0 @@-import { BindLogic, useActions, useValues } from 'kea'-import { router } from 'kea-router'-import { ReactNode, useCallback, useState } from 'react'--import { IconArrowLeft, IconDocument, IconEllipsis, IconExternal, IconPullRequest, IconSearch } from '@posthog/icons'-import { LemonButton, LemonTabs, LemonSelect, Tooltip } from '@posthog/lemon-ui'--import { TZLabel } from 'lib/components/TZLabel'-import { LemonMarkdown } from 'lib/lemon-ui/LemonMarkdown'-import { LemonMenu, LemonMenuItem } from 'lib/lemon-ui/LemonMenu'-import { ScoutLink } from 'lib/signals/ScoutLink'-import { scoutDisplayName } from 'lib/signals/signalCardSourceLine'-import { addProjectIdIfMissing } from 'lib/utils/kea-router'-import { SignalNode } from 'scenes/debug/signals/types'-import { urls } from 'scenes/urls'--import { captureInboxReportAction } from '../../inboxAnalytics'-import { inboxReportDetailLogic } from '../../logics/inboxReportDetailLogic'-import { SignalCard } from '../../SignalCard'-import { InboxTabKey, INBOX_TAB_LABEL, SignalReport, SignalReportStatus, SignalSourceProduct } from '../../types'-import { canCreateImplementationPr } from '../../utils/reportActions'-import {- displayConventionalCommitTitle,- parseConventionalCommitTitle,- parsePrUrlParts,- safeHttpUrl,-} from '../../utils/reportPresentation'-import { reportPullRequests } from '../../utils/reportPullRequests'-import { SignalReportActionabilityBadge } from '../badges/SignalReportActionabilityBadge'-import { SignalReportBillingBadge } from '../badges/SignalReportBillingBadge'-import { SignalReportPriorityBadge } from '../badges/SignalReportPriorityBadge'-import { isStatusRedundantWithActionability, SignalReportStatusBadge } from '../badges/SignalReportStatusBadge'-import {- hasKnownSourceProduct,- knownSourceProductEntries,- SourceProductIconRow,- sourceProductsTooltipTitle,-} from '../badges/sourceProductIcons'-import { ConventionalCommitScopeTag } from '../cards/ReportCard'-import { CommitContent } from './artefactTypes'-import { DetailSection } from './DetailSection'-import { DiscussReportButton } from './DiscussReportButton'-import { ImplementButton } from './ImplementButton'-import { PrChecksSection } from './PrChecksSection'-import { PrCommentsSection } from './PrCommentsSection'-import {- PullRequestBranchTag,- PullRequestBranchTagSkeleton,- PullRequestDiffPanel,- PullRequestDiffPending,- PullRequestDiffStat,- PullRequestDiffStatSkeleton,-} from './PullRequestDiffPanel'-import { ReportActivitySection } from './ReportActivitySection'-import { ReportChart } from './ReportChart'-import { ReportChartsContext } from './reportChartsContext'-import { useReportDetailActions } from './ReportDetailActions'-import { ReportFeedbackFooter } from './ReportFeedbackFooter'-import { ReportSourceSuggestion } from './ReportSourceSuggestion'-import { ReportTasksSection } from './ReportTasksSection'-import { SuggestedReviewersSection } from './SuggestedReviewersSection'-import { TrackerIssueNote } from './TrackerIssueNote'--const SIGNALS_TOOLTIP =- 'Signals are the individual pieces of evidence from your connected sources and scouts that were grouped into this report.'--/**- * Single meta line under the title: status/actionability chips, then dot-separated stats- * (finding count · updated · source stack). `evidenceCount` switches to the live signal count once- * findings load, so the row reads the same before and after the query resolves.- */-function ReportDetailMeta({- report,- evidenceCount,- actionabilityExplanation,- scoutSkillName,-}: {- report: SignalReport- evidenceCount: number- actionabilityExplanation?: string | null- /** Authoring scout's raw skill slug, when scout-authored — its name links to the scout off the "Scout" chip. */- scoutSkillName?: string | null-}): JSX.Element {- const hasSource = hasKnownSourceProduct(report.source_products)- const showStatus = !isStatusRedundantWithActionability(report.status, report.actionability)-- const stats: ReactNode[] = []- if (evidenceCount > 0) {- stats.push(- <Tooltip title={SIGNALS_TOOLTIP}>- <span className="tabular-nums cursor-help">- {evidenceCount} signal{evidenceCount === 1 ? '' : 's'}- </span>- </Tooltip>- )- }- // Mirrors error tracking's "First seen" / "Last seen": surface both lifecycle moments as distinct facts.- stats.push(- <span className="flex items-center gap-1">- <span>First seen</span>- <TZLabel time={report.created_at} />- </span>- )- stats.push(- <span className="flex items-center gap-1">- <span>Last updated</span>- <TZLabel time={report.updated_at ?? report.created_at} />- </span>- )- if (hasSource) {- stats.push(<MetaSourceStack sourceProducts={report.source_products} scoutSkillName={scoutSkillName} />)- }-- return (- <div className="flex items-center gap-x-2 gap-y-1.5 flex-wrap text-xs text-tertiary leading-none select-none">- {showStatus && (- <SignalReportStatusBadge status={report.status} suppressionSource={report.suppression_source} />- )}- <SignalReportActionabilityBadge- actionability={report.actionability}- explanation={actionabilityExplanation}- />- <SignalReportBillingBadge report={report} />- <span className="flex items-center gap-2 flex-wrap min-w-0">- {stats.map((node, i) => (- <span key={i} className="flex items-center gap-2 min-w-0">- {i > 0 && <span aria-hidden>·</span>}- {node}- </span>- ))}- </span>- </div>- )-}--/** Source-product icon stack reused inside the detail meta row. */-function MetaSourceStack({- sourceProducts,- scoutSkillName,-}: {- sourceProducts?: string[] | null- scoutSkillName?: string | null-}): JSX.Element | null {- const entries = knownSourceProductEntries(sourceProducts)- const [primary, ...overflow] = entries- if (!primary) {- return null- }- // Name the authoring scout on a scout-authored report so it's clear at a glance who wrote it,- // and link the name straight to the scout's detail page. The scout may not sort first among mixed- // sources, so key off whether any source is a scout rather than just the primary.- const scoutName = scoutDisplayName(scoutSkillName)- const showScout = entries.some(({ key }) => key === SignalSourceProduct.SignalsScout) && !!scoutName- return (- <Tooltip title={sourceProductsTooltipTitle(entries)}>- <span className="inline-flex items-center gap-1.5 min-w-0 cursor-help">- <SourceProductIconRow entries={entries} className="inline-flex items-center gap-1 shrink-0" />- <span>- {primary.meta.label}- {showScout && scoutSkillName ? (- <>- {' · '}- <ScoutLink skillName={scoutSkillName} className="text-tertiary" />- </>- ) : null}- {overflow.length > 0 ? ` + ${overflow.length}` : null}- </span>- </span>- </Tooltip>- )-}--/** Placeholder finding rows shown while the signals query is in flight, sized to the known count. */-function EvidenceSkeleton({ count }: { count: number }): JSX.Element {- const rows = Math.max(1, Math.min(count, 2))- return (- <div className="flex flex-col gap-3" aria-hidden>- {Array.from({ length: rows }).map((_, i) => (- <div- key={i}- className="flex flex-col gap-2 rounded border border-primary bg-surface-primary px-3 py-2.5"- >- <div className="h-3 w-1/3 rounded bg-fill-highlight-100 animate-pulse" />- <div className="h-2.5 w-4/5 rounded bg-fill-highlight-50 animate-pulse" />- </div>- ))}- </div>- )-}--/**- * Layout-faithful placeholder shown while a report's base record loads on a cold open (deep link- * with no list row to seed from). Mirrors `InboxDetailFrame`'s header + two-column shape so the- * page doesn't jump when the real content lands — and so loading reads as "this view, populating"- * rather than a bare centered spinner.- */-export function ReportDetailSkeletonLegacy(): JSX.Element {- return (- <div className="@container w-full max-w-[calc(160ch+5rem)] mx-auto px-6 py-5 text-sm" aria-hidden>- <div className="flex flex-col gap-3.5 mb-6 pb-5 border-b border-primary">- <div className="h-3.5 w-24 rounded bg-fill-highlight-50 animate-pulse" />- <div className="flex flex-col gap-3 @2xl:flex-row @2xl:items-start @2xl:justify-between @2xl:gap-4">- <div className="flex items-start gap-3 min-w-0 @2xl:flex-1">- <div className="size-7 shrink-0 mt-0.5 rounded bg-fill-highlight-100 animate-pulse" />- <div className="flex flex-col gap-2 min-w-0 flex-1">- <div className="h-6 w-2/3 rounded bg-fill-highlight-100 animate-pulse" />- <div className="h-3 w-1/2 rounded bg-fill-highlight-50 animate-pulse" />- </div>- </div>- <div className="flex items-center flex-wrap gap-2 @2xl:shrink-0">- <div className="h-8 w-24 rounded bg-fill-highlight-50 animate-pulse" />- <div className="h-8 w-20 rounded bg-fill-highlight-50 animate-pulse" />- </div>- </div>- </div>-- <div className="grid grid-cols-1 @5xl:grid-cols-[minmax(0,80ch)_minmax(22rem,1fr)] gap-5">- <div className="min-w-0 flex flex-col gap-2.5">- <div className="h-4 w-28 rounded bg-fill-highlight-100 animate-pulse" />- <div className="h-3 w-full rounded bg-fill-highlight-50 animate-pulse" />- <div className="h-3 w-11/12 rounded bg-fill-highlight-50 animate-pulse" />- <div className="h-3 w-3/4 rounded bg-fill-highlight-50 animate-pulse" />- </div>- <div className="flex flex-col min-w-0 gap-5">- {Array.from({ length: 2 }).map((_, i) => (- <div key={i} className="flex flex-col gap-2.5">- <div className="h-4 w-24 rounded bg-fill-highlight-100 animate-pulse" />- <div className="h-16 w-full rounded border border-primary bg-surface-primary animate-pulse" />- </div>- ))}- </div>- </div>- </div>- )-}--interface InboxDetailFrameProps {- report: SignalReport- /** Active inbox tab — drives the back link and the report URL seeded into Discuss. */- tab: InboxTabKey- /** Summary section heading icon + title. */- summary: { icon: ReactNode; title: string }- /** Content rendered in the main column directly under the Summary (e.g. the PR conversation). */- summaryFooter?: ReactNode- /** Extra primary action(s) rendered after the shared report actions. */- primaryAction?: ReactNode- /** Whether to render the Overview / Files changed tab bar. Driven by whether the report has a PR- * (known immediately), not by whether the diff has loaded — so the tab bar doesn't pop in a beat- * later and shift the layout. */- showFilesTab?: boolean- /** Diff body rendered under the "Files changed" tab (may be a skeleton while the commit artefact loads). */- diffSection?: ReactNode- /** Branch tag shown in the "Files changed" tab label, so the tab signals there's code behind it. */- diffBranchTag?: ReactNode- /** +/- line-count stat shown in the "Files changed" tab label, right of the branch. */- diffStat?: ReactNode- /** Content closing the sidebar, after Activity (e.g. the PR checks). */- asideFooter?: ReactNode- /** Extra sections (Tasks, Reviewers) – defaults applied by callers. */- children?: ReactNode-}--/**- * Shared chrome for the Report and Pull request detail bodies. Owns the full page header- * (title) merged with the badges/meta/actions, then summary on the left- * and supporting sections (Evidence, Runs, Reviewers) on the right. Mirrors desktop- * `InboxDetailFrame`. AgentRunDetail keeps its own layout + shell header.- */-function InboxDetailFrameLegacy({- report,- tab,- summary,- summaryFooter,- primaryAction,- showFilesTab,- diffSection,- diffBranchTag,- diffStat,- asideFooter,- children,-}: InboxDetailFrameProps): JSX.Element {- const { searchParams } = useValues(router)- // A `?back=` internal path (set by surfaces embedding inbox cards, e.g. the customer analytics- // feed) redirects the back button there instead of the inbox list tab.- const rawBack = searchParams.back- const backOverride =- typeof rawBack === 'string' && rawBack.startsWith('/') && !rawBack.startsWith('//') ? rawBack : null- const logicProps = { reportId: report.id, report }- const {- reportSignals,- reportSignalsLoading,- evidenceExpanded,- priorityExplanation,- actionabilityExplanation,- chartPlacements,- chartsById,- trailingCharts,- } = useValues(inboxReportDetailLogic(logicProps))- const { expandEvidence, collapseEvidence } = useActions(inboxReportDetailLogic(logicProps))- // GitHub-style PR view: when the report has a PR, the overview and the diff live behind two tabs.- const [activeDetailTab, setActiveDetailTab] = useState<'overview' | 'files'>('overview')- const hasDiff = !!showFilesTab- const signals = reportSignals ?? []- const evidenceCount = reportSignals !== null ? signals.length : report.signal_count- const hasEvidence = evidenceCount > 0-- const summaryPending =- report.status === SignalReportStatus.IN_PROGRESS || report.status === SignalReportStatus.CANDIDATE-- // Depends on placement alone. `LemonMarkdown` memoizes its anchor component on this callback, so- // anything else in here — the charts themselves, the report object — would rebuild that component- // as the report polls and unmount every rendered chart with it.- const renderChartRef = useCallback(- (chartId: string, sourceOffset?: number): ReactNode =>- sourceOffset !== undefined && chartPlacements.inlineByOffset.get(sourceOffset) === chartId ? (- <ReportChart chartId={chartId} />- ) : null,- [chartPlacements]- )-- // Reading depth on the report body: which supporting sections a reader actually opened.- const captureSectionToggle = (section: string) => (collapsed: boolean) =>- captureInboxReportAction({- report,- actionType: collapsed ? 'collapse_section' : 'expand_section',- surface: 'detail_pane',- extra: { section },- })-- const conventionalTitle = parseConventionalCommitTitle(report.title)- const displayTitle = displayConventionalCommitTitle(report.title, 'Untitled report')- // Absolute URL to this report – seeded into the Discuss prompt so the agent can open and read- // the report directly.- const reportUrl = `${window.location.origin}${addProjectIdIfMissing(urls.inboxReport(tab, report.id))}`-- // Secondary actions as data so the same set renders inline as buttons on wide layouts and as a- // standard `LemonMenu` on narrow ones; the primary action stays inline either way.- const reportActions = useReportDetailActions(report)- const overflowMenuItems: LemonMenuItem[] = reportActions.map((action) => ({- label: action.label,- icon: action.icon,- disabledReason: action.loading ? 'Working…' : action.disabledReason,- onClick: action.onClick,- }))-- // Bound rather than passed as props so a chart can reach the logic by id alone. `ReportChart`- // building the logic itself would have to pass `report` back in, and kea treats that as a props- // change on the mounted instance.- const overviewBody = (- <BindLogic logic={inboxReportDetailLogic} props={logicProps}>- <div className="grid grid-cols-1 @5xl:grid-cols-[minmax(0,80ch)_minmax(22rem,1fr)] gap-5">- <div className="min-w-0 flex flex-col gap-5">- <DetailSection- icon={summary.icon}- title={summary.title}- collapsible- onToggleCollapsed={captureSectionToggle('summary')}- >- <ReportChartsContext.Provider value={chartsById}>- {report.summary ? (- <LemonMarkdown- className="text-sm text-secondary leading-relaxed break-words [&>*+*]:mt-3 [&_[data-attr=report-chart]]:my-5 [&_li]:my-1 [&_ul]:my-2 [&_ol]:my-2 [&_h1]:mt-5 [&_h2]:mt-5 [&_h3]:mt-4"- disableImages- renderChartRef={renderChartRef}- >- {report.summary}- </LemonMarkdown>- ) : (- <p className={`text-sm text-tertiary m-0${summaryPending ? ' italic' : ''}`}>- No summary yet. An agent is still investigating.- </p>- )}- {trailingCharts.length > 0 && (- <div className="flex flex-col gap-4 mt-5">- {trailingCharts.map((chart) => (- <ReportChart key={chart.chart_id} chartId={chart.chart_id} />- ))}- </div>- )}- </ReportChartsContext.Provider>- </DetailSection>- {summaryFooter}- {/* The rating closes out the report body, where the reading ends – ahead of the- supporting sections, which stack underneath once the layout drops to one column. */}- <ReportFeedbackFooter report={report} />- </div>-- <div className="flex flex-col min-w-0 gap-5">- {/* The pull request picker (when present) first, then reviewers, evidence, runs, and activity. */}- {children}- <SuggestedReviewersSection report={report} />- {hasEvidence && (- <DetailSection- icon={<IconSearch />}- title="Evidence"- collapsible- onToggleCollapsed={captureSectionToggle('evidence')}- >- {reportSignalsLoading && reportSignals === null ? (- <EvidenceSkeleton count={evidenceCount} />- ) : (- <div className="flex flex-col gap-3">- {(evidenceExpanded ? signals : signals.slice(0, 2)).map((signal: SignalNode) => (- <SignalCard key={signal.signal_id} signal={signal} />- ))}- {signals.length > 2 && (- <LemonButton- type="tertiary"- size="small"- onClick={evidenceExpanded ? collapseEvidence : expandEvidence}- >- {evidenceExpanded ? 'Show less' : 'Show more'}- </LemonButton>- )}- {report.source_suggestion && (- <ReportSourceSuggestion report={report} suggestion={report.source_suggestion} />- )}- </div>- )}- </DetailSection>- )}- <ReportTasksSection report={report} />- <ReportActivitySection report={report} />- {asideFooter}- </div>- </div>- </BindLogic>- )-- return (- <div className="@container w-full max-w-[calc(160ch+5rem)] mx-auto px-6 py-5 text-sm">- {/* With a diff present the tab bar owns the full-width divider, so the heading drops its own. */}- <div className={`flex flex-col gap-3.5 ${hasDiff ? 'mb-4' : 'mb-6 pb-5 border-b border-primary'}`}>- <LemonButton- type="tertiary"- size="small"- icon={<IconArrowLeft />}- to={backOverride ?? urls.inbox(tab)}- className="-ml-2 w-fit"- >- {backOverride ? 'Back' : INBOX_TAB_LABEL[tab]}- </LemonButton>- <div className="flex flex-col gap-3 @2xl:flex-row @2xl:items-start @2xl:justify-between @2xl:gap-4">- {/* Priority square anchors the title; everything else collapses into the meta line. */}- <div className="flex items-start gap-3 min-w-0 @2xl:flex-1">- {report.priority && (- <div className="shrink-0 mt-0.5">- <SignalReportPriorityBadge- priority={report.priority}- explanation={priorityExplanation}- />- </div>- )}- <div className="flex flex-col gap-2 min-w-0">- <h1 className="min-w-0 m-0 break-words text-xl font-bold leading-tight tracking-tight">- {conventionalTitle && (- <ConventionalCommitScopeTag- type={conventionalTitle.type}- scope={conventionalTitle.scope}- />- )}- {displayTitle}- </h1>- <ReportDetailMeta- report={report}- evidenceCount={evidenceCount}- actionabilityExplanation={actionabilityExplanation}- scoutSkillName={report.scout_name}- />- </div>- </div>- <div className="flex items-center gap-2 @2xl:shrink-0">- {primaryAction}- {canCreateImplementationPr(report) && <ImplementButton report={report} />}- {/* Discuss is always available and stays inline as its own dropdown button. */}- <DiscussReportButton report={report} reportUrl={reportUrl} />- {/* Buttons inline on wide layouts; collapse into a standard LemonMenu kebab below @4xl. */}- <div className="hidden @4xl:flex items-center gap-2">- {reportActions.map((action) => (- <LemonButton- key={action.key}- type="secondary"- size="small"- icon={action.icon}- loading={action.loading}- // A disabled action explains only why it's unavailable — not what it would do.- tooltip={action.disabledReason ? undefined : action.tooltip}- disabledReason={action.disabledReason}- onClick={action.onClick}- >- {action.label}- </LemonButton>- ))}- </div>- {/* A resolved report past its refund window has no secondary actions at all. */}- {overflowMenuItems.length > 0 && (- <LemonMenu items={overflowMenuItems} placement="bottom-end">- <LemonButton- type="secondary"- size="small"- icon={<IconEllipsis />}- aria-label="More actions"- className="@4xl:hidden"- />- </LemonMenu>- )}- </div>- </div>- </div>-- {hasDiff ? (- <LemonTabs- activeKey={activeDetailTab}- onChange={(key) => {- setActiveDetailTab(key)- // Reviewing the diff is the deepest engagement a report gets short of acting- // on it, and it's the one desktop can't see either.- if (key === 'files') {- captureInboxReportAction({ report, actionType: 'view_diff', surface: 'detail_pane' })- }- }}- tabs={[- { key: 'overview', label: 'Overview', content: overviewBody },- {- key: 'files',- label: (- <span className="flex items-center gap-1.5">- <span>Files changed</span>- {diffStat}- {diffBranchTag}- </span>- ),- // `LemonTabs` renders only the active tab, so the rating row is repeated- // at the end of the diff – otherwise reviewing a PR's code and stopping- // there leaves no way to rate the report. Both rows drive the same- // report-keyed logic, so a rating given on one reads back on the other.- content: (- <div className="flex flex-col gap-5">- {diffSection}- <ReportFeedbackFooter report={report} />- </div>- ),- },- ]}- />- ) : (- overviewBody- )}- </div>- )-}--/** Point a PR URL at its diff/files tab, without double-appending if it's already there. */-function prFilesUrl(prUrl: string): string {- return prUrl.replace(/\/+$/, '').replace(/(\/files)?$/, '/files')-}--/**- * The report detail with the redesign flag off. Unified for Pull requests / Reports / Not actionable. The "Open in GitHub" action- * surfaces only when the report has a shipped implementation PR; otherwise it reads as a plain- * report. When the report has a "Commit pushed" artefact, a GitHub-style "Files changed" tab renders- * the branch's diff against the default branch alongside the overview. Runs keep their own `AgentRunDetail`.- */-export function ReportDetailLegacy({ report, tab }: { report: SignalReport; tab: InboxTabKey }): JSX.Element {- const logic = inboxReportDetailLogic({ reportId: report.id, report })- const { latestCommitArtefact, reportArtefacts, selectedPullRequest } = useValues(logic)- const { selectPullRequest } = useActions(logic)-- const prUrl = safeHttpUrl(selectedPullRequest.url)- const prRef = prUrl ? parsePrUrlParts(prUrl) : null- const hasPr = !!(prRef && prUrl)-- // The report's branch to diff comes from the latest "Commit pushed" artefact; only offer the diff- // tab when that artefact carries the repo + branch the diff endpoint needs.- const commit = latestCommitArtefact ? (latestCommitArtefact.content as CommitContent) : null- const linkedPr = report.pull_requests?.find((pr) => pr.url === prUrl)- const canDiff =- !!(commit?.repository && commit?.branch) &&- (!linkedPr ||- (linkedPr.attached_by?.task_id != null &&- linkedPr.attached_by.task_id === latestCommitArtefact?.task_id &&- commit.repository.toLowerCase() === prRef?.repoSlug.toLowerCase() &&- report.pull_requests?.filter(- (pr) =>- pr.attached_by?.task_id === linkedPr.attached_by?.task_id &&- parsePrUrlParts(pr.url)?.repoSlug.toLowerCase() === prRef?.repoSlug.toLowerCase()- ).length === 1))- // A PR-bearing report always gets the tab bar right away — driven by `hasPr` (immediate) rather than- // the diff artefact (a beat later), so the tabs don't pop in and shift the layout. While the commit- // artefact is still loading, the tab label and body show skeletons.- const artefactsLoaded = reportArtefacts !== null-- return (- <InboxDetailFrameLegacy- report={report}- tab={tab}- summary={{ icon: hasPr ? <IconPullRequest /> : <IconDocument />, title: 'Summary' }}- primaryAction={- hasPr ? (- <LemonButton- type="primary"- size="small"- sideIcon={<IconExternal />}- to={prFilesUrl(prUrl)}- targetBlank- tooltip={`${prRef.repoSlug}#${prRef.number}`}- onClick={() =>- captureInboxReportAction({ report, actionType: 'open_pr', surface: 'detail_pane' })- }- >- Open in GitHub- </LemonButton>- ) : undefined- }- showFilesTab={hasPr || canDiff}- diffSection={- canDiff && commit ? (- <PullRequestDiffPanel report={report} commit={commit} />- ) : hasPr ? (- artefactsLoaded && prUrl ? (- <LemonButton to={prFilesUrl(prUrl)} targetBlank>- View this PR's files in GitHub- </LemonButton>- ) : (- <PullRequestDiffPending artefactsLoaded={artefactsLoaded} />- )- ) : undefined- }- diffBranchTag={- canDiff && commit ? (- <PullRequestBranchTag commit={commit} />- ) : hasPr && !artefactsLoaded ? (- <PullRequestBranchTagSkeleton />- ) : undefined- }- diffStat={- canDiff && commit ? (- <PullRequestDiffStat report={report} commit={commit} />- ) : hasPr && !artefactsLoaded ? (- <PullRequestDiffStatSkeleton />- ) : undefined- }- // The PR conversation sits under the Summary as primary content; CI checks close the- // sidebar, under Activity. Both drop themselves when there's nothing to show.- asideFooter={hasPr ? <PrChecksSection report={report} /> : undefined}- summaryFooter={- hasPr || report.tracker_issue_url || report.tracker_issue_error ? (- <>- <TrackerIssueNote report={report} />- {hasPr && <PrCommentsSection report={report} />}- </>- ) : undefined- }- >- {reportPullRequests(report).length > 1 && (- <LemonSelect- value={selectedPullRequest.url}- onChange={selectPullRequest}- options={reportPullRequests(report).map((pr) => ({- value: pr.url,- label: `${parsePrUrlParts(pr.url)?.repoSlug}#${parsePrUrlParts(pr.url)?.number} (${pr.state})`,- }))}- data-attr="inbox-report-select-pull-request"- />- )}- </InboxDetailFrameLegacy>- )-}diff --git a/products/signals/frontend/inbox/components/detail/ReportFeedbackFooter.tsx b/products/signals/frontend/inbox/components/detail/ReportFeedbackFooter.tsxindex 9211cbb56e69..f0fa7acaeda4 100644--- a/products/signals/frontend/inbox/components/detail/ReportFeedbackFooter.tsx+++ b/products/signals/frontend/inbox/components/detail/ReportFeedbackFooter.tsx@@ -27,7 +27,7 @@ export function ReportFeedbackFooter({align = 'start',}: {report: SignalReport- /** `end` pins the row to the right edge, for the redesign's summary column. */+ /** `end` pins the row to the right edge, for the summary column. */align?: 'start' | 'end'}): JSX.Element {const logic = inboxReportDetailLogic({ reportId: report.id, report })diff --git a/products/signals/frontend/inbox/components/onboarding/InboxSetupFlow.stories.tsx b/products/signals/frontend/inbox/components/onboarding/InboxSetupFlow.stories.tsxindex 13a1c35a3dce..01222cbbb1d6 100644--- a/products/signals/frontend/inbox/components/onboarding/InboxSetupFlow.stories.tsx+++ b/products/signals/frontend/inbox/components/onboarding/InboxSetupFlow.stories.tsx@@ -71,7 +71,6 @@ const meta: Meta<typeof InboxSetupFlow> = {mockDate: '2026-10-14',featureFlags: {[FEATURE_FLAGS.INBOX_UI_ONBOARDING]: 'test-ui',- [FEATURE_FLAGS.INBOX_REDESIGN]: true,[FEATURE_FLAGS.SELF_DRIVING_UBP]: true,},},@@ -198,7 +197,6 @@ export const GithubWithoutAutomaticImplementation: Story = {parameters: {featureFlags: {[FEATURE_FLAGS.INBOX_UI_ONBOARDING]: 'test-ui',- [FEATURE_FLAGS.INBOX_REDESIGN]: true,[FEATURE_FLAGS.SELF_DRIVING_UBP]: false,},},@@ -341,7 +339,7 @@ export const NarrowTreatmentEntry: Story = {export const ManualEntry: Story = {parameters: {- featureFlags: { [FEATURE_FLAGS.INBOX_UI_ONBOARDING]: 'control', [FEATURE_FLAGS.INBOX_REDESIGN]: true },+ featureFlags: { [FEATURE_FLAGS.INBOX_UI_ONBOARDING]: 'control' },},render: () => <InboxOnboardingEntry />,decorators: [@@ -384,7 +382,7 @@ const quickGeneralScout = {export const QuickEntry: Story = {parameters: {- featureFlags: { [FEATURE_FLAGS.INBOX_UI_ONBOARDING]: 'test-github', [FEATURE_FLAGS.INBOX_REDESIGN]: true },+ featureFlags: { [FEATURE_FLAGS.INBOX_UI_ONBOARDING]: 'test-github' },},render: () => <QuickActivationPreview />,decorators: [diff --git a/products/signals/frontend/inbox/components/shell/AgentSetupColumn.tsx b/products/signals/frontend/inbox/components/shell/AgentSetupColumn.tsxdeleted file mode 100644index f77c22744a95..000000000000--- a/products/signals/frontend/inbox/components/shell/AgentSetupColumn.tsx+++ /dev/null@@ -1,374 +0,0 @@-import { useActions, useMountedLogic, useValues } from 'kea'-import { combineUrl, router } from 'kea-router'-import { useEffect } from 'react'--import { IconBolt, IconCheckCircle, IconChevronRight, IconCompass, IconGithub } from '@posthog/icons'-import { LemonModal, LemonSkeleton, LemonTag, Link } from '@posthog/lemon-ui'--import { integrationsLogic } from 'lib/integrations/integrationsLogic'-import { slackChannelDisplayName } from 'lib/integrations/slackChannel'-import { IconSlack } from 'lib/lemon-ui/icons'-import { cn } from 'lib/utils/css-classes'-import { GithubIntegration } from 'scenes/integrations/components/GithubIntegration'-import { urls } from 'scenes/urls'--import { inboxUsageLogic } from '../../logics/inboxUsageLogic'-import { scoutFleetLogic } from '../../logics/scoutFleetLogic'-import { signalTeamConfigLogic } from '../../logics/signalTeamConfigLogic'-import { userAutonomyLogic } from '../../logics/userAutonomyLogic'-import { signalSourcesLogic } from '../../signalSourcesLogic'-import { RepoRoutingRules } from '../config/RepoRoutingRules'-import { SelfDrivingSection } from '../config/SelfDrivingSection'-import { SignalSourcesPanel } from '../config/SignalSourcesPanel'-import { SlackNotificationsSection } from '../config/SlackNotificationsSection'-import { AgentSetupModalKey, agentSetupModalLogic } from './agentSetupModalLogic'-import { InboxUsageWidget } from './InboxUsageWidget'-import { InstallationSetupSection } from './InstallationSetupSection'-import { SetupSection } from './SetupSection'--type WidgetTone = 'todo' | 'done' | 'neutral'-/** Visual weight reflecting how important / frequently edited a part of the setup is. */-type WidgetSize = 'lg' | 'md' | 'sm'--interface SetupWidgetCardProps {- icon: JSX.Element- title: string- /** Short status line; falls back to a skeleton while `loading`. */- status: React.ReactNode- tone: WidgetTone- size: WidgetSize- loading?: boolean- /** Blocks clicks, e.g. while a request that `onClick` would repeat is in flight. */- disabled?: boolean- /** One-line context, shown on `lg` cards only. */- description?: string- onClick?: () => void- to?: string- /** Extra content under the status (e.g. MCP brand icons). */- children?: React.ReactNode-}--function TrailingAffordance({- tone,- to,- loading,-}: {- tone: WidgetTone- to?: string- loading?: boolean-}): JSX.Element | null {- if (loading) {- return <LemonSkeleton className="h-4 w-12 rounded" />- }- if (tone === 'todo') {- return (- <LemonTag type="warning" size="small">- Set up- </LemonTag>- )- }- if (tone === 'done') {- return <IconCheckCircle className="size-4 shrink-0 text-success" />- }- if (to) {- return <IconChevronRight className="size-4 shrink-0 text-muted transition-colors group-hover:text-default" />- }- return null-}--const ICON_BOX_CLASS: Record<WidgetSize, string> = {- sm: 'size-5 [&_svg]:size-3',- md: 'size-6 [&_svg]:size-3.5',- lg: 'size-7 [&_svg]:size-4',-}-const TITLE_CLASS: Record<WidgetSize, string> = {- sm: 'text-[13px] font-medium',- md: 'text-[13px] font-medium',- lg: 'text-[13px] font-semibold',-}-const CARD_PADDING_CLASS: Record<WidgetSize, string> = {- sm: 'px-2.5 py-1.5',- md: 'px-2.5 py-2',- lg: 'px-2.5 py-2 gap-0.5',-}--function SetupWidgetCard(props: SetupWidgetCardProps): JSX.Element {- const { icon, title, status, tone, size, loading, disabled, description, onClick, to, children } = props-- const cardClassName = cn(- 'group flex rounded border border-primary bg-surface-primary text-left no-underline cursor-pointer transition-colors hover:border-secondary disabled:cursor-default disabled:hover:border-primary',- size === 'sm' ? 'items-center justify-between gap-2' : 'flex-col',- CARD_PADDING_CLASS[size]- )-- // Compact single-row layout for the lowest-importance widgets.- const content =- size === 'sm' ? (- <>- <div className="flex items-center gap-2 min-w-0">- <span- className={cn(- 'flex shrink-0 items-center justify-center rounded bg-surface-secondary text-default',- ICON_BOX_CLASS[size]- )}- >- {icon}- </span>- <span className={cn('text-default truncate', TITLE_CLASS[size])}>{title}</span>- </div>- <div className="flex items-center gap-1.5 shrink-0">- {loading ? (- <LemonSkeleton className="h-3 w-16" />- ) : (- <span className="text-xs text-secondary">{status}</span>- )}- <TrailingAffordance tone={tone} to={to} loading={loading} />- </div>- </>- ) : (- <div className="flex items-start gap-2 min-w-0">- <span- className={cn(- 'flex shrink-0 items-center justify-center rounded bg-surface-secondary text-default',- ICON_BOX_CLASS[size]- )}- >- {icon}- </span>- <div className="flex flex-col gap-0.5 min-w-0 flex-1">- <div className="flex items-center justify-between gap-1.5">- <span className={cn('text-default truncate', TITLE_CLASS[size])}>{title}</span>- <TrailingAffordance tone={tone} to={to} loading={loading} />- </div>- {loading ? (- <LemonSkeleton className="h-3 w-20" />- ) : (- <span className="text-xs text-secondary truncate">{status}</span>- )}- {size === 'lg' && description && (- <p className="text-xs text-tertiary leading-snug mb-0">{description}</p>- )}- {children}- </div>- </div>- )-- if (to) {- return (- <Link to={to} className={cardClassName}>- {content}- </Link>- )- }- return (- <button type="button" onClick={onClick} disabled={disabled} className={cardClassName}>- {content}- </button>- )-}--function SignalSourcesWidget(): JSX.Element {- const { sourceConfigs, enabledSourcesCount } = useValues(signalSourcesLogic)- const { openSetupModal } = useActions(agentSetupModalLogic)- const hasAny = enabledSourcesCount > 0- return (- <SetupWidgetCard- icon={<IconBolt />}- title="Signal sources"- size="lg"- tone={hasAny ? 'done' : 'todo'}- loading={sourceConfigs === null}- status={hasAny ? `${enabledSourcesCount} watching` : 'None active yet'}- description="Each source watches for signals, and spins up an agent to look into them."- onClick={() => openSetupModal('signal-sources')}- />- )-}--function ScoutTroopWidget(): JSX.Element {- useMountedLogic(scoutFleetLogic)- const { scoutConfigs, enabledCount } = useValues(scoutFleetLogic)- const hasAny = enabledCount > 0- return (- <SetupWidgetCard- icon={<IconCompass />}- title="Scout troop"- size="lg"- tone={hasAny ? 'done' : 'todo'}- loading={scoutConfigs === null}- status={hasAny ? `${enabledCount} on patrol` : 'No scouts running'}- description="Scheduled agents that sweep this project on a cadence and report signals."- to={urls.inbox('scouts')}- />- )-}--function CodeAccessWidget(): JSX.Element {- const { getIntegrationsByKind, integrations, integrationsLoading } = useValues(integrationsLogic)- const { loadIntegrations, startPolling, stopPolling } = useActions(integrationsLogic)- const { openSetupModal } = useActions(agentSetupModalLogic)- const hasGithub = getIntegrationsByKind(['github']).length > 0- // The loader keeps its last list on failure, so a null list after loading means the first fetch failed.- const loadFailed = integrations === null && !integrationsLoading- // Background polls keep the last known status on screen; only a load with no list yet shows the skeleton.- const firstLoadInFlight = integrations === null && integrationsLoading-- // The GitHub App install finishes on github.com and returns to a settings page, often in another tab.- // Refetch on an interval and on window focus until GitHub shows up, so the card does not stay stale.- useEffect(() => {- if (hasGithub) {- return- }- startPolling()- return () => stopPolling()- }, [hasGithub]) // eslint-disable-line react-hooks/exhaustive-deps-- return (- <SetupWidgetCard- icon={<IconGithub />}- title="Code access"- size="md"- tone={hasGithub ? 'done' : loadFailed ? 'neutral' : 'todo'}- loading={firstLoadInFlight}- disabled={firstLoadInFlight}- status={- hasGithub- ? 'GitHub connected'- : loadFailed- ? "Couldn't check GitHub. Click to retry."- : 'Foundational. Connect to start.'- }- onClick={() => (loadFailed ? loadIntegrations() : openSetupModal('github'))}- />- )-}--function NotificationsWidget(): JSX.Element {- useMountedLogic(userAutonomyLogic)- const { slackIntegrations, integrationsLoading } = useValues(integrationsLogic)- const { autonomyConfig } = useValues(userAutonomyLogic)- const { teamConfig } = useValues(signalTeamConfigLogic)- const { openSetupModal } = useActions(agentSetupModalLogic)-- // Either target counts as set up: the team-wide channel catches every actionable report,- // the personal channel pings the suggested reviewer. The status names each configured one.- const teamChannel = teamConfig?.default_slack_notification_channel ?? null- const userChannel = autonomyConfig?.slack_notification_channel ?? null- const channelLabels = [- teamChannel ? `Team ${slackChannelDisplayName(teamChannel)}` : null,- userChannel ? `You ${slackChannelDisplayName(userChannel)}` : null,- ].filter(Boolean)- const notifying = (slackIntegrations?.length ?? 0) > 0 && channelLabels.length > 0- return (- <SetupWidgetCard- icon={<IconSlack className="grayscale" />}- title="Notifications"- size="md"- tone={notifying ? 'done' : 'todo'}- loading={integrationsLoading && slackIntegrations === undefined}- status={notifying ? channelLabels.join(' · ') : 'Not connected'}- onClick={() => openSetupModal('slack')}- />- )-}--/**- * The GitHub OAuth round trip returns to `next`, and this modal opens from the rail beside any of the- * list tabs – so `next` has to be wherever the user actually started, not a fixed tab. `setup=github`- * comes back with them so the modal reopens showing the result.- */-function GithubSetupBody(): JSX.Element {- const { location, searchParams } = useValues(router)- return (- <div className="flex flex-col gap-3">- <GithubIntegration- next={combineUrl(location.pathname, { ...searchParams, setup: 'github' }).url}- connectSurface="signals_agent_setup"- />- <RepoRoutingRules />- </div>- )-}--const SETUP_MODALS: Record<- AgentSetupModalKey,- { title: string; description: string; width: number; body: JSX.Element }-> = {- 'signal-sources': {- title: 'Signal sources',- description: 'Each source watches for signals, and spins up an agent to look into them.',- width: 760,- body: <SignalSourcesPanel />,- },- slack: {- title: 'Notifications',- description: 'Get pinged in Slack when you’re a suggested reviewer on a new report.',- width: 560,- body: <SlackNotificationsSection />,- },- github: {- title: 'GitHub',- description: 'Connect GitHub so agents can read repositories and open pull requests.',- width: 760,- body: <GithubSetupBody />,- },-}--function SetupModal(): JSX.Element {- const { openModal } = useValues(agentSetupModalLogic)- const { closeSetupModal } = useActions(agentSetupModalLogic)- const config = openModal ? SETUP_MODALS[openModal] : null- return (- <LemonModal- isOpen={config !== null}- onClose={closeSetupModal}- title={config?.title ?? ''}- description={config?.description}- width={config?.width}- >- {config?.body}- </LemonModal>- )-}--/**- * The agent-setup widgets, grouped into Agents / Connections. Each widget shows- * status and nudges the user to finish that part of the setup. Signal sources and Scout troop- * (most edited) are largest; connections medium and open management modals.- *- * Rendered two ways: `rail` (a column to the right of the tabs on wide viewports) and- * `stacked` (the Configuration tab body on narrow viewports).- */-export function AgentSetupColumn({ layout }: { layout: 'rail' | 'stacked' }): JSX.Element {- useMountedLogic(integrationsLogic)- useMountedLogic(signalSourcesLogic)- // The usage widget renders nothing without the billing product, so the section title- // must hide with it rather than sit over an empty area.- const { product: inboxUsageProduct, isLoading: inboxUsageLoading } = useValues(inboxUsageLogic)-- return (- <div- className={cn(- 'flex flex-col gap-5',- layout === 'stacked' ? 'mx-auto w-full max-w-2xl px-6 py-6' : 'px-4 py-3'- )}- >- <InstallationSetupSection />- <SetupSection title="Agents">- <SignalSourcesWidget />- <ScoutTroopWidget />- <SelfDrivingSection />- </SetupSection>- <SetupSection title="Connections">- <CodeAccessWidget />- <NotificationsWidget />- </SetupSection>- {(inboxUsageProduct != null || inboxUsageLoading) && (- <SetupSection title="Usage">- <InboxUsageWidget />- </SetupSection>- )}- <SetupModal />- </div>- )-}diff --git a/products/signals/frontend/inbox/components/shell/InboxListViewLegacy.tsx b/products/signals/frontend/inbox/components/shell/InboxListViewLegacy.tsxdeleted file mode 100644index 12387541e5a6..000000000000--- a/products/signals/frontend/inbox/components/shell/InboxListViewLegacy.tsx+++ /dev/null@@ -1,149 +0,0 @@-import { useValues } from 'kea'-import { useEffect, useRef } from 'react'--import { useResizeBreakpoints } from 'lib/hooks/useResizeObserver'--import { captureInboxPanelViewed } from '../../inboxAnalytics'-import { inboxSceneLogic } from '../../inboxSceneLogic'-import { inboxOnboardingLogic } from '../../logics/inboxOnboardingLogic'-import { InboxTabKey, SignalRun } from '../../types'-import { CardSkeleton } from '../cards/CardSkeleton'-import { ScoutsRosterLegacy } from '../config/scouts/ScoutsRosterLegacy'-import { InboxOnboardingEntry } from '../onboarding/InboxOnboardingEntry'-import { ArchivedTab } from '../tabs/ArchivedTab'-import { NotActionableTab } from '../tabs/NotActionableTab'-import { PullRequestsTab } from '../tabs/PullRequestsTab'-import { ReportsTabLegacy } from '../tabs/ReportsTabLegacy'-import { RunsTab } from '../tabs/RunsTab'-import { AgentSetupColumn } from './AgentSetupColumn'-import { InboxScopeSelect } from './InboxScopeSelect'-import { InboxTabBarLegacy } from './InboxTabBarLegacy'--/** Min scene-container width at which the setup rail fits beside the list. */-const SETUP_RAIL_MIN_PX = 1024--/** Tabs that show the centered report list (scope chrome in the header). Runs/Configuration are special. */-function isReportListTab(tab: InboxTabKey): boolean {- return tab === 'pulls' || tab === 'reports' || tab === 'not-actionable' || tab === 'archived'-}--function ActiveTabBody({- tab,- signalRuns,- signalRunsLoading,-}: {- tab: InboxTabKey- signalRuns: SignalRun[]- signalRunsLoading: boolean-}): JSX.Element | null {- switch (tab) {- case 'pulls':- return <PullRequestsTab />- case 'reports':- return <ReportsTabLegacy />- case 'not-actionable':- return <NotActionableTab />- case 'archived':- return <ArchivedTab />- case 'scouts':- return <ScoutsRosterLegacy />- case 'runs':- return <RunsTab runs={signalRuns} loading={signalRunsLoading} />- case 'config':- return <AgentSetupColumn layout="stacked" />- // The redesign's Settings tab is redirected to Configuration before it can become active.- case 'settings':- return null- }-}--/**- * The inbox list view with the redesign flag off: a tab bar + scope select over the active tab's- * body, with the agent-setup widgets to the right as a rail when the scene is wide enough- * (≥ ~72rem). Below that width the rail is dropped and the widgets live in a Configuration tab- * instead. Each flat report tab (Pull requests / Reports / Not actionable) owns its own filtered- * request, count, search/filter chrome, and pagination via the keyed `reportListLogic`. Runs is- * project-wide and chrome-less.- */-export function InboxListViewLegacy(): JSX.Element {- const { activeTab, signalRuns, signalRunsLoading } = useValues(inboxSceneLogic)- const { onboardingMode } = useValues(inboxOnboardingLogic)- const { ref: widthRef, size } = useResizeBreakpoints(- { 0: 'narrow', [SETUP_RAIL_MIN_PX]: 'wide' },- { initialSize: 'wide' }- )- const wide = size === 'wide'- // Self-driving isn't set up and the inbox is empty: the welcome page replaces the whole list- // view, tab bar included. The setup rail is dropped too, so the onboarding is the whole story –- // just run the one command.- const onboarding = onboardingMode === 'takeover'- // The takeover verdict is still settling: commit to neither UI. Rendering the tab bar or the- // rail here is what caused the normal inbox to flash in and get replaced by the welcome page.- const pending = onboardingMode === 'pending'- // The Scouts tab is a full-width table, and the rail's own scout widget just links here — so- // the rail would be both redundant and the reason the table has nowhere to breathe.- const showRail = wide && !onboarding && !pending && activeTab !== 'scouts'- // The rail and the Configuration tab are mutually exclusive – never leave 'config' active- // (e.g. via a deep link) while the rail shows, or the rail and a config body would both appear.- const effectiveTab = showRail && activeTab === 'config' ? 'pulls' : activeTab-- // Runs and Configuration don't render `InboxReportList`, so `Inbox viewed` never fires for them.- // Same once-per-visit guard as the report list: hold Runs until its load settles so the count is real.- const panelViewFiredRef = useRef<string | null>(null)- useEffect(() => {- if (effectiveTab !== 'runs' && effectiveTab !== 'config') {- panelViewFiredRef.current = null- return- }- if (effectiveTab === 'runs' && signalRunsLoading) {- return- }- if (panelViewFiredRef.current === effectiveTab) {- return- }- panelViewFiredRef.current = effectiveTab- captureInboxPanelViewed({- panel: effectiveTab,- itemCount: effectiveTab === 'runs' ? signalRuns.length : null,- })- }, [effectiveTab, signalRunsLoading, signalRuns.length])-- return (- <div ref={widthRef} className="flex min-h-0 flex-1">- <div className="flex flex-col min-h-0 flex-1 min-w-0">- {/* pl-5 (20px) aligns the first tab label with the SceneTitleSection description above;- pr-6 matches the report list's px-6 so the scope select shares the list's right edge. */}- {!onboarding && !pending && (- <div className="flex items-end justify-between gap-2 border-b border-primary pl-5 pr-6 shrink-0">- <InboxTabBarLegacy showConfigTab={!wide} />- {isReportListTab(effectiveTab) && (- <div className="pb-1.5">- <InboxScopeSelect />- </div>- )}- </div>- )}- <div className="flex-1 overflow-auto min-h-0">- {pending ? (- <div className="mx-auto max-w-4xl px-6 py-4">- <CardSkeleton count={4} variant="cards" />- </div>- ) : onboarding ? (- <InboxOnboardingEntry />- ) : (- <ActiveTabBody- tab={effectiveTab}- signalRuns={signalRuns}- signalRunsLoading={signalRunsLoading}- />- )}- </div>- </div>- {showRail && (- <aside className="shrink-0 w-80 overflow-auto min-h-0 border-l border-primary">- <AgentSetupColumn layout="rail" />- </aside>- )}- </div>- )-}diff --git a/products/signals/frontend/inbox/components/shell/InboxScopeFilter.tsx b/products/signals/frontend/inbox/components/shell/InboxScopeFilter.tsxindex 0eca5dc47213..bc65b1fe2443 100644--- a/products/signals/frontend/inbox/components/shell/InboxScopeFilter.tsx+++ b/products/signals/frontend/inbox/components/shell/InboxScopeFilter.tsx@@ -39,8 +39,7 @@ function getReviewerOptions(* Single-dropdown reviewer scope for the flat Reports list: one trigger that names the current* scope and opens the shared people picker with "Entire project" and each teammate. Selecting* yourself uses the "For you" scope. A user with no reports suggested to them is- * auto-switched to "Entire project" (see `shouldDefaultToEntireProject`). The legacy layout keeps- * the two-segment `InboxScopeSelect` until the redesign flag replaces it. Scope is persisted via+ * auto-switched to "Entire project" (see `shouldDefaultToEntireProject`). Scope is persisted via* `inboxFiltersLogic`; teammates come from its shared `availableReviewers` loader.*/export function InboxScopeFilter(): JSX.Element {diff --git a/products/signals/frontend/inbox/components/shell/InboxScopeSelect.tsx b/products/signals/frontend/inbox/components/shell/InboxScopeSelect.tsxdeleted file mode 100644index 1efae5be87d8..000000000000--- a/products/signals/frontend/inbox/components/shell/InboxScopeSelect.tsx+++ /dev/null@@ -1,76 +0,0 @@-import { useActions, useValues } from 'kea'--import { IconChevronDown } from '@posthog/icons'-import { LemonButton } from '@posthog/lemon-ui'--import { MemberSelect } from 'lib/components/MemberSelect'--import { parseTeammateInboxScope, teammateInboxScope } from '../../inboxMembership'-import { inboxFiltersLogic } from '../../logics/inboxFiltersLogic'-import { INBOX_SCOPE_ENTIRE_PROJECT, INBOX_SCOPE_FOR_YOU, InboxScope } from '../../types'--export function InboxScopeSelect(): JSX.Element {- const {- scope,- availableReviewers: reviewers,- availableReviewersLoading,- knownTeammate,- } = useValues(inboxFiltersLogic)- const { setScope, searchAvailableReviewers, setKnownTeammate } = useActions(inboxFiltersLogic)-- const selectedUuid = parseTeammateInboxScope(scope)- const selectedTeammate = reviewers.find((reviewer) => reviewer.user_uuid === selectedUuid)- const selectedLabel = selectedTeammate ? selectedTeammate.name || selectedTeammate.email : null-- const rightLabel = selectedUuid- ? (selectedLabel ?? (knownTeammate?.uuid === selectedUuid ? knownTeammate.label : null) ?? 'Teammate')- : 'Entire project'-- const pick = (next: InboxScope, label?: string): void => {- const nextUuid = parseTeammateInboxScope(next)- if (nextUuid && label) {- setKnownTeammate(nextUuid, label)- }- setScope(next)- searchAvailableReviewers('')- }-- return (- <div className="inline-flex">- <LemonButton- size="small"- type="secondary"- active={scope === INBOX_SCOPE_FOR_YOU}- onClick={() => pick(INBOX_SCOPE_FOR_YOU)}- tooltip="Only reports where agents suggested you as a reviewer"- >- For you- </LemonButton>- <MemberSelect- value={selectedUuid}- defaultLabel="Entire project"- options={reviewers.map((reviewer) => ({- uuid: reviewer.user_uuid,- name: reviewer.name,- email: reviewer.email,- }))}- optionsLoading={availableReviewersLoading}- onSearch={searchAvailableReviewers}- onChange={() => pick(INBOX_SCOPE_ENTIRE_PROJECT)}- onSelectOption={(uuid, label) => pick(teammateInboxScope(uuid), label)}- >- {() => (- <LemonButton- size="small"- type="secondary"- active={scope !== INBOX_SCOPE_FOR_YOU}- tooltip="See every report in the project, or a specific teammate's"- sideIcon={<IconChevronDown className="text-tertiary" />}- >- <span className="max-w-[160px] truncate">{rightLabel}</span>- </LemonButton>- )}- </MemberSelect>- </div>- )-}diff --git a/products/signals/frontend/inbox/components/shell/InboxTabBarLegacy.tsx b/products/signals/frontend/inbox/components/shell/InboxTabBarLegacy.tsxdeleted file mode 100644index 667f52afde76..000000000000--- a/products/signals/frontend/inbox/components/shell/InboxTabBarLegacy.tsx+++ /dev/null@@ -1,88 +0,0 @@-import { useMountedLogic, useValues } from 'kea'-import { router } from 'kea-router'--import { LemonSkeleton, LemonTabs, LemonTag } from '@posthog/lemon-ui'--import { urls } from 'scenes/urls'--import { inboxSceneLogic } from '../../inboxSceneLogic'-import { legacyTabListLogicProps, reportListLogic } from '../../logics/reportListLogic'-import {- INBOX_FLAT_LIST_TAB_KEYS,- INBOX_STAFF_ONLY_TAB_KEYS,- INBOX_LEGACY_TAB_KEYS,- INBOX_TAB_LABEL,- INBOX_TAB_TAG,- InboxFlatListTabKey,- InboxTabKey,-} from '../../types'--function isFlatListTabKey(tab: InboxTabKey): tab is InboxFlatListTabKey {- return (INBOX_FLAT_LIST_TAB_KEYS as readonly string[]).includes(tab)-}--function isStaffOnlyTabKey(tab: InboxTabKey): boolean {- return (INBOX_STAFF_ONLY_TAB_KEYS as string[]).includes(tab)-}--/**- * Count chip for a flat report tab. Mounts that tab's `reportListLogic` so its `count`- * (a cheap `limit=1` request) is available for the badge before the tab is ever opened.- * The active tab shares the same keyed instance, so no double-fetch.- */-function FlatTabCount({ tabKey }: { tabKey: InboxFlatListTabKey }): JSX.Element {- const logic = reportListLogic(legacyTabListLogicProps(tabKey))- useMountedLogic(logic)- const { count, countLoading } = useValues(logic)- // Skeleton only while the request is genuinely in flight; on failure `count` stays null,- // so fall back to the number (0) rather than a permanent skeleton.- if (count === null && countLoading) {- return <LemonSkeleton className="h-3 w-3 rounded" />- }- return <span className="text-xs text-muted tabular-nums">{count ?? 0}</span>-}--/**- * Tab bar with the redesign flag off: Pull requests / Reports / Runs (everyone) + Not actionable (staff-only, with a- * "Staff" tag). Each flat report tab shows its own server-computed count. The Configuration tab is only- * shown when `showConfigTab` is set – i.e. when the scene is too narrow for the setup rail; on wide- * viewports the rail replaces it.- */-export function InboxTabBarLegacy({ showConfigTab }: { showConfigTab?: boolean }): JSX.Element {- const { activeTab, isStaff } = useValues(inboxSceneLogic)-- const visibleTabKeys = INBOX_LEGACY_TAB_KEYS.filter(- (key) => (key !== 'config' || showConfigTab) && (!isStaffOnlyTabKey(key) || isStaff)- )-- const tabs = visibleTabKeys.map((key) => ({- key,- label: (- <span className="flex items-center gap-1.5">- <span>{INBOX_TAB_LABEL[key]}</span>- {isFlatListTabKey(key) && <FlatTabCount tabKey={key} />}- {INBOX_TAB_TAG[key] && (- <LemonTag type={INBOX_TAB_TAG[key] === 'Alpha' ? 'warning' : 'completion'} size="small">- {INBOX_TAB_TAG[key]}- </LemonTag>- )}- </span>- ),- content: <></>,- }))-- return (- <LemonTabs<InboxTabKey>- activeKey={activeTab}- // min-w-0 lets the tab bar shrink inside the header flex row so its own overflow-x scroll- // engages on narrow/mobile widths – otherwise it grows to fit every tab and the last ones- // (e.g. Configuration) overflow off-screen with no way to reach them.- className="min-w-0"- // Hide LemonTabs' own bottom border + margin so the single full-width border lives on the- // scene header row; the active-tab slider then sits directly on that one border.- barClassName="before:hidden mb-0"- onChange={(key) => router.actions.push(urls.inbox(key))}- tabs={tabs}- />- )-}diff --git a/products/signals/frontend/inbox/components/shell/InboxUsageWidget.tsx b/products/signals/frontend/inbox/components/shell/InboxUsageWidget.tsxindex b094925f9a75..ad7072655941 100644--- a/products/signals/frontend/inbox/components/shell/InboxUsageWidget.tsx+++ b/products/signals/frontend/inbox/components/shell/InboxUsageWidget.tsx@@ -4,7 +4,6 @@ import { Form } from 'kea-forms'import { LemonButton, LemonInput, LemonModal, LemonSkeleton, LemonTag, Tooltip } from '@posthog/lemon-ui'import { BillingUpgradeCTA } from 'lib/components/BillingUpgradeCTA'-import { useFeatureFlag } from 'lib/hooks/useFeatureFlag'import { LemonField } from 'lib/lemon-ui/LemonField'import { currencyFormatter } from 'scenes/billing/billing-utils'import { billingProductLogic } from 'scenes/billing/billingProductLogic'@@ -22,13 +21,6 @@ const FILL_CLASS: Record<InboxUsageStatus, string> = {limit: 'bg-danger',}-// The Usage settings section is already a card; the legacy setup rail needs the widget to frame itself.-function cardClassName(redesign: boolean): string {- return redesign- ? 'flex flex-col gap-2'- : 'flex flex-col gap-2 rounded border border-primary bg-surface-primary px-2.5 py-2'-}-/** A single status-coloured fill over a neutral track. Width is runtime-derived, hence inline. */function UsageBar({ percentage, status }: { percentage: number; status: InboxUsageStatus }): JSX.Element {return (@@ -43,9 +35,8 @@ function UsageBar({ percentage, status }: { percentage: number; status: InboxUsa}function UsageCardSkeleton(): JSX.Element {- const redesign = useFeatureFlag('INBOX_REDESIGN')return (- <div className={cardClassName(redesign)}>+ <div className="flex flex-col gap-2"><LemonSkeleton className="h-3 w-24" /><LemonSkeleton className="h-2 w-full" /><div className="flex items-center justify-between">@@ -148,7 +139,6 @@ function EditLimitModal(): JSX.Element {* autonomy throttles in SelfDrivingSection, so a self-imposed cap never reads as a plan limit.*/export function InboxUsageWidget(): JSX.Element | null {- const redesign = useFeatureFlag('INBOX_REDESIGN')const {product,isLoading,@@ -181,7 +171,7 @@ export function InboxUsageWidget(): JSX.Element | null {// Only org admins/owners can change billing (canAccessBilling) — others get a read-only view with a hint.return (<>- <div className={cardClassName(redesign)}>+ <div className="flex flex-col gap-2"><div className="flex items-center justify-between gap-1.5"><span className="text-[13px] font-semibold text-default">Pull requests</span>{!isSubscribed ? (diff --git a/products/signals/frontend/inbox/components/shell/InstallationSetupSection.tsx b/products/signals/frontend/inbox/components/shell/InstallationSetupSection.tsxindex 69ca7968055c..a6b11ad6a759 100644--- a/products/signals/frontend/inbox/components/shell/InstallationSetupSection.tsx+++ b/products/signals/frontend/inbox/components/shell/InstallationSetupSection.tsx@@ -1,19 +1,16 @@import { useValues } from 'kea'import { useMountedLogic } from 'kea'-import { useFeatureFlag } from 'lib/hooks/useFeatureFlag'import { wizardActiveSessionDetectorLogic } from 'scenes/onboarding/shared/wizard-sync/wizardActiveSessionDetectorLogic'import { SettingsSection } from '../tabs/SettingsSection'import { InstallationCard } from './InstallationCard'-import { SetupSection } from './SetupSection'/*** The "Installation" block of the Settings tab, present only while a wizard run is in flight.* Renders its own section wrapper so the heading disappears with the run.*/export function InstallationSetupSection(): JSX.Element | null {- const redesign = useFeatureFlag('INBOX_REDESIGN')// The detector's cheap poll is what tells us a run exists at all; mounting it here means the// tab doesn't depend on the FAB being rendered to find the run.useMountedLogic(wizardActiveSessionDetectorLogic)@@ -23,13 +20,6 @@ export function InstallationSetupSection(): JSX.Element | null {return null}- if (!redesign) {- return (- <SetupSection title="Installation">- <InstallationCard workflowId={activeWorkflowId} />- </SetupSection>- )- }return (<SettingsSection title="Installation" description="The setup agent is still running in your repository."><InstallationCard workflowId={activeWorkflowId} />diff --git a/products/signals/frontend/inbox/components/shell/SetupSection.tsx b/products/signals/frontend/inbox/components/shell/SetupSection.tsxdeleted file mode 100644index 4a6a7a939120..000000000000--- a/products/signals/frontend/inbox/components/shell/SetupSection.tsx+++ /dev/null@@ -1,10 +0,0 @@-/** Section heading styled like a LemonTabs label (same 14px scale, tertiary color) so the- * rail reads as a sibling of the tab bar rather than a louder header. */-export function SetupSection({ title, children }: { title: string; children: React.ReactNode }): JSX.Element {- return (- <div className="flex flex-col">- <h4 className="text-sm font-medium text-tertiary mt-0 mb-3.5">{title}</h4>- <div className="flex flex-col gap-1.5">{children}</div>- </div>- )-}diff --git a/products/signals/frontend/inbox/components/shell/agentSetupModalLogic.test.ts b/products/signals/frontend/inbox/components/shell/agentSetupModalLogic.test.tsdeleted file mode 100644index 0d3d1bd700b7..000000000000--- a/products/signals/frontend/inbox/components/shell/agentSetupModalLogic.test.ts+++ /dev/null@@ -1,53 +0,0 @@-import { router } from 'kea-router'--import { initKeaTests } from '~/test/init'--import { agentSetupModalLogic } from './agentSetupModalLogic'--describe('agentSetupModalLogic', () => {- let logic: ReturnType<typeof agentSetupModalLogic.build>-- beforeEach(() => {- initKeaTests()- })-- afterEach(() => {- logic?.unmount()- })-- it('does not open inbox setup from the standalone trials page', () => {- router.actions.push('/inbox/scout-trials', { setup: 'github' })- logic = agentSetupModalLogic()- logic.mount()-- expect(logic.values.openModal).toBeNull()- })-- it.each(['github', 'signal-sources'] as const)(- 'restores the %s modal from the callback URL and removes callback parameters when closed',- (setup) => {- router.actions.push('/inbox/config', {- setup,- signal_source: 'intercom',- integration_error: 'access_denied',- integration_id: '12',- installation_id: '34',- github_setup_error: 'pending',- error_message: 'Try again',- github_install_pending: '1',- source: 'saved-filter',- })- const callbackPath = router.values.location.pathname-- logic = agentSetupModalLogic()- logic.mount()-- expect(logic.values.openModal).toBe(setup)-- logic.actions.closeSetupModal()-- expect(router.values.location.pathname).toBe(callbackPath)- expect(router.values.searchParams).toEqual({ source: 'saved-filter' })- }- )-})diff --git a/products/signals/frontend/inbox/components/shell/agentSetupModalLogic.ts b/products/signals/frontend/inbox/components/shell/agentSetupModalLogic.tsdeleted file mode 100644index a12bc942e39c..000000000000--- a/products/signals/frontend/inbox/components/shell/agentSetupModalLogic.ts+++ /dev/null@@ -1,93 +0,0 @@-import { MakeLogicType, actions, kea, listeners, path, reducers } from 'kea'-import { router, urlToAction } from 'kea-router'--import { urls } from 'scenes/urls'--/** Setup widgets whose management UI opens in a modal. */-export type AgentSetupModalKey = 'signal-sources' | 'slack' | 'github'--// Generated by kea-typegen. Update if you're an agent, ignore if you're human.-export interface agentSetupModalLogicValues {- openModal: AgentSetupModalKey | null-}--// Generated by kea-typegen. Update if you're an agent, ignore if you're human.-export interface agentSetupModalLogicActions {- closeSetupModal: () => {- value: true- }- openSetupModal: (key: AgentSetupModalKey) => {- key: AgentSetupModalKey- }-}--export type agentSetupModalLogicType = MakeLogicType<agentSetupModalLogicValues, agentSetupModalLogicActions>--export const agentSetupModalLogic = kea<agentSetupModalLogicType>([- path(['scenes', 'inbox', 'components', 'shell', 'agentSetupModalLogic']),-- actions({- openSetupModal: (key: AgentSetupModalKey) => ({ key }),- closeSetupModal: true,- }),-- reducers({- openModal: [- null as AgentSetupModalKey | null,- {- openSetupModal: (_, { key }) => key,- closeSetupModal: () => null,- },- ],- }),-- listeners({- openSetupModal: ({ key }) => {- if (key !== 'github' || router.values.searchParams.setup === 'github') {- return- }- router.actions.replace(- router.values.location.pathname,- { ...router.values.searchParams, setup: 'github' },- router.values.hashParams- )- },- closeSetupModal: () => {- if (- router.values.searchParams.setup !== 'github' &&- router.values.searchParams.setup !== 'signal-sources'- ) {- return- }- const {- setup: _setup,- integration_id: _integrationId,- installation_id: _installationId,- github_setup_error: _githubSetupError,- error_message: _errorMessage,- github_install_pending: _githubInstallPending,- signal_source: _signalSource,- integration_error: _integrationError,- ...searchParams- } = router.values.searchParams- router.actions.replace(router.values.location.pathname, searchParams, router.values.hashParams)- },- }),-- urlToAction(({ actions, values }) => {- function restoreSetupModal(searchParams: Record<string, unknown>): void {- const key = searchParams.setup- if ((key === 'github' || key === 'signal-sources') && values.openModal !== key) {- actions.openSetupModal(key)- }- }- return {- [urls.inbox()]: (_, searchParams) => restoreSetupModal(searchParams),- [urls.inbox(':tab')]: ({ tab }, searchParams) => {- if (tab !== 'scout-trials') {- restoreSetupModal(searchParams)- }- },- }- }),-])diff --git a/products/signals/frontend/inbox/components/signalCards/ConversationsTicketSignalCard.tsx b/products/signals/frontend/inbox/components/signalCards/ConversationsTicketSignalCard.tsxindex e38e87d3fb6a..18ecd2d6fd86 100644--- a/products/signals/frontend/inbox/components/signalCards/ConversationsTicketSignalCard.tsx+++ b/products/signals/frontend/inbox/components/signalCards/ConversationsTicketSignalCard.tsx@@ -3,7 +3,6 @@ import { useState } from 'react'import { IconChevronRight, IconImage } from '@posthog/icons'import { Link } from '@posthog/lemon-ui'-import { useFeatureFlag } from 'lib/hooks/useFeatureFlag'import { LemonMarkdown } from 'lib/lemon-ui/LemonMarkdown'import { isTrustedPostHogUrl } from 'lib/utils/trustedUrl'@@ -67,10 +66,8 @@ function TicketImageThumbnail({ image }: { image: ConversationsTicketImageApi })}export function ConversationsTicketSignalCard({ signal }: SignalCardProps): JSX.Element {- const redesign = useFeatureFlag('INBOX_REDESIGN')const extra = ticketExtra(signal.extra)- // Attachment thumbnails are part of the redesign's evidence rail.- const images = redesign && Array.isArray(extra.images) ? extra.images : []+ const images = Array.isArray(extra.images) ? extra.images : []const ticketUrl = conversationsTicketUrl(signal)return (diff --git a/products/signals/frontend/inbox/components/signalCards/GenericSignalCard.tsx b/products/signals/frontend/inbox/components/signalCards/GenericSignalCard.tsxindex 1e699f388d5e..d10d71a3f884 100644--- a/products/signals/frontend/inbox/components/signalCards/GenericSignalCard.tsx+++ b/products/signals/frontend/inbox/components/signalCards/GenericSignalCard.tsx@@ -1,7 +1,6 @@import { IconExternal } from '@posthog/icons'import { Link } from '@posthog/lemon-ui'-import { useFeatureFlag } from 'lib/hooks/useFeatureFlag'import { LemonMarkdown } from 'lib/lemon-ui/LemonMarkdown'import { genericSignalLink } from '../../utils/signalLinks'@@ -10,12 +9,10 @@ import type { SignalCardProps } from './types'/*** Fallback card for a source without a dedicated renderer, or a payload that doesn't satisfy its- * renderer's guard. Under the redesign it still links out to the underlying object whenever the- * signal identifies it.+ * renderer's guard. It still links out to the underlying object whenever the signal identifies it.*/export function GenericSignalCard({ signal }: SignalCardProps): JSX.Element {- const redesign = useFeatureFlag('INBOX_REDESIGN')- const link = redesign ? genericSignalLink(signal) : null+ const link = genericSignalLink(signal)return (<SignalCardShell signal={signal}>{signal.content && (diff --git a/products/signals/frontend/inbox/components/signalCards/SessionReplaySignalCard.tsx b/products/signals/frontend/inbox/components/signalCards/SessionReplaySignalCard.tsxindex 6a4e3af9fe2a..dd2f3924a6ac 100644--- a/products/signals/frontend/inbox/components/signalCards/SessionReplaySignalCard.tsx+++ b/products/signals/frontend/inbox/components/signalCards/SessionReplaySignalCard.tsx@@ -7,7 +7,6 @@ import { LemonButton } from '@posthog/lemon-ui'import { sessionRecordingInfoLogic } from 'lib/components/ViewRecordingButton/sessionRecordingInfoLogic'import ViewRecordingButton, { RecordingPlayerType } from 'lib/components/ViewRecordingButton/ViewRecordingButton'import { Dayjs, dayjs } from 'lib/dayjs'-import { useFeatureFlag } from 'lib/hooks/useFeatureFlag'import { LemonMarkdown } from 'lib/lemon-ui/LemonMarkdown'import { humanFriendlyDuration, reverseColonDelimitedDuration } from 'lib/utils/durations'import { teamLogic } from 'scenes/teamLogic'@@ -100,7 +99,6 @@ function TimelineRow({/** Live card for a session-replay problem segment: a replay link-out and an event timeline. */export function SessionReplaySignalCard({ signal }: SignalCardProps): JSX.Element {- const redesign = useFeatureFlag('INBOX_REDESIGN')const [showAllEvents, setShowAllEvents] = useState(false)const extra = signal.extra as Record<string, unknown> & SessionProblemSignalExtraApi@@ -129,9 +127,9 @@ export function SessionReplaySignalCard({ signal }: SignalCardProps): JSX.Elemen)}{/* Both open the recording at the segment in the player modal and disable when it wasn't- captured. Under the redesign the screenshot frame is used when the emitter exported- one, since it shows what the user saw without opening the player. */}- {redesign && typeof extra.exported_asset_id === 'number' ? (+ captured. The screenshot frame is used when the emitter exported one, since it shows+ what the user saw without opening the player. */}+ {typeof extra.exported_asset_id === 'number' ? (<RecordingPreviewsessionId={extra.session_id}seekTime={segmentSeekTime}diff --git a/products/signals/frontend/inbox/components/signalCards/SignalCards.stories.tsx b/products/signals/frontend/inbox/components/signalCards/SignalCards.stories.tsxindex 938602e80a31..f156272b7225 100644--- a/products/signals/frontend/inbox/components/signalCards/SignalCards.stories.tsx+++ b/products/signals/frontend/inbox/components/signalCards/SignalCards.stories.tsx@@ -1,7 +1,6 @@import type { Meta, StoryObj } from '@storybook/react'import { HttpResponse } from 'msw'-import { FEATURE_FLAGS } from 'lib/constants'import type { SignalNode } from 'scenes/debug/signals/types'import { mswDecorator } from '~/mocks/browser'@@ -403,8 +402,6 @@ const meta: Meta = {layout: 'padded',viewMode: 'story',mockDate: '2026-06-11',- // The evidence links and previews are part of the redesign.- featureFlags: { [FEATURE_FLAGS.INBOX_REDESIGN]: true },},decorators: [mswDecorator({diff --git a/products/signals/frontend/inbox/components/tabs/ArchivedTab.tsx b/products/signals/frontend/inbox/components/tabs/ArchivedTab.tsxdeleted file mode 100644index ad4a3ba5c3f6..000000000000--- a/products/signals/frontend/inbox/components/tabs/ArchivedTab.tsx+++ /dev/null@@ -1,24 +0,0 @@-import { IconArchive } from '@posthog/icons'--import { ReportCard } from '../cards/ReportCard'-import { InboxReportList } from '../InboxReportList'--/**- * Terminal reports: ones the user dismissed (status `suppressed`, restorable via a Restore action)- * and ones resolved by a merged implementation PR (status `resolved`, shown for reference only).- * Same flat-list primitive as the other report tabs – only the filter differs.- */-export function ArchivedTab(): JSX.Element {- return (- <InboxReportList- tabKey="archived"- Card={ReportCard}- emptyState={{- icon: <IconArchive className="text-2xl" />,- title: 'Nothing archived',- description:- 'Reports you archive land here, where you can restore them to the inbox. Resolved reports also appear here for reference.',- }}- />- )-}diff --git a/products/signals/frontend/inbox/components/tabs/InboxTabs.stories.tsx b/products/signals/frontend/inbox/components/tabs/InboxTabs.stories.tsxindex 50194c2c8f77..ca0edbabc784 100644--- a/products/signals/frontend/inbox/components/tabs/InboxTabs.stories.tsx+++ b/products/signals/frontend/inbox/components/tabs/InboxTabs.stories.tsx@@ -11,9 +11,7 @@ import { mswDecorator } from '~/mocks/browser'import { mockSourceMetadata, pullRequestReports, reportTabReports } from '../../__mocks__/inboxMocks'import { inboxSceneLogic } from '../../inboxSceneLogic'import { SignalReport, SignalRun } from '../../types'-import { PullRequestsTab } from './PullRequestsTab'import { ReportsTab } from './ReportsTab'-import { ReportsTabLegacy } from './ReportsTabLegacy'import { RunsTab } from './RunsTab'// Stories for the inbox tab bodies. The Reports tab loads each report state via `reportListLogic`,@@ -85,7 +83,7 @@ const meta: Meta = {layout: 'fullscreen',viewMode: 'story',mockDate: '2026-06-11',- featureFlags: { [FEATURE_FLAGS.INBOX_REDESIGN]: true, [FEATURE_FLAGS.SIGNALS_REPORT_METRICS]: true },+ featureFlags: { [FEATURE_FLAGS.SIGNALS_REPORT_METRICS]: true },testOptions: { waitForLoadersToDisappear: false },},}@@ -134,24 +132,3 @@ export const RunsEmpty: Story = {</div>),}--// The flat tabs with the redesign flag off: one list per tab under the search and filter bar.-export const ReportsLegacy: Story = {- parameters: { featureFlags: { [FEATURE_FLAGS.INBOX_REDESIGN]: false } },- decorators: [reportsListDecorator(reportTabReports)],- render: () => (- <div className="bg-primary min-h-screen">- <ReportsTabLegacy />- </div>- ),-}--export const PullRequestsLegacy: Story = {- parameters: { featureFlags: { [FEATURE_FLAGS.INBOX_REDESIGN]: false } },- decorators: [reportsListDecorator(pullRequestReports)],- render: () => (- <div className="bg-primary min-h-screen">- <PullRequestsTab />- </div>- ),-}diff --git a/products/signals/frontend/inbox/components/tabs/NotActionableTab.tsx b/products/signals/frontend/inbox/components/tabs/NotActionableTab.tsxdeleted file mode 100644index 6f917a1e2ec2..000000000000--- a/products/signals/frontend/inbox/components/tabs/NotActionableTab.tsx+++ /dev/null@@ -1,24 +0,0 @@-import { IconInfo } from '@posthog/icons'--import { ReportCard } from '../cards/ReportCard'-import { InboxReportList } from '../InboxReportList'--/**- * Staff-only (internal) tab listing reports the agent judged `not_actionable`.- * Same primitive as Pull requests / Reports – only the filter differs. Useful for- * debugging signal quality.- */-export function NotActionableTab(): JSX.Element {- return (- <InboxReportList- tabKey="not-actionable"- Card={ReportCard}- emptyState={{- icon: <IconInfo className="text-2xl" />,- title: 'Nothing judged not-actionable',- description:- 'Reports the agent decided are not actionable land here, so the team can audit signal quality.',- }}- />- )-}diff --git a/products/signals/frontend/inbox/components/tabs/PullRequestsTab.tsx b/products/signals/frontend/inbox/components/tabs/PullRequestsTab.tsxdeleted file mode 100644index 53567003e348..000000000000--- a/products/signals/frontend/inbox/components/tabs/PullRequestsTab.tsx+++ /dev/null@@ -1,7 +0,0 @@-import { ReportCard } from '../cards/ReportCard'-import { InboxWaitingForWork } from '../emptyState/InboxWaitingForWork'-import { InboxReportList } from '../InboxReportList'--export function PullRequestsTab(): JSX.Element {- return <InboxReportList tabKey="pulls" Card={ReportCard} emptyState={{ content: <InboxWaitingForWork /> }} />-}diff --git a/products/signals/frontend/inbox/components/tabs/ReportsTab.test.tsx b/products/signals/frontend/inbox/components/tabs/ReportsTab.test.tsxindex 7acb4407e6c5..3c8159c522f9 100644--- a/products/signals/frontend/inbox/components/tabs/ReportsTab.test.tsx+++ b/products/signals/frontend/inbox/components/tabs/ReportsTab.test.tsx@@ -18,10 +18,10 @@ import { ReportsTab } from './ReportsTab'jest.mock('posthog-js')// The filters, scope, and bulk bar each pull in their own endpoints; these tests are about what the-// flat list renders and reports as a whole. The card mock keeps a row identifiable without the full-// card DOM.-jest.mock('../cards/ReportCard', () => ({- ReportCard: ({ report, sectionKey }: { report: SignalReport; sectionKey: InboxReportSectionKey }) => (+// flat list renders and reports as a whole. The row mock keeps a row and its state identifiable+// without the full card DOM.+jest.mock('../cards/ReportContextMenu', () => ({+ ReportContextMenu: ({ report, sectionKey }: { report: SignalReport; sectionKey: InboxReportSectionKey }) => (<div data-attr={`report-card-${report.id}`} data-section={sectionKey} />),}))diff --git a/products/signals/frontend/inbox/components/tabs/ReportsTab.tsx b/products/signals/frontend/inbox/components/tabs/ReportsTab.tsxindex 3c19391c9d53..c799083082ff 100644--- a/products/signals/frontend/inbox/components/tabs/ReportsTab.tsx+++ b/products/signals/frontend/inbox/components/tabs/ReportsTab.tsx@@ -176,7 +176,6 @@ const ReportRow = memo(function ReportRow({<ReportContextMenu report={report} sectionKey={sectionKey}><ReportCardreport={report}- sectionKey={sectionKey}selectablerankingSortField={rankingSortField}timestampField={timestampField}diff --git a/products/signals/frontend/inbox/components/tabs/ReportsTabLegacy.tsx b/products/signals/frontend/inbox/components/tabs/ReportsTabLegacy.tsxdeleted file mode 100644index 71b052024d5b..000000000000--- a/products/signals/frontend/inbox/components/tabs/ReportsTabLegacy.tsx+++ /dev/null@@ -1,25 +0,0 @@-import { IconNotebook } from '@posthog/icons'--import { ReportCard } from '../cards/ReportCard'-import { InboxReportList } from '../InboxReportList'-import { SelfDrivingInstallingHint } from '../SelfDrivingInstallingHint'--export function ReportsTabLegacy(): JSX.Element {- return (- <InboxReportList- tabKey="reports"- Card={ReportCard}- emptyState={{- icon: <IconNotebook className="text-2xl" />,- title: 'No reports yet',- description:- "Reports are what agents surface when there's something worth your judgment but no clean code change to draft.",- extra: (- <SelfDrivingInstallingHint>- Reports will start arriving as soon as live data comes in.- </SelfDrivingInstallingHint>- ),- }}- />- )-}diff --git a/products/signals/frontend/inbox/inboxSceneLogic.test.ts b/products/signals/frontend/inbox/inboxSceneLogic.test.tsindex f73d549b560e..b058a8782b91 100644--- a/products/signals/frontend/inbox/inboxSceneLogic.test.ts+++ b/products/signals/frontend/inbox/inboxSceneLogic.test.ts@@ -6,7 +6,6 @@ import { expectLogic } from 'kea-test-utils'import posthog from 'posthog-js'import type { CaptureOptions } from 'posthog-js'-import { FEATURE_FLAGS } from 'lib/constants'import { featureFlagLogic } from 'lib/logic/featureFlagLogic'import { urls } from 'scenes/urls'@@ -146,10 +145,7 @@ describe('inboxSceneLogic routing', () => {afterEach(() => logic?.unmount())- function mountWithRedesign(enabled: boolean): void {- featureFlagLogic.actions.setFeatureFlags([FEATURE_FLAGS.INBOX_REDESIGN], {- [FEATURE_FLAGS.INBOX_REDESIGN]: enabled,- })+ function mountLogic(): void {logic = inboxSceneLogic()logic.mount()}@@ -160,115 +156,49 @@ describe('inboxSceneLogic routing', () => {['/inbox/config', urls.inbox('settings'), 'settings'],['/inbox/runs', urls.inboxRuns(), 'scouts'],['/inbox/pulls/report-1', urls.inboxReport('reports', 'report-1'), 'reports'],- ])('under the redesign %s lands on %s', (path, expectedPath, expectedTab) => {- mountWithRedesign(true)+ ])('old-layout link %s lands on %s', (path, expectedPath, expectedTab) => {+ mountLogic()router.actions.push(path)expect(router.values.location.pathname.endsWith(expectedPath)).toBe(true)expect(logic.values.activeTab).toBe(expectedTab)})- it.each<[string, string, string]>([- ['/inbox/settings', urls.inbox('config'), 'config'],- ['/inbox/scouts/runs', urls.inbox('runs'), 'runs'],- ['/inbox/reports/triage', urls.inbox('reports'), 'reports'],- ['/inbox/pulls', urls.inbox('pulls'), 'pulls'],- ['/inbox/pulls/report-1', urls.inboxReport('pulls', 'report-1'), 'pulls'],- ])('with the flag off %s lands on %s', (path, expectedPath, expectedTab) => {- mountWithRedesign(false)- router.actions.push(path)- expect(router.values.location.pathname.endsWith(expectedPath)).toBe(true)- expect(logic.values.activeTab).toBe(expectedTab)- })-- it.each([- [true, 'reports'],- [false, 'pulls'],- ])('with the redesign flag %p a bare /inbox lands on the %s tab', (enabled, expectedTab) => {- mountWithRedesign(enabled)+ it('a bare /inbox lands on the reports tab', () => {+ mountLogic()router.actions.push(urls.inbox())- expect(logic.values.activeTab).toBe(expectedTab)- })-- // A flag that flips mid-session leaves the URL addressed to the other layout. The current URL is- // routed again for the new layout, so its surface opens rather than a tab body that renders nothing.- it.each<[boolean, string, string, string]>([- [false, '/inbox/runs', urls.inboxRuns(), 'scouts'],- [true, '/inbox/settings', urls.inbox('config'), 'config'],- ])('a mid-session flag flip (from redesign=%p) re-routes %s to %s', (initial, path, expectedPath, expectedTab) => {- mountWithRedesign(initial)- router.actions.push(path)- featureFlagLogic.actions.setFeatureFlags([FEATURE_FLAGS.INBOX_REDESIGN], {- [FEATURE_FLAGS.INBOX_REDESIGN]: !initial,- })- expect(router.values.location.pathname.endsWith(expectedPath)).toBe(true)- expect(logic.values.activeTab).toBe(expectedTab)- })-- function mountBeforeFlagsResolve(persistedRedesign: boolean): void {- // `featureFlags` persists through kea-localstorage, so a cold load routes against the value the- // last visit stored until PostHog answers. Seed that value and leave `receivedFeatureFlags` false.- window.localStorage.setItem(- 'lib.logic.featureFlagLogic.featureFlags',- JSON.stringify({ [FEATURE_FLAGS.INBOX_REDESIGN]: persistedRedesign })- )- initKeaTests()- featureFlagLogic.mount()- logic = inboxSceneLogic()- logic.mount()- }-- // On a cold load the route handlers run before PostHog returns flags. A layout redirect issued then- // would erase the surface the URL names, so the URL is held and routed again once flags land.- it.each<[string, boolean, string, (values: typeof logic.values) => boolean]>([- ['/inbox/reports/triage', true, urls.inboxTriage(), (values) => values.isTriageOpen],- ['/inbox/scouts/runs', true, urls.inboxRuns(), (values) => values.isRunsOpen],- ['/inbox/pulls', true, urls.inbox('reports'), (values) => values.activeTab === 'reports'],- ['/inbox/settings', false, urls.inbox('config'), (values) => values.activeTab === 'config'],- ])('before flags resolve %s is held, then routed for redesign=%p to %s', (path, redesign, expectedPath, opened) => {- mountBeforeFlagsResolve(!redesign)- router.actions.push(path)- expect(router.values.location.pathname.endsWith(path)).toBe(true)- expect(opened(logic.values)).toBe(false)- featureFlagLogic.actions.setFeatureFlags([FEATURE_FLAGS.INBOX_REDESIGN], {- [FEATURE_FLAGS.INBOX_REDESIGN]: redesign,- })- expect(router.values.location.pathname.endsWith(expectedPath)).toBe(true)- expect(opened(logic.values)).toBe(true)+ expect(logic.values.activeTab).toBe('reports')})// The scout page's tabs live in the URL, so a link to a scout's runs has to survive a reload.// Selecting a scout resets the tab, so the URL's tab had to be applied after that reset.describe('the scout page tab in the URL', () => {- it.each([true, false])(- 'keeps trials separate from an existing scout named trials with redesign=%p',- (redesign) => {- mountWithRedesign(redesign)- router.actions.push(urls.inboxScoutTrials())- expect(logic.values.selectedScoutSkillName).toBeNull()- expect(router.values.location.pathname.endsWith('/inbox/scout-trials')).toBe(true)- router.actions.push(urls.inboxScout('trials'))- expect(logic.values.selectedScoutSkillName).toBe('trials')- router.actions.push(urls.inboxScout('trials', 'finding-1'))- expect(logic.values.selectedScoutSkillName).toBe('trials')- expect(logic.values.selectedScoutFindingId).toBe('finding-1')- }- )+ it('keeps trials separate from an existing scout named trials', () => {+ mountLogic()+ router.actions.push(urls.inboxScoutTrials())+ expect(logic.values.selectedScoutSkillName).toBeNull()+ expect(router.values.location.pathname.endsWith('/inbox/scout-trials')).toBe(true)+ router.actions.push(urls.inboxScout('trials'))+ expect(logic.values.selectedScoutSkillName).toBe('trials')+ router.actions.push(urls.inboxScout('trials', 'finding-1'))+ expect(logic.values.selectedScoutSkillName).toBe('trials')+ expect(logic.values.selectedScoutFindingId).toBe('finding-1')+ })it.each(['runs', 'trials'] as const)('opens the %s tab a reloaded URL names', (tab) => {- mountWithRedesign(true)+ mountLogic()router.actions.push(urls.inboxScout('signals-scout-web-vitals'), { tab })expect(logic.values.selectedScoutSkillName).toBe('signals-scout-web-vitals')expect(logic.values.scoutDetailTab).toBe(tab)})it('leaves the tab on its default for a bare scout URL', () => {- mountWithRedesign(true)+ mountLogic()router.actions.push(urls.inboxScout('signals-scout-web-vitals'))expect(logic.values.scoutDetailTab).toBeNull()})it('ignores a tab the page has no pane for', () => {- mountWithRedesign(true)+ mountLogic()router.actions.push(urls.inboxScout('signals-scout-web-vitals'), { tab: 'nonsense' })expect(logic.values.scoutDetailTab).toBeNull()})@@ -276,7 +206,7 @@ describe('inboxSceneLogic routing', () => {it.each(['learned', 'trials'] as const)('writes the chosen %s tab to the URL and drops it on the default',(tab) => {- mountWithRedesign(true)+ mountLogic()router.actions.push(urls.inboxScout('signals-scout-web-vitals'))logic.actions.setScoutDetailTab(tab)expect(router.values.searchParams.tab).toBe(tab)@@ -297,7 +227,7 @@ describe('inboxSceneLogic routing', () => {{ tab: 'runs' },],])('opens %s with one history entry', (_name, path, searchParams) => {- mountWithRedesign(true)+ mountLogic()const push = jest.spyOn(router.actions, 'push')router.actions.push(path, searchParams)expect(push).toHaveBeenCalledTimes(1)@@ -305,21 +235,21 @@ describe('inboxSceneLogic routing', () => {})it('opens Signals for a finding deep-link, which is what the link is asking for', () => {- mountWithRedesign(true)+ mountLogic()router.actions.push(urls.inboxScout('signals-scout-web-vitals', 'finding-1'))expect(logic.values.scoutDetailTab).toBe('signals')})// A finding opens on Signals, but the reader can move to another pane and share that URL.it('opens the pane a finding URL names instead of resetting to Signals', () => {- mountWithRedesign(true)+ mountLogic()router.actions.push(urls.inboxScout('signals-scout-web-vitals', 'finding-1'), { tab: 'runs' })expect(logic.values.scoutDetailTab).toBe('runs')expect(logic.values.selectedScoutFindingId).toBe('finding-1')})it('records a pane move on a finding page, and drops the param back on Signals', () => {- mountWithRedesign(true)+ mountLogic()router.actions.push(urls.inboxScout('signals-scout-web-vitals', 'finding-1'))logic.actions.setScoutDetailTab('runs')expect(router.values.location.pathname.endsWith('/finding-1')).toBe(true)@@ -329,20 +259,6 @@ describe('inboxSceneLogic routing', () => {})})- // A held report deep-link still opens the report under the persisted layout, so the page is not- // empty while flags load; the replay only settles the tab once the layout is known.- it('before flags resolve /inbox/pulls/<id> opens the report and lands on Reports once the redesign resolves', () => {- mountBeforeFlagsResolve(true)- router.actions.push('/inbox/pulls/report-1')- expect(logic.values.selectedReportId).toBe('report-1')- featureFlagLogic.actions.setFeatureFlags([FEATURE_FLAGS.INBOX_REDESIGN], {- [FEATURE_FLAGS.INBOX_REDESIGN]: true,- })- expect(router.values.location.pathname.endsWith(urls.inboxReport('reports', 'report-1'))).toBe(true)- expect(logic.values.selectedReportId).toBe('report-1')- expect(logic.values.activeTab).toBe('reports')- })-// The triage card's "Full report" link opens the report by URL (with a triage `back`), not through// `openCurrent`, so the open-method must be recovered from that `back` or triage opens split between// the `triage` and `click` analytics values.@@ -350,7 +266,7 @@ describe('inboxSceneLogic routing', () => {['a triage back link records the triage open method', true, 'triage'],['a plain report deep-link is not attributed to triage', false, 'deeplink'],])('%s', async (_name, withTriageBack, expectedMethod) => {- mountWithRedesign(true)+ mountLogic()const url = withTriageBack? combineUrl(urls.inboxReport('reports', 'r1'), {back: combineUrl(urls.inboxTriage(), { report: 'r1', at: 0 }).url,@@ -380,13 +296,13 @@ describe('inboxSceneLogic routing', () => {expected: 'deeplink',},])('a report URL loaded fresh in $where after the list was visited reads $expected', async ({ team, expected }) => {- mountWithRedesign(true)+ mountLogic()router.actions.push(urls.inbox('reports'))logic.unmount()initKeaTests(true, team)featureFlagLogic.mount()- mountWithRedesign(true)+ mountLogic()let openMethod: string | undefinedawait expectLogic(logic, () => router.actions.push(urls.inboxReport('reports', 'r1'))).toDispatchActions([@@ -418,7 +334,7 @@ describe('inboxSceneLogic routing', () => {])('a report link with $name opens as $method with link source $linkSource',async ({ source, visitedList, method, linkSource }) => {- mountWithRedesign(true)+ mountLogic()if (visitedList) {router.actions.push(urls.inbox('reports'))}@@ -458,7 +374,7 @@ describe('inboxSceneLogic routing', () => {},})const captureSpy = jest.spyOn(posthog, 'capture').mockImplementation(() => undefined as any)- mountWithRedesign(false)+ mountLogic()const listLogic = reportListLogic(sectionListLogicProps('needs-decision'))listLogic.mount()listLogic.actions.loadReports()@@ -507,7 +423,7 @@ describe('inboxSceneLogic routing', () => {},})const captureSpy = jest.spyOn(posthog, 'capture').mockImplementation(() => undefined as any)- mountWithRedesign(true)+ mountLogic()const needsDecision = reportListLogic(sectionListLogicProps('needs-decision'))const monitoring = reportListLogic(sectionListLogicProps('monitoring'))needsDecision.mount()@@ -536,7 +452,7 @@ describe('inboxSceneLogic routing', () => {it('a page unload while an open is still waiting sends the open instantly, ahead of the close', () => {const report = { id: 'r1', title: 'Crash on login' } as SignalReportconst captureSpy = jest.spyOn(posthog, 'capture').mockImplementation(() => undefined as any)- mountWithRedesign(true)+ mountLogic()// No list is mounted, so the rank never resolves and the open stays pending.logic.actions.setSelectedReportId('r1')@@ -559,7 +475,7 @@ describe('inboxSceneLogic routing', () => {// Opening a report flips `isRunsOpen` false through a mutual-exclusion reducer, not// `setRunsOpen(false)`, so the poll teardown cannot hang off the `setRunsOpen` listener alone// or it leaks two requests every few seconds for the rest of the visit.- mountWithRedesign(true)+ mountLogic()const clearSpy = jest.spyOn(global, 'clearInterval')logic.actions.setRunsOpen(true)@@ -610,7 +526,7 @@ describe('inboxSceneLogic routing', () => {it('re-fetches the open report when the tab becomes visible again', async () => {const reportGet = mockReportGet()- mountWithRedesign(true)+ mountLogic()logic.actions.setSelectedReportId('report-1')await expectLogic(logic).toDispatchActions(['loadSelectedReportSuccess'])expect(reportGet).toHaveBeenCalledTimes(1)@@ -623,7 +539,7 @@ describe('inboxSceneLogic routing', () => {it('does not re-fetch while the tab is hidden, nor with no report open', async () => {const reportGet = mockReportGet()- mountWithRedesign(true)+ mountLogic()logic.actions.setSelectedReportId('report-1')await expectLogic(logic).toDispatchActions(['loadSelectedReportSuccess'])@@ -640,7 +556,7 @@ describe('inboxSceneLogic routing', () => {const addEventListenerSpy = jest.spyOn(document, 'addEventListener')const removeEventListenerSpy = jest.spyOn(document, 'removeEventListener')try {- mountWithRedesign(true)+ mountLogic()logic.actions.setSelectedReportId('report-1')await expectLogic(logic).toDispatchActions(['loadSelectedReportSuccess'])@@ -678,7 +594,7 @@ describe('inboxSceneLogic routing', () => {},])('$case', async ({ refreshedStatus, broadcasts }) => {mockReportGet(refreshedStatus)- mountWithRedesign(true)+ mountLogic()logic.actions.setSelectedReportId('report-1')await expectLogic(logic).toDispatchActions(['loadSelectedReportSuccess'])diff --git a/products/signals/frontend/inbox/inboxSceneLogic.ts b/products/signals/frontend/inbox/inboxSceneLogic.tsindex 971589ebd0df..c255b5a4c2bb 100644--- a/products/signals/frontend/inbox/inboxSceneLogic.ts+++ b/products/signals/frontend/inbox/inboxSceneLogic.ts@@ -47,9 +47,7 @@ import type { ScoutCreateInitialValues } from './logics/scoutCreateModalLogic'import { scratchpadLogic } from './logics/scratchpadLogic'import { signalSourcesLogic } from './signalSourcesLogic'import {- INBOX_LEGACY_TAB_KEYS,INBOX_REPORT_SECTION_KEYS,- INBOX_STAFF_ONLY_TAB_KEYS,INBOX_TAB_KEYS,InboxReportSectionKey,InboxTabKey,@@ -59,7 +57,6 @@ import {SignalScoutRunSummary,} from './types'import { mergeReportRows, selectedFlatListSections } from './utils/flatReportList'-import { isInboxRedesignEnabled } from './utils/inboxRedesign'import { inboxTabRedirectPath } from './utils/inboxReportUrls'import { isReportMetricsEnabled, mergeReportMetricSnapshots, reportNeedsMetricRefresh } from './utils/reportMetrics'import { decodeScoutCreateTemplate } from './utils/scoutTemplateDeepLink'@@ -184,14 +181,9 @@ function scoutTabSearchParams(pane: ScoutDetailTab | null, findingId: string | nreturn pane && pane !== panePathImplies(findingId) ? { ...rest, tab: pane } : rest}-/** Whether a URL segment is one of the current layout's page tabs. */-function isInboxTabKey(value: string | undefined, redesign: boolean): value is InboxTabKey {- const tabKeys = (redesign ? INBOX_TAB_KEYS : INBOX_LEGACY_TAB_KEYS) as string[]- return value !== undefined && tabKeys.includes(value)-}--function isStaffOnlyTab(tab: string | undefined): boolean {- return tab !== undefined && (INBOX_STAFF_ONLY_TAB_KEYS as string[]).includes(tab)+/** Whether a URL segment is one of the inbox's page tabs. */+function isInboxTabKey(value: string | undefined): value is InboxTabKey {+ return value !== undefined && (INBOX_TAB_KEYS as string[]).includes(value)}/**@@ -271,71 +263,44 @@ function findLoadedReport(id: string): SignalReport | null {/*** Position (1-based) and size of the report's list, for `Inbox report opened` and `Inbox report- * scrolled`. Under the flat Reports list (`flatList`) the rank is rebuilt with the same selection,- * dedupe, and ordering the list rendered with, so these outcome events join to the impressions- * recorded at the same rank. With the redesign flag off each tab is its own list, so the rank is- * the position within the report's own state. Null when the report isn't in a rendered list (e.g.- * a cold deep-link).+ * scrolled`. The rank is rebuilt with the same selection, dedupe, and ordering the flat Reports list+ * rendered with, so these outcome events join to the impressions recorded at the same rank. Null+ * when the report isn't in a rendered list (e.g. a cold deep-link).*/-function findReportRank(- id: string,- flatList: boolean-): {+function findReportRank(id: string): {rank: number | nulllistSize: number | nullsection: InboxReportSectionKey | nullrankerId: string | null} {const notFound = { rank: null, listSize: null, section: null, rankerId: null }- if (flatList) {- const filterValues = inboxFiltersLogic.findMounted()?.values- if (!filterValues) {- return notFound- }- const isStaff = userLogic.findMounted()?.values.user?.is_staff ?? false- const reportsBySection = Object.fromEntries(- INBOX_REPORT_SECTION_KEYS.map((sectionKey) => [- sectionKey,- reportListLogic.findMounted({- sectionKey,- listParams: INBOX_REPORT_SECTION_LIST_PARAMS[sectionKey],- })?.values.reports ?? [],- ])- ) as Record<InboxReportSectionKey, SignalReport[]>- const rows = mergeReportRows(- reportsBySection,- selectedFlatListSections(filterValues.visibleStateFilter, isStaff),- filterValues.activeSortField,- filterValues.activeSortDirection- )- const idx = rows.findIndex((row) => row.report.id === id)- if (idx >= 0) {- const sectionKey = rows[idx].sectionKey- const rankerId =- reportListLogic.findMounted({ sectionKey, listParams: INBOX_REPORT_SECTION_LIST_PARAMS[sectionKey] })- ?.values.loadedRanker ?? null- return { rank: idx + 1, listSize: rows.length, section: sectionKey, rankerId }- }+ const filterValues = inboxFiltersLogic.findMounted()?.values+ if (!filterValues) {return notFound}- for (const sectionKey of Object.keys(INBOX_REPORT_SECTION_LIST_PARAMS) as InboxReportSectionKey[]) {- const mounted = reportListLogic.findMounted({+ const isStaff = userLogic.findMounted()?.values.user?.is_staff ?? false+ const reportsBySection = Object.fromEntries(+ INBOX_REPORT_SECTION_KEYS.map((sectionKey) => [sectionKey,- listParams: INBOX_REPORT_SECTION_LIST_PARAMS[sectionKey],- })- const reports = mounted?.values.reports- if (!reports) {- continue- }- const idx = reports.findIndex((r: SignalReport) => r.id === id)- if (idx >= 0) {- return {- rank: idx + 1,- listSize: reports.length,- section: sectionKey,- rankerId: mounted.values.loadedRanker,- }- }+ reportListLogic.findMounted({+ sectionKey,+ listParams: INBOX_REPORT_SECTION_LIST_PARAMS[sectionKey],+ })?.values.reports ?? [],+ ])+ ) as Record<InboxReportSectionKey, SignalReport[]>+ const rows = mergeReportRows(+ reportsBySection,+ selectedFlatListSections(filterValues.visibleStateFilter, isStaff),+ filterValues.activeSortField,+ filterValues.activeSortDirection+ )+ const idx = rows.findIndex((row) => row.report.id === id)+ if (idx >= 0) {+ const sectionKey = rows[idx].sectionKey+ const rankerId =+ reportListLogic.findMounted({ sectionKey, listParams: INBOX_REPORT_SECTION_LIST_PARAMS[sectionKey] })+ ?.values.loadedRanker ?? null+ return { rank: idx + 1, listSize: rows.length, section: sectionKey, rankerId }}return notFound}@@ -362,8 +327,7 @@ function captureOpenWhenRanked(cache: Record<string, any>,tracking: InboxOpenTracking,openMethod: InboxReportOpenMethod,- linkSource: InboxReportLinkSource | null,- flatList: boolean+ linkSource: InboxReportLinkSource | null): void {const previousReportId = cache.previousReportId ?? nullconst deadline = Date.now() + OPEN_RANK_WAIT_MS@@ -395,13 +359,13 @@ function captureOpenWhenRanked(// can sort above the report, which makes a rank read from the states that answered first too// small.const fireWhenReady = (firstRead: boolean): void => {- const resolved = findReportRank(tracking.report.id, flatList)+ const resolved = findReportRank(tracking.report.id)if ((firstRead && resolved.rank !== null) || reportListsSettled() || Date.now() >= deadline) {fire(resolved)}}- cache.pendingOpenCapture = (options?: CaptureOptions) => fire(findReportRank(tracking.report.id, flatList), options)+ cache.pendingOpenCapture = (options?: CaptureOptions) => fire(findReportRank(tracking.report.id), options)fireWhenReady(true)if (!cache.pendingOpenCapture) {return@@ -437,12 +401,10 @@ function inboxSurfaceUrl(values: {isFindingsOpen: booleanisRunsOpen: booleanisTriageOpen: boolean- isRedesign: boolean}): string {if (values.selectedReportId) {- // Under the redesign every report lives in the one Reports list; the legacy layout keeps the- // report under the tab that listed it, so its back control returns there.- return urls.inboxReport(values.isRedesign ? 'reports' : values.activeTab, values.selectedReportId)+ // Every report lives in the one Reports list.+ return urls.inboxReport('reports', values.selectedReportId)}if (values.selectedScoutSkillName) {return urls.inboxScout(values.selectedScoutSkillName, values.selectedScoutFindingId ?? undefined)@@ -489,30 +451,14 @@ function flushOpenReport(cache.openTracking = undefined}-/**- * Run the current inbox URL through `urlToAction` again. A `replace` to the unchanged URL still- * dispatches `locationChanged`, and the scene logic treats an unchanged scene and params as no- * navigation, so only the route handlers run.- */-function replayInboxLocation(): void {- const { pathname, search, hash } = router.values.location- const path = removeProjectIdIfPresent(pathname)- if (path !== urls.inbox() && !path.startsWith(`${urls.inbox()}/`)) {- return- }- router.actions.replace(pathname + search + hash)-}-// Generated by kea-typegen. Update if you're an agent, ignore if you're human.export interface inboxSceneLogicValues {featureFlags: FeatureFlagsSet // featureFlagLogic- receivedFeatureFlags: boolean // featureFlagLogicuser: UserType | null // userLogicactiveTab: InboxTabKeyactiveTabState: InboxTabKey | nullbreadcrumbs: Breadcrumb[]isFindingsOpen: boolean- isRedesign: booleanisRunsOpen: booleanisScratchpadOpen: booleanisStaff: boolean@@ -534,13 +480,6 @@ export interface inboxSceneLogicValues {// Generated by kea-typegen. Update if you're an agent, ignore if you're human.export interface inboxSceneLogicActions {- setFeatureFlags: (- flags: string[],- variants: Record<string, boolean | string>- ) => {- flags: string[]- variants: Record<string, boolean | string>- } // featureFlagLogicloadSourceConfigs: () => any // signalSourcesLogicapplySelectedReportMetricSnapshots: (snapshots: SignalReportMetricSnapshotsApi[]) => {snapshots: SignalReportMetricSnapshotsApi[]@@ -634,8 +573,7 @@ export interface inboxSceneLogicActions {// Generated by kea-typegen. Update if you're an agent, ignore if you're human.export interface inboxSceneLogicMeta {__keaTypeGenInternalSelectorTypes: {- isRedesign: (featureFlags: FeatureFlagsSet) => boolean- activeTab: (activeTabState: InboxTabKey | null, isRedesign: boolean) => InboxTabKey+ activeTab: (activeTabState: InboxTabKey | null) => InboxTabKeyisStaff: (user: UserType | null) => booleansignalRuns: (signalRunsResponse: SignalRun[] | null) => SignalRun[]signalRunsLoading: (signalRunsResponse: SignalRun[] | null, signalRunsResponseLoading: boolean) => boolean@@ -667,8 +605,8 @@ export const inboxSceneLogic = kea<inboxSceneLogicType>([// is dispatched through an unmounted logic, so the scene keeps it alive instead of relying on// a component (the list toolbar, the detail actions) having rendered first.logic: [inboxFiltersLogic, inboxBulkActionsLogic],- values: [userLogic, ['user'], featureFlagLogic, ['featureFlags', 'receivedFeatureFlags']],- actions: [signalSourcesLogic, ['loadSourceConfigs'], featureFlagLogic, ['setFeatureFlags']],+ values: [userLogic, ['user'], featureFlagLogic, ['featureFlags']],+ actions: [signalSourcesLogic, ['loadSourceConfigs']],})),actions({@@ -808,7 +746,7 @@ export const inboxSceneLogic = kea<inboxSceneLogicType>([setSelectedReportId: (_, { id }) => id,},],- // Null until a route sets a tab; `activeTab` fills in the layout's landing tab.+ // Null until a route sets a tab; `activeTab` fills in the landing tab.activeTabState: [null as InboxTabKey | null,{@@ -893,23 +831,12 @@ export const inboxSceneLogic = kea<inboxSceneLogicType>([}),selectors({- isRedesign: [- (s) => [s.featureFlags],- (featureFlags: FeatureFlagsSet): boolean => isInboxRedesignEnabled(featureFlags),- ],- // The landing tab differs per layout (Reports under the redesign, Pull requests with the- // flag off), and a bare `/inbox` keeps whichever tab was already active. A tab set under one- // layout can outlive a mid-session flag flip (async flag resolution, or a bookmarked URL of- // the other layout). Fall back to the layout's landing tab when the active tab is not one of- // this layout's tabs, so the body never renders a tab the active layout has no panel for.+ // A bare `/inbox` keeps whichever tab was already active, and lands on Reports before any+ // route sets one.activeTab: [- (s) => [s.activeTabState, s.isRedesign],- (activeTabState: InboxTabKey | null, isRedesign: boolean): InboxTabKey =>- activeTabState && isInboxTabKey(activeTabState, isRedesign)- ? activeTabState- : isRedesign- ? 'reports'- : 'pulls',+ (s) => [s.activeTabState],+ (activeTabState: InboxTabKey | null): InboxTabKey =>+ activeTabState && isInboxTabKey(activeTabState) ? activeTabState : 'reports',],breadcrumbs: [() => [],@@ -948,34 +875,6 @@ export const inboxSceneLogic = kea<inboxSceneLogicType>([}),listeners(({ actions, values, cache, selectors }) => ({- setFeatureFlags: (_, __, ___, previousState) => {- // Routes handled before PostHog answered ran against the flag the last visit persisted,- // and held their layout redirects (see `urlToAction`). Route the current URL again once- // the layout is known, and again on a mid-session flip, so the surface the URL names- // opens under the layout that renders.- const wasResolved = featureFlagLogic.selectors.receivedFeatureFlags(previousState)- if (wasResolved && selectors.isRedesign(previousState) === values.isRedesign) {- return- }- replayInboxLocation()- },- setActiveTab: ({ tab }) => {- // With the flag off the runs list is a tab, so its slow poll follows the tab. Under the- // redesign it is a panel and `setRunsOpen` owns the poll; it must not be touched here,- // because opening that panel also moves the tab to Scouts.- if (values.isRedesign) {- return- }- if (tab === 'runs') {- actions.loadRuns()- cache.disposables.add(() => {- const interval = setInterval(() => actions.loadRuns(), RUNS_POLL_INTERVAL_MS)- return () => clearInterval(interval)- }, 'runsPoll')- } else {- cache.disposables.dispose('runsPoll')- }- },setRunsOpen: ({ open }) => {// While the Runs panel is open, refetch on a slow poll so live runs update in place. The// keyed disposable replaces any prior poll and is torn down on close / unmount, and@@ -1051,10 +950,9 @@ export const inboxSceneLogic = kea<inboxSceneLogicType>([if (values.selectedScoutSkillName !== null) {actions.setSelectedScoutSkillName(null)}- // Under the redesign a report page is a Reports-tab surface even when reached from a- // scout page, so its back button returns to the report list. With the flag off the- // report stays under the tab that listed it.- if (values.isRedesign && values.activeTab !== 'reports') {+ // A report page is a Reports-tab surface even when reached from a scout page, so its+ // back button returns to the report list.+ if (values.activeTab !== 'reports') {actions.setActiveTab('reports')}// Reuse the list row if we already have it (instant render), then refresh from the server.@@ -1084,8 +982,7 @@ export const inboxSceneLogic = kea<inboxSceneLogicType>([cache,tracking,(cache.pendingOpenMethod as InboxReportOpenMethod | undefined) ?? 'unknown',- (cache.pendingLinkSource as InboxReportLinkSource | null | undefined) ?? null,- values.isRedesign+ (cache.pendingLinkSource as InboxReportLinkSource | null | undefined) ?? null)cache.pendingOpenMethod = undefinedcache.pendingLinkSource = undefined@@ -1128,7 +1025,7 @@ export const inboxSceneLogic = kea<inboxSceneLogicType>([return}open.scrolled = true- const { rank, listSize } = findReportRank(open.report.id, values.isRedesign)+ const { rank, listSize } = findReportRank(open.report.id)captureInboxReportScrolled({report: open.report,rank,@@ -1327,21 +1224,6 @@ export const inboxSceneLogic = kea<inboxSceneLogicType>([actions.setTriageOpen(false)}}- // A layout redirect rewrites the URL for the layout the flag names. On a cold load the- // handlers run before PostHog answers, against the flag the last visit persisted, and a- // redirect issued then would erase the surface the URL names before the `setFeatureFlags`- // listener can route it again. Hold the URL until flags land; that listener replays it.- const redirectForLayout = (- path: string,- searchParams: Record<string, any>,- hashParams: Record<string, any>- ): boolean => {- if (!values.receivedFeatureFlags) {- return false- }- router.actions.replace(path, searchParams, hashParams)- return true- }return {[urls.inboxScratchpad()]: () => {if (!values.isScratchpadOpen) {@@ -1353,22 +1235,12 @@ export const inboxSceneLogic = kea<inboxSceneLogicType>([actions.setFindingsOpen(true)}},- [urls.inboxRuns()]: (_, searchParams, hashParams) => {- // With the flag off the runs list is still the Runs tab.- if (!values.isRedesign) {- redirectForLayout(urls.inbox('runs'), searchParams, hashParams)- return- }+ [urls.inboxRuns()]: () => {if (!values.isRunsOpen) {actions.setRunsOpen(true)}},- [urls.inboxTriage()]: (_, searchParams, hashParams) => {- // Triage mode only exists under the redesign; the queue it walks is the Reports tab.- if (!values.isRedesign) {- redirectForLayout(urls.inbox('reports'), searchParams, hashParams)- return- }+ [urls.inboxTriage()]: () => {markInboxListVisited()if (!values.isTriageOpen) {actions.setTriageOpen(true)@@ -1383,29 +1255,23 @@ export const inboxSceneLogic = kea<inboxSceneLogicType>([if (tab === 'scout-trials') {return}- // Tab segments from the other inbox layout still arrive from Slack messages, bookmarks,- // and a flag that flipped between visits: send them to the surface that replaced them.- const redirectPath = inboxTabRedirectPath(tab, values.isRedesign)+ // Tab segments from the old inbox layout still arrive from Slack messages and+ // bookmarks: send them to the surface that replaced them.+ const redirectPath = inboxTabRedirectPath(tab)if (redirectPath) {- redirectForLayout(redirectPath, searchParams, hashParams)+ router.actions.replace(redirectPath, searchParams, hashParams)return}// A bare report deep-link `/inbox/<reportId>` is redirected to report form. Mark the list// as visited only when we're actually staying on a list view — otherwise the redirected// report would be misclassified as an in-app click instead of a deep-link.- if (tab && !isInboxTabKey(tab, values.isRedesign)) {+ if (tab && !isInboxTabKey(tab)) {router.actions.replace(urls.inboxReport('reports', tab), searchParams, hashParams)return}markInboxListVisited()consumeScoutTemplateHash(actions, hashParams)- // Staff-only tabs (Not actionable): bounce non-staff to the default tab. Under the- // redesign that list is a section the Reports tab hides from non-staff instead.- if (!values.isRedesign && isStaffOnlyTab(tab) && userLogic.values.user != null && !values.isStaff) {- actions.setActiveTab('pulls')- return- }- if (isInboxTabKey(tab, values.isRedesign) && values.activeTab !== tab) {+ if (isInboxTabKey(tab) && values.activeTab !== tab) {actions.setActiveTab(tab)}closeAllSurfaces()@@ -1461,27 +1327,14 @@ export const inboxSceneLogic = kea<inboxSceneLogicType>([if (!reportId) {return}- if (values.isRedesign) {- // `/inbox/pulls/<id>` and friends: the same report, now addressed through the one- // Reports list that replaced those tabs. While the redirect is held, open the- // report under this layout rather than leave the page empty until flags land.- if (- tab !== 'reports' &&- redirectForLayout(urls.inboxReport('reports', reportId), searchParams, hashParams)- ) {- return- }- if (values.activeTab !== 'reports') {- actions.setActiveTab('reports')- }- } else {- if (isStaffOnlyTab(tab) && userLogic.values.user != null && !values.isStaff) {- actions.setActiveTab('pulls')- return- }- if (isInboxTabKey(tab, false) && values.activeTab !== tab) {- actions.setActiveTab(tab)- }+ // `/inbox/pulls/<id>` and friends: the same report, now addressed through the one+ // Reports list that replaced those tabs.+ if (tab !== 'reports') {+ router.actions.replace(urls.inboxReport('reports', reportId), searchParams, hashParams)+ return+ }+ if (values.activeTab !== 'reports') {+ actions.setActiveTab('reports')}if (values.selectedReportId !== reportId) {// A `back` pointing at triage means the open came from the triage card's "Fulldiff --git a/products/signals/frontend/inbox/logics/inboxFiltersLogic.test.ts b/products/signals/frontend/inbox/logics/inboxFiltersLogic.test.tsindex 90212a19fef8..2675620b4975 100644--- a/products/signals/frontend/inbox/logics/inboxFiltersLogic.test.ts+++ b/products/signals/frontend/inbox/logics/inboxFiltersLogic.test.ts@@ -213,10 +213,7 @@ describe('inboxFiltersLogic', () => {// The flat Reports list has no `?view=` sub-view, so a query change on it must attribute to// the `reports` tab and agree with the `tab` that `Inbox viewed` sends for the same visit.- it('attributes a redesigned Reports query change to the reports tab', async () => {- featureFlagLogic.actions.setFeatureFlags([FEATURE_FLAGS.INBOX_REDESIGN], {- [FEATURE_FLAGS.INBOX_REDESIGN]: true,- })+ it('attributes a Reports query change to the reports tab', async () => {router.actions.push(urls.inbox('reports'))logic.actions.toggleState('needs-decision')await expectLogic(logic).toFinishAllListeners()diff --git a/products/signals/frontend/inbox/logics/inboxFiltersLogic.ts b/products/signals/frontend/inbox/logics/inboxFiltersLogic.tsindex b2db4615c25c..eb0a8ee1ee76 100644--- a/products/signals/frontend/inbox/logics/inboxFiltersLogic.ts+++ b/products/signals/frontend/inbox/logics/inboxFiltersLogic.ts@@ -24,7 +24,6 @@ import {import { captureInboxQueryChanged, InboxQueryChange } from '../inboxAnalytics'import { parseTeammateInboxScope } from '../inboxMembership'import {- INBOX_LEGACY_TAB_KEYS,INBOX_REPORT_SECTION_KEYS,INBOX_SCOPE_FOR_YOU,INBOX_STAFF_ONLY_REPORT_SECTION_KEYS,@@ -33,7 +32,6 @@ import {InboxScope,SignalReportPriority,} from '../types'-import { isInboxRedesignEnabled } from '../utils/inboxRedesign'/** A teammate who can be scoped to / suggested as a reviewer. Matches the `available_reviewers` API row. */export interface InboxReviewerOption {@@ -187,18 +185,16 @@ export function parseFilterSearchParams(/*** The inbox page tab the filters apply to, for the `tab` analytics property: the tab segment from- * the URL (`reports`, `scouts`, or `settings` under the redesign, or a legacy tab key), or null off- * a tab route (the scout panels, or a bare `/inbox`). The redesigned Reports tab is one flat list- * with no sub-view, so it reports `reports` and stays consistent with the `tab` that+ * the URL (`reports`, `scouts`, or `settings`), or null off a tab route (the scout panels, or a+ * bare `/inbox`). The Reports tab is one flat list with no sub-view, so it reports `reports` and stays consistent with the `tab` that* `captureInboxViewed` sends for the same visit. Read from the router rather than connected from* `inboxSceneLogic`, which already connects this logic, because the reverse edge would be a cycle.*/-function currentInboxTab(redesign: boolean): string | null {+function currentInboxTab(): string | null {const segments = router.values.location.pathname.split('/').filter(Boolean)const inboxIndex = segments.indexOf('inbox')const candidate = inboxIndex === -1 ? undefined : segments[inboxIndex + 1]- const tabKeys = (redesign ? INBOX_TAB_KEYS : INBOX_LEGACY_TAB_KEYS) as string[]- if (!candidate || !tabKeys.includes(candidate)) {+ if (!candidate || !(INBOX_TAB_KEYS as string[]).includes(candidate)) {return null}return candidate@@ -302,7 +298,6 @@ export interface inboxFiltersLogicValues {hasActiveFilters: booleanhasUserChosenScope: booleanhasUserChosenSort: boolean- isRedesign: booleanisScopedToMe: booleanknownTeammate: {label: string@@ -443,7 +438,6 @@ export interface inboxFiltersLogicMeta {createdWindow: InboxCreatedWindow | null,timeWindowAvailable: boolean) => InboxCreatedWindow | null- isRedesign: (featureFlags: FeatureFlagsSet) => booleanvisibleStateFilter: (stateFilter: (| 'dismissed'@@ -545,7 +539,7 @@ export const inboxFiltersLogic = kea<inboxFiltersLogicType>([const captureQueryChange = (change: InboxQueryChange): void =>captureInboxQueryChanged({change,- tab: currentInboxTab(values.isRedesign),+ tab: currentInboxTab(),scope: values.scope,sortField: values.activeSortField,sortDirection: values.activeSortDirection,@@ -731,7 +725,7 @@ export const inboxFiltersLogic = kea<inboxFiltersLogicType>([// Whether any server-side list-narrowing filter is active. Scope and sort are excluded: they// don't hide reports the way search/source/priority/created window do, and `clearFilters` leaves them// untouched. The state filter is also excluded: it only narrows which states the flat- // Reports list renders (client-side, redesign only), so the surfaces that need it check+ // Reports list renders (client-side), so the surfaces that need it check// `stateFilter` directly.hasActiveFilters: [(s) => [s.searchQuery, s.sourceProductFilter, s.scoutFilter, s.priorityFilter, s.activeCreatedWindow],@@ -790,10 +784,6 @@ export const inboxFiltersLogic = kea<inboxFiltersLogicType>([(createdWindow: InboxCreatedWindow | null, timeWindowAvailable: boolean): InboxCreatedWindow | null =>timeWindowAvailable ? createdWindow : null,],- isRedesign: [- (s) => [s.featureFlags],- (featureFlags: FeatureFlagsSet): boolean => isInboxRedesignEnabled(featureFlags),- ],// The stored state filter can name states the current user cannot see: a staff-only state// from a shared link, or one persisted before staff access changed. The list and the filter// control read this narrowed view, so a hidden state can never strand the list on adiff --git a/products/signals/frontend/inbox/logics/inboxTriageLogic.test.ts b/products/signals/frontend/inbox/logics/inboxTriageLogic.test.tsindex bc287f2d4ae8..30d26c36b4a3 100644--- a/products/signals/frontend/inbox/logics/inboxTriageLogic.test.ts+++ b/products/signals/frontend/inbox/logics/inboxTriageLogic.test.ts@@ -3,8 +3,6 @@ import { waitFor } from '@testing-library/react'import { router } from 'kea-router'import { expectLogic } from 'kea-test-utils'-import { FEATURE_FLAGS } from 'lib/constants'-import { featureFlagLogic } from 'lib/logic/featureFlagLogic'import { urls } from 'scenes/urls'import { useMocks } from '~/mocks/jest'@@ -74,11 +72,6 @@ describe('inboxTriageLogic', () => {},})initKeaTests()- // Triage mode is a redesign surface: with the flag off the scene redirects its URL to the list.- featureFlagLogic.mount()- featureFlagLogic.actions.setFeatureFlags([FEATURE_FLAGS.INBOX_REDESIGN], {- [FEATURE_FLAGS.INBOX_REDESIGN]: true,- })})afterEach(() => {diff --git a/products/signals/frontend/inbox/logics/reportListLogic.test.ts b/products/signals/frontend/inbox/logics/reportListLogic.test.tsindex 09c927091f7b..66f04360d53f 100644--- a/products/signals/frontend/inbox/logics/reportListLogic.test.ts+++ b/products/signals/frontend/inbox/logics/reportListLogic.test.ts@@ -48,7 +48,6 @@ describe('reportListLogic', () => {describe('shouldDefaultToEntireProject', () => {const base = {sectionKey: 'needs-decision' as InboxReportSectionKey,- primarySectionKey: 'needs-decision' as InboxReportSectionKey,scope: INBOX_SCOPE_FOR_YOU as InboxScope,hasUserChosenScope: false,hasResolvedUser: true,@@ -59,13 +58,6 @@ describe('reportListLogic', () => {expect(shouldDefaultToEntireProject(base)).toBe(true)})- // With the redesign flag off the Pull requests list is the primary section instead.- it('keys the switch on whichever section the layout treats as primary', () => {- const legacy = { ...base, primarySectionKey: 'monitoring' as InboxReportSectionKey }- expect(shouldDefaultToEntireProject({ ...legacy, sectionKey: 'monitoring' })).toBe(true)- expect(shouldDefaultToEntireProject({ ...legacy, sectionKey: 'needs-decision' })).toBe(false)- })-it.each<[string, Partial<typeof base>]>([// The user has reports assigned – keep them on For you.['user has assigned reports', { count: 3 }],diff --git a/products/signals/frontend/inbox/logics/reportListLogic.ts b/products/signals/frontend/inbox/logics/reportListLogic.tsindex 10c651a52bb1..68a0527d1f2f 100644--- a/products/signals/frontend/inbox/logics/reportListLogic.ts+++ b/products/signals/frontend/inbox/logics/reportListLogic.ts@@ -23,19 +23,15 @@ import type { SignalReportMetricSnapshotsApi } from 'products/signals/frontend/gimport { createdAfterForWindow } from '../filterOptions'import { captureInboxReportAction, type InboxReportActionSurface, setInboxServedRanker } from '../inboxAnalytics'import {- INBOX_LEGACY_PRIMARY_REPORT_SECTION_KEY,INBOX_PRIMARY_REPORT_SECTION_KEY,INBOX_SCOPE_ENTIRE_PROJECT,INBOX_SCOPE_FOR_YOU,- INBOX_LEGACY_TAB_SECTION,- InboxFlatListTabKey,InboxReportSectionKey,InboxScope,SignalReport,} from '../types'import type { SignalReportPriority } from '../types'import { DismissalFeedback, ResolveReasonValue, suppressDismissalPayload } from '../utils/dismissalReasons'-import { isInboxRedesignEnabled } from '../utils/inboxRedesign'import { isReportMetricsEnabled, mergeReportMetricSnapshots, reportNeedsMetricRefresh } from '../utils/reportMetrics'import { reportPullRequests, primaryReportPullRequest } from '../utils/reportPullRequests'import { inboxBulkActionsLogic } from './inboxBulkActionsLogic'@@ -107,21 +103,6 @@ export function sectionListLogicProps(sectionKey: InboxReportSectionKey): Reportreturn { sectionKey, listParams: INBOX_REPORT_SECTION_LIST_PARAMS[sectionKey] }}-/**- * The keyed list instance behind a legacy tab (redesign flag off). Every tab shows one section with- * that section's filter, except Archive, which lists resolved and dismissed reports together. It- * reuses the `resolved` instance with a wider filter instead of adding a section key, because the- * section keys drive analytics, `data-attr` values, and persisted collapsed state that the legacy- * tab must not extend, and the two layouts are never mounted together.- */-export function legacyTabListLogicProps(tabKey: InboxFlatListTabKey): ReportListLogicProps {- const sectionKey = INBOX_LEGACY_TAB_SECTION[tabKey]- if (tabKey === 'archived') {- return { sectionKey, listParams: { status: 'suppressed,resolved' } }- }- return { sectionKey, listParams: INBOX_REPORT_SECTION_LIST_PARAMS[sectionKey] }-}-function teammateUuidFromScope(scope: string): string | undefined {return scope.startsWith('teammate:') ? scope.slice('teammate:'.length).trim() || undefined : undefined}@@ -153,21 +134,20 @@ function requestContextFromValues(values: {/*** Whether to auto-switch the reviewer scope to Entire project on first load. True only for the- * primary section (Needs decision under the redesign, the Pull requests list with the flag off) when+ * primary section (Needs decision) when* the user is still on the (default) For-you scope, hasn't chosen a scope themselves, has resolved* to a real user, and has zero reports suggested to them — so a user with nothing assigned doesn't* land on an empty inbox. Pure so the branching is unit-testable without mounting the logic.*/export function shouldDefaultToEntireProject(input: {sectionKey: InboxReportSectionKey- primarySectionKey: InboxReportSectionKeyscope: InboxScopehasUserChosenScope: booleanhasResolvedUser: booleancount: number | null}): boolean {return (- input.sectionKey === input.primarySectionKey &&+ input.sectionKey === INBOX_PRIMARY_REPORT_SECTION_KEY &&input.scope === INBOX_SCOPE_FOR_YOU &&!input.hasUserChosenScope &&input.hasResolvedUser &&@@ -200,7 +180,6 @@ export interface reportListLogicValues {loadedQueryKey: string | nullloadedRanker: string | nullpageLoadFailed: boolean- primarySectionKey: InboxReportSectionKeyreportSourceMeta: Record<string, ReportSourceMeta>reports: SignalReport[]reportsLoadFailed: boolean@@ -379,7 +358,6 @@ export interface reportListLogicActions {export interface reportListLogicMeta {key: 'dismissed' | 'held-back' | 'monitoring' | 'needs-decision' | 'not-actionable' | 'resolved'__keaTypeGenInternalSelectorTypes: {- primarySectionKey: (featureFlags: FeatureFlagsSet) => InboxReportSectionKeyscopeReviewerUuid: (scope: InboxScope, user: UserType | null) => string | undefinedlistApiParams: (searchQuery: string,@@ -420,7 +398,7 @@ export type reportListLogicType = MakeLogicType<* its own filtered request with its own accurate `count` and its own pagination. The shared user* chrome (search, sort, source, priority, reviewer scope) is connected from `inboxFiltersLogic` and* applied on top, so one filter row drives all of them. The flat Reports list merges the loaded- * rows of the states the user selected; the legacy tabs render one instance each.+ * rows of the states the user selected.** `count` loads on mount (cheap `limit=1`) so state counts are available before any rows are. The* rows load lazily (`ensureLoaded`) only once a surface actually renders the state.@@ -633,15 +611,6 @@ export const reportListLogic = kea<reportListLogicType>([}),selectors({- // The section whose For-you count decides the default scope: Needs decision under the redesign,- // the Pull requests list with the flag off (see `shouldDefaultToEntireProject`).- primarySectionKey: [- (s) => [s.featureFlags],- (featureFlags: FeatureFlagsSet): InboxReportSectionKey =>- isInboxRedesignEnabled(featureFlags)- ? INBOX_PRIMARY_REPORT_SECTION_KEY- : INBOX_LEGACY_PRIMARY_REPORT_SECTION_KEY,- ],// The PostHog user the reviewer scope narrows the list to. Undefined for Entire project.scopeReviewerUuid: [(s) => [s.scope, s.user],@@ -838,7 +807,6 @@ export const reportListLogic = kea<reportListLogicType>([if (shouldDefaultToEntireProject({sectionKey: props.sectionKey,- primarySectionKey: values.primarySectionKey,scope: values.scope,hasUserChosenScope: values.hasUserChosenScope,hasResolvedUser: !!values.user?.uuid,diff --git a/products/signals/frontend/inbox/types.ts b/products/signals/frontend/inbox/types.tsindex 06c6fa7367d2..2d8a7aaec22f 100644--- a/products/signals/frontend/inbox/types.ts+++ b/products/signals/frontend/inbox/types.ts@@ -232,10 +232,8 @@ export function linearTeamIdsFromConfig(config: Record<string, any> | null | und/*** The inbox's page-level tabs. Each is a URL segment (`/inbox/<tab>`), so the keys are pinned.- * The union covers both inbox layouts: the redesign (`INBOX_TAB_KEYS`, behind- * `FEATURE_FLAGS.INBOX_REDESIGN`) and the layout it replaces (`INBOX_LEGACY_TAB_KEYS`). Each- * layout redirects the other's segments (see `inboxTabRedirectPath`), so a link made under one- * layout still opens under the other.+ * The union also covers the segments of the old layout, which links still carry. The inbox+ * redirects them to the surface that replaced them (see `inboxTabRedirectPath`).*/export type InboxTabKey =| 'reports'@@ -247,20 +245,9 @@ export type InboxTabKey =| 'archived'| 'config'-/** The redesign's page tabs. */+/** The page tabs the inbox renders. */export const INBOX_TAB_KEYS: InboxTabKey[] = ['reports', 'scouts', 'settings']-/** The page tabs with the redesign flag off: one tab per report list, plus Runs and Configuration. */-export const INBOX_LEGACY_TAB_KEYS: InboxTabKey[] = [- 'pulls',- 'reports',- 'scouts',- 'not-actionable',- 'runs',- 'archived',- 'config',-]-export const INBOX_TAB_LABEL: Record<InboxTabKey, string> = {reports: 'Reports',scouts: 'Scouts',@@ -285,12 +272,6 @@ export const INBOX_TAB_DESCRIPTION: Record<InboxTabKey, string> = {config: 'Set up signal sources, scouts, and how autonomously agents can act.',}-/** With the redesign flag off, the Reports tab is only the researched reports, and its description says so. */-export const INBOX_LEGACY_TAB_DESCRIPTION: Record<InboxTabKey, string> = {- ...INBOX_TAB_DESCRIPTION,- reports: 'Issues and opportunities agents found in your product data, researched and prioritized for your review.',-}-/*** The report states of the Reports list, in filter order: work waiting on you first, then work* waiting on an agent, then the closed states. Each has its own fixed server filter (see@@ -349,57 +330,12 @@ export const INBOX_REPORT_SECTION_TAG: Partial<Record<InboxReportSectionKey, 'St'not-actionable': 'Staff',}-// ── Legacy inbox IA (redesign flag off): one tab per report list ─────────────-/**- * The Configuration tab holds the agent-setup widgets. It only appears when the scene is too- * narrow for the right-hand setup rail (see `AgentSetupColumn`); on wide viewports the rail- * replaces it. Kept a real routing key so deep links and narrow-mode navigation work.+ * The old Configuration tab segment. Links that still carry it redirect to the Settings tab (see+ * `inboxTabRedirectPath`).*/export const INBOX_CONFIG_TAB_KEY: InboxTabKey = 'config'-/** Tabs only visible to staff users (internal), mirroring `INBOX_STAFF_ONLY_REPORT_SECTION_KEYS`. */-export const INBOX_STAFF_ONLY_TAB_KEYS: InboxTabKey[] = ['not-actionable']--/** Small tag rendered next to a tab's label in the tab bar. */-export const INBOX_TAB_TAG: Partial<Record<InboxTabKey, 'Staff' | 'Alpha'>> = {- 'not-actionable': 'Staff',-}--/** The flat report-list tabs that share the keyed `reportListLogic` + `InboxReportList` primitive. */-export const INBOX_FLAT_LIST_TAB_KEYS = ['pulls', 'reports', 'not-actionable', 'archived'] as const-export type InboxFlatListTabKey = (typeof INBOX_FLAT_LIST_TAB_KEYS)[number]--/**- * Each legacy report tab shows one of the redesign's sections. Both layouts share the keyed- * `reportListLogic` instances through this map, so a report loaded under one layout is found by the- * other and the mount-time count loaders are not duplicated. The Archive tab is the exception: it- * lists the Resolved and Dismissed sections together, through the `resolved` instance with its own- * filter (see `legacyTabListLogicProps`).- */-export const INBOX_LEGACY_TAB_SECTION: Record<InboxFlatListTabKey, InboxReportSectionKey> = {- pulls: 'monitoring',- reports: 'needs-decision',- 'not-actionable': 'not-actionable',- archived: 'resolved',-}--/** The inverse of `INBOX_LEGACY_TAB_SECTION`: the legacy tab that lists a section's reports. */-export const INBOX_SECTION_LEGACY_TAB: Record<InboxReportSectionKey, InboxFlatListTabKey> = {- monitoring: 'pulls',- 'needs-decision': 'reports',- 'not-actionable': 'not-actionable',- resolved: 'archived',- dismissed: 'archived',- 'held-back': 'archived',-}--/**- * The legacy counterpart of `INBOX_PRIMARY_REPORT_SECTION_KEY`: the Pull requests tab is the one- * whose For-you count decides the default scope with the flag off.- */-export const INBOX_LEGACY_PRIMARY_REPORT_SECTION_KEY: InboxReportSectionKey = 'monitoring'-/** `for-you` (suggested-reviewer reports), `entire-project` (all), or `teammate:<uuid>`. */export type InboxScope = 'for-you' | 'entire-project' | `teammate:${string}`diff --git a/products/signals/frontend/inbox/utils/inboxRedesign.ts b/products/signals/frontend/inbox/utils/inboxRedesign.tsdeleted file mode 100644index cc09c958a9ce..000000000000--- a/products/signals/frontend/inbox/utils/inboxRedesign.ts+++ /dev/null@@ -1,11 +0,0 @@-import { FEATURE_FLAGS } from 'lib/constants'-import type { FeatureFlagsSet } from 'lib/logic/featureFlagLogic'--/**- * Whether the inbox shows the redesign (report sections, triage mode, the Settings tab, scout- * cards) or the layout it replaces. One reader for every logic, so the flag key is written once.- * Components read the same flag through `useFeatureFlag('INBOX_REDESIGN')`.- */-export function isInboxRedesignEnabled(featureFlags: FeatureFlagsSet): boolean {- return !!featureFlags[FEATURE_FLAGS.INBOX_REDESIGN]-}diff --git a/products/signals/frontend/inbox/utils/inboxReportUrls.test.ts b/products/signals/frontend/inbox/utils/inboxReportUrls.test.tsindex 6dda8b231275..70fa7925c303 100644--- a/products/signals/frontend/inbox/utils/inboxReportUrls.test.ts+++ b/products/signals/frontend/inbox/utils/inboxReportUrls.test.ts@@ -13,14 +13,10 @@ describe('inbox report urls', () => {`${urls.inboxReport('reports', 'r1')}?back=%2Fcustomers`)})-- it('addresses the report through its legacy tab when asked', () => {- expect(inboxReportDetailUrl('r1', undefined, 'pulls')).toBe(urls.inboxReport('pulls', 'r1'))- })})// Slack notifications and bookmarks carry whichever tab segments were live when they were- // written, and the flag can flip between visits, so each layout redirects the other's segments.+ // written, so old-layout segments redirect to the surface that replaced them.describe('inboxTabRedirectPath', () => {it.each<[string | undefined, string | null]>([// The three old report lists are sections of one list now, so they all land on it.@@ -35,20 +31,8 @@ describe('inbox report urls', () => {['settings', null],['0198a1b2-report-id', null],[undefined, null],- ])('under the redesign maps %s', (tab, path) => {- expect(inboxTabRedirectPath(tab, true)).toBe(path)- })-- it.each<[string | undefined, string | null]>([- ['settings', urls.inbox('config')],- ['pulls', null],- ['config', null],- ['runs', null],- ['reports', null],- ['0198a1b2-report-id', null],- [undefined, null],- ])('with the flag off maps %s', (tab, path) => {- expect(inboxTabRedirectPath(tab, false)).toBe(path)+ ])('maps %s', (tab, path) => {+ expect(inboxTabRedirectPath(tab)).toBe(path)})})})diff --git a/products/signals/frontend/inbox/utils/inboxReportUrls.ts b/products/signals/frontend/inbox/utils/inboxReportUrls.tsindex c5961f77b08f..3964e932901a 100644--- a/products/signals/frontend/inbox/utils/inboxReportUrls.ts+++ b/products/signals/frontend/inbox/utils/inboxReportUrls.ts@@ -2,34 +2,26 @@ import { combineUrl } from 'kea-router'import { urls } from 'scenes/urls'-import { InboxTabKey } from '../types'-/*** A report's detail URL, with an optional `back` path for surfaces outside the inbox that embed- * report cards (the detail header reads it to label its back button). Under the redesign the- * Reports list is one column of sections, so `tab` stays `reports` and back always lands where the- * card was; the legacy layout addresses the report through the tab that listed it.+ * report cards (the detail header reads it to label its back button). The Reports list is one+ * column of sections, so back always lands where the card was.*/-export function inboxReportDetailUrl(reportId: string, backUrl?: string, tab: InboxTabKey = 'reports'): string {+export function inboxReportDetailUrl(reportId: string, backUrl?: string): string {return backUrl- ? combineUrl(urls.inboxReport(tab, reportId), { back: backUrl }).url- : urls.inboxReport(tab, reportId)+ ? combineUrl(urls.inboxReport('reports', reportId), { back: backUrl }).url+ : urls.inboxReport('reports', reportId)}/**- * Where an `/inbox/<tab>` segment from the other inbox layout lands, or null for a segment the- * current layout serves itself. Slack notifications, bookmarks, and links from other products- * carry whichever segments were live when they were written, and the flag can flip between- * visits, so each layout owns a redirect for the other's segments.+ * Where an `/inbox/<tab>` segment from the old inbox layout lands, or null for a segment the inbox+ * serves itself. Slack notifications, bookmarks, and links from other products carry whichever+ * segments were live when they were written.*- * Under the redesign the three old report lists (`pulls`, `archived`, `not-actionable`) are- * sections of one list, so they all resolve to it. With the flag off, the redesign's Settings- * tab is the Configuration tab.+ * The three old report lists (`pulls`, `archived`, `not-actionable`) are sections of one list, so+ * they all resolve to it.*/-export function inboxTabRedirectPath(tab: string | undefined, redesign: boolean): string | null {- if (!redesign) {- return tab === 'settings' ? urls.inbox('config') : null- }+export function inboxTabRedirectPath(tab: string | undefined): string | null {switch (tab) {case 'pulls':case 'archived':