Add download image action to dashboard panels
Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.
Problem to solve
In order to deliver Allow users to download/share/embed a chart pan... (&8940) we need a way for users to download an image snapshot of an analytics dashboard panel in its current state.
Proposed solution
- Add a
Download imageitem to the panel actions.
Design
Implementation plan
Weight
- Add a new yarn dependancy
modern-screenshot. - Change the
panels_base.vueactions to be always visible.- Delete is only visible when editing.
- Add a
Download imageaction topanels_base.vue.- When clicked, generate an image of the panel and download it.
- The image filename should be the panel title + date(time).
- Note that the dropdown menu shouldn't be rendered in the generated image.
- If Create audit event when a visualisation is shared (#460475) is complete, ensure this creates an audit event.
- Update the relevant specs.
- Update the documentation.
Note: See this spike for a rough example Draft: [SPIKE] Add image share & download to an... (!152190 - closed).
Edited by 🤖 GitLab Bot 🤖
