Skip to content

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

fix(insights): give every insight error card the same layout (#116498)

Thomas Obermüller7c17ba3e9d6d
diff --git a/frontend/snapshots.yml b/frontend/snapshots.yml
index 7d69697b929e..a7c4a0a1d474 100644
--- a/frontend/snapshots.yml
+++ b/frontend/snapshots.yml
@@ -477,29 +477,29 @@ snapshots:
components-cards-insight-card--access-control-manager-access--light:
hash: v1.k794b7964.0431bdfb0012bc06a0c27570a66b6639b9fcab5c6d2c871893adbf2fc996d325.N4VtYwiHepp7lYjreIZcUjItBZwyQ1ctUjD-NJU7fRo
components-cards-insight-card--access-control-mixed-permissions--dark:
- hash: v1.k794b7964.de937230d1ba7b08d82e1a1a0b521b5bdacc1bcb02d64d49df3e46c5965a58cd.IK-MZlquedZD6zSfxseRqubFBnyJ0K5PCNWVev68JVs
+ hash: v1.k794b7964.cb7060a8830c5517aacab8fae17a8c37eecbc04d7b741ed12e7c8a88ec95eb99.2wRjsJ_MMNTXDEWHGjYymAOAciCj_xXeli-eyWe2-5A
components-cards-insight-card--access-control-mixed-permissions--light:
- hash: v1.k794b7964.e5cb460779d83337f36d2d99b31028d08d6b99123b509f2a23890fe392ee7c6d.JH1pWKZirNfE7anbvNJHgit9PQxo6uMLJs0HmfzWMOI
+ hash: v1.k794b7964.12c4f3dd06f1be4cea41ce485ac0394e685e2a94b18244e5029f91633fd4a5f8.BCTjVc1LAokPVieVCJpKnBuypt0ePrBH5DgRhXDhsMA
components-cards-insight-card--access-control-no-access--dark:
- hash: v1.k794b7964.1969dbc9c3252162f76e33f24dd40730cda7db6eb9cb07eab9de078fb2b0fa97.ta55BvCCWvdKIV8yVtGvhYTveFxqbapq05-3r5by9TI
+ hash: v1.k794b7964.fb149599ab5c3584c0979d57bc6cc38c695388fa8fe4e48a2f69ef0a1fbb58ec.8s4BbLU8yRqY3xI7Suo6Pk8DFPtVo7QGRBohDWojYs0
components-cards-insight-card--access-control-no-access--light:
- hash: v1.k794b7964.ac83ff06db1fd9b37cd856fb580b2df7824c1211e2cc3e93ec49933cc52b4443.TFWXYW2KIwnrAScgRTusDFAf_oQs4MSadpmkyRzfLT0
+ hash: v1.k794b7964.a6a1aa4d15504712cba8a1a5f6d3a6d4b3e14ad77f1fa28062b89cd479dc70f4.MxuAdwIDUyUpTL9FcFDgT_GzKK2gUmnZF_brEWrAkF4
components-cards-insight-card--access-control-viewer-access--dark:
hash: v1.k794b7964.5f3e7c9a9923ca547abac285ccd1d4e220df5132c95f96a25d4e71418ab595e0.mVhI7r6cz_F9H3wZ4y7DaEGsVhVzj1MD2mK539UwvJc
components-cards-insight-card--access-control-viewer-access--light:
hash: v1.k794b7964.bf2be6132e7d881f5648da794c30b861a8970b30aad98024e1470afa20fb1184.QjEzM0TKMP1UfPhiAgRyZW3hsOIKbNn5o8Un7s1Yswc
components-cards-insight-card--capacity-cooldown--medium--dark:
- hash: v1.k794b7964.f1f23f29992ce43001fbc773629d6850285d3cbc9a234f66b30e21be8d4d2f5f.Es6aDswFYvx82yk7f3j4RwLHlYAqF0aaO4XRkOp0QH0
+ hash: v1.k794b7964.754e96343eee3182c46ec44706bbbb4b4b668cc211b1359988e4f7ff36ce7681.Vz_TSc7cT-dVtDvjORjVVr9xLZOlYUE_QQh21NHU888
components-cards-insight-card--capacity-cooldown--medium--light:
- hash: v1.k794b7964.7464f22a5d98705e763d26dece33c66eb95c892ef38d95a632aac188bfc22726.IS9DIlMe5hPP4Ukgnfbc20iNHSI-zgA_SbGxAP-X_a8
+ hash: v1.k794b7964.1dd40bf618f3a511af9840f6dc04cc09e40ddfe7825b1592a2877e2aee0273f9.UBdFFaL3d97d9RO_0eh5Q5mypEzmzySpiSiyQEGvelQ
components-cards-insight-card--capacity-cooldown--narrow--dark:
- hash: v1.k794b7964.7e206075878d618ba32721bbe8231f34ee774bb8f4f169b5410015779386b3e6.YXpAuy8cawNj_2PdEhATFg1_bxz5L2KHPsDmZ_R6G5M
+ hash: v1.k794b7964.b29ab502762d6c954011aaeb9ba4700c2c56b3582fa15391103bfcccce29ac4a.UDCI6RuMZi3CncMf277SENzMhDnoBRAyk-ySLOXZ8Kg
components-cards-insight-card--capacity-cooldown--narrow--light:
- hash: v1.k794b7964.c79d5e095dca03b4d0c640a4fdd6bbfce9a4c611d4dfcf54118b012688073920.kbucWQpmGl5l1HtxNnrrkN544BGhjh0Jn4DhhufGG8U
+ hash: v1.k794b7964.90e14bb2c447b264e31742adab43bd93e5c275df83c6f5e11d493ce27f490c73.2UP9toKZcpey-Nung3eUAGmkdmpQNwyMMipTrXU1T6o
components-cards-insight-card--error-states--dark:
- hash: v1.k794b7964.934c3f48f60fdf3226805efb3f27cb2a4cb6dff59b15826aab76bf6724df1692.1kxPseMx8Fmqbof1l53C1hngF1WPEBA5AxR0IvW-il4
+ hash: v1.k794b7964.fb24f522e9afd9f3c73bc1c960f9a29b720a9a3afd85dfcad033745f09ab522e.oD3jwdfYJAvhLr1eq6s0TGTupPRlZHqu41nbgPSNUlU
components-cards-insight-card--error-states--light:
- hash: v1.k794b7964.f0daa20aaa8ae6ed1984b2ad818d5da3b61ac6571d14fdc9c6a6e6061c634c40.yQPOVT5Ju6nWJ32v-Df6pHhRNdz8LPs85WNvtD11Op4
+ hash: v1.k794b7964.4d8783224442312d41b2a287eadb0fffa7922c3308be4cbed5588dd0c5ac56aa.5ZmPvR8Y-7ANS-18aHI1NqbOuLRYUbr278Fv133lAec
components-cards-insight-card--insight-card--dark:
hash: v1.k794b7964.fdfc67abaeb31b9a0d3a230ee9510916ffb36d5aad1d2321edaa896bb343ff9b.3W6qDwBKmZQGvb56bckNdiwYQhuA5gIf0DfLmUFN0eU
components-cards-insight-card--insight-card--light:
@@ -6213,21 +6213,21 @@ snapshots:
marketing-analytics-dashboard-section-switcher--narrow--light:
hash: v1.k794b7964.c0d4b116a5afbe3e5b6b6159d519b54c08071f14cb9824596b1ce10304af6b69.7J099ANtsc1tVP_psTgnMCCvHgRV-YihqS_-YxpXs1o
marketing-analytics-failed-queries--attribution-query-failure--dark:
- hash: v1.k794b7964.b84b7a281d0a4bf86c5d9e87d75e3a6e360b56afbc434addf7c5e32ac21b8803.lf_xTXYsVyVEYRWZlwoM7aaBgv6HpRrINhoriSoE0Us
+ hash: v1.k794b7964.e745bb4ecdbfbb70a20bb493bd6a3b7b8f2a35c88c808de2d7aa3bccfc2d8be9.-EDk7fcim63V2V0oO4KOcJ0xSF_w-VR4BA8ETQYZnKA
marketing-analytics-failed-queries--attribution-query-failure--light:
- hash: v1.k794b7964.3daf2e774c81b78d29abd8e57c36eedaff96d59aa8d006c6080b9364f2191387.asjl_uu4A4-VVsGJ0rCA_hurTCjKgnP1rmeM2TCbtRE
+ hash: v1.k794b7964.ec0fb35a55555006953c4c524c6c6d363e604d97c760498d1ae4eac9357792e6.LcXuMLdHalFB0soXDRITLTGgaNG2hAbpsbH5rUUgD6s
marketing-analytics-failed-queries--conversion-paths-query-failure--dark:
- hash: v1.k794b7964.a34637e5f6cc3574baac824098b6c7a1c9ba43ba400a77c1e928d1ebcafa4ead.SmP-Bqh7EGNuHVs3OI_DPwxEeHhD4EvPsDOgMO1kSOw
+ hash: v1.k794b7964.0e487c129a833e1f06ea7430b78f80526e552105e511c1259294d465c98a8188.BE6eNEdBLRLsNNGFPKszOwDgljygWPKxD_ocIXWUzbI
marketing-analytics-failed-queries--conversion-paths-query-failure--light:
- hash: v1.k794b7964.68c7d4e1ee876ec8cd38eecba249793d29daeeb81a4d12f79bc76d478a0b30b3.7o3R5PtWOP6FX-ch3qAMZavADixTpVZA-JR6gVwIM1M
+ hash: v1.k794b7964.5a35a4d7bc5f49857a4479a11df5168ae2b2e67d616a685819101fcfa35f763a.cD1HCv2OjuyehknOdWzTmsxPB5--sWlSfmhd12n6CLo
marketing-analytics-failed-queries--overview-query-failure--dark:
- hash: v1.k794b7964.8358ec998f93f8a2387a75e75070bab043a7e21ca3bb27f530cb02c05a4c4bf1.RoI6yMmKEjuTA1bgS3BRMb5_MPkLVeL0VfR7aiiUfhM
+ hash: v1.k794b7964.d13bf1719e0512fe6c39a222b7ca4630a053b26a06675fc00edcf0b984939127.NbZHGhWIxb03NDDL4OriNlhZcS7Z5GdYduIX_UqD6bE
marketing-analytics-failed-queries--overview-query-failure--light:
- hash: v1.k794b7964.5b8d336f9fe0833d587bb5d026cc92830e6079f44b7cece1400bfb00c08dc34a.DUCT1ZV4aCykZOHyZpizfmgoKQzKRK27yv-rTrmRI3k
+ hash: v1.k794b7964.1d4eacf3aa9e45b5f9fc5d5c6b26e6843b7ca583fbe6665f3c69f2896df9c609.LmU2iJSL8DtTtPHcUiziLjgNb3yOW7Jl0GAPZufUoX0
marketing-analytics-failed-queries--retention-query-failure--dark:
- hash: v1.k794b7964.cf90c0724c15fbe919d8024005fbc75501db1769f4c58b07704d96929978ae70.U2E916fxdIKH32IAL6rzvz1R-zEMFrepPPUTaS7Zz6U
+ hash: v1.k794b7964.852306b9c33a0230190753fd027cf9ac7b99d394a12a029911ab147375229fc3.pYq7WLUV7nWYA39E2Tk6kylvSmJMK0ZhbkIW2O2G0Os
marketing-analytics-failed-queries--retention-query-failure--light:
- hash: v1.k794b7964.1a3a81981aa8aeaf8d05b72a69ef0aaece52b1cf7c4862d99b706f5235589cc8.aRKIU2u9bQ8o064mOAyxyRNuRrvqwEOKnn2Ho-IJBtU
+ hash: v1.k794b7964.175ccd3ebb8095c74ab39a0c983d594b0458f8b010cc67162802a890cf754973.1Sgg-yp452CAxiPptD3ChdSdyMsfR920AyBEUmAy2nE
marketing-analytics-query-error--default--dark:
hash: v1.k794b7964.8c0c65eb72013d32aa2e073e5d0159a6fd57843be38f0871f9bb1e6f59d7de4a.Pr8_7WCEtOlQ9ylamMMRR_mHnXn-B19zdakBMLKhjPs
marketing-analytics-query-error--default--light:
@@ -12103,9 +12103,9 @@ snapshots:
scenes-app-insights-error-empty-states--empty--light:
hash: v1.k794b7964.9917917f0866cf5a5e7986dea5446bd714fc167755312c3fb1b7f4e23d2018bf.AEKXbFHfNdrLKmzhZVX1Eb2-onzsErsttLHNrp7RMe8
scenes-app-insights-error-empty-states--estimated-query-execution-time-too-long--dark:
- hash: v1.k794b7964.d025954524dd53d741d872a729bb57c6108991fdd0f387c2f5901969198b4b56.al-jNUHtGq96lO_4IOqR68MnP0LjUH53UYnGR4K-3UM
+ hash: v1.k794b7964.e0473e6f7eb58c89a80c08ec543c29e320420d11f5fd36a1a23deb9d4e56f87d.0sq-zpW9diaDH00hEneRULtCIT6Qz-2r3z_Pl39w41U
scenes-app-insights-error-empty-states--estimated-query-execution-time-too-long--light:
- hash: v1.k794b7964.f1198e8f4f1765f535d91e27ee4dedc3ba070080f09d5d2fba9eab2c41cf49a6.yAa5zzxlldoOcCK0-mTZYhR-IxZPQv0WxooDApeo_pc
+ hash: v1.k794b7964.454f1f247dec8482d74057ab3ba11381fd7ba2adfa4d856552ccc3a9e93b9e42.MuzbVKgH9JFwJzo7SEeGeDwKY4uDkleBeaEwUXbj9TQ
scenes-app-insights-error-empty-states--funnel-single-step--dark:
hash: v1.k794b7964.4b434a83047b9d303f76b1439f9b3a7b397aef561eed7e70873d54c2ee1c7e79.xQdyc0fgel2MgvkZo8jGQy4dAAvF0B6LHFYONMLFdI0
scenes-app-insights-error-empty-states--funnel-single-step--light:
@@ -12115,21 +12115,21 @@ snapshots:
scenes-app-insights-error-empty-states--long-loading--light:
hash: v1.k794b7964.48b72670610c929db07e8089e69542edb05c7d14899af99a19224a2f631ec1dd.b0wSwuaUsbUp_pzSJHzwHfT0kJc0OGSWeIlA8kIeFAA
scenes-app-insights-error-empty-states--memory-limit-exceeded--dark:
- hash: v1.k794b7964.26a0dc7b45ad88edc2589530f5c23b69e655dfae7ee7f183a4917eb477fe7f3f.MPiNmuZ18vH_SaeR9rdkn_PajmU0obu4f-t_lbx2iYc
+ hash: v1.k794b7964.71971836b00d051d2db83f2952d11fdd0a64b3253de57640bc8153e3a0842aaa.ujWivJP7jE4UPhXaaTCNZ9XyYLkCYgKuYmVOmrMCZmI
scenes-app-insights-error-empty-states--memory-limit-exceeded--light:
- hash: v1.k794b7964.1c7341a98c75aa0ea76c2847579f1079f31c569abcb13623a4566a1470df5cea.tEzkZCsd_HtTAm66SP4fCrWX5xzOoFZ1dNlz9Ybz7Ns
+ hash: v1.k794b7964.7f1b2a50f5fe72391f214675da8c3bb4811134bca7359c60731ff0b03f101960.7j1j7oWn_QeoeznsH2mjvuxpXmLBUJ_ve4NHu8kLjsI
scenes-app-insights-error-empty-states--query-server-error--dark:
- hash: v1.k794b7964.8e86d1d4ab6af6159804e2801298842f1d086cbbb796c91fb60de816ab1abf5f.H93T__KkhRkfdLXG-mls00Kg7VOvi1uPJRzKchhICco
+ hash: v1.k794b7964.6deeebd4a3bcc37275cfabc7460f44004f694e1a6be53eac969f3086401c6959.sQP0Dm09Rty29Vc3c19i4D2uxz6SDidJ8c73EcV54iU
scenes-app-insights-error-empty-states--query-server-error--light:
- hash: v1.k794b7964.1da6d8ff318554274dfcf23f2bd5e467c57e41a8636811ff7b414a9febb00939.4QptNtnaVprfFvdPzXqDJ1tFsrS7gMdRBjpp0tId-m4
+ hash: v1.k794b7964.1421540dc25198b8940791e02e163820bef060f8201a695c3b4ef9f03c0833ea.EAiGWhnfV-HwYAUo4iMX_Z34wn0_h0tadi0AKuXuodE
scenes-app-insights-error-empty-states--server-error--dark:
- hash: v1.k794b7964.8e86d1d4ab6af6159804e2801298842f1d086cbbb796c91fb60de816ab1abf5f.J7QYlsp_PAgkdRCMRB8buDteS7Gdpd4_tVO1BjQ_q8U
+ hash: v1.k794b7964.6deeebd4a3bcc37275cfabc7460f44004f694e1a6be53eac969f3086401c6959.EE4JpkUF-KQzG-vUinl_i0LDtji7V24rwziFrLFj9bU
scenes-app-insights-error-empty-states--server-error--light:
- hash: v1.k794b7964.1da6d8ff318554274dfcf23f2bd5e467c57e41a8636811ff7b414a9febb00939.4ZjVo7gmmFa9ccPeg0xuvfci3cQ1OCyVOj4d2dKh-ks
+ hash: v1.k794b7964.1421540dc25198b8940791e02e163820bef060f8201a695c3b4ef9f03c0833ea.LMp2NdF-LTqK_vdmcimyir8V1oSKjPqk7nobnae_9YA
scenes-app-insights-error-empty-states--validation-error--dark:
- hash: v1.k794b7964.78c398feb22adb44344fad6c155ad42ecdbd9d77d80e4e0a60227b4a32abf14f.wmWI9S-nFvoZ5tNpxol33U3eINboLyZM9cggyHqv8hU
+ hash: v1.k794b7964.f09f5f76b208577ef1cfc6223e1828628428746bd3c17fb5fe841d9f04d6de7a.sQCm8nQekUWsf7vdwEaP3HshN-fMEozAMyvvVrqZmAA
scenes-app-insights-error-empty-states--validation-error--light:
- hash: v1.k794b7964.2b012576da17dc343cba68c671217dcfb23f907543fd897d65e42e8793f31958.gL9lf9tk2rIHPSZBxNHmPitiTqUvCG08VR3K9hK7xMo
+ hash: v1.k794b7964.b6e11cfba354f46512f0909f31666f8d0318bc56ee0dcce111ef895bbce4be6a.RDM-1EMK2YZEI-mvQo9N4dYEuQdGDfSGrY2sazgq2YA
scenes-app-insights-flag-called-rebuild-banner--insight-on-flag-calls--dark:
hash: v1.k794b7964.3d946f71319ec412299b8888e9a3fed48a7098bcf0e92cda25f6f34a43071a3f.PbH5UAwbwGY8tveYtVSlUz6TeywtNh7otO1PSPZi9vw
scenes-app-insights-flag-called-rebuild-banner--insight-on-flag-calls--light:
@@ -13259,9 +13259,9 @@ snapshots:
scenes-app-people-cohorts-add-person-to-cohort-modal--modal-inline--light:
hash: v1.k794b7964.6eabd2ce475eea83113a11275b335f7202f6da10fe2ebdfbc574f3b323daff8e.abHOQDCEtn7AWNmWKwPjeXqiMbY5UnWeefHV9iGBd3s
scenes-app-people-cohorts-add-person-to-cohort-modal--modal-query-failed--dark:
- hash: v1.k794b7964.fc464d8369d84ebda855eaca59771c5034bf3940ee1a36d2404b31b7d66c9d66.Ux6EYrnrc0ZjifXVb4IcqQ7fOO98GAGIXoGnkVf-IKw
+ hash: v1.k794b7964.162b3eab94cb7005b8df2a755f500553c1f4f823467577d7d4dce9a5a8fba76e.6pjxTMrQVZfye5FASGusdaL5nEbt45KQ3Mca-bBVg0U
scenes-app-people-cohorts-add-person-to-cohort-modal--modal-query-failed--light:
- hash: v1.k794b7964.5e791b8c302c4a2f42cfd7919e18b70c96639984f2e9984fb24299e7b5e90fac.DD88Bn4BP5_7K8iAHyNH6XaebSPNYLa0RDzOAh3vSvA
+ hash: v1.k794b7964.e40c27ad6621927d1d5ca254aba61e7e2c36b9ec036ab5c03455cd0c838f40be.y98Ma86an4HwhE9RVIsxr4UVQduLQLJcY29C-Fm6Px8
scenes-app-people-cohorts-add-person-to-cohort-modal--modal-with-all-selected--dark:
hash: v1.k794b7964.730f63a37031a8670713c04b565dee44eb0daf7ca1739d3ec65fb46cf1fb6022.P67NSd6TYkZMOWMhgH7gK0ia88hUc1NU3u0rPO5Gn08
scenes-app-people-cohorts-add-person-to-cohort-modal--modal-with-all-selected--light:
@@ -13295,17 +13295,17 @@ snapshots:
scenes-app-persons-modal--empty--light:
hash: v1.k794b7964.e7f63b65e183d7a65841e8621119799e6a3317e6d33ec71e275c37feedc64225.ANIbBo0qPwf94oVE6MiAcHrmZTqVLcUvl7BNCHsOK2M
scenes-app-persons-modal--server-error--dark:
- hash: v1.k794b7964.21e85f4158f642f522f97c358e6f9de24cd6c8aef0c4c55463de1a9c3be4caef.qwQif7mBTHcMdHuwp3loQVSw6H7wIKCHBZWlebXEVqQ
+ hash: v1.k794b7964.9e24b7ab905ed1e5666cb676fe563479b3b39f60895ffdbf855c4b88e7d9738b.IxCjVTHKeArWX5H0FRlvz2m4y_kdyNu_vT6wtR7nyQo
scenes-app-persons-modal--server-error--light:
- hash: v1.k794b7964.5ae91c78255c7fc68354ddd297f4df93d44933119a5116a882bfa2219b2b3e39.qvWZfbPkAWQ-NnGZea_Zc0QI4WfFVrTUcqgpdye24ms
+ hash: v1.k794b7964.4ec6f8022559b3c987a2cf5fbc2c157747c34b2594e2e43f2bd95177b36ee350.y6vm03DRN7Z6aMo-Xdz8SmahNvHRCSucVl-cKPMS38M
scenes-app-persons-modal--session-actors-with-results--dark:
hash: v1.k794b7964.7e150e0a298fa1016c7f1f1053c953b327361ecd8c483ad807de75740ddf5365.thDvSDMw1nG9kY-N_3vT5mm_oRHGXEjqq73W7a0OrCw
scenes-app-persons-modal--session-actors-with-results--light:
hash: v1.k794b7964.06bf1cfa3c36b096bffcbd9813e57ba01ef570c714499940b780f19597b92a2f.GOGGIKLLkTw2K2STHQODj0UOI1r34dPh0Vv5J0D7EDU
scenes-app-persons-modal--timeout-error--dark:
- hash: v1.k794b7964.6c62b6b2e166c8e75081673883872029ecc553ca9d26a01b4314f99744568e16.3nEQVzoyxgkwIO0RlCPCw3JWmLAbjU6wyqriQTzRnqs
+ hash: v1.k794b7964.675913084491227ead4e8ba9ae0630a31365e30306117f8dcad75b5ccad3d080.ClG_0lYkRZpetkIgvCi-w93ZECYxHHRkl13sHGbrL1w
scenes-app-persons-modal--timeout-error--light:
- hash: v1.k794b7964.2f7c42b4d6ff98b6531835a883fc4d3be26135ad573676892a00e471068c34d1.Isa-o7CCASINy7b7zxXj-QgUbL19kW1t1EDGNIBlYA0
+ hash: v1.k794b7964.5a2ad450f0349efcede6d2ec38acce96d01c2405b15cb7192046e1b1e52017ed.lZuhlqm687KvYF-lLjyj1Q-62-bEOORChVa3s3I4S1U
scenes-app-persons-modal--with-results--dark:
hash: v1.k794b7964.543e6b89c21b4a0de9fca38a2a7b585c4e467382f5ce5772d50424b866ec9f31.ya9rrl_NUzwRgesGT5CjUr6YpnBH7zRoH2U6TQnyZ5U
scenes-app-persons-modal--with-results--light:
@@ -14775,13 +14775,13 @@ snapshots:
scenes-app-web-analytics--web-analytics-dashboard-narrow--light:
hash: v1.k794b7964.1f9f6b563573e04b903f5e14f6bc448badb658061ca85a578ac66352eb469803.SnvTYvRaZi58u7PDmdvIhsHNoC1v_Kn33HVRdng-ZJ8
scenes-app-web-analytics--web-analytics-dashboard-tile-header-v-2-medium--dark:
- hash: v1.k794b7964.2402ca73ef88afed0bfa69e7cfe5c2b0b86c869e6940f50f055a3d635b6a53b0.sHxla4Ixs25wKel55_0NADs8O8RUkn9uEOrPiRAHEFQ
+ hash: v1.k794b7964.8f10ec150979bc29c004bb36919abd09ad4c70202582fc06e813fb3d45162f4c.0W9gPJMOFFHWu6bBm430cJ7LwOiru1e-JTgtD7FrAvQ
scenes-app-web-analytics--web-analytics-dashboard-tile-header-v-2-medium--light:
- hash: v1.k794b7964.a4f5cd55921ed8d0ba8429b7b7729bee6b2a2ae494b0879523246a3bcda6ba81.4swkdnS0OJC1dTfr_vB7G35uSjCFNNSVS-OamujuZww
+ hash: v1.k794b7964.f8f97cc21497f54ec83588f3c7ad255a620bbed5ed87894b479da0ebf7b41f45.munrb5-Ht1Chj4LcLQdaiXO8PUo3ABYQkY01itaSL4c
scenes-app-web-analytics--web-analytics-dashboard-tile-header-v-2-wide--dark:
- hash: v1.k794b7964.dcf4383ad413029603aa0769919ff748fb3b6185dd4f13ed16a5d13b61cac901.cOctP1XQJRmbRU1CN7WSa-3S7k9zddfUczaxhQTVs08
+ hash: v1.k794b7964.672abc9ec1a595549ae1f386e04a96d71567a3f6a400da748bdc9931bc12ff28.kgDu_ryc9lqgI6ec9LAkIp79vr8FqYQBkg9MGDw1yVw
scenes-app-web-analytics--web-analytics-dashboard-tile-header-v-2-wide--light:
- hash: v1.k794b7964.d1f1e26d76b67139b635a4020df243849d60d60cb8b3fe6d132980acc146e56b.WekE32-CE3pdo-V0UR852y2Fa2RwB091zWrfQr4y8-0
+ hash: v1.k794b7964.4f9c946f04fbe48e34a8e29f827db78b2d9e752643c4595ce1e1f7bcbfa59582.MbbLIeBTOHsbFp7N5atc5AE7ohy3X8UQcJGKkzDMyno
scenes-app-web-analytics--web-analytics-empty-onboarding-narrow--dark:
hash: v1.k794b7964.605caa854b816f8f47b5ef23cebca23dd5f2b516af151a7df08c9337663b3964.nHXW-vmDopWvz5x29U-iyNWGv9qxfOx64AqB8sykTpo
scenes-app-web-analytics--web-analytics-empty-onboarding-narrow--light:
diff --git a/frontend/src/lib/components/Cards/InsightCard/InsightCard.stories.tsx b/frontend/src/lib/components/Cards/InsightCard/InsightCard.stories.tsx
index 2af74511ec46..34ab4c5ced94 100644
--- a/frontend/src/lib/components/Cards/InsightCard/InsightCard.stories.tsx
+++ b/frontend/src/lib/components/Cards/InsightCard/InsightCard.stories.tsx
@@ -286,6 +286,15 @@ export const ErrorStates: Story = {
placement="SavedInsightGrid"
/>
))}
+ <InsightCardComponent
+ tile={defaultTile}
+ insight={{ ...EXAMPLE_TRENDS, name: 'Timed out' } as unknown as InsightModel}
+ timedOut
+ refresh={() => {}}
+ rename={() => {}}
+ duplicate={() => {}}
+ placement="SavedInsightGrid"
+ />
</div>
)
},
diff --git a/frontend/src/scenes/insights/EmptyStates/EmptyStates.tsx b/frontend/src/scenes/insights/EmptyStates/EmptyStates.tsx
index de2edf0c9bcf..4bb12584c79a 100644
--- a/frontend/src/scenes/insights/EmptyStates/EmptyStates.tsx
+++ b/frontend/src/scenes/insights/EmptyStates/EmptyStates.tsx
@@ -6,12 +6,11 @@ import { useEffect, useState } from 'react'
import { TextMorph } from 'torph/react'
import * as construction2Png from '@posthog/brand/hoggies/png/construction-2'
-import * as doctorPng from '@posthog/brand/hoggies/png/doctor-1'
import * as errorPng from '@posthog/brand/hoggies/png/error'
import * as reaperPng from '@posthog/brand/hoggies/png/reaper'
import * as stampDeniedPng from '@posthog/brand/hoggies/png/stamp-denied'
import * as trafficControllerPng from '@posthog/brand/hoggies/png/traffic-controller'
-import { IconArchive, IconFunnels, IconInfo, IconPlusSmall, IconRefresh, IconWarning } from '@posthog/icons'
+import { IconArchive, IconFunnels, IconInfo, IconPlusSmall, IconRefresh } from '@posthog/icons'
import { LemonButton } from '@posthog/lemon-ui'
import { CLICKHOUSE_MEMORY_LIMIT_ERROR_CODE, TABLE_ACCESS_DENIED_ERROR_CODE } from 'lib/api-error'
@@ -24,7 +23,7 @@ import { holidaysMatcher, isChristmas } from 'lib/holidays'
import { useInterval } from 'lib/hooks/useInterval'
import { useOnMountEffect } from 'lib/hooks/useOnMountEffect'
import { usePageVisibility } from 'lib/hooks/usePageVisibility'
-import { IconChristmasOrnament, IconErrorOutline, IconOpenInNew } from 'lib/lemon-ui/icons'
+import { IconChristmasOrnament, IconErrorOutline } from 'lib/lemon-ui/icons'
import { LemonMenuOverlay } from 'lib/lemon-ui/LemonMenu/LemonMenu'
import { Link } from 'lib/lemon-ui/Link'
import { LoadingBar } from 'lib/lemon-ui/LoadingBar'
@@ -59,11 +58,11 @@ import { funnelDataLogic } from 'products/product_analytics/frontend/insights/fu
import { insightDataLogic } from '../insightDataLogic'
import { insightVizDataLogic } from '../insightVizDataLogic'
import { getRetryCooldown } from '../sharedUtils'
+import { InsightErrorLayout } from './InsightErrorLayout'
import { SampleDataState, SampleDataVariant } from './SampleDataState'
import { sampleDataStateLogic } from './sampleDataStateLogic'
const HedgehogConstruction2 = pngHoggie(construction2Png)
-const HedgehogDoctor = pngHoggie(doctorPng)
const HedgehogError = pngHoggie(errorPng)
const HedgehogReaper = pngHoggie(reaperPng)
const HedgehogStampDenied = pngHoggie(stampDeniedPng)
@@ -564,27 +563,25 @@ export function InsightTimeoutState({ queryId }: { queryId?: string | null }): J
const { openSupportForm } = useActions(supportLogic)
return (
- <div data-attr="insight-empty-state" className="rounded px-4 py-6 h-full w-full">
- <h2 className="text-xl leading-tight mb-6 text-center text-balance">
- <IconWarning className="text-xl shrink-0 mr-2" />
- Your query took too long to complete
- </h2>
-
- <div className="rounded max-w-120 text-xs">
- Sometimes this happens. Try refreshing the page, reducing the date range, or removing breakdowns. If
- you're still having issues,{' '}
- <Link
- onClick={() => {
- openSupportForm({ kind: 'bug' })
- }}
- >
- let us know
- </Link>
- .
- </div>
-
- <QueryIdDisplay queryId={queryId} />
- </div>
+ <InsightErrorLayout
+ illustration={<InsightErrorIllustration kind="transient" />}
+ title="Your query took too long to complete"
+ detail={
+ <p>
+ Sometimes this happens. Try refreshing the page, reducing the date range, or removing breakdowns. If
+ you're still having issues,{' '}
+ <Link
+ onClick={() => {
+ openSupportForm({ kind: 'bug' })
+ }}
+ >
+ let us know
+ </Link>
+ .
+ </p>
+ }
+ footer={<QueryIdDisplay queryId={queryId} />}
+ />
)
}
@@ -639,36 +636,33 @@ export function InsightValidationError({
})
return (
- <div
- data-attr="insight-empty-state"
- className="flex flex-col items-center justify-center gap-2 rounded px-4 py-6 h-full w-full text-center text-balance"
- >
- <InsightErrorHoggie kind={errorKind} />
-
- <h2 data-attr="insight-loading-too-long" className="text-xl leading-tight font-bold mb-0 text-danger">
- {getInsightErrorTitle(errorKind, isPermissionError ? displayDetail : null)}
- </h2>
-
- <p className="text-sm text-muted max-w-120 mb-2">
- {isPermissionError
- ? 'Ask a project admin to grant you access to this table.'
- : renderDetailWithLinks(displayDetail)}
- </p>
-
- {showQueryDebuggerInstruction && !shouldExcludeActions && (
- <p className="text-sm text-muted max-w-120 mb-2">Open the query debugger and correct the query.</p>
- )}
-
- {/* For memory-limit errors, lead with the AI debugger but keep the retry/debugger action
+ <InsightErrorLayout
+ illustration={<InsightErrorIllustration kind={errorKind} />}
+ title={getInsightErrorTitle(errorKind, isPermissionError ? displayDetail : null)}
+ detail={
+ <>
+ <p>
+ {isPermissionError
+ ? 'Ask a project admin to grant you access to this table.'
+ : renderDetailWithLinks(displayDetail)}
+ </p>
+ {showQueryDebuggerInstruction && !shouldExcludeActions && (
+ <p>Open the query debugger and correct the query.</p>
+ )}
+ </>
+ }
+ actions={
+ /* For memory-limit errors, lead with the AI debugger but keep the retry/debugger action
beside it so users who decline AI consent (or lack AI access) still have a next step.
onClick fires when consent was already given (popover hidden); onApprove fires after
- the consent flow completes — same pattern as InsightAIAnalysis. */}
- {!shouldExcludeActions &&
+ the consent flow completes — same pattern as InsightAIAnalysis. */
+ !shouldExcludeActions &&
(isMemoryLimitError && !cta ? (
- <div className="flex items-center gap-2">
+ <>
<AIConsentPopoverWrapper onApprove={debugWithAI}>
<LemonButton
type="primary"
+ size="small"
onClick={debugWithAI}
data-attr="insight-memory-limit-debug-with-ai"
>
@@ -676,24 +670,25 @@ export function InsightValidationError({
</LemonButton>
</AIConsentPopoverWrapper>
{defaultCta}
- </div>
+ </>
) : (
defaultCta
- ))}
-
- {detail.includes('Exclusion') && placement !== DashboardPlacement.Export && (
- <div className="mt-4">
+ ))
+ }
+ footer={
+ detail.includes('Exclusion') &&
+ placement !== DashboardPlacement.Export && (
<Link
data-attr="insight-funnels-emptystate-help"
to="https://posthog.com/docs/user-guides/funnels?utm_medium=in-product&utm_campaign=funnel-exclusion-filter-state"
target="_blank"
+ targetBlankIcon
>
Learn more about funnels in PostHog docs
- <IconOpenInNew style={{ marginLeft: 4, fontSize: '0.85em' }} />
</Link>
- </div>
- )}
- </div>
+ )
+ }
+ />
)
}
@@ -730,19 +725,16 @@ type InsightErrorKind =
| 'server'
| 'unknown'
-const ERROR_HOGGIES: Record<InsightErrorKind, React.ComponentType<{ className?: string }>> = {
+const ERROR_HOGGIES: Partial<Record<InsightErrorKind, React.ComponentType<{ className?: string }>>> = {
rate_limit: HedgehogTrafficController,
memory_limit: HedgehogReaper,
invalid_query: HedgehogError,
permission: HedgehogStampDenied,
- transient: HedgehogConstruction2,
- server: HedgehogDoctor,
- unknown: HedgehogDoctor,
}
-function InsightErrorHoggie({ kind }: { kind: InsightErrorKind }): JSX.Element {
+function InsightErrorIllustration({ kind }: { kind: InsightErrorKind }): JSX.Element {
const Hoggie = ERROR_HOGGIES[kind]
- return <Hoggie className="w-24 h-24 mb-2" />
+ return Hoggie ? <Hoggie className="w-24 h-24" /> : <IconErrorOutline className="text-4xl shrink-0 text-danger" />
}
function getInsightErrorKind(status?: number | null, code?: string | null): InsightErrorKind {
@@ -914,62 +906,53 @@ export function InsightErrorState({
If this persists, submit a bug report.
</Link>
)
- const showErrorIcon = errorKind === 'transient' || errorKind === 'server' || errorKind === 'unknown'
-
return (
- <div
- data-attr="insight-empty-state"
- className="flex flex-1 min-h-0 flex-col items-center justify-center gap-2 rounded px-4 py-6 w-full text-center"
- >
- {showErrorIcon ? (
- <IconErrorOutline className="text-4xl shrink-0 text-danger mb-2" />
- ) : (
- <InsightErrorHoggie kind={errorKind} />
- )}
-
- <h2 className="text-xl text-danger leading-tight mb-6" data-attr="insight-loading-too-long">
- {/* Note that this default phrasing signals the issue is intermittent, */}
- {/* and that perhaps the query will complete on retry */}
- {displayTitle}
- </h2>
-
- {!supportOnly && (
- <div className="mt-4">
- {remediation && (
- <p className="max-w-120">
- {/* A sole string child keeps the countdown updating after page translation replaces its text node. */}
- {capacityRetryAt ? remediation : renderDetailWithLinks(remediation)}
- </p>
- )}
- {!excludeDetail && showBugReport && <p>{bugReportLink}</p>}
- </div>
- )}
-
- {/* Outside the excludeDetail gate: self-hosted sets excludeDetail=true, but
- supportOnly still needs the bug-report path or it dead-ends. */}
- {supportOnly && !isExport && <div className="mt-4">{bugReportLink}</div>}
-
- {!excludeActions && errorKind !== 'permission' && (
- <div className="flex gap-2 mt-4">
- {onRetry && canRetry ? (
- <RetryButton
- onRetry={() => {
- if (!capacityRetryAt || Date.now() >= capacityRetryAt) {
- onRetry()
- }
- }}
- query={query}
- loading={retryLoading}
- disabledReason={retryDisabledReason}
- />
- ) : (
- <QueryDebuggerButton query={query} />
- )}
- {fixWithAIComponent ?? null}
- </div>
- )}
- {!isExport && <QueryIdDisplay queryId={queryId} />}
- </div>
+ <InsightErrorLayout
+ illustration={<InsightErrorIllustration kind={errorKind} />}
+ // Note that this default phrasing signals the issue is intermittent,
+ // and that perhaps the query will complete on retry
+ title={displayTitle}
+ detail={
+ supportOnly ? (
+ // Outside the excludeDetail gate: self-hosted sets excludeDetail=true, but
+ // supportOnly still needs the bug-report path or it dead-ends.
+ !isExport && <p>{bugReportLink}</p>
+ ) : (
+ <>
+ {remediation && (
+ <p>
+ {/* A sole string child keeps the countdown updating after page translation replaces its text node. */}
+ {capacityRetryAt ? remediation : renderDetailWithLinks(remediation)}
+ </p>
+ )}
+ {!excludeDetail && showBugReport && <p>{bugReportLink}</p>}
+ </>
+ )
+ }
+ actions={
+ !excludeActions &&
+ errorKind !== 'permission' && (
+ <>
+ {onRetry && canRetry ? (
+ <RetryButton
+ onRetry={() => {
+ if (!capacityRetryAt || Date.now() >= capacityRetryAt) {
+ onRetry()
+ }
+ }}
+ query={query}
+ loading={retryLoading}
+ disabledReason={retryDisabledReason}
+ />
+ ) : (
+ <QueryDebuggerButton query={query} />
+ )}
+ {fixWithAIComponent}
+ </>
+ )
+ }
+ footer={!isExport && <QueryIdDisplay queryId={queryId} />}
+ />
)
}
diff --git a/frontend/src/scenes/insights/EmptyStates/InsightErrorLayout.tsx b/frontend/src/scenes/insights/EmptyStates/InsightErrorLayout.tsx
new file mode 100644
index 000000000000..9539613c1926
--- /dev/null
+++ b/frontend/src/scenes/insights/EmptyStates/InsightErrorLayout.tsx
@@ -0,0 +1,34 @@
+import type { ReactNode } from 'react'
+
+export function InsightErrorLayout({
+ illustration,
+ title,
+ detail,
+ actions,
+ footer,
+}: {
+ illustration: JSX.Element
+ title: string | JSX.Element
+ detail?: ReactNode
+ actions?: ReactNode
+ footer?: ReactNode
+}): JSX.Element {
+ // pinned: tests, stories and autocapture select on both data-attr values, so do not rename them
+ return (
+ <div
+ data-attr="insight-empty-state"
+ className="flex flex-1 min-h-0 flex-col items-center justify-center rounded px-4 py-6 w-full text-center text-balance"
+ >
+ {illustration}
+ <h2 data-attr="insight-loading-too-long" className="text-xl leading-tight text-danger mt-4 mb-0">
+ {title}
+ </h2>
+ {/* *:mb-0 removes the global paragraph margin, so the next step stays directly under the title */}
+ <div className="flex flex-col items-center gap-1 mt-1 max-w-120 text-sm text-tertiary *:mb-0 empty:hidden">
+ {detail}
+ </div>
+ <div className="flex flex-wrap justify-center gap-2 mt-4 empty:hidden">{actions}</div>
+ <div className="flex flex-col items-center gap-1 mt-3 empty:hidden">{footer}</div>
+ </div>
+ )
+}