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

  1. Removes the Compliance posture summary tile, it was a hardcoded placeholder with no backend metric behind it.
  2. Removes the two empty placeholder cards; keeps the two data-backed cards
    1. Audit Trails - Breakdown of AI Sessions
    2. AI Agent Inventory - Breakdown AI Agents
  3. 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
image.png image.png

Notes

  • Stacked on !247379 (merged) (targets that branch); will retarget to master once it merges.
  • Behind the ai_governance_dashboard flag.

How to test locally

  1. Set up GitLab Duo locally (SaaS mode + licensed group): Set up GitLab Duo.
  2. Enable the flag: Feature.enable(:ai_governance_dashboard)
  3. Visit Settings → GitLab Duo → Governance on the gitlab-duo group, open the Dashboard tab.
Edited by Andrew Cummins

Merge request reports

Loading
Loading