: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
fix(replay): tidy up saved-filters filter editor UI (#70569)
Kim Svatos Dugan0e35e62e6263
diff --git a/frontend/snapshots.yml b/frontend/snapshots.ymlindex 432a241a97a8..923e2d6f9e91 100644--- a/frontend/snapshots.yml+++ b/frontend/snapshots.yml@@ -4937,23 +4937,23 @@ snapshots:replay-tabs-home-filters-banner--product-analytics-over-limit--dark:hash: v1.k794b7964.e43831aab10f34ebb833d39856c8285ca3ec054b018c07a8eea2dc6551d12119.w0JYkgk5ujwBybY8356Xe93bi6ky_z7Skt5wuoRPX1greplay-tabs-home-filters-banner--product-analytics-over-limit--light:- hash: v1.k794b7964.3455a8a462eb913f7d478672c16b5fa56fd4591efcc09b5ad1119707842f80b3.FMUgEs84D1HWKB2fVtRZP_Dsk6HYgaz604k3bLZqwFI+ hash: v1.k794b7964.e338b80ff0cdbd414dc92b76641efb7560f4be240c814a3ff995914f7a34ac5c.gjqnN9mJx2Z2iF34W3oG_UO6slLlN5qNY3XOfMsm0fYreplay-tabs-home-filters-banner--product-analytics-under-limit--dark:hash: v1.k794b7964.c4cc11f519896f1493409b60c0a04da6023d71a83374094c29c2666c65c205cf.aabEMRgGPdgSlwx4q2x34yULwzqiBwz2CI6LUyV5eakreplay-tabs-home-filters-banner--product-analytics-under-limit--light:- hash: v1.k794b7964.8aef11640f2612fd00277924ac07729da66aad48389f4c62c09766a0bffd7e79.Oki9d0hynyBIzPd1dnBscUIL1eiTrxspvKYclw4ZO90+ hash: v1.k794b7964.1b0064609d6933870d97507fde03a00df873b2fd5c2c5396db1d6b37c4d3cef1._Cm5cCDaX-P4_4PnAI4QSlR13YJcEs85p94DHdhDEGMreplay-tabs-home-success--filters-expanded--dark:hash: v1.k794b7964.7f58d696106b07e8b83f39ceadd4afedd2ea3b9f5f54ee830ac47ef892a491df.oro7TiUySJjhJ8DgIKv2MQa-3bli9EEwFGB4wjvw_Rwreplay-tabs-home-success--filters-expanded--light:- hash: v1.k794b7964.ed929373330766184871ab4391f60a9f990f33619f5e543a2d9f200750af5d61.XKzHPhDcfbRTUjkuvuLvDttjIkS8EsKol7G434_fZY4+ hash: v1.k794b7964.2c7829688de58fdac4ec7b5a29aad114abe746106b7740199e5bcf6710e93709.XK_CXqwYtAdN3etTCmAxtroSOM0743Qi_s3U8o3H5Boreplay-tabs-home-success--filters-expanded-lots-of-results--dark:hash: v1.k794b7964.03f4cfafeac55d46708f6535d81f83561cdd5303f21990a0bd7552d734fafcd9.xg6GQwjqNts-8iDh1YHzv_T9wpgC3WWcDfOi4RXrJmYreplay-tabs-home-success--filters-expanded-lots-of-results--light:- hash: v1.k794b7964.f235bb42f1bac1209abb9791a0919e1acf48186a47e085db5156dc960b1a221e.0dziDcsbtzHrDsFSne7Yh8YdpbOrqURtg8r2oFXsH_o+ hash: v1.k794b7964.0c69c90d085a99b0499ef915f1bc4e51e2acb4506a760e01567a9390fbfd8da8.wY2EdNdJ1fIcSR6f8wzWh1iG8n2KiE175tyiS-oY34greplay-tabs-home-success--filters-expanded-lots-of-results-narrow--dark:- hash: v1.k794b7964.8b3d5326acff02eba0bc8abd245a7316b2384eacd95519ca9a47625d6a1f2d06.Pr8cB1knQtSQfMoTBaKaDlOjMO4H3FKGKNRmCzwBMY0+ hash: v1.k794b7964.6d0369b1097f2c04c5812d3fd97ccc6812e21ff46e96e32d429f387443afda9a.OI2h2E6NjaIBU9qz6FfY1mkhF8G7FLOghGS84giuohQreplay-tabs-home-success--filters-expanded-lots-of-results-narrow--light:- hash: v1.k794b7964.0d511b1df87dfdead8a9fed5556558a60deff91aff038b989849eeaad00c1210.R_GlOaoNPaM3re81ccG2zGUFyzhq3ZcG9UunuOqRpH8+ hash: v1.k794b7964.60afab820198007e72068b2957f7d9829644f7a0d71296878aa0bcb98c296f1e.t5sK2_OrCMUGVB6a_5y0HK94rAF-JbEkfflfAUouKPUreplay-tabs-home-success--recent-recordings--dark:hash: v1.k794b7964.1674be6fbb15e43b13462761569849fcadf46d5196c19bffd49258d3150a8856.1J-EStkYw8t1u-ouQ0txgIrfcll4bFrP60Raz75wRvUreplay-tabs-home-success--recent-recordings--light:diff --git a/frontend/src/lib/components/UniversalFilters/UniversalFilterButton.scss b/frontend/src/lib/components/UniversalFilters/UniversalFilterButton.scssindex 53a2b6de570f..366295658ee7 100644--- a/frontend/src/lib/components/UniversalFilters/UniversalFilterButton.scss+++ b/frontend/src/lib/components/UniversalFilters/UniversalFilterButton.scss@@ -2,7 +2,10 @@gap: 0.375rem;height: 1.625rem;padding: 0.125rem 0.625rem;- overflow: hidden;++ // `visible` (not `hidden`) so the event pill's absolutely-positioned count badge isn't clipped at+ // the top-right corner. Long labels are truncated in JS via `midEllipsis`, not by this overflow.+ overflow: visible;color: var(--text-3000);white-space: nowrap;cursor: default;diff --git a/frontend/src/scenes/session-recordings/filters/RecordingsUniversalFiltersEmbed.tsx b/frontend/src/scenes/session-recordings/filters/RecordingsUniversalFiltersEmbed.tsxindex bb4e3c7e26c4..1a49ae4407bf 100644--- a/frontend/src/scenes/session-recordings/filters/RecordingsUniversalFiltersEmbed.tsx+++ b/frontend/src/scenes/session-recordings/filters/RecordingsUniversalFiltersEmbed.tsx@@ -699,8 +699,8 @@ export const ReplayFiltersTab = ({<div className={clsx('relative bg-surface-primary w-full h-full', className)}><ProductAnalyticsOverLimitBanner />{appliedSavedFilter && (- <div className="border-b px-2 py-3 flex flex-wrap items-center gap-2">- <div className="flex items-center gap-2 min-w-0 flex-1 basis-3/5">+ <div className="border-b px-2 py-2 flex flex-wrap items-center gap-2">+ <div className="flex items-center gap-2 min-w-0"><span className="font-medium whitespace-nowrap shrink-0">Loaded saved filter:</span><SavedFilterNameEditorappliedSavedFilter={appliedSavedFilter}@@ -747,7 +747,7 @@ export const ReplayFiltersTab = ({)}</div>)}- <div className="flex items-center py-2 justify-between">+ <div className="flex items-center py-2 justify-between px-2"><AndOrFilterSelect// Reflect the effective operand, not just the outer group: legacy saved filters can// carry the match-any on the inner group while the outer stays AND. Toggling syncs@@ -781,7 +781,7 @@ export const ReplayFiltersTab = ({suffix={['filter', 'filters']}size="small"/>- <div className="mr-2">+ <div>{compactActions ? (resetButton) : (@@ -880,7 +880,7 @@ export const ReplayFiltersTab = ({<><LemonDivider className="mt-4" />- <div className="flex items-center py-2 justify-between px-1 gap-2">+ <div className="flex items-center py-2 justify-between px-2 gap-2">{showFeedbackButton && (<LemonButtonid="replay-filters-feedback-button"