-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
Fix can't select dashboard tabs in interactive embedding with parameter header=false
#39007
Fix can't select dashboard tabs in interactive embedding with parameter header=false
#39007
Conversation
/> | ||
</DashboardHeaderContainer> | ||
)} | ||
<DashboardHeaderContainer |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
data-testid="fixed-width-dashboard-header" | ||
isNavBarOpen={isNavBarOpen} | ||
isFixedWidth={dashboard?.width === "fixed"} | ||
{isDashboardHeaderVisible && ( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Only hide the part before the dashboard tabs, because the dashboard tabs should always be visible.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Related: I am getting the connect your database to get get the most from MB banner at the top in the embed, but I am also seeing that on master, so related but separate issue.
@WiNloSt Did you forget to add a milestone to the issue for this PR? When and where should I add a milestone? |
…er `header=false` (#39007) * Remove full-app to a newer term * Fix dashboard not loading in interactive embedding with header=false header=false * Fix can't choose dashboard tabs in interactive embedding w/ header=false
@albertoperdomo Feel free to open an issue for that too. I remember we haven't talked about hiding that banner specifically in embedding, we only talked about hiding that database prompt banner when users are whitelabeling. That feels to me we should do that for interactive embedding as well, since interactive embedding is also closely related to whitelabeling. |
@metabase-bot backport release-x.48.x |
…er `header=false` (#39007) * Remove full-app to a newer term * Fix dashboard not loading in interactive embedding with header=false header=false * Fix can't choose dashboard tabs in interactive embedding w/ header=false
…er `header=false` (#39007) * Remove full-app to a newer term * Fix dashboard not loading in interactive embedding with header=false header=false * Fix can't choose dashboard tabs in interactive embedding w/ header=false
* Fix can't select dashboard tabs in interactive embedding with parameter `header=false` (#39007) * Remove full-app to a newer term * Fix dashboard not loading in interactive embedding with header=false header=false * Fix can't choose dashboard tabs in interactive embedding w/ header=false * Fix failed tests
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested locally
commented the wrong one 😅
Note
This PR supersedes #39005
Closes #38429, #39002
Description
The
header
documentation indicatesDashboard tabs is a very crucial part of the dashboard and should, in my opinion, never been hidden.
This PR fixes the problem by only hiding the other parts in the dashboard header except the tabs
Note Please also see the #39005 explaining the fix for the dashboard card not loading which is also fixed in this PR with a different approach.
How to verify
?header=false
Demo
Before
After
Checklist