Add retry button to analytics dashboard panel errors
What does this MR do and why?
Add a retry button on panel error popovers that refetches the visualization data when a user clicks on it.
Screenshots or screen recordings
Before | After | After (recording) |
---|---|---|
|
How to set up and validate locally
- Follow these instructions to setup Product Analytics in GDK.
- Onboard a project at Project -> Analyze -> Analytics dashboards
- View a dashboard, and verify the panel empty state is in the updated style
- Now cause some panels to fail to load
- An easy way to do this is to temporarily modify a built in visualization, e.g.
ee/lib/gitlab/analytics/product_analytics/visualizations/sessions_over_time.yaml
and change themeasure
to some invalid value, so the query will fail.
- Verify the new error state is shown, and the panel has a popover including a link to the troubleshooting docs
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.
Related to #418009 (closed)