Skip to content

fix(sqllab): long cell content overflooding#38855

Open
justinpark wants to merge 1 commit intoapache:masterfrom
justinpark:fix--sqllab-overflooded-long-cell-content
Open

fix(sqllab): long cell content overflooding#38855
justinpark wants to merge 1 commit intoapache:masterfrom
justinpark:fix--sqllab-overflooded-long-cell-content

Conversation

@justinpark
Copy link
Member

@justinpark justinpark commented Mar 25, 2026

User description

SUMMARY

Fixes #38854

Due to the pre-wrap added in #37036, an issue occurred where the SQL Lab result table cell content supporting the JSON viewer was overlapping with the content of the next line. This has been fixed by making pre-wrap configurable as a props option, so that pre-wrap is excluded for the result table.

BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF

Before:

Screenshot 2026-03-25 at 12 00 46 PM

After:

Screenshot 2026-03-25 at 12 06 17 PM

TESTING INSTRUCTIONS

locally tested

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

CodeAnt-AI Description

Prevent JSON cell content from overflowing in SQL Lab results

What Changed

  • JSON values in the SQL Lab result table no longer wrap into the next line or overlap nearby content
  • The JSON preview still opens normally, but the table cell now shows the content without the extra wrapping that caused the display issue

Impact

✅ Clearer SQL Lab result tables
✅ Fewer overlapping cell contents
✅ Easier reading of long JSON values

💡 Usage Guide

Checking Your Pull Request

Every time you make a pull request, our system automatically looks through it. We check for security issues, mistakes in how you're setting up your infrastructure, and common code problems. We do this to make sure your changes are solid and won't cause any trouble later.

Talking to CodeAnt AI

Got a question or need a hand with something in your pull request? You can easily get in touch with CodeAnt AI right here. Just type the following in a comment on your pull request, and replace "Your question here" with whatever you want to ask:

@codeant-ai ask: Your question here

This lets you have a chat with CodeAnt AI about your pull request, making it easier to understand and improve your code.

Example

@codeant-ai ask: Can you suggest a safer alternative to storing this secret?

Preserve Org Learnings with CodeAnt

You can record team preferences so CodeAnt AI applies them in future reviews. Reply directly to the specific CodeAnt AI suggestion (in the same thread) and replace "Your feedback here" with your input:

@codeant-ai: Your feedback here

This helps CodeAnt AI learn and adapt to your team's coding style and standards.

Example

@codeant-ai: Do not flag unused imports.

Retrigger review

Ask CodeAnt AI to review the PR again, by typing:

@codeant-ai: review

Check Your Repository Health

To analyze the health of your code repository, visit our dashboard at https://app.codeant.ai. This tool helps you identify potential issues and areas for improvement in your codebase, ensuring your repository maintains high standards of code health.

@bito-code-review
Copy link
Contributor

bito-code-review bot commented Mar 25, 2026

Code Review Agent Run #5da378

Actionable Suggestions - 0
Review Details
  • Files reviewed - 3 · Commit Range: c3dca32..c3dca32
    • superset-frontend/src/components/FilterableTable/utils.tsx
    • superset-frontend/src/components/JsonModal/index.tsx
    • superset-frontend/src/components/JsonModal/types.ts
  • Files skipped - 0
  • Tools
    • Whispers (Secret Scanner) - ✔︎ Successful
    • Detect-secrets (Secret Scanner) - ✔︎ Successful
    • Eslint (Linter) - ✔︎ 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

@dosubot dosubot bot added the sqllab Namespace | Anything related to the SQL Lab label Mar 25, 2026
@codeant-ai-for-open-source codeant-ai-for-open-source bot added the size:XS This PR changes 0-9 lines, ignoring generated files label Mar 25, 2026
@codeant-ai-for-open-source
Copy link
Contributor

Sequence Diagram

This PR makes JSON trigger text wrapping configurable in JsonModal and disables wrapping for SQL Lab result cells. The main flow now renders JSON cell previews without pre wrap, preventing overlap while preserving modal preview behavior.

sequenceDiagram
    participant User
    participant ResultTable
    participant JsonModal

    User->>ResultTable: View SQL Lab results
    ResultTable->>ResultTable: Detect JSON cell content
    ResultTable->>JsonModal: Render JSON trigger with wrapContent false
    JsonModal->>JsonModal: Show trigger text without pre wrap
    User->>JsonModal: Open cell content modal
    JsonModal-->>User: Display formatted JSON content
Loading

Generated by CodeAnt AI

@netlify
Copy link

netlify bot commented Mar 25, 2026

Deploy Preview for superset-docs-preview ready!

Name Link
🔨 Latest commit c3dca32
🔍 Latest deploy log https://app.netlify.com/projects/superset-docs-preview/deploys/69c432662a1ef40008674ef1
😎 Deploy Preview https://deploy-preview-38855--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.

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

Labels

size/XS size:XS This PR changes 0-9 lines, ignoring generated files sqllab Namespace | Anything related to the SQL Lab

Projects

Status: In Progress

Development

Successfully merging this pull request may close these issues.

SQL Lab long cell content supporting JSON viewer overflowing

2 participants