Thanks to visit codestin.com
Credit goes to github.com

Skip to content

feat(dashboard): add a tooltip displaying chart descriptions - #43271

Merged
rusackas merged 80 commits into
apache:masterfrom
SBIN2010:feat/add_chart_tooltip
Aug 30, 2026
Merged

feat(dashboard): add a tooltip displaying chart descriptions#43271
rusackas merged 80 commits into
apache:masterfrom
SBIN2010:feat/add_chart_tooltip

Conversation

@SBIN2010

Copy link
Copy Markdown
Contributor

SUMMARY

This PR adds a tooltip for charts on the dashboard, displaying the description if one has been provided for the chart.

BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF

Снимок экрана от 2026-08-18 00-10-04

TESTING INSTRUCTIONS

run test:
npm run test superset-frontend/src/dashboard/components/SliceHeader/SliceHeader.test.tsx

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
@dosubot dosubot Bot added change:frontend Requires changing the frontend dashboard:design Related to the Dashboard UI/UX labels Aug 17, 2026
@bito-code-review

bito-code-review Bot commented Aug 17, 2026

Copy link
Copy Markdown
Contributor

Code Review Agent Run #9c27b2

Actionable Suggestions - 0
Additional Suggestions - 1
  • superset-frontend/src/dashboard/components/SliceHeader/SliceInfo.tsx - 1
    • Missing unit test coverage · Line 45-45
      The `SliceInfo` component lacks test coverage. No test file was found in the codebase for this component. Adding unit tests would ensure the component renders correctly and handles edge cases like empty descriptions or long markdown content.
Review Details
  • Files reviewed - 3 · Commit Range: 19151d1..c6b792d
    • superset-frontend/src/dashboard/components/SliceHeader/SliceHeader.test.tsx
    • superset-frontend/src/dashboard/components/SliceHeader/SliceInfo.tsx
    • superset-frontend/src/dashboard/components/SliceHeader/index.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

@netlify

netlify Bot commented Aug 17, 2026

Copy link
Copy Markdown

Deploy Preview for superset-docs-preview ready!

Name Link
🔨 Latest commit c6b792d
🔍 Latest deploy log https://app.netlify.com/projects/superset-docs-preview/deploys/6a83848856112000080f1521
😎 Deploy Preview https://deploy-preview-43271--superset-docs-preview.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

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

Comment thread superset-frontend/src/dashboard/components/SliceHeader/index.tsx
@bito-code-review

Copy link
Copy Markdown
Contributor

The flagged issue is correct. Using trigger="hover" on a Popover makes the chart description inaccessible on touch-based mobile devices. To resolve this, you should change the trigger to click or support both hover and click (if the component library allows) to ensure mobile users can open the description.

Here is the suggested fix for superset-frontend/src/dashboard/components/SliceHeader/index.tsx:

              {slice.description && !isExpanded && (
                <Popover
                  trigger={['hover', 'click']}
                  content={<SliceInfo slice={slice} />}
                  placement="leftBottom"
                >
                  <Icons.InfoCircleOutlined
                    iconSize="m"
                    aria-label={t('Chart description')}
                    data-test="chart-description-info-icon"
                  />
                </Popover>
              )}

I have checked the PR comments, and there are no other comments to address at this time. Would you like me to perform any further checks or implement additional changes?

superset-frontend/src/dashboard/components/SliceHeader/index.tsx

<Popover
                  trigger={['hover', 'click']}
                  content={<SliceInfo slice={slice} />}
                  placement="leftBottom"
                >

@codecov

codecov Bot commented Aug 17, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 66.66%. Comparing base (d114eb6) to head (f5128bb).
⚠️ Report is 299 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master   #43271   +/-   ##
=======================================
  Coverage   66.66%   66.66%           
=======================================
  Files        2873     2874    +1     
  Lines      163654   163662    +8     
  Branches    37771    37773    +2     
=======================================
+ Hits       109093   109101    +8     
  Misses      52432    52432           
  Partials     2129     2129           
Flag Coverage Δ
javascript 73.78% <100.00%> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@bito-code-review

bito-code-review Bot commented Aug 18, 2026

Copy link
Copy Markdown
Contributor

Code Review Agent Run #97a83c

Actionable Suggestions - 0
Review Details
  • Files reviewed - 2 · Commit Range: c6b792d..b6e7df7
    • superset-frontend/src/dashboard/components/SliceHeader/index.tsx
    • superset-frontend/src/dashboard/components/SliceHeader/SliceInfo.test.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

@sadpandajoe

Copy link
Copy Markdown
Member

@SBIN2010 for the tooltips we may want to make sure there are translations for them too.

@SBIN2010

Copy link
Copy Markdown
Contributor Author

@SBIN2010 for the tooltips we may want to make sure there are translations for them too.

@sadpandajoe The tooltip displays the chart description; I don't think it will need translation.

@rohys03

rohys03 commented Aug 19, 2026

Copy link
Copy Markdown

I've been really looking forward to this feature! Being able to add descriptions to charts and show them as tooltips on dashboards would be incredibly useful.

Do you have an estimated timeline for when this feature might be merged and included in a Superset release?

Copilot AI 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.

Pull request overview

This PR adds a chart-description tooltip on dashboard slice headers, so users can quickly read a chart’s description while the chart description panel is collapsed.

Changes:

  • Add a SliceInfo popover content component that renders slice.description via SafeMarkdown.
  • Show an info icon in SliceHeader (when a description exists and the description panel is collapsed) that opens a Popover with SliceInfo.
  • Add unit tests for both the new SliceInfo component and the SliceHeader icon visibility conditions.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.

File Description
superset-frontend/src/dashboard/components/SliceHeader/SliceInfo.tsx New popover content component rendering chart description as safe markdown.
superset-frontend/src/dashboard/components/SliceHeader/SliceInfo.test.tsx New unit tests validating SliceInfo rendering and edge cases (empty/long markdown).
superset-frontend/src/dashboard/components/SliceHeader/SliceHeader.test.tsx Adds tests for when the description info icon should appear/disappear.
superset-frontend/src/dashboard/components/SliceHeader/index.tsx Adds a Popover + info icon trigger in the slice header controls when a description exists and is collapsed.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread superset-frontend/src/dashboard/components/SliceHeader/index.tsx
@SBIN2010
SBIN2010 requested a review from rusackas August 28, 2026 04:50
Comment thread superset-frontend/src/dashboard/components/SliceHeader/index.tsx
@bito-code-review

bito-code-review Bot commented Aug 29, 2026

Copy link
Copy Markdown
Contributor

Code Review Agent Run #a04a89

Actionable Suggestions - 0
Additional Suggestions - 1
  • superset-frontend/src/dashboard/components/SliceHeader/index.tsx - 1
    • Controlled popover vs hover trigger · Line 352-353
      Making the Popover controlled (`open`/`onOpenChange`) while keeping `trigger={['hover','click']}` means the hover trigger fires `onOpenChange(false)` on mouse-leave, closing the popover even when opened via keyboard through `handleKeyboardActivation`. This undermines the accessibility the change adds. Consider `trigger={['click']}` or leaving the Popover uncontrolled.
Review Details
  • Files reviewed - 2 · Commit Range: b6e7df7..f5128bb
    • superset-frontend/src/dashboard/components/SliceHeader/SliceHeader.test.tsx
    • superset-frontend/src/dashboard/components/SliceHeader/index.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 an incremental AI Review.

  • /review full - 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

@SBIN2010
SBIN2010 requested a review from rusackas August 30, 2026 19:17

@rusackas rusackas left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

@SBIN2010 LGTM, thanks for rolling with the review feedback so quickly, and for the thorough keyboard tests! Approving and merging.

@rusackas
rusackas merged commit b310f46 into apache:master Aug 30, 2026
80 checks passed
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 dashboard:design Related to the Dashboard UI/UX size/L

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants