Skip to content

fix(explore): hide inactive result tables in mixed chart view as table#37777

Open
KH-Coder865 wants to merge 3 commits intoapache:masterfrom
KH-Coder865:fix/mixed-chart-view-as-table-tab-visibility
Open

fix(explore): hide inactive result tables in mixed chart view as table#37777
KH-Coder865 wants to merge 3 commits intoapache:masterfrom
KH-Coder865:fix/mixed-chart-view-as-table-tab-visibility

Conversation

@KH-Coder865
Copy link

SUMMARY

This PR fixes a frontend issue in the Mixed chart “View as table” modal where multiple result tables remain visible when switching between tabs.

For mixed charts, multiple result panes (Results, Results 2, etc.) are rendered, but inactive panes were not being unmounted when the active tab changed. This caused previously rendered tables to remain visible and overlap in the UI.

The fix conditionally renders each tab’s content based on the active tab key, ensuring that only the selected tab’s table is visible at any time.

BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF

Before: Switching between result tabs causes multiple tables to remain visible simultaneously.
After: Only the active tab’s table is rendered and visible.

TESTING INSTRUCTIONS

  1. Create or open a Mixed chart with multiple queries.
  2. Run the chart.
  3. Click View as table.
  4. Switch between Results, Results 2, and Samples tabs.
  5. Verify that only the currently selected tab’s table is visible.
  6. Confirm there are no layout or scrolling issues when switching tabs.

FIXES

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

LABELS

  • viz:charts:table

@dosubot dosubot bot added the viz:charts:table Related to the Table chart label Feb 7, 2026
Co-authored-by: codeant-ai-for-open-source[bot] <244253245+codeant-ai-for-open-source[bot]@users.noreply.github.com>
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 #1ba5c9

Actionable Suggestions - 1
  • superset-frontend/src/explore/components/DataTablesPane/DataTablesPane.tsx - 1
Review Details
  • Files reviewed - 1 · Commit Range: b74cf7e..39caa8d
    • superset-frontend/src/explore/components/DataTablesPane/DataTablesPane.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

@bito-code-review
Copy link
Contributor

bito-code-review bot commented Feb 7, 2026

Code Review Agent Run #78c2c7

Actionable Suggestions - 0
Review Details
  • Files reviewed - 1 · Commit Range: b74cf7e..39caa8d
    • superset-frontend/src/explore/components/DataTablesPane/DataTablesPane.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

Make isVisible optional to allow parent tab management.
@bito-code-review
Copy link
Contributor

bito-code-review bot commented Feb 8, 2026

Code Review Agent Run #0c0895

Actionable Suggestions - 0
Review Details
  • Files reviewed - 2 · Commit Range: 39caa8d..ed6103c
    • superset-frontend/src/explore/components/DataTablesPane/DataTablesPane.tsx
    • superset-frontend/src/explore/components/DataTablesPane/types.ts
  • 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

@SBIN2010
Copy link
Contributor

SBIN2010 commented Feb 8, 2026

Superset uses Git pre-commit hooks courtesy of pre-commit. To install run the following:

pip3 install -r requirements/development.txt
pre-commit install
A series of checks will now run when you make a git commit.

Alternatively it is possible to run pre-commit by running pre-commit manually:

pre-commit run --all-files

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size/S viz:charts:table Related to the Table chart

Projects

None yet

Development

Successfully merging this pull request may close these issues.

View as table in mixed chart

2 participants