Add link to AI impact dashboard in AI catalog header

What does this MR do and why?

Adds LinkToDashboard component to AI Catalog header, pointing to the AI Impact duo_and_sdlc_trends) dashboard.

  • Create reusable utils to build dashboard links and use it across other components to avoid duplication
  • Pass aiImpactDashboardEnabled from Rails controller to the frontend, to avoid showing the link if the AI Impact dashboard is not enabled globally ( as it would result in unnecessarily showing an empty modal and link that takes you nowhere, which could be confusing for the user)

References

Implement link the GitLab Duo and SDLC trends d... (#580503)

Screenshots or screen recordings

(demo shows the link to VSD as I don't have the Duo dashboard setup locally )

Screen Recording 2025-11-18 at 17.10.58.mov

Before After

image.png

image.png

image.png

How to set up and validate locally

To have the AI Impact dashboard enabled, it's required to have Clickhouse and Duo setup locally.

To quickly test this without the full setup, apply this patch ( the link will instead point to the Value Stream dashboard, which is enabled by default )

diff --git a/ee/app/assets/javascripts/ai/catalog/components/ai_catalog_list_header.vue b/ee/app/assets/javascripts/ai/catalog/components/ai_catalog_list_header.vue
index 6c83af68f34bc5..5302c2b5bf51af 100644
--- a/ee/app/assets/javascripts/ai/catalog/components/ai_catalog_list_header.vue
+++ b/ee/app/assets/javascripts/ai/catalog/components/ai_catalog_list_header.vue
@@ -99,6 +99,9 @@ export default {
       <ai-catalog-nav-actions can-admin />
     </div>
 
-    <link-to-dashboard-modal v-if="aiImpactDashboardEnabled" dashboard-name="duo_and_sdlc_trends" />
+    <link-to-dashboard-modal
+      v-if="aiImpactDashboardEnabled"
+      dashboard-name="value_streams_dashboard"
+    />
   </div>
 </template>
diff --git a/ee/app/models/concerns/product_analytics_helpers.rb b/ee/app/models/concerns/product_analytics_helpers.rb
index a259dc5ec5f3cc..512594bb5b80fd 100644
--- a/ee/app/models/concerns/product_analytics_helpers.rb
+++ b/ee/app/models/concerns/product_analytics_helpers.rb
@@ -7,7 +7,7 @@ module ProductAnalyticsHelpers
   GITLAB_PRODUCT_ANALYTICS_DOMAIN = 'gl-product-analytics.com'
 
   def self.ai_impact_dashboard_globally_available?
-    Gitlab::ClickHouse.globally_enabled_for_analytics?
+    true
   end
 
   def product_analytics_enabled?

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.

Edited by Daniele Rossetti

Merge request reports

Loading