Skip to content

fix(embedded): respect show_filters URL param in standalone report mode - #42307

Open
rusackas wants to merge 1 commit into
masterfrom
fix/issue-30630-suggested-open-pr-test-first-v3
Open

fix(embedded): respect show_filters URL param in standalone report mode#42307
rusackas wants to merge 1 commit into
masterfrom
fix/issue-30630-suggested-open-pr-test-first-v3

Conversation

@rusackas

Copy link
Copy Markdown
Member

SUMMARY

Report mode (standalone=3) unconditionally hides the filter bar via hidden={isReport} on both the horizontal FilterBar and vertical FiltersPanel. That's correct for its original purpose (one-shot screenshot renders for scheduled reports/thumbnails), but the Embedded SDK also uses standalone=3 to hide the title/tabs/nav (its hideTitle + hideTab config both fold into that same bitmask), and embedded consumers can still ask for filters via dashboardUiConfig.filters.visible, which maps to the show_filters URL param.

That param was declared in URL_PARAMS but never actually wired into DashboardBuilder, so it was silently ignored — the filter bar stayed forced-hidden any time standalone=3 was in play, regardless of show_filters.

This introduces hideFilterBar = isReport && showFiltersUrlParam !== true so:

  • Report mode still hides the filter bar by default (unchanged, backward compatible)
  • show_filters=true explicitly overrides the report-mode hiding
  • show_filters=false (or unset) keeps the existing hidden behavior

BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF

N/A — this only changes a CSS display: none toggle; behavior is covered by unit tests.

TESTING INSTRUCTIONS

  1. Load a dashboard with ?standalone=3 — filter bar should be hidden (unchanged).
  2. Load a dashboard with ?standalone=3&show_filters=true — filter bar should now be visible.
  3. Load a dashboard with ?standalone=3&show_filters=false — filter bar should still be hidden.
  4. npm run test -- DashboardBuilder.test.tsx in superset-frontend.

ADDITIONAL INFORMATION

  • Has associated issue: Fixes Embedded SDK seemingly ignoring most dashboardUIConfig options #30630
  • 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

Report mode (standalone=3) unconditionally hides the filter bar via
hidden={isReport}, since it's meant for one-shot screenshot renders
(reports, thumbnails). Embedded SDK consumers also use standalone=3 to
hide the title/tab/nav (hideTitle + hideTab both map into that bitmask),
but may still want the filter bar visible via
dashboardUiConfig.filters.visible, which maps to the show_filters URL
param. That param was declared in URL_PARAMS but never actually wired
up, so it was silently ignored, breaking embedded dashboards that
wanted filters visible while hiding chrome.

hideFilterBar now only forces the filter bar hidden in report mode when
show_filters isn't explicitly set to true, so report-mode defaults are
unchanged but embedded consumers can override them.

Fixes #30630
@bito-code-review

bito-code-review Bot commented Jul 22, 2026

Copy link
Copy Markdown
Contributor

Code Review Agent Run #2fa95b

Actionable Suggestions - 0
Review Details
  • Files reviewed - 2 · Commit Range: 1d1d734..1d1d734
    • superset-frontend/src/dashboard/components/DashboardBuilder/DashboardBuilder.test.tsx
    • superset-frontend/src/dashboard/components/DashboardBuilder/DashboardBuilder.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

@dosubot dosubot Bot added change:frontend Requires changing the frontend embedded labels Jul 22, 2026
@rusackas
rusackas requested a review from sadpandajoe July 23, 2026 00:25
@prathamesh04

Copy link
Copy Markdown
Contributor

@sadpandajoe This PR is ready for review. Please review when you have a chance.

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 embedded size/M

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Embedded SDK seemingly ignoring most dashboardUIConfig options

2 participants