Code Review Bench PR #25574 - Analytics filter refinements#12
Code Review Bench PR #25574 - Analytics filter refinements#12ketkarameya wants to merge 10 commits intobase_pr_25574_20260125_2906from
Conversation
Code Review
|
| Auto-apply | Compact |
|
|
Was this helpful? React with 👍 / 👎 | Gitar
| if (field.autoCloseOnSelect) { | ||
| handleClose(); | ||
| } | ||
| } else { |
There was a problem hiding this comment.
⚠️ Bug: Single-select in popover mode no longer calls onClose callback
The handleClose() call was removed from the single-select else branch in the popover rendering path (line 1275-1278). Previously, selecting a single-select option would call both setOpen(false) and handleClose() — the latter calls onClose?.() which notifies the parent component.
Now only setOpen(false) is called, so:
- The
onClosecallback is never invoked for single-select in the popover path - The search input clearing relies only on the delayed
setTimeoutinonOpenChange(line 1169) rather than immediate clearing
This could cause state management issues in parent components that depend on onClose to reset their own state.
Was this helpful? React with 👍 / 👎
| } else { | |
| } else { | |
| onChange([option.value] as T[]); | |
| handleClose(); | |
| } |
- Apply suggested fix
Benchmark PR for Gitar evaluation
Original PR: agentic-review-benchmarks#11
Refines analytics filtering functionality for better performance.
Summary by Gitar
autoCloseOnSelectproperty inFilterFieldConfigenables configurable dropdown auto-close behaviordata-[state=closed]:!animation-nonefor instant close transitionsFunnelPlusicon, audience filter auto-closes on selectionw-80, UTM badges hidden viaselectedOptionsClassName: 'hidden'This will update automatically on new commits.