Repository navigation
Add a "Preview" action that opens a dashboard in standalone mode (standalone=2) in a new tab #46361
benjamin-yanh
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Problem
We show Superset dashboards to end users through another application, linking
straight to the dashboard's standalone view (
standalone=2, no top navigationand no dashboard title). Our dashboard editors keep asking how to check what
end users will actually see while they are building a dashboard.
Today the only way is to hand-edit the URL and add
?standalone=2. Theexisting Enter fullscreen item in the header's "..." menu doesn't cover
this:
standalone=1, which still shows the dashboard title.There is also no way to open this view from the dashboard list.
Proposal
Add a Preview action that opens the saved dashboard with
standalone=2in anew tab:
to users who can edit the dashboard, in both view and edit mode, on desktop
and outside embedded mode. It is disabled while there are unsaved changes
(tooltip: "Save changes"), because the new tab loads the saved version. It
keeps the current URL parameters (e.g. native filters, active tab) and drops
edit=true.The list actions are available to anyone who can view the dashboard; opening
the preview goes through the normal dashboard access checks, so it exposes
nothing new.
This is frontend-only: no API, permission or config changes.
Open questions
view" be clearer next to "Enter fullscreen"?
"Enter fullscreen"?
standalone=2, or followstandalone=1likefullscreen?
only?
Implementation
We have this working in our own deployment, with tests for the header button
and both list views. If maintainers are interested, I'm happy to open a PR and
adjust it to whatever direction is agreed here.
All reactions