From 2a468a2c4b1348ecc7cbd6d4f8b38a53c851015e Mon Sep 17 00:00:00 2001 From: Daedalus Date: Fri, 21 Aug 2026 00:28:57 +0200 Subject: [PATCH] fix(overview): name the users KPI for what it counts The KPI reads COUNT(DISTINCT user_id) over the selected range, so it counts principals with usage in that window. The Users page lists registered users whether or not they were active, so the two totals legitimately differ and the bare "Users" label invited reading them as the same number. Co-Authored-By: Daedalus Co-Authored-By: Claude Opus 4.8 --- docs/design/pages.md | 1 + frontend/src/pages/Overview.tsx | 2 +- internal/dashboard/static/index.html | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/docs/design/pages.md b/docs/design/pages.md index 24fd10f..ead4150 100644 --- a/docs/design/pages.md +++ b/docs/design/pages.md @@ -96,6 +96,7 @@ These are rendered by a shared `` component that wraps every page's | Region | Component | Field | Source | Format | |---|---|---|---|---| | KPI row | `` | Sessions | `GET /overview → total_sessions` | Integer | +| KPI row | `` | Active Users | `GET /overview → users_count` | Integer — principals with usage in the range, not the registered-user total the Users page lists | | KPI row | `` | Total Cost | `GET /overview → total_cost_usd` | `$0.00` | | KPI row | `` | Input Tokens | `GET /overview → total_input_tokens` | `1.2M`, `890K`, `12.4K` | | KPI row | `` | Output Tokens | `GET /overview → total_output_tokens` | Same | diff --git a/frontend/src/pages/Overview.tsx b/frontend/src/pages/Overview.tsx index 65a5610..803cf0f 100644 --- a/frontend/src/pages/Overview.tsx +++ b/frontend/src/pages/Overview.tsx @@ -367,7 +367,7 @@ export default function Overview() { ) : data ? (
- + diff --git a/internal/dashboard/static/index.html b/internal/dashboard/static/index.html index ff05d37..0b794b2 100644 --- a/internal/dashboard/static/index.html +++ b/internal/dashboard/static/index.html @@ -5,7 +5,7 @@ cotel - +