Fix links in Value Stream Analytics metric tiles and their popovers
What does this MR do and why?
Fixes links in Value Stream Analytics metric tiles and their popovers:
- Uses URLs sourced from
constants.jsfile instead of backend, thereby fixing click handler for metric tile and links inside popover - Fixes alignment of
View detailslink inside popover
Other key updates include:
- Added
namespacePathandisProjectNamespaceprops toMetricTilecomponent to construct metric URL - Created
generateMetricLinkutil to build metric URLs - Added
metricUrlprop toMetricPopoverto receive said url fromMetricTileto avoid duplicating business logic - Refactored all related specs
References
Screenshots or screen recordings
| Before | After |
|---|---|
| Screen Recording 2025-05-28 at 3.04.30 PM.mov | Screen Recording 2025-05-28 at 3.06.41 PM.mov |
How to set up and validate locally
- Please make sure that you're on the GitLab Ultimate plan.
- Visit any group/project that has VSA data or follow these steps:
- run
FILTER=customizable_cycle_analytics SEED_CUSTOMIZABLE_CYCLE_ANALYTICS=1 bundle exec rake db:seed_fu - Visit the group/project value stream. The URL is present in the output of the command above
- run
- Click on metrics above overview chart and verify that they drill-down to associated report*
- Hover over metrics and verify that
View detailslink is correctly aligned and thatGo to docslinks are displayed for those that have them*
*At the moment, only New issues and Deploys have drill-down links
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 #541183 (closed)
Edited by Rudy Crespo