Skip to content

Conversation

@greggailly
Copy link

feat(dashboard): Edit dashboard description from ui (and api) and show tooltip on dashboard list view

SUMMARY

Similar to the description field on charts, this PR adds a text area field in the dashboard properties modal to update the description. Works from the list and from the dashboard header edit mode as well.

BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF

Before

Edit modal
Screenshot 2025-11-11 at 11 00 52

List view
Screenshot 2025-11-11 at 11 00 46

After

Edit modal
Screenshot 2025-11-11 at 10 52 56

List view with tooltip
Screenshot 2025-11-11 at 10 53 03

ADDITIONAL INFORMATION

@github-actions github-actions bot added the api Related to the REST API label Nov 11, 2025
@dosubot dosubot bot added change:frontend Requires changing the frontend dashboard Namespace | Anything related to the Dashboard labels Nov 11, 2025
Copy link

@korbit-ai korbit-ai bot left a comment

Choose a reason for hiding this comment

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

I've completed my review and didn't find any issues.

Files scanned
File Path Reviewed
superset-frontend/src/dashboard/components/PropertiesModal/sections/BasicInfoSection.tsx
superset/dashboards/schemas.py
superset-frontend/src/dashboard/components/PropertiesModal/index.tsx
superset-frontend/src/pages/DashboardList/index.tsx
superset-frontend/src/dashboard/components/Header/index.jsx
superset-frontend/src/dashboard/actions/dashboardState.js
superset/dashboards/api.py

Explore our documentation to understand the languages and file types we support and the files we ignore.

Check out our docs on how you can make Korbit work best for you and your team.

Loving Korbit!? Share us on LinkedIn Reddit and X

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 #728dbc

Actionable Suggestions - 2
  • superset/dashboards/schemas.py - 1
    • Inconsistent description length validation · Line 400-404
  • superset-frontend/src/dashboard/components/Header/index.jsx - 1
    • Missing useCallback dependency for dashboard description · Line 425-425
Review Details
  • Files reviewed - 9 · Commit Range: ff3abe1..c2e0262
    • superset-frontend/src/dashboard/actions/dashboardState.js
    • superset-frontend/src/dashboard/components/Header/index.jsx
    • superset-frontend/src/dashboard/components/PropertiesModal/index.tsx
    • superset-frontend/src/dashboard/components/PropertiesModal/sections/BasicInfoSection.test.tsx
    • superset-frontend/src/dashboard/components/PropertiesModal/sections/BasicInfoSection.tsx
    • superset-frontend/src/pages/DashboardList/DashboardList.test.jsx
    • superset-frontend/src/pages/DashboardList/index.tsx
    • superset/dashboards/api.py
    • superset/dashboards/schemas.py
  • Files skipped - 0
  • Tools
    • Eslint (Linter) - ✔︎ Successful
    • Whispers (Secret Scanner) - ✔︎ Successful
    • Detect-secrets (Secret Scanner) - ✔︎ Successful
    • MyPy (Static Code Analysis) - ✔︎ Successful
    • Astral Ruff (Static Code Analysis) - ✔︎ 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 Default Agent 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

@greggailly greggailly changed the title Edit dashboard description from ui (and api) and show tooltip on dashboard list view feat(dashboard): Edit dashboard description from ui (and api) and show tooltip on dashboard list view Nov 12, 2025
@codecov
Copy link

codecov bot commented Nov 12, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 48.22%. Comparing base (78f9deb) to head (610730d).

Additional details and impacted files
@@             Coverage Diff             @@
##           master   #36071       +/-   ##
===========================================
+ Coverage        0   48.22%   +48.22%     
===========================================
  Files           0      631      +631     
  Lines           0    45991    +45991     
  Branches        0     4987     +4987     
===========================================
+ Hits            0    22177    +22177     
- Misses          0    23188    +23188     
- Partials        0      626      +626     
Flag Coverage Δ
hive 43.96% <100.00%> (?)
presto 47.50% <100.00%> (?)
python 48.21% <100.00%> (?)
unit 100.00% <ø> (?)

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

☔ View full report in Codecov by Sentry.
📢 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.

@rusackas
Copy link
Member

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

Copilot finished reviewing on behalf of sadpandajoe November 12, 2025 18:33
Copy link
Contributor

Copilot AI left a comment

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 the ability to edit dashboard descriptions through the UI and API, including displaying the description as a tooltip in the dashboard list view.

Key Changes

  • Backend API extended to support description field in GET and PUT endpoints
  • Dashboard properties modal enhanced with a description text area field
  • Dashboard list view updated to display descriptions as tooltips using InfoTooltip component

Reviewed Changes

Copilot reviewed 9 out of 9 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
superset/dashboards/schemas.py Added description field to DashboardGetResponseSchema and DashboardPutSchema with appropriate metadata
superset/dashboards/api.py Added description to the list of columns in various endpoint configurations (show_columns, add_columns, edit_columns)
superset-frontend/src/pages/DashboardList/index.tsx Added description to fetched columns, created FlexRowContainer styled component, and integrated InfoTooltip to display descriptions in the list view
superset-frontend/src/pages/DashboardList/DashboardList.test.jsx Updated test snapshot to include description in the expected API call
superset-frontend/src/dashboard/components/PropertiesModal/sections/BasicInfoSection.tsx Added description text area field to the basic info section of the properties modal
superset-frontend/src/dashboard/components/PropertiesModal/sections/BasicInfoSection.test.tsx Updated test to verify description field is rendered
superset-frontend/src/dashboard/components/PropertiesModal/index.tsx Integrated description field into form handling, extraction from API response, and submission logic
superset-frontend/src/dashboard/components/Header/index.jsx Added description to dashboard save data and dependency array
superset-frontend/src/dashboard/actions/dashboardState.js Added description field handling in save request logic

@sadpandajoe
Copy link
Member

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

@greggailly greggailly force-pushed the feature/dashboard_description branch from af76139 to 610730d Compare November 14, 2025 08:09
@greggailly
Copy link
Author

@sadpandajoe done thanks for the heads up !
I still get two errors when running with --all-files but they seem to be coming from other recently merged commits.
Rebased on master on the same occasion.

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

Labels

api Related to the REST API change:frontend Requires changing the frontend dashboard Namespace | Anything related to the Dashboard size/M

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants