Skip to content

Conversation

@SBIN2010
Copy link
Contributor

SUMMARY

This PR fix #37038

By default, the comma is the separator for 'Select'.
This PR redefines the separator array, excluding the comma from it.

BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF

Снимок экрана от 2026-01-27 00-03-21

TESTING INSTRUCTIONS

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

SBIN2010 and others added 30 commits October 22, 2024 23:07
@SBIN2010 SBIN2010 changed the title Fix/d3 format for table fix: d3 format for table Jan 26, 2026
@dosubot dosubot bot added change:frontend Requires changing the frontend explore:control Related to the controls panel of Explore labels Jan 26, 2026
@netlify
Copy link

netlify bot commented Jan 26, 2026

Deploy Preview for superset-docs-preview ready!

Name Link
🔨 Latest commit 354dee8
🔍 Latest deploy log https://app.netlify.com/projects/superset-docs-preview/deploys/6977d8b7ecde970008314e3b
😎 Deploy Preview https://deploy-preview-37454--superset-docs-preview.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

Copy link
Contributor

@bito-code-review bito-code-review bot left a comment

Choose a reason for hiding this comment

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

Code Review Agent Run #5daef7

Actionable Suggestions - 1
  • superset-frontend/src/explore/components/controls/ColumnConfigControl/constants.tsx - 1
    • Inappropriate tokenSeparators for single select · Line 61-61
Review Details
  • Files reviewed - 2 · Commit Range: 19151d1..354dee8
    • superset-frontend/packages/superset-ui-chart-controls/src/types.ts
    • superset-frontend/src/explore/components/controls/ColumnConfigControl/constants.tsx
  • Files skipped - 0
  • Tools
    • Eslint (Linter) - ✔︎ Successful
    • 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 evan@preset.io.

Documentation & Help

AI Code Review powered by Bito Logo

creatable: true,
minWidth: '14em',
debounceDelay: 500,
tokenSeparators: ['\r\n', '\n', '\t', ';'],
Copy link
Contributor

Choose a reason for hiding this comment

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

Inappropriate tokenSeparators for single select

The tokenSeparators property enables pasting multi-line text into this single-value select control, which can result in invalid D3 format strings containing newlines. Since the control expects a single string value and tokenSeparators are intended for multi-select scenarios, this should be removed to avoid potential incorrect input.

Code suggestion
Check the AI-generated fix before applying
 -    minWidth: '14em',
 -    debounceDelay: 500,
 -  tokenSeparators: ['\\r\\n', '\\n', '\\t', ';'],
 -  };
 +    minWidth: '14em',
 +    debounceDelay: 500,
 +  };

Code Review Run #5daef7


Should Bito avoid suggestions like this for future reviews? (Manage Rules)

  • Yes, avoid them

@bito-code-review
Copy link
Contributor

bito-code-review bot commented Jan 26, 2026

Code Review Agent Run #5c97ef

Actionable Suggestions - 0
Additional Suggestions - 1
  • superset-frontend/src/explore/components/controls/ColumnConfigControl/constants.tsx - 1
    • Inaccurate comment on tokenSeparators · Line 61-61
      The comment references the default tokenSeparators from the constants file, but the actual values exclude the comma separator, making the comment inaccurate. Consider updating it to reflect the customization.
      Code suggestion
       @@ -61,1 +61,1 @@
      -  // default value tokenSeparators in superset-frontend/packages/superset-ui-core/src/components/Select/constants.ts
      +  // customized tokenSeparators excluding comma from default in superset-frontend/packages/superset-ui-core/src/components/Select/constants.ts
Review Details
  • Files reviewed - 2 · Commit Range: 354dee8..5a2d7c6
    • superset-frontend/packages/superset-ui-chart-controls/src/types.ts
    • superset-frontend/src/explore/components/controls/ColumnConfigControl/constants.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 evan@preset.io.

Documentation & Help

AI Code Review powered by Bito Logo

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 explore:control Related to the controls panel of Explore packages size/XS

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Not able to type comma (,) in D3 format for Table chart

1 participant