Frontend: Add trend indicators and descriptions to DAP metrics tiles

Overview

DAP_overview_metrics_-_absolute_values

⚠️ UI text on mock maybe out-of-date, please use this spreadsheet to the SSoT.

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.

#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 value
  • Remove reliance on tooltip help icon
  • Improve discoverability and accessibility

Dependencies

This issue depends on completion of all four metrics:

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 🤖