fix(embedded): backport hideTab + filter-bar fix to 6.1 (#38846, #39417)#42008
fix(embedded): backport hideTab + filter-bar fix to 6.1 (#38846, #39417)#42008luizotavio32 wants to merge 2 commits into
Conversation
…pache#38846) (cherry picked from commit 3fb903f) (cherry picked from commit 9619fa2)
…abs (apache#39417) Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com> (cherry picked from commit f27424d)
|
Bito Automatic Review Skipped - Branch Excluded |
|
/review |
Code Review Agent Run #45ff38Actionable Suggestions - 0Additional Suggestions - 1
Filtered by Review RulesBito filtered these suggestions based on rules created automatically for your feedback. Manage rules.
Review Details
Bito Usage GuideCommands Type the following command in the pull request comment and save the comment.
Refer to the documentation for additional commands. Configuration This repository uses Documentation & Help |
✅ Deploy Preview for superset-docs-preview ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
SUMMARY
Backport of two related embedded-dashboard fixes to the
6.1branch.hideTab(#38846) was previously cherry-picked to6.1on its own, but was reverted (3b7ddf88e9) because it introduced a regression (#39419): makinghideTab: trueactually skip rendering theTabscomponent meant theuseEffectinsideTabsnever fired, so ReduxactiveTabsstayed[].useIsFilterInScopethen treated every native filter as out-of-scope, producing a blank filter bar on embedded dashboards with tabs.master/6.2resolved this by shipping thehideTabfix together with its follow-up (#39417), which makesuseActiveDashboardTabsfall back to a layout-derived default-tab path whenactiveTabsis empty. This PR brings both commits to6.1so the feature works without reintroducing the regression:hideTabto actually hide the dashboard tab #38846 —DashboardBuilder.tsx: gate the top-level tab bar on!uiConfig.hideTabin addition to!uiConfig.hideNav, sohideTab: trueactually hides the tab bar.nativeFilters/state.ts: when ReduxactiveTabsis empty, derive the default (first) tab at each nesting level fromdashboardLayoutfor scope evaluation. Filter bar always renders; filters scoped to the default tab are visible; filters scoped only to other tabs stay hidden; permalink case is unchanged.Note: the #39417 test file (
state.test.ts) diverged from6.1. During conflict resolution, two unrelateduseChartCustomizationConfiguration ignores null/undefined itemstests (which depend on behavior not present in6.1) were dropped, as they are not part of #39417.TESTING INSTRUCTIONS
hideTab: truein the SDKdashboardUiConfig— clear session storage.npx jest src/dashboard/components/nativeFilters/state.test.ts(25 passing).ADDITIONAL INFORMATION
Cherry-picks: #38846, #39417 (targets
6.1).