Expose analytics dashboard panel tooltip field to frontend
What does this MR do and why?
Includes tooltip field in customizable dashboard GraphQL query and passes it down from AnalyticsDashboard component to AnalyticsDashboardPanel component. Builds on backend implementation from !199790 (merged) and !200835 (merged)
References
Screenshots or screen recordings
| Valid tooltip | Invalid tooltip |
|---|---|
![]() |
![]() |
How to set up and validate locally
- Please make sure that you're on the GitLab Ultimate plan (if necessary, request a license).
- Visit any group/project, then navigate to
Analyze > Analytics dashboardsin the menu - Select Value Streams Dashboard from the list
- Verify that you are able to configure a panel's tooltip via the dashboard's YAML file and that it's rendering correctly by applying the following patch:
diff --git a/ee/lib/gitlab/analytics/value_stream_dashboard/dashboards/value_streams_dashboard.yaml b/ee/lib/gitlab/analytics/value_stream_dashboard/dashboards/value_streams_dashboard.yaml
index 73b6e8e281116..de30a438ec4b3 100644
--- a/ee/lib/gitlab/analytics/value_stream_dashboard/dashboards/value_streams_dashboard.yaml
+++ b/ee/lib/gitlab/analytics/value_stream_dashboard/dashboards/value_streams_dashboard.yaml
@@ -12,6 +12,9 @@ panels:
height: 1
options: {}
- visualization: vsd_lifecycle_metrics_table
+ tooltip:
+ description: "This is an example tooltip. %{linkStart}Learn more%{linkEnd}."
+ descriptionLink: "https://docs.gitlab.com/user/analytics/value_streams_dashboard"
title: 'Lifecycle metrics for the %{namespaceName} %{namespaceType}'
gridAttributes:
yPos: 1
MR acceptance checklist
Evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.
Related to #550270 (closed)
Edited by Rudy Crespo

