Skip to content

feat(filter panel): hide filter panel on all dashboard by default. #32870

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 18 commits into
base: master
Choose a base branch
from

Conversation

SBIN2010
Copy link
Contributor

@SBIN2010 SBIN2010 commented Mar 26, 2025

SUMMARY

This PR adds a flag FILTERBAR_CLOSED_BY_DEFAULT to the config to allow the filter panel to be set to be closed to dashboards by default.
It was suggested in this #32590

It also takes into account if the expand_filters URL parameter will be applied.

BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF

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

@dosubot dosubot bot added the dashboard:filterbox Related to the Dashboard filterbox viz type label Mar 26, 2025
@SBIN2010 SBIN2010 changed the title feature(filter panel ):hide filter panel on all dashboard by default. feat(filter panel ):hide filter panel on all dashboard by default. Mar 26, 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.

Review by Korbit AI

Korbit automatically attempts to detect when you fix issues in new commits.
Category Issue Status
Functionality Incorrect Filter Panel Default State Logic ▹ view ✅ Fix detected
Files scanned
File Path Reviewed
superset-frontend/src/dashboard/components/DashboardBuilder/state.ts
superset-frontend/packages/superset-ui-core/src/utils/featureFlags.ts
superset/config.py

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

Need a new review? Comment /korbit-review on this PR and I'll review your latest changes.

Korbit Guide: Usage and Customization

Interacting with Korbit

  • You can manually ask Korbit to review your PR using the /korbit-review command in a comment at the root of your PR.
  • You can ask Korbit to generate a new PR description using the /korbit-generate-pr-description command in any comment on your PR.
  • Too many Korbit comments? I can resolve all my comment threads if you use the /korbit-resolve command in any comment on your PR.
  • On any given comment that Korbit raises on your pull request, you can have a discussion with Korbit by replying to the comment.
  • Help train Korbit to improve your reviews by giving a 👍 or 👎 on the comments Korbit posts.

Customizing Korbit

  • Check out our docs on how you can make Korbit work best for you and your team.
  • Customize Korbit for your organization through the Korbit Console.

Feedback and Support

Copy link

codecov bot commented Mar 26, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 70.81%. Comparing base (76d897e) to head (77a736b).
Report is 1690 commits behind head on master.

Additional details and impacted files
@@             Coverage Diff             @@
##           master   #32870       +/-   ##
===========================================
+ Coverage   60.48%   70.81%   +10.32%     
===========================================
  Files        1931     2009       +78     
  Lines       76236    81224     +4988     
  Branches     8568     9211      +643     
===========================================
+ Hits        46114    57520    +11406     
+ Misses      28017    21450     -6567     
- Partials     2105     2254      +149     
Flag Coverage Δ
hive 48.39% <ø> (-0.76%) ⬇️
mysql 75.63% <ø> (?)
postgres 75.70% <ø> (?)
presto 52.88% <ø> (-0.92%) ⬇️
python 83.41% <ø> (+19.90%) ⬆️
sqlite 75.20% <ø> (?)
unit 61.45% <ø> (+3.81%) ⬆️

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.

@SBIN2010 SBIN2010 changed the title feat(filter panel ):hide filter panel on all dashboard by default. feat(filter panel): hide filter panel on all dashboard by default. Mar 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dashboard:filterbox Related to the Dashboard filterbox viz type packages size/M
Projects
None yet
Development

Successfully merging this pull request may close these issues.

How to Hide the Filter Panel by Default for Users and at the Server Level?
1 participant