Draft: Spike: render namespace analytics dashboards through the explore app
What does this MR do and why
Spike, not for merge. Renders the existing group/project "GitLab Duo and SDLC trends" dashboard through the explore analytics dashboards app instead of the legacy group/project app, behind the consolidate_analytics_dashboards feature flag (wip, default disabled).
Nine atomic commits, backend first. No test changes, by spike convention. Findings and the full gap analysis are in the issue.
What the commits do:
- Brings the explore copy of the dashboard config to panel parity with the legacy one. It was missing 3 panels, now 21/21 with matching titles and order.
- Adds the
consolidate_analytics_dashboardsfeature flag. - Mounts the explore app on the group and project analytics dashboards pages when the flag is on, with the explore router based at the namespace's own dashboards path.
- Boots the explore app from the group and project page bundles. Each init no-ops without its mount element, so the view's flag branch stays the single decision point.
- Passes the page namespace to the explore app as
currentNamespaceand seeds the filter pickers from it, so panels render immediately instead of showing the "select a group or project" empty state. - On project pages, also seeds the group picker with the project's parent group, because the explore project picker is scoped to, and disabled without, a group.
References
Related to #623132
Screenshots or screen recordings
Captured against a local GDK with ClickHouse enabled, toggling only the feature flag. Before is the legacy app, after is the explore app. The dashboard shots are full-page and tall, so they are collapsed.
Dashboard list, group
| Before | After |
|---|---|
![]() |
![]() |
Dashboard list, project
| Before | After |
|---|---|
![]() |
![]() |
GitLab Duo and SDLC trends, group
GitLab Duo and SDLC trends, project
How to set up and validate locally
echo "Feature.enable(:consolidate_analytics_dashboards)" | bundle exec rails console- Rebuild frontend assets, the group and project page bundles changed.
- Visit a group's Analyze > Analytics dashboards, then open GitLab Duo and SDLC trends. Repeat for a project.
- Disable the flag and confirm the legacy app still renders both pages.
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.







