Skip to content

fix(select): prevent bulk action buttons from being cut off in filters - #37453

Merged
msyavuz merged 1 commit into
apache:masterfrom
massucattoj:fix/select-bulk-actions-button-cutoff
Jan 28, 2026
Merged

msyavuz merged 1 commit into
apache:masterfrom
massucattoj:fix/select-bulk-actions-button-cutoff

Conversation

@massucattoj

Copy link
Copy Markdown
Contributor

SUMMARY

Fixes the "Select all" and "Deselect all" buttons being cut off in multi-select filters, particularly when the filter bar is in horizontal orientation.

Changes:

  • Renamed "Deselect all" button to "Clear" for brevity
  • Set consistent 8px gap between the two bulk action buttons
  • Added minimum dropdown width (168px) when bulk actions are enabled to ensure buttons are fully visible

BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF

BEFORE:
Screenshot 2026-01-26 at 17 24 50

AFTER:
Screenshot 2026-01-26 at 17 22 44

TESTING INSTRUCTIONS

  1. Navigate to any dashboard with a multi-select filter
  2. Set the filter bar orientation to horizontal (Settings → Filter bar orientation)
  3. Click on the multi-select filter dropdown
  4. Verify:
    • Both "Select all (X)" and "Clear (X)" buttons are fully visible
    • Buttons are on the same line with proper spacing
    • Dropdown aligns properly with the input field
  5. Test with vertical filter bar orientation to ensure no regression

ADDITIONAL INFORMATION

  • Has associated issue:
  • Required feature flags:
  • Changes UI
  • Includes DB Migration (follow approval process in SIP-59)
    • Migration is atomic, supports rollback & is backwards-compatible
    • Confirm DB migration upgrade and downgrade tested
    • Runtime estimates and downtime expectations provided
  • Introduces new feature or API
  • Removes existing feature or API

@bito-code-review

bito-code-review Bot commented Jan 26, 2026 •

Copy link
Copy Markdown
Contributor

Code Review Agent Run #4b5f14

Actionable Suggestions - 0
Additional Suggestions - 1
  • superset-frontend/packages/superset-ui-core/src/components/Select/Select.test.tsx - 1
    • Test naming inconsistency · Line 89-89
      The test names still reference the old button text 'Deselect all', but the component now uses 'Clear'. This creates inconsistency between test descriptions and actual UI behavior. Update the test names to match the new button text to maintain clarity and avoid confusion in future maintenance.
      Code suggestion
       @@ -862,1 +862,1 @@
      - test('"Deselect all" counts all selected options', async () => {
      + test('"Clear" counts all selected options', async () => {
       @@ -869,1 +869,1 @@
      -test('\"Deselect all\" counts new selected options', async () => {
      +test('\"Clear\" counts new selected options', async () => {
Review Details
  • Files reviewed - 3 · Commit Range: d1f8077..d1f8077
    • superset-frontend/packages/superset-ui-core/src/components/Select/Select.test.tsx
    • superset-frontend/packages/superset-ui-core/src/components/Select/Select.tsx
    • superset-frontend/packages/superset-ui-core/src/components/Select/styles.tsx
  • Files skipped - 0
  • Tools
    • Whispers (Secret Scanner) - ✔︎ Successful
    • Detect-secrets (Secret Scanner) - ✔︎ Successful

Bito Usage Guide

Commands

Type the following command in the pull request comment and save the comment.

  • /review - Manually triggers a full AI review.

  • /pause - Pauses automatic reviews on this pull request.

  • /resume - Resumes automatic reviews.

  • /resolve - Marks all Bito-posted review comments as resolved.

  • /abort - Cancels all in-progress reviews.

Refer to the documentation for additional commands.

Configuration

This repository uses Superset You can customize the agent settings here or contact your Bito workspace admin at [email protected].

Documentation & Help

AI Code Review powered by Bito Logo

@dosubot dosubot Bot added the change:frontend Requires changing the frontend label Jan 26, 2026
@kasiazjc
kasiazjc requested review from kasiazjc and msyavuz January 27, 2026 13:08

@kasiazjc kasiazjc left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

design lgtm 🫡
waiting for code reivew only

@SBIN2010

Copy link
Copy Markdown
Contributor

Hi @massucattoj!
Will it look the same in other languages?

@msyavuz
msyavuz merged commit abf90de into apache:master Jan 28, 2026
77 checks passed
sadpandajoe pushed a commit that referenced this pull request Jan 28, 2026
@sadpandajoe sadpandajoe added the v6.0 Label added by the release manager to track PRs to be included in the 6.0 branch label Jan 28, 2026
LevisNgigi pushed a commit to LevisNgigi/superset that referenced this pull request Feb 4, 2026
alex-poor pushed a commit to alex-poor/superset that referenced this pull request Mar 15, 2026
qfcwell pushed a commit to qfcwell/superset that referenced this pull request May 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

change:frontend Requires changing the frontend packages size/XS v6.0 Label added by the release manager to track PRs to be included in the 6.0 branch

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants