Skip to content

Add Team Dashboard for cross-device usage aggregation and team comparison#238

Merged
rajbos merged 8 commits intomainfrom
copilot/add-dashboard-view-extension
Feb 17, 2026
Merged

Add Team Dashboard for cross-device usage aggregation and team comparison#238
rajbos merged 8 commits intomainfrom
copilot/add-dashboard-view-extension

Conversation

Copy link
Contributor

Copilot AI commented Feb 16, 2026

Implements dashboard view showing personal Copilot usage aggregated across all devices/workspaces, plus team-wide leaderboard for usage comparison. Data sourced from Azure Table Storage (30-day lookback).

Implementation

Backend (extension.ts)

  • getDashboardData(): Queries table storage, aggregates entities by userId
  • Personal metrics: Sum across machineId/workspaceId for current user
  • Team metrics: Group by userId, rank by total tokens
  • Cost calculation: Model-aware for personal (via calculateEstimatedCost()), simplified average ($0.05/1M tokens) for team members due to lack of per-user model breakdown in aggregation

Frontend (src/webview/dashboard/)

  • Personal summary: tokens, interactions, cost, device/workspace counts, model breakdown
  • Team leaderboard: sortable table with rankings, current user highlighting
  • Standard webview navigation integration

Navigation

  • Command: copilot-token-tracker.showDashboard
  • Added btn-dashboard to shared button config
  • Message handlers in all existing webviews for cross-navigation

Requirements

  • Backend sync configured with Azure Storage Tables
  • Table data must include userId dimension
  • Valid userId in extension settings

Technical Notes

  • Uses BackendUtility.toUtcDayKey() / addDaysUtc() for date range computation
  • Accesses backend facade via private property (set during activation)
  • Dashboard excludes self-referential navigation button to avoid redundancy
Original prompt

Look at the data we upload to the table storage. Based on what we have there, I want to build a mini dashboarding website on this data, where we can see the the following aspects:

  • your own user data summarized across your different editors/devices
  • the summarized view across your team so you can compare yourself with your team mates

This dashboard needs to be able to be deployed in a standalone SPA type application, that loads the data from the table storage.

For starters, we'll display this dashboard in a new view in our extension.


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

Copilot AI and others added 3 commits February 16, 2026 20:00
Co-authored-by: rajbos <6085745+rajbos@users.noreply.github.com>
Co-authored-by: rajbos <6085745+rajbos@users.noreply.github.com>
…lculation docs, fix dashboard button

Co-authored-by: rajbos <6085745+rajbos@users.noreply.github.com>
Copilot AI changed the title [WIP] Add mini dashboard for user and team data Add Team Dashboard for cross-device usage aggregation and team comparison Feb 16, 2026
Copilot AI requested a review from rajbos February 16, 2026 20:10
@rajbos rajbos marked this pull request as ready for review February 17, 2026 16:44
@rajbos rajbos enabled auto-merge February 17, 2026 16:46
@rajbos rajbos disabled auto-merge February 17, 2026 17:12
@rajbos rajbos enabled auto-merge February 17, 2026 17:40
@rajbos rajbos merged commit 35b49e8 into main Feb 17, 2026
13 checks passed
@rajbos rajbos deleted the copilot/add-dashboard-view-extension branch February 17, 2026 17:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Comments