Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions docs/design/pages.md
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ These are rendered by a shared `<PageHeader>` component that wraps every page's
| Region | Component | Field | Source | Format |
|---|---|---|---|---|
| KPI row | `<KpiCard>` | Sessions | `GET /overview → total_sessions` | Integer |
| KPI row | `<KpiCard>` | Active Users | `GET /overview → users_count` | Integer — principals with usage in the range, not the registered-user total the Users page lists |
| KPI row | `<KpiCard>` | Total Cost | `GET /overview → total_cost_usd` | `$0.00` |
| KPI row | `<KpiCard>` | Input Tokens | `GET /overview → total_input_tokens` | `1.2M`, `890K`, `12.4K` |
| KPI row | `<KpiCard>` | Output Tokens | `GET /overview → total_output_tokens` | Same |
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/pages/Overview.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -367,7 +367,7 @@ export default function Overview() {
) : data ? (
<div className={styles.kpiRow}>
<KpiCard label={scoped('Sessions')} value={String(data.sessions_count)} />
<KpiCard label={scoped('Users')} value={String(data.users_count)} />
<KpiCard label={scoped('Active Users')} value={String(data.users_count)} />
<KpiCard label={scoped('Total Cost')} value={`$${data.total_cost_usd.toFixed(2)}`} />
<KpiCard label={scoped('Input Tokens')} value={fmtTokens(data.total_input_tokens)} />
<KpiCard label={scoped('Output Tokens')} value={fmtTokens(data.total_output_tokens)} />
Expand Down
2 changes: 1 addition & 1 deletion internal/dashboard/static/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="icon" href="/favicon.svg" type="image/svg+xml" />
<title>cotel</title>
<script type="module" crossorigin src="/assets/index-DcZF7nqg.js"></script>
<script type="module" crossorigin src="/assets/index-BfsEHloO.js"></script>
<link rel="stylesheet" crossorigin href="/assets/index-DhEfeL5C.css">
</head>
<body>
Expand Down