Frontend: Add trend indicators and descriptions to DAP metrics tiles
Overview
Enhance the DAP-centric metrics tiles to improve clarity and usability by adding trend indicators and visible descriptions. This work will be completed after all four metrics are built.
Related Epic
#20540 - Enhance Duo Agent Platform analytics dashboard visibility and metrics
Current State
- Single stat tiles display only the metric value
- Descriptions are hidden in a tooltip (accessible via help icon in panel title)
- No trend indicators showing metric direction or change
Proposed Changes
1. Add Trend Indicators
- Display trend direction (up/down/neutral) below or next to the stat value
- Show percentage change or absolute change from previous period
- Use visual indicators (arrows, colors) to indicate positive/negative trends
2. Move Descriptions Below Stat
Display metric description directly below the stat valueRemove reliance on tooltip help icon- Improve discoverability and accessibility
Dependencies
This issue depends on completion of all four metrics:
- #587298 (closed) - GitLab Duo users
- #587299 - GitLab Duo power users
- #587300 (closed) - GitLab Duo agent/flow users
- #587301 (closed) - GitLab Duo Agent chat sessions
Acceptance Criteria
- Trend indicators are visible on all four metric tiles
- Descriptions appear below stat values on all tiles
- Design is consistent across all tiles
- Responsive on mobile and desktop
- No regression in existing functionality
Resources
Edited by 🤖 GitLab Bot 🤖
