:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.
Python ab-testingai-analyticsanalyticscdpdata-warehouseexperimentsfeature-flagsjavascriptproduct-analyticspythonreactsession-replaysurveystypescriptweb-analytics
feat(storybook): replace legacy chart stories with hog-charts equivalents (#61336)
mendral-app[bot]314c66cf87d3
diff --git a/frontend/snapshots.yml b/frontend/snapshots.ymlindex 272e3befcc60..9472a724f113 100644--- a/frontend/snapshots.yml+++ b/frontend/snapshots.yml@@ -2164,6 +2164,22 @@ snapshots:hash: v1.k794b7964.fcdb0ff5c8612af302f85bcde613046a02a50a99f80e265270b4665f2f185ee1.GITr-ddT00k4SdGZ6oU5KXjXRHsSOmL4rWp6-DXe9m8insights-insightstable--is-legend--light:hash: v1.k794b7964.9cefc93a40edb0504ec4d04863d2890215878c6d1b708a79c548e32d2e85f3b3.sbFp7lCKOdbI4mhEGn5x1Ged35WI4nfKn7QakVw-N0Q+ insights-retentionbarchart--default--dark:+ hash: v1.k794b7964.ed9d5623191cfbaea3e84563099e614070b34d2a813ded6075a296e5cca09989.Kk315qzAsV4tdDWmMl3QkKbFWe05KLQSHro9_LQ4oJ0+ insights-retentionbarchart--default--light:+ hash: v1.k794b7964.784450d76a8bd11992edb27caa99cbf59a9d8b436c978bfd533f452383b50111.vvgA58PHnryTZ8YVuDWfgXMypJvqGJe3JZK-OiXOplA+ insights-retentionbarchart--realistic-curve--dark:+ hash: v1.k794b7964.68eed5ca624b9107c8c6ec8cbdf125872a92951ea58fb0a2ff0ad11306441c80.G6k0StE_CqATzXzknmUcvBk231VUMLjqqln2wO8XCGc+ insights-retentionbarchart--realistic-curve--light:+ hash: v1.k794b7964.df14612698774016bfd97fa43df6999c88712eb16f38fcff102d7b144cd500a1.UILtnIZx4eu6A1foM_nDwaTdMg2kvsXdSDecpKikQJk+ insights-retentionlinechart--default--dark:+ hash: v1.k794b7964.c1dcc9c5e9a36b3373763b69ee729cfb18fbd0ff909ade214f042e40ace5e550.D93BHQt_6_GD6l7A1JM6NmBIfP-uAbaIgwYhJOAKgpQ+ insights-retentionlinechart--default--light:+ hash: v1.k794b7964.3f348a76028f82e4668d80eecb3d4011000ada7766ae3a50096972a37cc53440.9j0A8qinOPcsSRLeKO3uM14rCf7n4IsEMm3xvf8pKX8+ insights-retentionlinechart--realistic-curve--dark:+ hash: v1.k794b7964.dfcf5b4bf4f1036fed49adbaabd73782049f2a9092e38d9315f34b062924efb8.EBmvqxGNWSEm6aViFKzRcH1OjDl7W949zGHgfu64MY0+ insights-retentionlinechart--realistic-curve--light:+ hash: v1.k794b7964.2d97ef3550a4c3da71b4eca15acde6d2a742698cfa9abd92e45b236a4de18d20.Bm1P21gq1IWIu0FWVvj0ze5ua3iWMtvJfczNNKZwfr8insights-stickinessbarchart--stacked--dark:hash: v1.k794b7964.bb556b544383908fa7f4f693bf22996fb380b889125d48274a1e509953448dd6.ymAf-B1_w1RKqqqbS-k4R2OpywscDSL_ZNZ0LteJNvkinsights-stickinessbarchart--stacked--light:@@ -2229,13 +2245,17 @@ snapshots:insights-trendslinechart--single-series--light:hash: v1.k794b7964.e8d7c90005769112e971e55319b5e27731c8363aa977f21d5dbe8b9ec14b30ce.aaLz4Eg-X0FQkUCC9VXBjoVw902yotIdFJ4W5GzGu_8insights-trendspiechart--breakdown--dark:- hash: v1.k794b7964.0a31833b6ea57d9f4600ccf6890fe628dcf649421b185cab228b64133cbf395f.AVix5li2YhjzEBTLUG_t-ykIUiNIn-JSmzkyjFnuO_A+ hash: v1.k794b7964.8d4c92f0a1ce19597fd52a876aaed995f28972f7f774f34690b629c5246f7a9e.AsDNdz4YP9an11dMqIiQYZ7ghQGT8PQhWuCDmn5YKi8insights-trendspiechart--breakdown--light:- hash: v1.k794b7964.d693e940dee065bffe724f5d53ee1913f60ebef68c1519d198ac2970b1938b00.3jEJqjovVqoTo-9Krah5534LJ2NznahddkdKV8Ycz3A- insights-trendspiechart--percent-stack-breakdown--dark:- hash: v1.k794b7964.e34f3d59389d536773130f86e3d548f45e8634417dd6e0cc8f7e1565625670e7.nPsI-tiuK_z1OTi2tHF4xRjtnkDonxppwaXv6-1PRzw- insights-trendspiechart--percent-stack-breakdown--light:- hash: v1.k794b7964.7d659bc5a97cfb229b7dce076b3d2524f8115622df0039ba55d0b259a9d1732a.d6C5OxdtwiAaERAZKaDiab_0N_51bFpw_hFP9aOUit4+ hash: v1.k794b7964.4bca9ede695b12d104fb11793716085771ddb03e7b470a07dab1b769ea0d966f.k_bZydZiedoBdJgAmx6X-lSLDp0XHqNsATZ5Noj8ZYQ+ insights-trendspiechart--breakdown-with-labels--dark:+ hash: v1.k794b7964.09156814065da8b9169b6c14aedfbce8ceb3c9d5ec409149f5645cb3255f071e.VfWuHDWhnbecvPQBEBQ1ppKc8ii68SreC8lMye7M7fI+ insights-trendspiechart--breakdown-with-labels--light:+ hash: v1.k794b7964.cff81e11725f369f38fb6bf5b2e90097335d5983464ac520dd82fb71e8f072ca.XV3WjzjPSfvhp0eCjtYFyjU-ONfOHYpMrcSEYz2ag20+ insights-trendspiechart--default--dark:+ hash: v1.k794b7964.c83882557d57eeb496f235aa70ffd103acbe7a25917412ce9f5e201d899197ef.kA_qaI1rsg2_tfZjgq015a1LXwvHL29YzImHfxFyOhI+ insights-trendspiechart--default--light:+ hash: v1.k794b7964.d7826e61657fe26969b229c7c5ccd5e42da662f6e900aa0b69d381f5e3e29e24.uigApQKpO2eaMvS7VYxmHOB2Z8Ng2Mpn72wlEdWo07Ulayout-feature-previews--basic--dark:hash: v1.k794b7964.65cb2d154c4f630bc48a9f6b45b24e641c97b4412ca5170e0c1de8bc5c7d759d.vu2XHwyh2oLXbqNS7NdZd2tABaC8nM7J0iJps6FVYl8layout-feature-previews--basic--light:@@ -5058,26 +5078,6 @@ snapshots:hash: v1.k794b7964.e91e85b0ee937a14ef9bc524a1b98568c55a38eafdff6415d46c0e27f04a0771.LUZPkOS3UjH82ME39wve3LwP9FipEC-HrNVr6Ag8t84scenes-app-insights-insight-quick-start--default--light:hash: v1.k794b7964.1eb4465db1e9f901a704b617245e1eb395cd25e899cb7a8a20a9822cbac7643c.-qqKS-BnG3uPN4S_9jFwEk8aSVmlpSl3RB4pn1yx8gI- scenes-app-insights-lifecycle--lifecycle--dark:- hash: v1.k794b7964.1c565f2994bc682771c4d6c696df87eb0dbf1134c4d14c55953b2041a74a5176.hQFbZLfrNW0aMOOIaNIuYs6bCD2uUkdhHT1YIQ3PfxY- scenes-app-insights-lifecycle--lifecycle--light:- hash: v1.k794b7964.bb31287807fd32492249b62180ac30d971d9dba04e7cdc69fc1d0e88f4675a9f.YbYf4XuCeMjv9O6sB5M1sYXD-mktUHE0Mtago_fmlx8- scenes-app-insights-lifecycle--lifecycle-edit--dark:- hash: v1.k794b7964.a506be3418b000bfb6e3cd38ae97cdd669a49b00340ea7e02754834433963099.x7F-vOSEjV1m9afQZPsDvI4510y84a3ycsRtejvx4yo- scenes-app-insights-lifecycle--lifecycle-edit--light:- hash: v1.k794b7964.4e0f51d27041e7b3172a29d5b735e518602245f2d4964f7adc7caff053a56132.vr7ZTcdoP388CtkgQ0uyl2KM0BVmtOnrOeDMLm1Z40U- scenes-app-insights-lifecycle--lifecycle-edit-viewports--medium--dark:- hash: v1.k794b7964.901014c970250c1a634110d603a5aac54630fd3439322bf2620251e1976be8ff.jQEYSmuMi7E-PX5rP0Wq-1IJKBCV3mnlSUabfIOsFlw- scenes-app-insights-lifecycle--lifecycle-edit-viewports--medium--light:- hash: v1.k794b7964.7a645e1db0db0a2e4a59db8faaf323c16acebe40b8bc4be75b991a7ac6cbafb1.s7E_pgwEJ82zV8sV4voYEX8xb_LPZ35F1kGtAB_JjJ4- scenes-app-insights-lifecycle--lifecycle-edit-viewports--superwide--dark:- hash: v1.k794b7964.294f55fcde3da987ee2a86f14a23d64b5d5b987c24e14c2b1a244c53fce0a89a.XR_GYDWtivmsL01oF4r4QEk9FCkRvUO66gEElGdcwRY- scenes-app-insights-lifecycle--lifecycle-edit-viewports--superwide--light:- hash: v1.k794b7964.1db222f3279ee1f849b3c7071d948c1cd7267962a3db78a75520fb4a3bf65bec.3QrIhpG90uoy1gy3Ujxe1vBcCfjYOZeYuD2JyBSMSdI- scenes-app-insights-lifecycle--lifecycle-edit-viewports--wide--dark:- hash: v1.k794b7964.a506be3418b000bfb6e3cd38ae97cdd669a49b00340ea7e02754834433963099.4k6YwWshcE9dvIHDTzGacWgpf8fbgy1Pwr9CLSDGpNo- scenes-app-insights-lifecycle--lifecycle-edit-viewports--wide--light:- hash: v1.k794b7964.4e0f51d27041e7b3172a29d5b735e518602245f2d4964f7adc7caff053a56132.WxtsyarrqTwSHqhhUsDfHhWsMKMaQeAX0gjq-LId9pQscenes-app-insights-loading-messages--loading-messages--dark:hash: v1.k794b7964.9226faee502bdeca6720a84e746489d9eac5dc4d102176fa3ec6622a2eb849be.NEGj0oYEiYNFJ4bowd9Z1FJpRJvKL538swXf33_kVj0scenes-app-insights-loading-messages--loading-messages--light:@@ -5086,30 +5086,6 @@ snapshots:hash: v1.k794b7964.21b9e4027a5913d2376146381c664363809897d9ce1b4d65635952d3717aa57e.xHSrrPG13gLq3TvF-JCmn7wvxbsbdLTDjZAd0yfcqAQscenes-app-insights-regionmap--default--light:hash: v1.k794b7964.3f1a9d207ebf19f7c689b7fe693b7f9465cce7fcb2469e8c5e85221070c2b6ce.iMRM2OPxtCb5VKtz_806oAbils17MRdOYJwpdhSBzB0- scenes-app-insights-retention--retention--dark:- hash: v1.k794b7964.02ffa288b3f9fc2dde2fa1732bd164ccf771ef3a35ca9177d592571bc045e62e.PJ1SdvfwVPJtkFHwRSBMnqje3CP0ne57BD3kgWh-YvQ- scenes-app-insights-retention--retention--light:- hash: v1.k794b7964.a47c3c899143d4e9846757e32e67bb0945a2781233c79e44d0356ea43a59d2cd.70yC-geHj-Zl5tKxqL4DcS4R6lxJRlvlK1ftwBcxSZg- scenes-app-insights-retention--retention-bar--dark:- hash: v1.k794b7964.cd6570da4fe4d86ba5c3f3635133ffd1c451f824f957b84814528502d039b549.CuBgPnxPbyvBXoyJcWyVq26MLmhB7EZdSWR5fCTq2mI- scenes-app-insights-retention--retention-bar--light:- hash: v1.k794b7964.6af3102a12b6d1f610ee5e9bc9abb0eedca931f73d56038969cba89b0c7acd42.LdWbI5pOFQNbcbTRRKLd6TxXehv3LrkPMU56dTQgmOE- scenes-app-insights-retention--retention-edit--dark:- hash: v1.k794b7964.4af7da04ee60ee5b85c435a43b1eb6c3e3092d02013eb086bcf348afdf8cf365.BYiJo8qUtCQTBzpwxEUVBjfS49SdCP-q0hzd3MjclnE- scenes-app-insights-retention--retention-edit--light:- hash: v1.k794b7964.6497ae680c5c27231196476c61bed90a81aedd0464b3ea66efcf194c0ece3300.IPgxnQuLmCe7-Ofu9Z0AEyXUZL31yDusUfyXbYopSmA- scenes-app-insights-retention--retention-edit-viewports--medium--dark:- hash: v1.k794b7964.cc8d0f41e5a80dfdcc4ee838ea382035f1079c0565384cd9d08e86c90165a610.9igRr2SYxzCV2biYo2S5PKR9vzWLIpIXGZAaSl0uMCE- scenes-app-insights-retention--retention-edit-viewports--medium--light:- hash: v1.k794b7964.95102fa5e32ea852f766b8529dda3ca369745114a5da697c053af47e42e34be1.w3Njj-7tpxXp9NFvEse9WzNyDLXa-DFizIK7akGHWg0- scenes-app-insights-retention--retention-edit-viewports--superwide--dark:- hash: v1.k794b7964.473b2ca15fd576b020eb55ca2e1b62d8e16ebc64aa3a542bc6f796fd429051bb.7kLOvVcyC8IgNg6n-rS6sP8zCcTbsjjK7mhxqczYfwk- scenes-app-insights-retention--retention-edit-viewports--superwide--light:- hash: v1.k794b7964.3e3ec3234470a195e7c46d68020e6c81c253061186f48c1c397a4911561880b9.eDMkSY2YMZV8aExNbjkcqduQKl6SKXlMS3FNk7_7yXg- scenes-app-insights-retention--retention-edit-viewports--wide--dark:- hash: v1.k794b7964.4af7da04ee60ee5b85c435a43b1eb6c3e3092d02013eb086bcf348afdf8cf365.aE-IRFUeeorJUb2B7dZt3OFQjzMhcpzz3mzcAaofMzY- scenes-app-insights-retention--retention-edit-viewports--wide--light:- hash: v1.k794b7964.6497ae680c5c27231196476c61bed90a81aedd0464b3ea66efcf194c0ece3300.W5JpTPuvLcScH6udncupR7-RH66Wjar-QssIOoCIbJAscenes-app-insights-side-panel-actions--saved-data-visualization--dark:hash: v1.k794b7964.b834f72783ae78a05359b8807e901cfda0a8e64acf6cbf1ad3cd237082a9d89c.VJ76055jUdsM0mOSOwDhgUxnsYtnb2Ts7whfLdD81XAscenes-app-insights-side-panel-actions--saved-data-visualization--light:@@ -5134,26 +5110,6 @@ snapshots:hash: v1.k794b7964.486007121c9a82df768c7474916477a3e46e69b49b83401da0fa51bdd6279300.UTIVI6M2LJyrUd-l5ym6crCCsGmzZ8xrdtoI1TfBrDAscenes-app-insights-sqllinechart--sql-line-chart-breakdown--light:hash: v1.k794b7964.c11566cd09e1284b866c92a29482b1fdc6cf206b0b5e1fb46f2e553c19549a57.Xk4vP5_LzV-5_uSJWDNKR9YIEzfduyKuetdlsGn3FIs- scenes-app-insights-stickiness--stickiness--dark:- hash: v1.k794b7964.ce77d7239817f04b0c3f4f2cef17ea8ae92099685ade9ca7d725cdde91b2848e.-L-RhkS6-3Yk7PG9VXiIJbSGUdtA53sa20FeM5t5iAw- scenes-app-insights-stickiness--stickiness--light:- hash: v1.k794b7964.af169ff7dd6f8fff862bbb17c4657f757e642ab0150280f653461ec00e1b9d2e.0dMtrSBt5Io_jCuNncXpnrKsA5p1RA0RPLnQsiQ11Vs- scenes-app-insights-stickiness--stickiness-edit--dark:- hash: v1.k794b7964.1960edad8f84d3d5d0b562b22e80e05a4f8a47aefa1d36dddd37c3aeae3c0de1.7itJ_M-xgKyh_JJjo7HNS2mLNvDdPXRQZg2gcEa8sro- scenes-app-insights-stickiness--stickiness-edit--light:- hash: v1.k794b7964.d9f6f9d7bc9ccbfb882fc7d69c23122f54141f97417767a9ebd3fc4d39bbf4c0.M-KKYdM7UVTg0ePhwc-tOuUUHheQ9miwo_hU5pxlejQ- scenes-app-insights-stickiness--stickiness-edit-viewports--medium--dark:- hash: v1.k794b7964.3eb68dcaa722841184e3d2f9896c2b467f94b2fa9378ee9eb97796779fdd4767.Krruhw8ceCifEy9mjGi1YY3zNS91UISvRynmlWx98Jg- scenes-app-insights-stickiness--stickiness-edit-viewports--medium--light:- hash: v1.k794b7964.c274c7fb6f8826a89670f5e2b308c1081be4cc819acccc0536c0b0b129105ce5.UGtgOptE3ELt7cPSnh-YwjJltM0kXz5HBPws_wjQuW0- scenes-app-insights-stickiness--stickiness-edit-viewports--superwide--dark:- hash: v1.k794b7964.2e06012e182ea4c30f78335beae80cd7e01d8747ce370a969f9e44711c39425f.yemM_T8m9vcMgX3_uZtf9cxsGgciR_LLZxxs2f92L38- scenes-app-insights-stickiness--stickiness-edit-viewports--superwide--light:- hash: v1.k794b7964.937a2dc6a9aad14d1b13ae5ad1de0f83d51ad695bd0c7dad2904e68eb2a02bea.kA-B3bqcGACifZq-9YJmadJsGPFMMG0e51hkYxn3zu0- scenes-app-insights-stickiness--stickiness-edit-viewports--wide--dark:- hash: v1.k794b7964.1960edad8f84d3d5d0b562b22e80e05a4f8a47aefa1d36dddd37c3aeae3c0de1.26UhZlBL1-Xc2ek4hlvJgxNy4Hfv7_CfhhY8qfUb2a4- scenes-app-insights-stickiness--stickiness-edit-viewports--wide--light:- hash: v1.k794b7964.d9f6f9d7bc9ccbfb882fc7d69c23122f54141f97417767a9ebd3fc4d39bbf4c0.ecQBtIkWeWlhhAwjoAj3-hzrTASidR9Ks2sGyY1TUZUscenes-app-insights-trendsboxplot--trends-box-plot--dark:hash: v1.k794b7964.9421d408ac158259cf9c8120e5a4df7e79c87c38f48ff2fb096528ab4c21ccaa.kTH1yU4rwh9ATB6Xt9KnTZi2ZhBZM2uG_hsgwQ47kVYscenes-app-insights-trendsboxplot--trends-box-plot--light:@@ -5162,98 +5118,6 @@ snapshots:hash: v1.k794b7964.a44e0ceccf278166f1813212b79e536cb88844f3d1d344c16de7b27a7e22f922.0K9H7VtJOtggpNtwlrIBHV2Tbe_V1VvkL_K44SIT6R8scenes-app-insights-trendsboxplot--trends-box-plot-edit--light:hash: v1.k794b7964.7357d5bc4368db2240237131335e8b44a5a153211856a611267638fd4a389a4b.r3ZcjHo4heeqDVbloPPMqezcIa6OhFmVi5QnWLsQ2iw- scenes-app-insights-trendsline--trends-bar--dark:- hash: v1.k794b7964.e93b3c1db3502fb6b831a11c48e9bcd24b575c3c9cfedb1b45a6699c34f75272.lNzpUfd544ilqeq5BsqeMnUXctZqULR-E2e5q7gJsGo- scenes-app-insights-trendsline--trends-bar--light:- hash: v1.k794b7964.2adc42bf8b0a02d85b8bfce74772398176baedfc6585972d77b71cd9b054ae7e.OgpsnjJ5VU2UvcsKkputxsAVdP3rrNrtER_PqgdC6YM- scenes-app-insights-trendsline--trends-bar-breakdown--dark:- hash: v1.k794b7964.ea1fbf1e65a8b8361411cc37f3c33c0575d9d308b433670e95e2603444d88b3f.iSjUJFxY2v9Oizii40Pw9kVmWwHoNYnvdSsP4h2VyFo- scenes-app-insights-trendsline--trends-bar-breakdown--light:- hash: v1.k794b7964.a82b9b42b48bafd6c38a655216c6ce3c68648c26ffb1abe7abbf0c97ca32f5ce.PaPzgDHEXEcATPUqZE9C_YvgJcG_4EYnEyHRyo60n6c- scenes-app-insights-trendsline--trends-bar-breakdown-edit--dark:- hash: v1.k794b7964.b3ece11346a466c5f71472042714e7bb7bcfe57015c14d9866a9dc11983a7c2f.R_LMCp5e5P8M-8hr7rss1qlgZ937XlmgHn74LAAK3Qc- scenes-app-insights-trendsline--trends-bar-breakdown-edit--light:- hash: v1.k794b7964.634bfa28b2f71dcc328680331cddbf69d5b5559d2b48509e8b9ae286b055adce.wlEmkb-eCrlqbvvuRE89NdCr9anCo6_RamsZJqWc_ls- scenes-app-insights-trendsline--trends-bar-edit--dark:- hash: v1.k794b7964.e05c9e619974d05d0ef74988681adda48a7b5132cfb92d9f47d9e97b46b15f69.o0_KHnG3YzfUn5c0CiZxWivLjSIEquhFtiZvIvLftGA- scenes-app-insights-trendsline--trends-bar-edit--light:- hash: v1.k794b7964.f40f28fefbb193b244ca7d774cf171fa3e08e8677ac06bc875fb881aaf8131f3.lYcXsOUZLEcQ9TDy0qvCc6HQnAu_fp8F5UqWnyuthlw- scenes-app-insights-trendsline--trends-bar-single-data-point--dark:- hash: v1.k794b7964.6db4a3249ecea4b11dc1ee8817276bd08644f7197a5d709780fb36cd9f8e64df.vGqICH2sNQunwoVlamnQeTbb85E_T0bOikTfwkWksF8- scenes-app-insights-trendsline--trends-bar-single-data-point--light:- hash: v1.k794b7964.39b6eb4d57d7b6943db82d1a0804a1efa8cfda94a9db01f88a2e549616c34087.Tov1fYVMOJPJXAarFSx-8uyQNi7WksqQWq9_BuQpYqw- scenes-app-insights-trendsline--trends-line--dark:- hash: v1.k794b7964.9df5a8546e4b6afb2b9afa18262a12fa626e6e615ecf97837da8461e1a772a71.ndgLedRESnGM55rVWsrIA-3FXws7nYD0B9CENvxiMPY- scenes-app-insights-trendsline--trends-line--light:- hash: v1.k794b7964.012944100abfc8b18f4190d5d7eccda4f6eb57005e2ef0e70fbc34bede296b1c.HRF4oiqrZG_xWC2uxcJAz5nQ_E6iyTFHvw4jtnvXcqo- scenes-app-insights-trendsline--trends-line-breakdown--dark:- hash: v1.k794b7964.04896661b43739dc317d33da2c2d25127a09965703a190da065bceb983c10e68.hV3FU8LTphd2fHJ88Sz2NqCeXuBGxskRIZHdbqWG73I- scenes-app-insights-trendsline--trends-line-breakdown--light:- hash: v1.k794b7964.4b03508f866e3afd4eda677360963cc698b5270ea13c4481faf81d6387fc96d2.tXmehvL9YwYROAZPF8fFwMMy1p75IlrCHLtmIydv_2o- scenes-app-insights-trendsline--trends-line-breakdown-edit--dark:- hash: v1.k794b7964.111ce8fc35220f146a43fc2c320b916ea6fe47bfd1d3015c6d43d9a49ab8925f.O5UOkgB5zGGcdqk7V_rgBYnMqBmolAuZbZpODf8U2NA- scenes-app-insights-trendsline--trends-line-breakdown-edit--light:- hash: v1.k794b7964.5e12bd09eea372c695a2f07a598813f092dec4b80f811a0a6a1ac6614c33015d.sYaElNcm07uBjIFJxKLfP3tHtiz5K4s7rea4slB3hpI- scenes-app-insights-trendsline--trends-line-breakdown-labels--dark:- hash: v1.k794b7964.4e6fba4139b3f9adc56269649456a860daf91943fae7f370fee6d456e0a7c7d4.xTdrPltda18BaBiO6UiDethRJIuYRHrOjmMI-fEZlW4- scenes-app-insights-trendsline--trends-line-breakdown-labels--light:- hash: v1.k794b7964.5b150a4c38d904236b78abf4798e9cd4ef946aaabd489c053e49dcb075dd73df.1bD7Fc-22i9gVv2OnzTUti8M7qWN76JaM0i0mRn8BfI- scenes-app-insights-trendsline--trends-line-multi--dark:- hash: v1.k794b7964.4f963a291439774e3a1b11661bdefa2fb6e64966eebf3cd18b006a2be83d2d1c.kqc0_X0a1Dtuv979fT5cdnks2HmM_z2vFkP0CO4pgm8- scenes-app-insights-trendsline--trends-line-multi--light:- hash: v1.k794b7964.bbbe9271b9e62cd1423d58fad05aca3620aed1de156fbeb350e4630217f158c1.dA_saIdRR_YNUTfWvHAHLckXNptmzaSEfMEzcM6Hq0Y- scenes-app-insights-trendsline--trends-line-multi-edit--dark:- hash: v1.k794b7964.a768a21637674cd3f453c487948b96d9505d3be0bbc095d87270cf9502fa380c.DEvKGi3A9fXZixakt5S_Fj_hTBtDPtnxQi28g-zR8_E- scenes-app-insights-trendsline--trends-line-multi-edit--light:- hash: v1.k794b7964.731c6467acd46fcf3594e9ff56e2ad1431b6d8ea3e660ec4d2d3ec1e401382d8.nLZdhAVic-2ZPBeft_NCATQ9QsOomhrhtwc32VNLD4I- scenes-app-insights-trendsline--trends-line-multi-edit-viewports--medium--dark:- hash: v1.k794b7964.61205e5864037f267181505b50782ebaf66654453f0bad34b232e5065a15787a.0_qL1OHkxvb4Ap2hpHvLmLoHDbsmANQR1D9qwpFCuNI- scenes-app-insights-trendsline--trends-line-multi-edit-viewports--medium--light:- hash: v1.k794b7964.4099092522a87e3113739cc34ed46af1958b272911164aa4450adf38abad2034.xChWW1Uc08BoxtRS49Fgu-dVpdxOEuSlPv8Q5j2FAkk- scenes-app-insights-trendsline--trends-line-multi-edit-viewports--superwide--dark:- hash: v1.k794b7964.2b64d3116e23ac805be818e847cc3083757cebf74908569b34dbffdefdfa527c.MQFrUeBS1pn6QOKAYJL4DueaT_fwZIfx0dMUCWVKUvs- scenes-app-insights-trendsline--trends-line-multi-edit-viewports--superwide--light:- hash: v1.k794b7964.e64e80bf59cadb6343680280d194adeca7be8ad311a8b4c9a8cd436d4ed0b84b.5rL6Q9QVny5-pRnfjo4CtnDZjvRXwlogMO9ofEDoN3g- scenes-app-insights-trendsline--trends-line-multi-edit-viewports--wide--dark:- hash: v1.k794b7964.a768a21637674cd3f453c487948b96d9505d3be0bbc095d87270cf9502fa380c.iv9eQI04GsdYgjwMX2A9uS-bkH9E8Tyz40FvdN2HWOA- scenes-app-insights-trendsline--trends-line-multi-edit-viewports--wide--light:- hash: v1.k794b7964.731c6467acd46fcf3594e9ff56e2ad1431b6d8ea3e660ec4d2d3ec1e401382d8.txUZZfJI5FOF6YDn8rDEDD-LixNwCZ-pIaWPP-cCUuk- scenes-app-insights-trendsline--trends-line-single-data-point--dark:- hash: v1.k794b7964.87afa6aa936f467a943b927534f57f01171bd6fa7265d4477cb37590fbdc992b.CUDrDXXM0n6SarlL0WoQSM4GadhKLXjkRFqrItZr07I- scenes-app-insights-trendsline--trends-line-single-data-point--light:- hash: v1.k794b7964.77dc10b4fde134e982fd9ae01fedcefb341b73610f9d5242700287810227929e.IQOf3A74x1Fj1gjbi-1ep1nB4bInFEJQJm1e8Q7EqBo- scenes-app-insights-trendspie--trends-pie--dark:- hash: v1.k794b7964.672b35415dade60ae8781e6582bcd0eb267c9884176285add31179da0b67ddd0.GtbEu1CSF-7qw-AVFBKwukDIBkmGGtLwKvLENANci4A- scenes-app-insights-trendspie--trends-pie--light:- hash: v1.k794b7964.0b5858539ff48358f8c324121c132f68ce56f29bfbd9a19c3e650231790e1e8c.X3TddjmVDgsz8jIRnxsNzpYwYN69-sdsyCL4RXYDiXo- scenes-app-insights-trendspie--trends-pie-breakdown--dark:- hash: v1.k794b7964.12c9f7964940b57d2a3a6b513420bbbe0762e7d0390984a13bf59a5a7b911f9d.iK6WDQtY8KPiqRJyLr7v9HKWm6ZaS8oLIy-L5y-wzZY- scenes-app-insights-trendspie--trends-pie-breakdown--light:- hash: v1.k794b7964.26a486de94c5aec7bf92d7479a10658f308d0b3e56c713bc61f7d76ab5c6db76.vyPagoYpNo62kZwG7inCvij75u1fMHrY9JoqI_g4dl0- scenes-app-insights-trendspie--trends-pie-breakdown-edit--dark:- hash: v1.k794b7964.f3ceb496279cf0028c0d9e180b3ba3aa28d231609755d1ee429e33513e80a5f6.6BhenaIHCdm6iB44RjZlgJLdc39t-HnIhleKm5cEiAs- scenes-app-insights-trendspie--trends-pie-breakdown-edit--light:- hash: v1.k794b7964.e016994450433e384377fecc0ebcf78544c1d1ca37a4814acae3dbd71e363617.O3N8cPZb3mS9oWrPyafOeyA0CcVNx93ONMJ9N95eN_I- scenes-app-insights-trendspie--trends-pie-breakdown-labels--dark:- hash: v1.k794b7964.48971c3fcbeb20c73420f9e4ed94e0fcd826d20b5a90d27ddc61cb52a818b412.3WtMzDs_NJx-dCMiwZpUtXpL9ZB2wzMOpqhIsllhtE8- scenes-app-insights-trendspie--trends-pie-breakdown-labels--light:- hash: v1.k794b7964.02e2d1cc715b999d0ede2a21ecd2d018388b9c3e59ac3034389cf6b93cb2be96.p679qqMLPA5vkRgh-78SVwRf4tjnh9LLYTidsBsDPAw- scenes-app-insights-trendspie--trends-pie-edit--dark:- hash: v1.k794b7964.f98fc8a798629e198fd9e7230f135a980a97ef5eac93d4c7189d44ce9109b269.EdG-JkKeRwM46F4fcGUcTxtIG2lmtuf9r8CFHWXjoB4- scenes-app-insights-trendspie--trends-pie-edit--light:- hash: v1.k794b7964.2bf000457c6988798f58119d4de9f662637cb4c8d84d942787c0e8f97deb7823.h9amynxeSzz8r_wpEyXxV9tsuI6ni3DnQGfexweRwzc- scenes-app-insights-trendspie--trends-pie-edit-viewports--medium--dark:- hash: v1.k794b7964.7943148ab3b8f2f4fa8f06126de8be8e778f4cc88301b2b8c44188b605d40a33.ibs1LMnFJHdbD5bluWTubLgPz2wOy85_v3nc4qtMwfM- scenes-app-insights-trendspie--trends-pie-edit-viewports--medium--light:- hash: v1.k794b7964.3e4a66c557c00a216d94bd6cd0b9139854de02b505f3917fee6bffd333d27e46.t8TgZkI2raxDZdhOshqVDz3kfdy0aPxbrXdC_qHEw40- scenes-app-insights-trendspie--trends-pie-edit-viewports--superwide--dark:- hash: v1.k794b7964.2347a873dd6da094f3999a57744b32ecd203ec52039340e9082a7abad77c0bdb.LmsZ_k3qEg4K67C_pqmdOfBZv_m1pLq5FmD4mHcHO88- scenes-app-insights-trendspie--trends-pie-edit-viewports--superwide--light:- hash: v1.k794b7964.05b32e00bafc8a3a3a7aacbeb5ec6a456dfee9cb3c3431e687253011da067c53._99AEIs4ZW7bmtgpxjgFYWEBRbzP0n7pzVJ2JJR2-UM- scenes-app-insights-trendspie--trends-pie-edit-viewports--wide--dark:- hash: v1.k794b7964.0407efb3b04e0a1c19a0f6e6d65f8150ecb4459689c10e4dcb4d636a7b012712.J7aPVeR7HDQULknwqBSWd-i-B1RcZmj3aoQYYPfwWQo- scenes-app-insights-trendspie--trends-pie-edit-viewports--wide--light:- hash: v1.k794b7964.5967a5edd9338375436449fd397031ef40907bf85d4a1360cb4135d3f96d24b9.m_Ln9OjONn4CYtkkPZ332zuwhCW1lWhss-MoYL6NvvEscenes-app-insights-trendspie--trends-world-map--dark:hash: v1.k794b7964.7c2513dd39a38ed590ab0ece1c30ff2eab34ed2c60599de28f90a3e698961c1e.BjXUZxRmeRGqVc-DkahiGNwhDsIQRdLm5xQhd1ykhXkscenes-app-insights-trendspie--trends-world-map--light:diff --git a/frontend/src/scenes/insights/Lifecycle.stories.tsx b/frontend/src/scenes/insights/Lifecycle.stories.tsxdeleted file mode 100644index 3252ed5745d4..000000000000--- a/frontend/src/scenes/insights/Lifecycle.stories.tsx+++ /dev/null@@ -1,68 +0,0 @@-import { samplePersonProperties, sampleRetentionPeopleResponse } from 'scenes/insights/__mocks__/insight.mocks'--import { Meta, StoryObj } from '@storybook/react'--import { createInsightStory } from 'scenes/insights/__mocks__/createInsightScene'--import { mswDecorator } from '~/mocks/browser'--type Story = StoryObj<{}>-const meta: Meta = {- title: 'Scenes-App/Insights/Lifecycle',- parameters: {- layout: 'fullscreen',- testOptions: {- snapshotBrowsers: ['chromium'],- viewport: {- // needs a slightly larger width to push the rendered scene away from breakpoint boundary- width: 1300,- height: 720,- },- },- viewMode: 'story',- mockDate: '2022-03-11',- },- decorators: [- mswDecorator({- get: {- '/api/environments/:team_id/persons/retention': sampleRetentionPeopleResponse,- '/api/environments/:team_id/persons/properties': samplePersonProperties,- '/api/projects/:team_id/groups_types': [],- },- post: {- '/api/projects/:team_id/cohorts/': { id: 1 },- },- }),- ],-}-export default meta-/* eslint-disable @typescript-eslint/no-var-requires */--// Lifecycle--export const Lifecycle: Story = createInsightStory(- require('../../mocks/fixtures/api/projects/team_id/insights/lifecycle.json')-)-Lifecycle.parameters = {- testOptions: { waitForSelector: '[data-attr=trend-line-graph] > canvas' },-}-export const LifecycleEdit: Story = createInsightStory(- require('../../mocks/fixtures/api/projects/team_id/insights/lifecycle.json'),- 'edit'-)-LifecycleEdit.parameters = {- testOptions: { waitForSelector: '[data-attr=trend-line-graph] > canvas' },-}--export const LifecycleEditViewports: Story = createInsightStory(- require('../../mocks/fixtures/api/projects/team_id/insights/lifecycle.json'),- 'edit'-)-LifecycleEditViewports.parameters = {- testOptions: {- waitForSelector: '[data-attr=trend-line-graph] > canvas',- viewportWidths: ['medium', 'wide', 'superwide'],- },-}--/* eslint-enable @typescript-eslint/no-var-requires */diff --git a/frontend/src/scenes/insights/Retention.stories.tsx b/frontend/src/scenes/insights/Retention.stories.tsxdeleted file mode 100644index fa0189ee2a71..000000000000--- a/frontend/src/scenes/insights/Retention.stories.tsx+++ /dev/null@@ -1,113 +0,0 @@-import { samplePersonProperties, sampleRetentionPeopleResponse } from 'scenes/insights/__mocks__/insight.mocks'--import { Meta, StoryObj } from '@storybook/react'--import { FEATURE_FLAGS } from 'lib/constants'-import { createInsightStory } from 'scenes/insights/__mocks__/createInsightScene'--import { mswDecorator } from '~/mocks/browser'-import type { InsightVizNode, RetentionQuery } from '~/queries/schema/schema-general'-import type { QueryBasedInsightModel } from '~/types'-import { ChartDisplayType } from '~/types'--type Story = StoryObj<{}>-const meta: Meta = {- title: 'Scenes-App/Insights/Retention',- parameters: {- layout: 'fullscreen',- testOptions: {- snapshotBrowsers: ['chromium'],- viewport: {- // needs a slightly larger width to push the rendered scene away from breakpoint boundary- width: 1300,- height: 720,- },- },- viewMode: 'story',- mockDate: '2022-03-11',- },- decorators: [- mswDecorator({- get: {- '/api/environments/:team_id/persons/retention': sampleRetentionPeopleResponse,- '/api/environments/:team_id/persons/properties': samplePersonProperties,- '/api/projects/:team_id/groups_types': [],- },- post: {- '/api/projects/:team_id/cohorts/': { id: 1 },- },- }),- ],-}-export default meta-/* eslint-disable @typescript-eslint/no-var-requires */--// Retention--export const Retention: Story = createInsightStory(- require('../../mocks/fixtures/api/projects/team_id/insights/retention.json')-)-Retention.parameters = {- testOptions: { waitForSelector: '[data-attr=trend-line-graph] > canvas' },-}-export const RetentionEdit: Story = createInsightStory(- require('../../mocks/fixtures/api/projects/team_id/insights/retention.json'),- 'edit'-)-RetentionEdit.parameters = {- testOptions: { waitForSelector: '[data-attr=trend-line-graph] > canvas' },-}--export const RetentionEditViewports: Story = createInsightStory(- require('../../mocks/fixtures/api/projects/team_id/insights/retention.json'),- 'edit'-)-RetentionEditViewports.parameters = {- testOptions: {- waitForSelector: '[data-attr=trend-line-graph] > canvas',- viewportWidths: ['medium', 'wide', 'superwide'],- },-}--const retentionInsight =- require('../../mocks/fixtures/api/projects/team_id/insights/retention.json') as QueryBasedInsightModel-const retentionBaseQuery = retentionInsight.query as InsightVizNode-const retentionBaseSource = retentionBaseQuery.source as RetentionQuery-const retentionBarQuery: InsightVizNode = {- ...retentionBaseQuery,- source: {- ...retentionBaseSource,- retentionFilter: { ...retentionBaseSource.retentionFilter, display: ChartDisplayType.ActionsBar },- },-}--// Realistic retention curve: 100% baseline, ~55% day 1, decaying to ~13% by day 7. Slight-// per-cohort jitter so adjacent bars don't all look identical.-const retentionCurve = [1.0, 0.58, 0.42, 0.32, 0.26, 0.22, 0.18, 0.15]-const cohortSeeds = [1024, 1150, 980, 870, 1320, 1080, 940, 760, 1210, 1340, 1450]-const retentionBarResult = cohortSeeds.map((seed, cohortIndex) => {- const periodCount = Math.max(1, cohortSeeds.length - cohortIndex)- const jitter = 1 + ((cohortIndex % 3) - 1) * 0.04- return {- label: `Day ${cohortIndex}`,- date: `2022-03-${String(cohortIndex + 1).padStart(2, '0')}T00:00:00Z`,- values: retentionCurve.slice(0, Math.min(periodCount, retentionCurve.length)).map((r, i) => ({- count: i === 0 ? seed : Math.round(seed * r * jitter),- people: [],- })),- people_url: '',- }-})-const retentionBarInsight: QueryBasedInsightModel = {- ...retentionInsight,- query: retentionBarQuery,- result: retentionBarResult,-}--export const RetentionBar: Story = createInsightStory(retentionBarInsight)-RetentionBar.parameters = {- featureFlags: [FEATURE_FLAGS.PRODUCT_ANALYTICS_HOG_CHARTS_RETENTION],- testOptions: { waitForSelector: '[data-attr=trend-line-graph] > canvas' },-}--/* eslint-enable @typescript-eslint/no-var-requires */diff --git a/frontend/src/scenes/insights/Stickiness.stories.tsx b/frontend/src/scenes/insights/Stickiness.stories.tsxdeleted file mode 100644index 3810b586962f..000000000000--- a/frontend/src/scenes/insights/Stickiness.stories.tsx+++ /dev/null@@ -1,52 +0,0 @@-import { Meta, StoryObj } from '@storybook/react'--import { createInsightStory } from 'scenes/insights/__mocks__/createInsightScene'--type Story = StoryObj<{}>-const meta: Meta = {- title: 'Scenes-App/Insights/Stickiness',- parameters: {- layout: 'fullscreen',- testOptions: {- snapshotBrowsers: ['chromium'],- viewport: {- // needs a slightly larger width to push the rendered scene away from breakpoint boundary- width: 1300,- height: 720,- },- },- viewMode: 'story',- mockDate: '2022-03-11',- },-}-export default meta-/* eslint-disable @typescript-eslint/no-var-requires */--// Stickiness-export const Stickiness: Story = createInsightStory(- require('../../mocks/fixtures/api/projects/team_id/insights/stickiness.json')-)-Stickiness.parameters = {- testOptions: { waitForSelector: '[data-attr=trend-line-graph] > canvas' },-}--export const StickinessEdit: Story = createInsightStory(- require('../../mocks/fixtures/api/projects/team_id/insights/stickiness.json'),- 'edit'-)-StickinessEdit.parameters = {- testOptions: { waitForSelector: '[data-attr=trend-line-graph] > canvas' },-}--export const StickinessEditViewports: Story = createInsightStory(- require('../../mocks/fixtures/api/projects/team_id/insights/stickiness.json'),- 'edit'-)-StickinessEditViewports.parameters = {- testOptions: {- waitForSelector: '[data-attr=trend-line-graph] > canvas',- viewportWidths: ['medium', 'wide', 'superwide'],- },-}--/* eslint-enable @typescript-eslint/no-var-requires */diff --git a/frontend/src/scenes/insights/stories/TrendsLine.stories.tsx b/frontend/src/scenes/insights/stories/TrendsLine.stories.tsxdeleted file mode 100644index c6fb308f318d..000000000000--- a/frontend/src/scenes/insights/stories/TrendsLine.stories.tsx+++ /dev/null@@ -1,211 +0,0 @@-import { samplePersonProperties, sampleRetentionPeopleResponse } from 'scenes/insights/__mocks__/insight.mocks'--import { Meta, StoryObj } from '@storybook/react'-import { waitFor } from '@testing-library/dom'--import { createInsightStory } from 'scenes/insights/__mocks__/createInsightScene'--import { mswDecorator } from '~/mocks/browser'--type Story = StoryObj<{}>-const meta: Meta = {- title: 'Scenes-App/Insights/TrendsLine',- parameters: {- layout: 'fullscreen',- testOptions: {- snapshotBrowsers: ['chromium'],- viewport: {- // needs a slightly larger width to push the rendered scene away from breakpoint boundary- width: 1300,- height: 720,- },- },- viewMode: 'story',- mockDate: '2022-03-11',- },- decorators: [- mswDecorator({- get: {- '/api/environments/:team_id/persons/retention': sampleRetentionPeopleResponse,- '/api/environments/:team_id/persons/properties': samplePersonProperties,- '/api/projects/:team_id/groups_types': [],- },- post: {- '/api/projects/:team_id/cohorts/': { id: 1 },- },- }),- ],-}-export default meta-/* eslint-disable @typescript-eslint/no-var-requires */-// Trends Line-export const TrendsLine: Story = createInsightStory(- require('../../../mocks/fixtures/api/projects/team_id/insights/trendsLine.json')-)-TrendsLine.parameters = {- ...meta.parameters,- testOptions: {- ...meta.parameters?.testOptions,- waitForSelector: '[data-attr=trend-line-graph] > canvas',- },-}--export const TrendsLineSingleDataPoint: Story = createInsightStory(- require('../../../mocks/fixtures/api/projects/team_id/insights/trendsLineSingleDataPoint.json')-)-TrendsLineSingleDataPoint.parameters = {- ...meta.parameters,- testOptions: {- ...meta.parameters?.testOptions,- waitForSelector: '[data-attr=trend-line-graph] > canvas',- },-}--// FLAP!-// export const TrendsLineEdit: Story = createInsightStory(-// require('../../../mocks/fixtures/api/projects/team_id/insights/trendsLine.json'),-// 'edit'-// )-// TrendsLineEdit.parameters = {-// testOptions: { waitForSelector: '[data-attr=trend-line-graph] > canvas' },-// }--export const TrendsLineMulti: Story = createInsightStory(- require('../../../mocks/fixtures/api/projects/team_id/insights/trendsLineMulti.json')-)-TrendsLineMulti.parameters = {- ...meta.parameters,- testOptions: {- ...meta.parameters?.testOptions,- waitForSelector: '[data-attr=trend-line-graph] > canvas',- },-}-export const TrendsLineMultiEdit: Story = createInsightStory(- require('../../../mocks/fixtures/api/projects/team_id/insights/trendsLineMulti.json'),- 'edit'-)-TrendsLineMultiEdit.parameters = {- ...meta.parameters,- testOptions: {- ...meta.parameters?.testOptions,- waitForSelector: '[data-attr=trend-line-graph] > canvas',- },-}--export const TrendsLineBreakdown: Story = createInsightStory(- require('../../../mocks/fixtures/api/projects/team_id/insights/trendsLineBreakdown.json')-)-TrendsLineBreakdown.parameters = {- ...meta.parameters,- testOptions: {- ...meta.parameters?.testOptions,- waitForSelector: '[data-attr=trend-line-graph] > canvas',- },-}-export const TrendsLineBreakdownEdit: Story = createInsightStory(- require('../../../mocks/fixtures/api/projects/team_id/insights/trendsLineBreakdown.json'),- 'edit'-)-TrendsLineBreakdownEdit.parameters = {- ...meta.parameters,- testOptions: {- ...meta.parameters?.testOptions,- waitForSelector: '[data-attr=trend-line-graph] > canvas',- },-}--export const TrendsLineBreakdownLabels: Story = createInsightStory(- require('../../../mocks/fixtures/api/projects/team_id/insights/trendsLineBreakdown.json'),- 'view',- true-)-TrendsLineBreakdownLabels.parameters = {- ...meta.parameters,- testOptions: {- ...meta.parameters?.testOptions,- waitForSelector: '[data-attr=trend-line-graph] > canvas',- },-}--// Trends Bar-export const TrendsBar: Story = createInsightStory(- require('../../../mocks/fixtures/api/projects/team_id/insights/trendsBar.json')-)-TrendsBar.parameters = {- ...meta.parameters,- testOptions: {- ...meta.parameters?.testOptions,- waitForSelector: '[data-attr=trend-line-graph] > canvas',- },-}--export const TrendsBarSingleDataPoint: Story = createInsightStory(- require('../../../mocks/fixtures/api/projects/team_id/insights/trendsBarSingleDataPoint.json')-)-TrendsBarSingleDataPoint.parameters = {- ...meta.parameters,- testOptions: {- ...meta.parameters?.testOptions,- waitForSelector: '[data-attr=trend-line-graph] > canvas',- },-}-export const TrendsBarEdit: Story = createInsightStory(- require('../../../mocks/fixtures/api/projects/team_id/insights/trendsBar.json'),- 'edit'-)-TrendsBarEdit.parameters = {- ...meta.parameters,- testOptions: {- ...meta.parameters?.testOptions,- waitForSelector: '[data-attr=trend-line-graph] > canvas',- },-}--export const TrendsBarBreakdown: Story = createInsightStory(- require('../../../mocks/fixtures/api/projects/team_id/insights/trendsBarBreakdown.json')-)-TrendsBarBreakdown.parameters = {- ...meta.parameters,- testOptions: {- ...meta.parameters?.testOptions,- waitForSelector: '[data-attr=trend-line-graph] > canvas',- },-}-export const TrendsBarBreakdownEdit: Story = createInsightStory(- require('../../../mocks/fixtures/api/projects/team_id/insights/trendsBarBreakdown.json'),- 'edit'-)-TrendsBarBreakdownEdit.parameters = {- ...meta.parameters,- testOptions: {- ...meta.parameters?.testOptions,- waitForSelector: '[data-attr=trend-line-graph] > canvas',- },-}-export const TrendsLineMultiEditViewports: Story = createInsightStory(- require('../../../mocks/fixtures/api/projects/team_id/insights/trendsLineMulti.json'),- 'edit'-)-const waitForTrendsCanvasToStabilize: NonNullable<Story['play']> = async ({ canvasElement }) => {- let lastHeight = 0- await waitFor(- () => {- const chartCanvas = canvasElement.querySelector('[data-attr=trend-line-graph] > canvas')- const currentHeight = chartCanvas ? chartCanvas.getBoundingClientRect().height : 0- if (currentHeight === 0 || currentHeight !== lastHeight) {- lastHeight = currentHeight- throw new Error('trend line canvas height not yet stable')- }- },- { timeout: 3000, interval: 200 }- )-}-TrendsLineMultiEditViewports.parameters = {- testOptions: {- waitForSelector: '[data-attr=trend-line-graph] > canvas',- viewportWidths: ['medium', 'wide', 'superwide'],- },-}-TrendsLineMultiEditViewports.play = waitForTrendsCanvasToStabilize--/* eslint-enable @typescript-eslint/no-var-requires */diff --git a/frontend/src/scenes/insights/stories/TrendsPie.stories.tsx b/frontend/src/scenes/insights/stories/TrendsPie.stories.tsxindex dd2b3557d5d9..e2c597dbe6e4 100644--- a/frontend/src/scenes/insights/stories/TrendsPie.stories.tsx+++ b/frontend/src/scenes/insights/stories/TrendsPie.stories.tsx@@ -37,37 +37,8 @@ const meta: Meta = {}export default meta/* eslint-disable @typescript-eslint/no-var-requires */-// Trends Pie-export const TrendsPie: Story = createInsightStory(- require('../../../mocks/fixtures/api/projects/team_id/insights/trendsPie.json')-)-TrendsPie.parameters = { testOptions: { waitForSelector: '[data-attr=trend-pie-graph] > canvas' } }-export const TrendsPieEdit: Story = createInsightStory(- require('../../../mocks/fixtures/api/projects/team_id/insights/trendsPie.json'),- 'edit'-)-TrendsPieEdit.parameters = { testOptions: { waitForSelector: '[data-attr=trend-pie-graph] > canvas' } }--export const TrendsPieBreakdown: Story = createInsightStory(- require('../../../mocks/fixtures/api/projects/team_id/insights/trendsPieBreakdown.json')-)-TrendsPieBreakdown.parameters = { testOptions: { waitForSelector: '[data-attr=trend-pie-graph] > canvas' } }-export const TrendsPieBreakdownEdit: Story = createInsightStory(- require('../../../mocks/fixtures/api/projects/team_id/insights/trendsPieBreakdown.json'),- 'edit'-)-TrendsPieBreakdownEdit.parameters = {- testOptions: { waitForSelector: '[data-attr=trend-pie-graph] > canvas' },-}--export const TrendsPieBreakdownLabels: Story = createInsightStory(- require('../../../mocks/fixtures/api/projects/team_id/insights/trendsPieBreakdown.json'),- 'view',- true-)-TrendsPieBreakdownLabels.parameters = { testOptions: { waitForSelector: '[data-attr=trend-pie-graph] > canvas' } }-// Trends World Map+// Trends World Map (no hog-charts equivalent yet — keep these)export const TrendsWorldMap: Story = createInsightStory(require('../../../mocks/fixtures/api/projects/team_id/insights/trendsWorldMap.json'))@@ -77,15 +48,5 @@ export const TrendsWorldMapEdit: Story = createInsightStory('edit')TrendsWorldMapEdit.parameters = { testOptions: { waitForSelector: '.WorldMap' } }-export const TrendsPieEditViewports: Story = createInsightStory(- require('../../../mocks/fixtures/api/projects/team_id/insights/trendsPie.json'),- 'edit'-)-TrendsPieEditViewports.parameters = {- testOptions: {- waitForSelector: '[data-attr=trend-pie-graph] > canvas',- viewportWidths: ['medium', 'wide', 'superwide'],- },-}/* eslint-enable @typescript-eslint/no-var-requires */diff --git a/products/product_analytics/frontend/insights/retention/RetentionBarChart/RetentionBarChart.stories.tsx b/products/product_analytics/frontend/insights/retention/RetentionBarChart/RetentionBarChart.stories.tsxnew file mode 100644index 000000000000..02fdbd19d667--- /dev/null+++ b/products/product_analytics/frontend/insights/retention/RetentionBarChart/RetentionBarChart.stories.tsx@@ -0,0 +1,101 @@+import { Meta, StoryObj } from '@storybook/react'+import { BindLogic } from 'kea'+import { useState } from 'react'++import { insightLogic } from 'scenes/insights/insightLogic'++import { mswDecorator } from '~/mocks/browser'+import retentionFixture from '~/mocks/fixtures/api/projects/team_id/insights/retention.json'+import { dataNodeLogic } from '~/queries/nodes/DataNode/dataNodeLogic'+import type { DataNodeLogicProps } from '~/queries/nodes/DataNode/dataNodeLogic'+import { insightVizDataNodeKey } from '~/queries/nodes/InsightViz/InsightViz'+import { getCachedResults } from '~/queries/nodes/InsightViz/utils'+import type { InsightLogicProps, InsightShortId } from '~/types'++import { realisticRetentionResult } from '../shared/retentionStoryFixtures'+import { RetentionBarChart } from './RetentionBarChart'++type Story = StoryObj<{}>++const meta: Meta = {+ title: 'Insights/RetentionBarChart',+ component: RetentionBarChart,+ parameters: {+ layout: 'centered',+ mockDate: '2023-07-11',+ testOptions: { snapshotBrowsers: ['chromium'] },+ },+ decorators: [+ mswDecorator({+ get: {+ '/api/projects/:team_id/annotations/': {+ count: 0,+ next: null,+ previous: null,+ results: [],+ },+ },+ }),+ ],+}+export default meta++let uniqueNode = 0++function Stage({ children }: { children: React.ReactNode }): JSX.Element {+ return (+ // eslint-disable-next-line react/forbid-dom-props+ <div style={{ height: 360, width: 720, display: 'flex', flexDirection: 'column' }}>{children}</div>+ )+}++function renderRetentionBarChart(insightFixture: any): JSX.Element {+ const [dashboardItemId] = useState(() => `RetentionBarChartStory.${uniqueNode++}` as InsightShortId)+ const cachedInsight = { ...insightFixture, short_id: dashboardItemId }++ const insightProps: InsightLogicProps = { dashboardItemId, doNotLoad: true, cachedInsight }+ const dataNodeLogicProps: DataNodeLogicProps = {+ query: cachedInsight.query.source,+ key: insightVizDataNodeKey(insightProps),+ cachedResults: getCachedResults(cachedInsight, cachedInsight.query.source),+ doNotLoad: true,+ }++ return (+ <BindLogic logic={insightLogic} props={insightProps}>+ <BindLogic logic={dataNodeLogic} props={dataNodeLogicProps}>+ <Stage>+ <RetentionBarChart />+ </Stage>+ </BindLogic>+ </BindLogic>+ )+}++// Build a bar-display variant from the retention fixture+const retentionBarFixture = {+ ...retentionFixture,+ query: {+ ...retentionFixture.query,+ source: {+ ...retentionFixture.query.source,+ retentionFilter: {+ ...(retentionFixture.query.source as any).retentionFilter,+ display: 'ActionsBar',+ },+ },+ },+}++export const Default: Story = {+ render: () => renderRetentionBarChart(retentionBarFixture),+}++const realisticBarFixture = {+ ...retentionBarFixture,+ result: realisticRetentionResult,+}++export const RealisticCurve: Story = {+ render: () => renderRetentionBarChart(realisticBarFixture),+}diff --git a/products/product_analytics/frontend/insights/retention/RetentionLineChart/RetentionLineChart.stories.tsx b/products/product_analytics/frontend/insights/retention/RetentionLineChart/RetentionLineChart.stories.tsxnew file mode 100644index 000000000000..280845a1b421--- /dev/null+++ b/products/product_analytics/frontend/insights/retention/RetentionLineChart/RetentionLineChart.stories.tsx@@ -0,0 +1,86 @@+import { Meta, StoryObj } from '@storybook/react'+import { BindLogic } from 'kea'+import { useState } from 'react'++import { insightLogic } from 'scenes/insights/insightLogic'++import { mswDecorator } from '~/mocks/browser'+import retentionFixture from '~/mocks/fixtures/api/projects/team_id/insights/retention.json'+import { dataNodeLogic } from '~/queries/nodes/DataNode/dataNodeLogic'+import type { DataNodeLogicProps } from '~/queries/nodes/DataNode/dataNodeLogic'+import { insightVizDataNodeKey } from '~/queries/nodes/InsightViz/InsightViz'+import { getCachedResults } from '~/queries/nodes/InsightViz/utils'+import type { InsightLogicProps, InsightShortId } from '~/types'++import { realisticRetentionResult } from '../shared/retentionStoryFixtures'+import { RetentionLineChart } from './RetentionLineChart'++type Story = StoryObj<{}>++const meta: Meta = {+ title: 'Insights/RetentionLineChart',+ component: RetentionLineChart,+ parameters: {+ layout: 'centered',+ mockDate: '2023-07-11',+ testOptions: { snapshotBrowsers: ['chromium'] },+ },+ decorators: [+ mswDecorator({+ get: {+ '/api/projects/:team_id/annotations/': {+ count: 0,+ next: null,+ previous: null,+ results: [],+ },+ },+ }),+ ],+}+export default meta++let uniqueNode = 0++function Stage({ children }: { children: React.ReactNode }): JSX.Element {+ return (+ // eslint-disable-next-line react/forbid-dom-props+ <div style={{ height: 360, width: 720, display: 'flex', flexDirection: 'column' }}>{children}</div>+ )+}++function renderRetentionLineChart(insightFixture: any): JSX.Element {+ const [dashboardItemId] = useState(() => `RetentionLineChartStory.${uniqueNode++}` as InsightShortId)+ const cachedInsight = { ...insightFixture, short_id: dashboardItemId }++ const insightProps: InsightLogicProps = { dashboardItemId, doNotLoad: true, cachedInsight }+ const dataNodeLogicProps: DataNodeLogicProps = {+ query: cachedInsight.query.source,+ key: insightVizDataNodeKey(insightProps),+ cachedResults: getCachedResults(cachedInsight, cachedInsight.query.source),+ doNotLoad: true,+ }++ return (+ <BindLogic logic={insightLogic} props={insightProps}>+ <BindLogic logic={dataNodeLogic} props={dataNodeLogicProps}>+ <Stage>+ <RetentionLineChart />+ </Stage>+ </BindLogic>+ </BindLogic>+ )+}++export const Default: Story = {+ render: () => renderRetentionLineChart(retentionFixture),+}++const realisticFixture = {+ ...retentionFixture,+ result: realisticRetentionResult,+}++export const RealisticCurve: Story = {+ render: () => renderRetentionLineChart(realisticFixture),+}diff --git a/products/product_analytics/frontend/insights/retention/shared/retentionStoryFixtures.ts b/products/product_analytics/frontend/insights/retention/shared/retentionStoryFixtures.tsnew file mode 100644index 000000000000..42d50b948d2f--- /dev/null+++ b/products/product_analytics/frontend/insights/retention/shared/retentionStoryFixtures.ts@@ -0,0 +1,17 @@+// Realistic retention curve fixture shared across retention chart stories+const retentionCurve = [1.0, 0.58, 0.42, 0.32, 0.26, 0.22, 0.18, 0.15]+const cohortSeeds = [1024, 1150, 980, 870, 1320, 1080, 940, 760]++export const realisticRetentionResult = cohortSeeds.map((seed, cohortIndex) => {+ const periodCount = Math.max(1, cohortSeeds.length - cohortIndex)+ const jitter = 1 + ((cohortIndex % 3) - 1) * 0.04+ return {+ label: `Day ${cohortIndex}`,+ date: `2023-07-${String(cohortIndex + 1).padStart(2, '0')}T00:00:00Z`,+ values: retentionCurve.slice(0, Math.min(periodCount, retentionCurve.length)).map((r, i) => ({+ count: i === 0 ? seed : Math.round(seed * r * jitter),+ people: [],+ })),+ people_url: '',+ }+})diff --git a/products/product_analytics/frontend/insights/trends/TrendsPieChart/TrendsPieChart.stories.tsx b/products/product_analytics/frontend/insights/trends/TrendsPieChart/TrendsPieChart.stories.tsxindex 0fcf9769c50d..152c39394241 100644--- a/products/product_analytics/frontend/insights/trends/TrendsPieChart/TrendsPieChart.stories.tsx+++ b/products/product_analytics/frontend/insights/trends/TrendsPieChart/TrendsPieChart.stories.tsx@@ -4,6 +4,9 @@ import { useState } from 'react'import { insightLogic } from 'scenes/insights/insightLogic'+import { mswDecorator } from '~/mocks/browser'+import trendsPieFixture from '~/mocks/fixtures/api/projects/team_id/insights/trendsPie.json'+import trendsPieBreakdownFixture from '~/mocks/fixtures/api/projects/team_id/insights/trendsPieBreakdown.json'import { dataNodeLogic } from '~/queries/nodes/DataNode/dataNodeLogic'import type { DataNodeLogicProps } from '~/queries/nodes/DataNode/dataNodeLogic'import { insightVizDataNodeKey } from '~/queries/nodes/InsightViz/InsightViz'@@ -22,6 +25,18 @@ const meta: Meta = {mockDate: '2023-07-11',testOptions: { snapshotBrowsers: ['chromium'] },},+ decorators: [+ mswDecorator({+ get: {+ '/api/projects/:team_id/annotations/': {+ count: 0,+ next: null,+ previous: null,+ results: [],+ },+ },+ }),+ ],}export default meta@@ -30,7 +45,7 @@ let uniqueNode = 0function Stage({ children }: { children: React.ReactNode }): JSX.Element {return (// eslint-disable-next-line react/forbid-dom-props- <div style={{ height: 360, width: 480, display: 'flex', flexDirection: 'column' }}>{children}</div>+ <div style={{ height: 360, width: 720, display: 'flex', flexDirection: 'column' }}>{children}</div>)}@@ -57,91 +72,28 @@ function renderTrendsPieChart(insightFixture: any): JSX.Element {)}-const ACTION = {- id: '$pageview',- type: 'events',- order: 0,- name: '$pageview',- custom_name: null,- math: 'total',- math_property: null,- math_hogql: null,- math_group_type_index: null,- properties: {},-}--function breakdownSlice(label: string, aggregated_value: number): Record<string, any> {- return {- action: ACTION,- label,- count: 0,- aggregated_value,- data: [],- labels: [],- days: [],- breakdown_value: label,- filter: {- date_from: '2023-07-04T00:00:00Z',- date_to: '2023-07-10T23:59:59Z',- display: 'ActionsPie',- insight: 'TRENDS',- interval: 'day',- },- }-}--function pieInsight(trendsFilter: Record<string, any>, shortId: string): Record<string, any> {- return {- id: 300,- short_id: shortId,- name: 'Pageviews by browser',- derived_name: 'Pageview count',- filters: {},- last_refresh: '2023-07-11T12:00:00Z',- refreshing: false,- saved: true,- is_sample: false,- description: '',- tags: [],- favorited: false,- created_at: '2023-07-11T12:00:00Z',- updated_at: '2023-07-11T12:00:00Z',- last_modified_at: '2023-07-11T12:00:00Z',- dashboards: [],- dashboard_tiles: [],- result: [- breakdownSlice('Chrome', 900),- breakdownSlice('Safari', 500),- breakdownSlice('Firefox', 220),- breakdownSlice('Edge', 90),- ],- query: {- kind: 'InsightVizNode',- source: {- dateRange: { date_from: '2023-07-04', date_to: '2023-07-10' },- filterTestAccounts: false,- interval: 'day',- kind: 'TrendsQuery',- series: [{ event: '$pageview', kind: 'EventsNode', math: 'total', name: '$pageview' }],- trendsFilter,- breakdownFilter: { breakdown: '$browser', breakdown_type: 'event' },- version: 2,- },- full: true,- },- }+export const Default: Story = {+ render: () => renderTrendsPieChart(trendsPieFixture),}export const Breakdown: Story = {- render: () => renderTrendsPieChart(pieInsight({ display: 'ActionsPie', showValuesOnSeries: true }, 'pieBreakdown')),+ render: () => renderTrendsPieChart(trendsPieBreakdownFixture),}-export const PercentStackBreakdown: Story = {+export const BreakdownWithLabels: Story = {render: () =>- renderTrendsPieChart(- pieInsight(- { display: 'ActionsPie', showValuesOnSeries: true, showPercentStackView: true },- 'piePercentStack'- )- ),+ renderTrendsPieChart({+ ...trendsPieBreakdownFixture,+ query: {+ ...trendsPieBreakdownFixture.query,+ source: {+ ...trendsPieBreakdownFixture.query.source,+ trendsFilter: {+ ...trendsPieBreakdownFixture.query.source.trendsFilter,+ showLabelOnSeries: true,+ showValuesOnSeries: true,+ },+ },+ },+ }),}