Option to collapse unfurled charts in issues
Problem to solve
Unfurled images can get in the way of reading and consuming other information a user needs in an issue. We want to provide them an easy way to remove the unfurled image (similar to how Slack does it) while retaining the link to the metrics dashboard or chart.
Intended users
Sasha the Software Developer
Devon the DevOps Engineer
Sidney the Systems Administrator
Further details
This work contributes to the Incident Management Vision
Proposal
When an issue with an embedded metrics chart/dashboard is first created and viewed, the chart/dashboard will appear inside a collapsible block and will be expanded by default. Upon clicking the collapse button, all charts/dashboards will be collapsed simultaneously. We will reuse the same collapsible mechanism in which replies to a comment in an issue appear.
Permissions and Security
Documentation
Testing
Testing of this feature will be covered by the End-to-end test for Incidents. Scenarios: show/hide, In a comment thread, Multiple charts. Persistence is out of scope.