Enhance Duo Agent Platform analytics dashboard visibility and metrics
## Overview
Improve the Duo and SDLC Trends analytics dashboard to better surface Duo Agent Platform metrics and enhance visibility of key performance indicators.
## Objectives
Increase prominence and accessibility of Duo Agent Platform metrics on the analytics dashboard to support better visibility into platform adoption and usage patterns.
## Changes Required
### 1. Add New Stats Panels
* **MRs with Duo**: Add stats panel showing merge requests created or enhanced with Duo assistance
* https://gitlab.com/gitlab-org/gitlab/-/work_items/587307+s
* **Pipelines with Duo**: Add stats panel showing CI/CD pipelines that utilized Duo features
* https://gitlab.com/gitlab-org/gitlab/-/work_items/587308+s
### 2. Optimize Code Suggestions Chart Layout
* https://gitlab.com/gitlab-org/gitlab/-/work_items/587168+s
* Resize code suggestions charts to improve visibility above the fold
* Ensure key metrics are immediately visible without scrolling
* Maintain readability while maximizing dashboard real estate
### 3. Reorganize Dashboard Layout
* https://gitlab.com/gitlab-org/gitlab/-/work_items/587167+s
* Float all Duo Agent Platform metrics to the top of the dashboard
* Reorder table to prioritize Duo Agent Platform data
* Ensure consistent visual hierarchy across dashboard sections
### 4. Add Usage Tracking
* Add **Duo Agent Platform usage by user** metric
* https://gitlab.com/gitlab-org/gitlab/-/work_items/581894+s
* Display per-user adoption and engagement patterns
* Support identification of power users and adoption gaps
### 5. Replace existing single stat tiles with DAP centric metrics
{width=900 height=106}
* GitLab Duo utilization rate
* https://gitlab.com/gitlab-org/gitlab/-/work_items/587298+s
* GitLab Duo power usage rate
* https://gitlab.com/gitlab-org/gitlab/-/work_items/587299+s
* GitLab Duo Agent/Flow adoption
* https://gitlab.com/gitlab-org/gitlab/-/work_items/587300+s
* GitLab Duo Agent chat sessions
* https://gitlab.com/gitlab-org/gitlab/-/work_items/587301+s
* Visual enhancements
* https://gitlab.com/gitlab-org/gitlab/-/issues/590535+s
### 6. Add additional DAP charts
{width="477" height="600"}
* Median time to merge using GitLab Duo Agent
* https://gitlab.com/gitlab-org/gitlab/-/work_items/587302+s
* Pipelines using GitLab Duo Agent
* https://gitlab.com/gitlab-org/gitlab/-/work_items/587303+s
### 7. Duo metrics table improvements
https://gitlab.com/gitlab-org/gitlab/-/issues/589605+s
* Duo features usage (Number of contributors who used any GitLab Duo feature.)
* Convert to MAU regardless of seat assignment or contributions
* Code Suggestions usage (Code contributors with assigned Duo seats who used Code Suggestions.)
* Convert to % of MAU using code suggestions
* Duo Chat usage (Users with assigned Duo seats who used Duo Chat.)
* Convert to % of MAU who used legacy Duo Chat
* Duo RCA usage (Users with assigned Duo seats who used Root Cause Analysis.)
* Convert to % of MAU who used RCA
In addition to the table, we need to ensure that ALL metrics no longer consider historical seat assignment, but rather MAU.
## Expected Outcomes
- Duo Agent Platform metrics are immediately visible (above the fold)
- Dashboard provides comprehensive view of Duo adoption across MRs, pipelines, and user engagement
- Improved data accessibility for stakeholders reviewing platform performance
## Acceptance Criteria
- [ ] MRs with Duo stats panel is visible and functional
- [ ] Pipelines with Duo stats panel is visible and functional
- [x] Code suggestions charts are resized and optimized for above-the-fold visibility
- [x] All Duo Agent Platform metrics appear at the top of the dashboard
- [x] Duo Agent Platform usage by user metric is displayed
- [ ] Dashboard layout is responsive and maintains readability across screen sizes
- [ ] No regression in existing dashboard functionality
## Related
- Dashboard: https://gitlab.com/gitlab-org/gitlab/-/analytics/dashboards/duo_and_sdlc_trends
- Original project issue: #587173
- Linked issue: #587188 - Add privacy settings for user metrics in Duo Agent Platform analytics
epic