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(taxonomic-filter): stop placeholder and empty state repeating each other (#107515)

Sam Pennington5184ead4dc83
diff --git a/frontend/snapshots.yml b/frontend/snapshots.yml
index a193e0e94b5a..de07395e797d 100644
--- a/frontend/snapshots.yml
+++ b/frontend/snapshots.yml
@@ -2657,9 +2657,9 @@ snapshots:
errortracking-exceptioncard--exception-card-header-widths-with-action--light:
hash: v1.k794b7964.fa3926467438994babfeb859e507aa4071b0489654e5a9151e856b3fc6695459.WmIqn8c1cmv9lbViVkzoqkrA6UF08Z-BkInlJIBINNM
errortracking-exceptioncard--exception-card-logs--dark:
- hash: v1.k794b7964.1030bfe45ba31d3fe94873ce09cdaeda8f81e86c0f71072d64a6267c551c6242.0pD2zOgFDmK5w5r-MnEbEzSAtOGpgYFKzEI8oJ8gUcs
+ hash: v1.k794b7964.9596d891ecde70954b0f85f1c026c58e481a74a6cfcb60b8be94e0dd01f4668c.otNvVYs8nJqXLqJdsYqhJPhduawyKMyUJpdGxxxBkGU
errortracking-exceptioncard--exception-card-logs--light:
- hash: v1.k794b7964.c691f17c502c069287778c899ef298787ba804c2a2ce40f47e2ce7fffdcac348.SwdlNY656OF7LWj_IFuHcynkhxd0_yhTkfFFwRPO3gU
+ hash: v1.k794b7964.0561f438c2b43b76c9d3861e3d920695c81f331d46f22280b25211cf1d6aa323.hLwbGoWJ7ZSv8fGvOkWo8PX251N7XG-uDrHlWsw076E
errortracking-exceptioncard--exception-card-logs-with-session-only--dark:
hash: v1.k794b7964.5bd0ad8b67ae58b27062a16c1a1ebb0680acbd1b5c80f2a55db66c040561c090.sfXIy31iHEXoyLQzR6UugSfwFTceEDkzDhKJa9FTTF0
errortracking-exceptioncard--exception-card-logs-with-session-only--light:
@@ -2671,7 +2671,7 @@ snapshots:
errortracking-exceptioncard--exception-card-logs-without-session--dark:
hash: v1.k794b7964.c29d713699bbbdaaad8a3f5d7697c5ef8d453f18a63c9a661894370b4521a658.9WjMf2zGXEiWpaxY3IYj28PMe5FOoYFsFqBkzjBWhjs
errortracking-exceptioncard--exception-card-logs-without-session--light:
- hash: v1.k794b7964.036417710485b035128e3d9334c9ab22ea6c216c567ece5a1668af80de4e16ca.A9auY_Pt1XV2Gixl_rwuvhkMLFZFPlW5S0szuhtkHWQ
+ hash: v1.k794b7964.db9c6dd8488496b40869a0adbdbefff3336b5df0343890dab9db54bb28203c9c.zn8RRPSRyjZ_9WTb5yJu8qb9ATtgDul7gsjITHEbSEQ
errortracking-exceptioncard--exception-card-no-in-app--dark:
hash: v1.k794b7964.0202a7987400a0f205709db94774e344cc90886efcc2e12d09f425567839d332.CXArdJgM3wO67eOHuvDr_4AFqGTOpB566tgl0bYYkFo
errortracking-exceptioncard--exception-card-no-in-app--light:
@@ -3141,17 +3141,17 @@ snapshots:
filters-taxonomic-filter--actions--light:
hash: v1.k794b7964.11b6a84d3cb7e57d67a632306dfb9dcb6dc406c6a94ba5afe3f04b5dad868e82.Y5RkLrqzCGuuPx4l3tYdrnbKO0jeKHaPSIP8mJkC5I0
filters-taxonomic-filter--autocapture-context-promotes-elements--dark:
- hash: v1.k794b7964.03e9fdf892dc64fbb785b7c3339d7c647f92983c53d76193b69900b793fa8544.nLDsHLw-Hspxmvxxk__zqdo9tfub2uRzsA4UHZFuloc
+ hash: v1.k794b7964.fe7399768d1f9f50c53492fbfc487775f3398a5e2184511027e1838bb1a11f84.yt_kc-Mc8IAYYkhFvDLXLobHxloTLxAdrtzcIol4l8w
filters-taxonomic-filter--autocapture-context-promotes-elements--light:
- hash: v1.k794b7964.a96071d32d3b45bccdf4ebdd65217c950a909a23ad18b52a3f0dbeb7e96b705c.O8Tq4NfaGHBlItTjckh5j5yaowAVtFfFCzanlchvRr4
+ hash: v1.k794b7964.67cec8d8913e79c59a36d6c8cf6c141e989b77af8815cab0406a48a58ae88a85.gq3UNNTE6LoyYv-eamdkVu0PZthrzJa_M84Sp8XxFMk
filters-taxonomic-filter--category-dropdown--dark:
- hash: v1.k794b7964.c9ee9be1f465a337f874296687a8347e60ec4148a7ee2bf1c99a46fa41a8656e.3ufM6kao0BVbnuHl9phxED53C2mKGF16132evFeKox4
+ hash: v1.k794b7964.240f132dda11a2f36aecc0e77e45c36d56d352d763768caa525339ccf7578cfc.3pj1ErEsvqdw2y80Pb_UCHUfYoSlelh93OvbYWafbZ4
filters-taxonomic-filter--category-dropdown--light:
- hash: v1.k794b7964.82cbab8a48d85c4f530ba6dc31f6a22dbdadf960595251887933ae8009c5a04a.fl7ERp1mMKg4p6UwGhH2iUSdqPEHzDyJ23MHxb1lcHQ
+ hash: v1.k794b7964.1bea71d84b0eb24126b991c7a545639f658d9ebd1194b9dc9bcb901e4543c143.2svfFUCdtdOtLNQW1pwyu6yzSUMjsLSSoYClBjQf-60
filters-taxonomic-filter--category-rail-pinned--dark:
- hash: v1.k794b7964.39915d4d2e7941a192598711dc078f8412927946a2174ceb6fa9137db0bcd39d.Ij-VXWTXnTqi38Y4Fdxxvhi1l3g4tqV80rRWIrAWehM
+ hash: v1.k794b7964.ec7737061d2ba8ef3a6ba408078ea5bf6114d18504091be17497634712ba8292.bhZAfMWI7xXawk6Xk8zcVxN_hPJUGQN3mtCpzteLOHY
filters-taxonomic-filter--category-rail-pinned--light:
- hash: v1.k794b7964.dd22935d8d4ebf873b40796ee98c8e3e733752cd759ae26305c3b542d692c0f6.rlGfkU84C0KPwFL_PxWf4NYBsDwQUjkaL-ZzdtcBjZU
+ hash: v1.k794b7964.216bb7b64a4d8292956a5399af50a729fc333a052f917b2a28725d8660d0bd19.17vZPcHxLysEZwE0vLdJr9jEGtxmr9ryku_mpPIjzoY
filters-taxonomic-filter--cohorts-with-realtime-states--dark:
hash: v1.k794b7964.4ecf5ef9bc95151a6444f1b7247ced4f43ad62f12399783f180c8d82f2b05021.12FrJN6IzU1RbrsFSt_QSvWv4xtr7haSiCTFtyE4ks4
filters-taxonomic-filter--cohorts-with-realtime-states--light:
@@ -3161,9 +3161,9 @@ snapshots:
filters-taxonomic-filter--custom-event-name--light:
hash: v1.k794b7964.7f0b97353f226ffb96560f2cf57c9b8eb51316eb387b898e773db7d61c94ed2e.DZ0haR5pv4fLsPtf9sXBi1YY_foTT99ynn4zrkgoXrs
filters-taxonomic-filter--dashboard-property-search--dark:
- hash: v1.k794b7964.c824be157968e0ef1b8dc82810f4a06dfff364af71722c53823f1d95d4542f7f.D-ZfI3CwGqAa9tdEaUF_psLO6gqWhGZTQnN6Y9i8GRY
+ hash: v1.k794b7964.08dd6b6ff90babc94016f15cece4f87ac9c733101503ab4d206bef311938de6b.11OskmuMksbFPIaDtmt8ptXswFKCZQsgje5sHpyWAXw
filters-taxonomic-filter--dashboard-property-search--light:
- hash: v1.k794b7964.d6743ee11d1ef80cc0fb6ceaf465684d2fe455ff2e1c4caa423b255dd9ca6dc3.O0RT-HV6tHeocwL0QPZGUceekoc42axbz0eD_buMRtE
+ hash: v1.k794b7964.a31bf51a80fdca614f2f36470aa051fd7faaf638ab84f332e7de43c944763c27.CznVxf4UBAP6trCkcSE7LgkjTJ3IazUfzMIhS8XBUMM
filters-taxonomic-filter--empty-events-with-event-match--dark:
hash: v1.k794b7964.30d20341622aff37c27fca8216269d839cc72aafd5a9cfb3a195cdde5ba414ed.ioGVHMVBgkAMr11FVdKj-pgx05LSlkwl-vuXRF-t6sw
filters-taxonomic-filter--empty-events-with-event-match--light:
@@ -3173,41 +3173,41 @@ snapshots:
filters-taxonomic-filter--empty-events-with-stale-toggle--light:
hash: v1.k794b7964.06c743209b67d84e2d6403f78e9a8dbb412f4d552936335f6380b841ab20ea05.RJKRGsdtc3psVWSHimWW-MDLaXIyUbQj2dU33xEIYC0
filters-taxonomic-filter--events-free--dark:
- hash: v1.k794b7964.86a242674dea38b8ebd31d93957a02e22bff722f3f225d4a6942376954fb50ad.Gd6p0d3jnVCj7cRgPAWZK_00Oyjv6OoeW0QTd8lnV9Y
+ hash: v1.k794b7964.66ffbc1a41e65685646edaa051c0112d431e5f99dcca205d6a62f2bd3ce60f4c.9sxt-JbSQIxs9w_imI-y34flHbdgcsTC57Md7yFCVzM
filters-taxonomic-filter--events-free--light:
- hash: v1.k794b7964.e3c0815c8dce0b92df1352585b71779c0c966a3cae68ede6ed32735dcba3713a.BubtC_DSYet7B-kOj0yctjx-RJUxUOErpbcPPFLDLq8
+ hash: v1.k794b7964.b19540c65cfb689ae3ef2abb1a6370f98d5e06731c111ac322017f695e36c204.VLQaJxLxLhGG0zW4Mgs8d0_eDvwfKbu2QJmwRqA67xE
filters-taxonomic-filter--events-premium--dark:
- hash: v1.k794b7964.86a242674dea38b8ebd31d93957a02e22bff722f3f225d4a6942376954fb50ad.y2sZ9Tl-DnrmeVGxInEcF28zI2McWrqW-9BlHrfXxMg
+ hash: v1.k794b7964.66ffbc1a41e65685646edaa051c0112d431e5f99dcca205d6a62f2bd3ce60f4c.PPxhOe8yS2I_i3Br3Zwg36uN0pGxweJs-3AwoEElWFM
filters-taxonomic-filter--events-premium--light:
- hash: v1.k794b7964.e3c0815c8dce0b92df1352585b71779c0c966a3cae68ede6ed32735dcba3713a.DHzA_l3P_7J_t9WSmmeIXghSd0mq92Y62rNJY6LNgaM
+ hash: v1.k794b7964.b19540c65cfb689ae3ef2abb1a6370f98d5e06731c111ac322017f695e36c204.dCc8KYe9G9BhIN3jH2grR8hTw7_nz-3zHxZmx3-DMfw
filters-taxonomic-filter--failed-fetch-offers-retry--dark:
hash: v1.k794b7964.10a15792b243817d48e633c341785bb53c61190855cdaaedbf1d998b63e2eeae.mTmd_ahFm4OUQSDwoQZQYsO3FpPuFvIv4TvR1YqBMz0
filters-taxonomic-filter--failed-fetch-offers-retry--light:
hash: v1.k794b7964.bb9f77210fc46675e7920c1b21c7a158e4eb39c85a08d4b0cde7c286595f469d.y8Rs6NZrklaloeqgzT466bxafKhL6pW6tLDQxQjgd9o
filters-taxonomic-filter--mcp-tool-call-context-leads-with-mcp-properties--dark:
- hash: v1.k794b7964.ffbfda93f744b8d5bd5d258502baca3e9765014aef16724e2874e0c7a3bf928d.EbNEAjjebwNJ2q9T6Og9Vo07e0_2dbhtZJTzgtWc0oM
+ hash: v1.k794b7964.80edbba0a15e82c25018db84a0ca6a3c901b7af27c116634f7c6a0e74dcafe9e.Tnrqr260g3aG9W7dyCpC2eHz0rlHWQeklCWTFGNJB_k
filters-taxonomic-filter--mcp-tool-call-context-leads-with-mcp-properties--light:
- hash: v1.k794b7964.4c4d2303631a2ea32aeb1a334432b26f5dee85ede270b108b927bfd91e832474.wexhAYuTJIuhrYAEp9B1ezruaBk6ntLFjKWbpwsI2jE
+ hash: v1.k794b7964.4b728a552e2a22e72ff1f698cd56acfd2379233707e42c29887ffedbbb74c397.9pC7oFrgymZSGx4HV-ezjtiaAtTH7PdIp0Aaemh3K8E
filters-taxonomic-filter--numerical-properties--dark:
- hash: v1.k794b7964.c33da40dce8ea809b95a29a2fc884686ef54e748fa80070f06e5d5de679df015.5fytenUZztzvNeN3ghgKY7XCHbAWaDlR49GLn3IGQZM
+ hash: v1.k794b7964.d1c2c8413417593220a9b0f8331cb0a07f295fe40111abae1ee42bcdc912b8e3.9mU7_kaGRbvtHBaylmYUhmkrS-_DVtpY8MiHO_hWwRQ
filters-taxonomic-filter--numerical-properties--light:
- hash: v1.k794b7964.095c98f29bf0bb1300d9377dcbea0570ee80cbd8c01fc4d4ce32f298dd3a68cb.YbMPQxozAMO7VbqWTuAdfHz4BV346ZR978NMNleZZL0
+ hash: v1.k794b7964.9fe58962be8e7363981da511a269cbea3f1c2128acf34d1b17603fc78149bd14.cFKF33IW8y-0GA1XJcYd_m9H3MtSXEF3cFmM1qtfIV0
filters-taxonomic-filter--promoted-groups-are-reordered--dark:
hash: v1.k794b7964.9b702b159248b346096153fa9040cbe32461f9163bc61db4a62207e7b3d41a03.kSWC_rpadvSfeHEOpdZ_Kl-JU3x_7OyFJXiDXzERUro
filters-taxonomic-filter--promoted-groups-are-reordered--light:
hash: v1.k794b7964.cb1eb14839e658abad0801b14e99596eb0c0a72fa627abd132ec2e2619982c4f.fgFqhz7UOlj_6r_WoOabyd4VlmuJl6F1rYpq8lkMdzw
filters-taxonomic-filter--properties--dark:
- hash: v1.k794b7964.59b62656e5f6ab4c7c6d3176c4887908ff8ae6629be1c4de6d961cba3edcb740.SfH14sAsSUB_-GlD8HK3Nas0JJlsuZ3fHXFtFu-zwDo
+ hash: v1.k794b7964.0e905de1eebb1a6eee1792eda5222e07858bd486b3248848e8355067d026299b.NQnjuRFzBW-6U5GpNjRhnwQrVGa5ZOppdHkfXkpiu1U
filters-taxonomic-filter--properties--light:
- hash: v1.k794b7964.d2bfa537685aa60fc07f714fd3aaa30473e9fd672b0e95754f57b310744342c7.X8SCD8UcIaycEwD0z8gq2_EWm68nI4opUEKSY0--Pj4
+ hash: v1.k794b7964.6c49619e16573b10aa494e467c28c00cee94d772fedd14fd793749525f653d2f.o3sFPUnoi2MHz2e6Kss2jRKcmaJQ4pyp9-lAsdGgItY
filters-taxonomic-filter--renamed-series-selected--dark:
- hash: v1.k794b7964.7a64d4e031d99774addf09c78809b732e1de363b31f9c700218c8bf7575d3e2f.WH57yBR5J4UpTBmxZY9s8ol8xcIv-hK1X3Lc9emcbEQ
+ hash: v1.k794b7964.fb64a7d9716fd41c8869b115f4ac78bb3395ec1be2255f20af59bb6177d2c700.hFRimzoTNZGPvex5BXK_kCM-yTQR89_ZhODywJzsckY
filters-taxonomic-filter--renamed-series-selected--light:
- hash: v1.k794b7964.1940698d5a4fcf5314afcc4f2f582228c3adcf8d8b7cc5f8725441f8a8d040b6.jx2166ANNlMWUeUy7K3G6V1zzk4Be62rFEreWDkf2r0
+ hash: v1.k794b7964.f1ac41cd5ca144c05d7c634b6a205b26770c11be092c3ce431fe7848d34c4c46.O9vgYC-ho1f3lVIi0HUclI-hW_LR9Y532GNbpGHmF1Q
filters-taxonomic-filter--renamed-series-selected-with-all-results--dark:
- hash: v1.k794b7964.7a64d4e031d99774addf09c78809b732e1de363b31f9c700218c8bf7575d3e2f.bm9u1TaKULFXL7zhr293AHvC82-5Puiypn88v0euEJU
+ hash: v1.k794b7964.fb64a7d9716fd41c8869b115f4ac78bb3395ec1be2255f20af59bb6177d2c700.s9XLCYFunwoPVwPblfGlEf9goZzuX7DhQ6B2dl_h35o
filters-taxonomic-filter--renamed-series-selected-with-all-results--light:
- hash: v1.k794b7964.1940698d5a4fcf5314afcc4f2f582228c3adcf8d8b7cc5f8725441f8a8d040b6.L87TGLih84ffADwLJZCeToQdaIewW50aBiH7MdbZ1CQ
+ hash: v1.k794b7964.f1ac41cd5ca144c05d7c634b6a205b26770c11be092c3ce431fe7848d34c4c46.3MjHijLyJp8Hl7i13rb11qniC00r6a79PA1SOYozbEM
filters-taxonomic-filter--search-intent-promotes-group--dark:
hash: v1.k794b7964.36bfca465fa81a617cb228956bf5cbcbdfc742b8010f455688310ea35a353a67.EDotXLAmxjeQbl7CmhNRK8ItX_qcXIBHu938KCKvUS8
filters-taxonomic-filter--search-intent-promotes-group--light:
@@ -3221,33 +3221,33 @@ snapshots:
filters-taxonomic-filter--search-intent-suggests-another-tab-narrow--light:
hash: v1.k794b7964.72234524ecda0b8294d10f45c644bf92f87bd593c0b7302a9de4e28ebadd1540.rNOcJTlCEBkSlMS7HKGL16EFcy-zV4nysz_uUxeWNm8
filters-taxonomic-filter--six-groups-default-layout--dark:
- hash: v1.k794b7964.627294fb84ded4e91c4b583e04c2b6e9ca0bdcd34464f49d0d26234cc89d4348.M68XdlTkoApLdDr13jO67fmlGFLjATJfb8ZwdU6xP5Y
+ hash: v1.k794b7964.945dbbdd4de969338dd9a41a0f83691bc55bd176799553b86767b36765c0a4b7.WqyxPqTefTl5kaCylmwN-Euhjf3P0yEXhVubjHV9n9A
filters-taxonomic-filter--six-groups-default-layout--light:
- hash: v1.k794b7964.9cd1c6956bc4c758b448ef5c2a68856f7e5d337f9e14b710d91eab2d3dfd11b5.DC2VxqryAs1k3BXNGuXjhF9iBuf0hKyAg2yu6AT1ifw
+ hash: v1.k794b7964.1d30e8d1f42dd7def0dae98f25165eb23101b33779e97a587809a6390d0b008c.dqU_mTGG9X9RB-dJyUzNpkDHaaqY_aN2krotRegAgfg
filters-taxonomic-filter--slow-expansion-count--dark:
hash: v1.k794b7964.c3783e44baf26929ef52a628b80518b29b164b75940c8838d9d433ed0b20f7a4.xCUhop6GMvnPlG1OYdefsLgIA4lnMQAGDPQwLn9GXKk
filters-taxonomic-filter--slow-expansion-count--light:
hash: v1.k794b7964.eba313bd86effd499c583d3627f8b2a65cb094b4d8315c3605cab76ff5e3cb03.G6jhuV9FxmQDbO9uL8xlftotmScDKki6EhVSOfIih9k
filters-taxonomic-filter--suggested-filters-five-recents-with-truncation--dark:
- hash: v1.k794b7964.909719eef6bf0509b61e9aa25510c7ebd0b41418e6d752d5ec6684583e5f116d.f_mdD2E4gjY2O2_Jzx8wesBuNW_WeWeR-U9ZFFUNB98
+ hash: v1.k794b7964.d4da87f8a85a5409f0d3d353238ee089a053c45f8dc6c7c697b2233bf9c3609b.I05cXYyQhku87tN5qJdA-c2qt8Nce_29CO2ZF7CdD10
filters-taxonomic-filter--suggested-filters-five-recents-with-truncation--light:
- hash: v1.k794b7964.342cf0c728c39e81ab51d9aea255de0b87462545be40929323d8dad39c11672f.6qQB4HafqsVUtThF4MnYljAcGeXcR1C4uimfVXGD_3k
+ hash: v1.k794b7964.1516a5def4b0707b7fbfd1b802c4213f9c20152a76c5341c6b6f421f4160c8e1.wgJWsLlF79bnrb3t_madcqzJwK12t40AYt588zUxmxA
filters-taxonomic-filter--suggested-filters-four-recents--dark:
- hash: v1.k794b7964.8ab29811d9a361822aa041e67960d8befb8bfc0db665b92a90313a231ebc2869.YYZrU9nQuOGkrGd07fNAAEZvKYsAWPjCFff_RH54-4o
+ hash: v1.k794b7964.0a575ca6299bcf410721cf4830da87471e7cb39d9d4e1c59f7783fea4fa14568.wa5o_GtmbhyZZBnj3WYGIuepN92cGh3XdpkSKxn7dII
filters-taxonomic-filter--suggested-filters-four-recents--light:
- hash: v1.k794b7964.7a58e76862d0973aac72456ecb2f15d829140743c6febe7da38a03905c1773a7.k2ubsvZWOpP5YgzuSlbjt9hpllqINuT-pfKQQxf6Kqc
+ hash: v1.k794b7964.9828822bbbcf417f599b9e4d29e61a6402f319d7e5b4643641574e329daec2a9.giu3tTPl5RTJwCttNLmbIQy6p0liykMY45JW9_ULsiU
filters-taxonomic-filter--suggested-filters-no-recents--dark:
- hash: v1.k794b7964.8bc3d8a3fa5b2a6ae51ff5ee794eb3aa9e6f70950dbdc4ca57480881f4674122.58CcEGGEN2R9jO2eTg79v2B73LeE7ZAxI5Li4fPNKWY
+ hash: v1.k794b7964.91034ab956b4b281555193ce59a80a27ae3c64763d61c2f89c96eea83405d3bf.7UCA2t45eLfap79jwBK_ZT3DV00UHLYwi38NSjUX29Q
filters-taxonomic-filter--suggested-filters-no-recents--light:
- hash: v1.k794b7964.f2b92329e73b790539a31cce61a2437dfdf919f31336df56cb6398c78effefdd.M3iy09A8ezvKvWQoByF2zFV58V-6Q2ejndadLyzIauE
+ hash: v1.k794b7964.3378343c0d53b54efe3db03fe8532ecc847b802a24efd7d668e7756bbaadfb83.4Wr0_6cMZJ3oeV9HZDckEKJvD025hqyIP5jGoIizEEg
filters-taxonomic-filter--suggested-filters-one-recent--dark:
- hash: v1.k794b7964.fd40b1f794e4b8d6a568b6ad04f0e8a6290703d66a3b3d1e09df38feda4af993.sppJmyKzvYu7JzECp7KA3OBzAu9c-_UA6ma7gg6UidI
+ hash: v1.k794b7964.750a4ecd25eb48ce767b63ed12b700d308dcbc0e705d0e405859bd540d8b6942.5FHmOohOqp_swlTPlQ6wWgPw1JiSQts8S9KCHWoTleE
filters-taxonomic-filter--suggested-filters-one-recent--light:
- hash: v1.k794b7964.c6b48808b77b77d9f78e796ce64abc2c9b25f2518abf95f9c5f3a6e2c8a5f319.ZIvUaZjf4atEwGPmcwAF-wGHYdHypbXUOJN9rS6z1bY
+ hash: v1.k794b7964.15cd848974fd6b1f1ea87da2eaaeb0e541552fbacd40f623c2c57f0b34ab20ee.BWxSO3kC97w9Ybl3PD-Jue6ZpnEXGdavQ5cOHV7MNN8
filters-taxonomic-filter--three-groups-default-layout--dark:
- hash: v1.k794b7964.4cfbb81c4c750a1ce92af203b15f88591898401a3627a4bcd6cb953896cfa101.AYKwPfqIFp6iTqcfHtoWTb1DLwMxhhNPcILKsS2-YoY
+ hash: v1.k794b7964.c86259cd31b7314e2501ce1f5d2d9df90c71d89973451bc4fc7dc75f804f2ab0.0rNsoV08CBVe1fMHn0PdC9SQFdUUuvcWjZxuegKJDi0
filters-taxonomic-filter--three-groups-default-layout--light:
- hash: v1.k794b7964.52b14938c6d46ada7a2e836ffb42d822b5fdb110021929729fef734f80fa0c3c.c7Ny9VfNlpKbolYt_jxLFlxHU0SgbWywGVLn4XdpU5M
+ hash: v1.k794b7964.3a912cff1eae56feebdbc21446fdc3e61ac0d509204d8ad721b3aceb70720772.W1NBO4lj4EJOyXLHzqNk2WNFsya5ck4u27neOIPYc5M
filters-taxonomic-filter-menu-rebuild--cohorts-with-realtime-states--dark:
hash: v1.k794b7964.932df90594833f5d2039f583a662cc2aa42e72c7ad7f13f3075bd06a0119d077.O-c_P7j4v0FdBkmPUMcU5gjN-BPns7MvdvhkXEGQxcE
filters-taxonomic-filter-menu-rebuild--cohorts-with-realtime-states--light:
diff --git a/frontend/src/lib/components/PropertyFilters/PropertyFilters.component.test.tsx b/frontend/src/lib/components/PropertyFilters/PropertyFilters.component.test.tsx
index 20ffb88974cc..0b9d87480d35 100644
--- a/frontend/src/lib/components/PropertyFilters/PropertyFilters.component.test.tsx
+++ b/frontend/src/lib/components/PropertyFilters/PropertyFilters.component.test.tsx
@@ -336,7 +336,7 @@ describe('PropertyFilters recent selections', () => {
await waitFor(() => {
expect(screen.getByTestId('prop-filter-suggested_filters-0')).toBeInTheDocument()
- expect(screen.getByText(/Start searching/)).toBeInTheDocument()
+ expect(screen.getByText(/Type a value like a URL and we'll suggest a filter for it/)).toBeInTheDocument()
})
})
diff --git a/frontend/src/lib/components/TaxonomicFilter/InfiniteList.tsx b/frontend/src/lib/components/TaxonomicFilter/InfiniteList.tsx
index 04da7bb0fec4..fcbd8dfa54a7 100644
--- a/frontend/src/lib/components/TaxonomicFilter/InfiniteList.tsx
+++ b/frontend/src/lib/components/TaxonomicFilter/InfiniteList.tsx
@@ -471,8 +471,7 @@ export const InfiniteListRow = ({
return (
<div style={style} className="flex flex-col items-center justify-center gap-1 pt-2">
<IconSearch className="text-3xl text-tertiary" />
- <span className="text-secondary text-center text-xs">Start searching and we'll suggest filters...</span>
- <SuggestedFiltersSearchHint taxonomicGroupTypes={taxonomicGroupTypes} />
+ <SuggestedFiltersMessage taxonomicGroupTypes={taxonomicGroupTypes} className="text-xs" />
</div>
)
}
@@ -761,8 +760,7 @@ function InfiniteListEmptyState(): JSX.Element {
{suggestedFiltersBeforeSearching ? (
<>
<IconSearch className="text-5xl text-tertiary" />
- <span className="text-secondary text-center">Start searching and we'll suggest filters...</span>
- <SuggestedFiltersSearchHint taxonomicGroupTypes={taxonomicGroupTypes} />
+ <SuggestedFiltersMessage taxonomicGroupTypes={taxonomicGroupTypes} />
</>
) : needsMoreSearchCharacters ? (
<>
@@ -1062,11 +1060,24 @@ export function InfiniteList({ popupAnchorElement, definitionPopoverRenderer }:
)
}
-function SuggestedFiltersSearchHint({
+function SuggestedFiltersMessage({
taxonomicGroupTypes,
+ className,
}: {
taxonomicGroupTypes: TaxonomicFilterGroupType[]
-}): JSX.Element | null {
+ className?: string
+}): JSX.Element {
+ const examples = suggestedFiltersSearchExamples(taxonomicGroupTypes)
+ return (
+ <span className={clsx('text-secondary text-center', className)}>
+ {examples
+ ? `Type a value like ${examples} and we'll suggest a filter for it`
+ : "Start typing and we'll suggest filters"}
+ </span>
+ )
+}
+
+function suggestedFiltersSearchExamples(taxonomicGroupTypes: TaxonomicFilterGroupType[]): string | null {
const groupSet = new Set(taxonomicGroupTypes)
const hints: string[] = []
if (groupSet.has(TaxonomicFilterGroupType.EmailAddresses)) {
@@ -1081,13 +1092,11 @@ function SuggestedFiltersSearchHint({
if (hints.length === 0) {
return null
}
- const joined =
- hints.length === 1
- ? hints[0]
- : hints.length === 2
- ? `${hints[0]} or ${hints[1]}`
- : `${hints.slice(0, -1).join(', ')}, or ${hints[hints.length - 1]}`
- return <span className="text-center text-secondary italic">Try searching for {joined}</span>
+ return hints.length === 1
+ ? hints[0]
+ : hints.length === 2
+ ? `${hints[0]} or ${hints[1]}`
+ : `${hints.slice(0, -1).join(', ')}, or ${hints[hints.length - 1]}`
}
function resolveItemRendering({
diff --git a/frontend/src/lib/components/TaxonomicFilter/taxonomicFilterLogic.test.ts b/frontend/src/lib/components/TaxonomicFilter/taxonomicFilterLogic.test.ts
index f6c07b3f0786..930f22133063 100644
--- a/frontend/src/lib/components/TaxonomicFilter/taxonomicFilterLogic.test.ts
+++ b/frontend/src/lib/components/TaxonomicFilter/taxonomicFilterLogic.test.ts
@@ -1097,6 +1097,45 @@ describe('taxonomicFilterLogic', () => {
})
})
+ describe('searchPlaceholder', () => {
+ it.each([
+ { groupTypes: [TaxonomicFilterGroupType.Events], expected: 'events' },
+ {
+ groupTypes: [TaxonomicFilterGroupType.Events, TaxonomicFilterGroupType.Actions],
+ expected: 'events or actions',
+ },
+ {
+ groupTypes: [
+ TaxonomicFilterGroupType.SuggestedFilters,
+ TaxonomicFilterGroupType.Events,
+ TaxonomicFilterGroupType.Actions,
+ TaxonomicFilterGroupType.Cohorts,
+ ],
+ expected: 'events, actions or cohorts',
+ },
+ {
+ groupTypes: [
+ TaxonomicFilterGroupType.SuggestedFilters,
+ TaxonomicFilterGroupType.EventProperties,
+ TaxonomicFilterGroupType.PersonProperties,
+ TaxonomicFilterGroupType.Events,
+ TaxonomicFilterGroupType.Cohorts,
+ ],
+ expected: 'event properties, person properties, and more',
+ },
+ ])('names $expected without meta groups', ({ groupTypes, expected }) => {
+ const testLogic = taxonomicFilterLogic({
+ taxonomicFilterLogicKey: `testPlaceholder-${groupTypes.join('-')}`,
+ taxonomicGroupTypes: groupTypes,
+ })
+ testLogic.mount()
+
+ expect(testLogic.values.searchPlaceholder).toBe(expected)
+
+ testLogic.unmount()
+ })
+ })
+
describe('promoted groups are reordered', () => {
it.each([
{
diff --git a/frontend/src/lib/components/TaxonomicFilter/taxonomicFilterLogic.tsx b/frontend/src/lib/components/TaxonomicFilter/taxonomicFilterLogic.tsx
index 20f148c9da24..6eafe47371df 100644
--- a/frontend/src/lib/components/TaxonomicFilter/taxonomicFilterLogic.tsx
+++ b/frontend/src/lib/components/TaxonomicFilter/taxonomicFilterLogic.tsx
@@ -2459,21 +2459,23 @@ export const taxonomicFilterLogic = kea<taxonomicFilterLogicType>([
!type.startsWith(TaxonomicFilterGroupType.GroupNamesPrefix)
)
}
- const names = searchGroupTypes
- .map((type) => {
- const taxonomicGroup = allTaxonomicGroups.find(
- (tGroup) => tGroup.type == type
- ) as TaxonomicFilterGroup
- return taxonomicGroup.searchPlaceholder
- })
- .filter(Boolean)
- return names
- .filter((a) => !!a)
+ // Meta groups such as "all", "recent" and "pinned" repeat the other groups, so they only name
+ // the search when nothing else can.
+ const contentGroupTypes = searchGroupTypes.filter((type) => !META_GROUP_TYPES.has(type))
+ const names = (contentGroupTypes.length > 0 ? contentGroupTypes : searchGroupTypes)
.map(
- (name, index) =>
- `${index !== 0 ? (index === searchGroupTypes.length - 1 ? ' or ' : ', ') : ''}${name}`
+ (type) =>
+ (allTaxonomicGroups.find((tGroup) => tGroup.type == type) as TaxonomicFilterGroup)
+ .searchPlaceholder
)
- .join('')
+ .filter(Boolean)
+ // A long list gets cut off in the search input, so name the first two groups only.
+ if (names.length > 3) {
+ return `${names[0]}, ${names[1]}, and more`
+ }
+ return names.length > 1
+ ? `${names.slice(0, -1).join(', ')} or ${names[names.length - 1]}`
+ : names.join('')
},
],
suggestedFilterGroupOrder: [