-
Notifications
You must be signed in to change notification settings - Fork 14.9k
feat(dashboard): "embed code" option on dashboard share tab #33163
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
base: master
Are you sure you want to change the base?
feat(dashboard): "embed code" option on dashboard share tab #33163
Conversation
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.
Review by Korbit AI
Korbit automatically attempts to detect when you fix issues in new commits.
Category | Issue | Status |
---|---|---|
Unnecessary Event Optional Chaining ▹ view | ✅ Fix detected |
Files scanned
File Path | Reviewed |
---|---|
superset-frontend/src/dashboard/components/menu/ShareMenuItems/index.tsx | ✅ |
superset-frontend/src/dashboard/components/SliceHeaderControls/index.tsx | ✅ |
Explore our documentation to understand the languages and file types we support and the files we ignore.
Check out our docs on how you can make Korbit work best for you and your team.
@@ -109,6 +118,27 @@ const ShareMenuItems = (props: ShareMenuItemProps) => { | |||
<Menu.Item key={MenuKeys.ShareByEmail} onClick={() => onShareByEmail()}> | |||
{emailMenuItemTitle} | |||
</Menu.Item> | |||
{sliceExists && ( | |||
<Menu.Item key="embed_code"> | |||
<div onClick={e => e?.stopPropagation()} role="button" tabIndex={0}> |
This comment was marked as resolved.
This comment was marked as resolved.
Sorry, something went wrong.
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.
SUMMARY
This change adds an "Embed code" option to the chart sharing menu in Superset. Users can now easily get the iframe code to embed individual charts in other websites.
BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF
TESTING INSTRUCTIONS
Open a dashboard, click on the three dot icon, and verify that the option "Embed Code" shows up on the Share tab. This option should bring the Embed code modal.
ADDITIONAL INFORMATION