Repository navigation
Conversation
Co-authored-by: Drew Davis <pulpdrew@gmail.com>
Co-authored-by: Drew Davis <pulpdrew@gmail.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
🦋 Changeset detectedLatest commit: a1215e2 The changes in this PR will be included in the next version bump. This PR includes changesets to release 3 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
Duplicate code analysisNo new duplicate code introduced by this PR. jscpd compared this branch against |
🔵 Tier 2 — Low RiskSmall, isolated change with no API route or data model modifications. Why this tier:
Review process: AI review + quick human skim (target: 5–15 min). Reviewer validates AI assessment and checks for domain-specific concerns. Stats
|
| variant="subtle" | ||
| size="compact-xs" | ||
| disabled={disabled} | ||
| onClick={event => { |
There was a problem hiding this comment.
🟡 P2 — Calling stopPropagation in onClick doesn't stop the toggle from focusing the field and opening the dropdown
Mantine's PillsInput root has an onMouseDown handler that calls preventDefault() and focuses the inner field. Mousedown fires before click, so pressing the toggle still focuses PillsInput.Field, and its onFocus opens the dropdown. The behaviour the comment and PR description promise doesn't happen. Fix: also add onMouseDown={e => e.stopPropagation()} on the toggle Button, or move the toggle outside the PillsInput. Then add a test that clicking the toggle leaves the dropdown closed.
Advisory. Fix if it is a small defect in code this PR changes; otherwise reply in the thread. Do not widen the PR or touch files it did not already change. How to respond
PR Review
4 finding(s): 🔴 0 P0/P1 · 🟡 3 P2 · 🔵 1 P3 1 posted as inline comment(s) on the changed lines. 2 listed below. 1 P3 folded at the bottom. Findings outside the changed lines
🔵 1 P3 — no action needed before merge
Priority comes from a separate grading pass over the finished review. P3 is folded here instead of posted inline. No finding blocks merge automatically; a maintainer decides. |
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes using high effort and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, have a team admin enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit a1215e2. Configure here.
| // into the search field. | ||
| event.stopPropagation(); | ||
| setIsExpanded(expanded => !expanded); | ||
| }} |
There was a problem hiding this comment.
Toggle still opens the dropdown
Medium Severity
The +N more toggle only calls stopPropagation on click, but Mantine PillsInput focuses its field on mousedown, and that field's onFocus opens the dropdown. Clicking the toggle still moves focus into the search field and opens the menu, which this handler was meant to prevent.
Reviewed by Cursor Bugbot for commit a1215e2. Configure here.
Deep Review✅ No critical issues found. This is a small, well-scoped change that faithfully mirrors the existing 🟡 P2 -- recommended
🔵 P3 nitpicks (2)
Reviewers (8): correctness, testing, maintainability, project-standards, kieran-typescript, julik-frontend-races, agent-native, learnings-researcher. Testing gaps:
No finding blocks merge automatically. A maintainer will expect P0/P1 findings in code this PR changes to be fixed; P2/P3 are your call -- fix or reply. Never fix findings about surrounding code here; reply instead. Do not widen the PR. How to respond |
E2E Test Results✅ All tests passed • 501 passed • 1 skipped • 1099s
Tests ran across 4 shards in parallel. |


Summary
Ad hoc dashboard filters already collapse their conditions past the first three behind a "+N more" toggle so the filters bar doesn't grow tall. This extends the same overflow/truncation behavior to every other filter type (queried, static list, SQL query) — all of which render selected values as pills through the shared
VirtualMultiSelect.When more than three values are selected,
VirtualMultiSelectnow shows the first three pills plus a "+N more" / "Show less" toggle, keeping each filter's footprint fixed instead of letting a many-value selection push the tiles below it down.MAX_COLLAPSED_PILLS = 3mirrors ad hoc filters'MAX_COLLAPSED_CONDITIONS.Screenshots or video
The "collapsed" shot is the new default once more than three values are selected; "expanded" (via Show less) is the old always-expanded layout that grew the bar tall.
How to reproduce
Starting point: full-stack
yarn dev(needs a dashboard with filters).On
main:On this branch:
How to test on Vercel preview
Preview routes: /dashboards
Steps:
References
Resolves HDX-6268
Fixes HDX-6268
Note
Low Risk
UI-only layout change in a shared multi-select component; existing selection and remove behavior is preserved.
Reviewed by Cursor Bugbot for commit a1215e2. Bugbot is set up for automated code reviews on this repo. Configure here.