Frontend: User metrics table - first iteration
Proposal
We need to add a table to the GitLab Duo and SDLC trends dashboard which displays user specific metrics.
We currently have the following data which can be added in the first iteration:
- user.name
- user.lastDuoActivityOn
- codeSuggestionsAcceptedCount
- duoChatInteractionsCount (we can consider skipping this and rather waiting for Duo Agentic chat as that should be GA in %"18.6" )
NOTE: We might be able to move away from aiUserMetics which limits us to the metrics above in favor of the newly created ai_usage_event data which is exposed via aiUsageData. If we can make this shift, we'll be unblocked a lot faster. See #574400 (comment 2800385034) for status of this conversation before starting any work.
We can display data for the past 30 days - the same as we do for the tiles at the top of the page.
| Iteration 1 | scrolled to bottom (keyset pagination) |
|---|---|
![]() |
![]() |
The table will need to be sortable by Duo metric and include keyset pagination. Pagination should start after 20 items as mentioned in Pajamas.
Implementation
-
Create data source -
Add visualization template to GitLab Duo and SDLC trends dashboard -
Update documentation
Related
This issue will unblock adding additional user metrics being introduced as per https://gitlab.com/gitlab-org/analytics-section/optimize-group/admin/-/issues/42#note_2795877960

