Loading
Simplify AI Governance dashboard summary tiles and cards
What does this MR do?
Follow-up to !247379 (merged) addressing review feedback on the AI Governance dashboard layout.
Design reference: https://pajamas-prototype-kit-c21410.gitlab.io/#/agent-registry-v7/dashboard
https://pajamas-prototype-kit-c21410.gitlab.io/#/agent-registry-research-edits-v2/dashboard
- Removes the Compliance posture summary tile, it was a hardcoded placeholder with no backend metric behind it.
- Removes the two empty placeholder cards; keeps the two data-backed cards
- Audit Trails - Breakdown of AI Sessions
- AI Agent Inventory - Breakdown AI Agents
- Restyles the summary tiles: the delta is now a Pajamas badge (green/red pill with a trend arrow) and the sparkline spans the full tile width, matching the prototype.
Summary tiles now show two KPIs (AI agents, AI sessions), each with the count, a delta badge vs the previous period, and a trend sparkline.
Timeframe
The timeframe is fixed to the last 7 days for now, so the delta reads "this week". A duration filter/selector (last 24 hours / 7 days / 30 days) is planned as a later follow-up; the delta phrasing is already timeframe-aware (today / this week / this month) so it will adapt automatically once the selector lands.
Screenshot
| Before | After |
|---|---|
![]() |
![]() |
Notes
- Stacked on !247379 (merged) (targets that branch); will retarget to
masteronce it merges. - Behind the
ai_governance_dashboardflag.
How to test locally
- Set up GitLab Duo locally (SaaS mode + licensed group): Set up GitLab Duo.
- Enable the flag:
Feature.enable(:ai_governance_dashboard) - Visit Settings → GitLab Duo → Governance on the
gitlab-duogroup, open the Dashboard tab.
Edited by Andrew Cummins

