mirror of
https://github.com/openai/codex.git
synced 2026-11-26 07:26:11 +00:00
Add account analytics data normalization to the TUI (#45740)
## What changed Add display models and adapters from typed backend responses for usage, credits, messages, plugins, and skills. Normalize reports into daily histories with grouping labels, units, and freshness timestamps. Preserve missing values, signed credit adjustments, and full daily totals when grouping usage by task start. Account for unassigned message counts as `Other`, merge duplicate dates, and fill unreported days only for credit reports. Group models contributing less than 1% of relative usage into `Other`. This adds the data preparation layer for dashboard integration; it is not yet connected to `/usage`. ## Testing Add unit tests covering missing versus explicit zero values, signed credits, enterprise labels and freshness, usage grouping, duplicate-date message remainders, and unsupported message groupings. GitOrigin-RevId: 931f46a9a6521b4cda2fc26051e7a305cbf6fa6c
This commit is contained in:
1 parent
ab3b40c28b
commit
1fd5399004
9 files changed
+1084
No files matched your search
Generated
+1
@@ -4720,6 +4720,7 @@ dependencies = [
|
||||
"codex-app-server-client",
|
||||
"codex-app-server-protocol",
|
||||
"codex-arg0",
|
||||
"codex-backend-client",
|
||||
"codex-build-info",
|
||||
"codex-cloud-config",
|
||||
"codex-config",
|
||||
|
||||
Reference in new issue
Block a user