-
Notifications
You must be signed in to change notification settings - Fork 13.8k
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
feat(frontend): add ability to download dashboard and chart as image #9819
feat(frontend): add ability to download dashboard and chart as image #9819
Conversation
Codecov Report
@@ Coverage Diff @@
## master #9819 +/- ##
==========================================
+ Coverage 66.16% 70.86% +4.70%
==========================================
Files 585 586 +1
Lines 30427 30452 +25
Branches 3152 3158 +6
==========================================
+ Hits 20133 21581 +1448
+ Misses 10113 8760 -1353
+ Partials 181 111 -70
Continue to review full report at Codecov.
|
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.
this is a great feature, thanks for adding it! (I know there's been work on it in the past, but those PRs got abandoned i think...)
A few comments, but otherwise it looks good
superset-frontend/src/dashboard/components/HeaderActionsDropdown.jsx
Outdated
Show resolved
Hide resolved
add toast message if error occurs. make generate file stem an internal method.
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.
one more nit, otherwise lgtm
Huge thanks to @ChristianMurphy! This is a feature users have been craving for. Can I ask if this will make it into 0.37? |
Absolutely @pradhangn 😃 I'm going to try to cut |
Super! Thanks @villebro and @ChristianMurphy! |
…pache#9819) * feat(frontend): add ability to export dashboard and chart as image (apache#6973) * refactor: migrate download image as to typescript * feature(frontend): download as image updates add toast message if error occurs. make generate file stem an internal method. * refactor(frontend): move default background color to a const * feat(frontend): wrap download image toast in translate function
SUMMARY
Adds an additional menu option and functionality to export dashboards and charts as an image.
BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF
download dashboard
download chart
TEST PLAN
CI and click testing.
ADDITIONAL INFORMATION