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): close reveal barrier on mount when already searching (#70212)

Paul D'Ambrab7847a3d14b4
diff --git a/frontend/src/lib/components/TaxonomicFilter/menu/Combobox.tsx b/frontend/src/lib/components/TaxonomicFilter/menu/Combobox.tsx
index c997e5f6bbd7..47a994b1522d 100644
--- a/frontend/src/lib/components/TaxonomicFilter/menu/Combobox.tsx
+++ b/frontend/src/lib/components/TaxonomicFilter/menu/Combobox.tsx
@@ -231,13 +231,13 @@ export function MenuFilterCombobox({
// `loadingByType` which is `loading && no-items-yet`). Drives the reveal
// barrier so kept-previous-data refetches still hold the list.
const [fetchingByType, setFetchingByType] = useState<Record<string, boolean>>({})
+ // Only engages while actively searching a fetching scope. Recent/Pinned
+ // drills read pre-resolved `drillItems` (no fetch) so they're never gated.
+ const searching = !drillItems && !!searchQuery.trim()
// Reveal barrier (ported from the legacy `taxonomicFilterLogic`): on a fresh
// search we hold the result list behind skeletons until every visible group's
// fetch settles (or a 5s fallback), so slower groups don't render on top of a
// stale/partial list and rows don't jump around. Mirrors `revealBarrierOpen`.
- // Only engages while actively searching a fetching scope. Recent/Pinned
- // drills read pre-resolved `drillItems` (no fetch) so they're never gated.
- const searching = !drillItems && !!searchQuery.trim()
// Start closed when mounting already searching (e.g. a drilled-in query
// preserved across reopen); otherwise recents/pinned, which render from
// props with no fetch involved, paint immediately while the async groups