mirror of
https://github.com/openai/codex.git
synced 2026-11-27 23:31:09 +00:00
Improve analytics chart readability and navigation (#45770)
## Why Reading daily totals required selecting each bar, and changing grouping required opening a picker. Section navigation could shift vertically, while scroll hints appeared even when content fit. ## What changed - Make `g` cycle through available groupings and summary views directly. - Show daily totals on charts spanning up to seven days when space permits, prioritizing the selected value and keeping neighboring labels separate. - Keep section navigation at a stable height, show more legend rows in taller maximized reports, and move their update timestamp into the footer. - Hide scroll hints when content fits, including an exact fit, and show only the active summary view label. ## Testing Add regression tests and snapshots for seven-day totals, narrow label spacing, grouping wraparound and server capabilities, configured `g` navigation in ungrouped sections, stable tab placement, adaptive legends, footer timestamps, and overflow-dependent scroll hints. GitOrigin-RevId: 9d14f314b4a22ca2d926f0e69c6b89e4f9c8550d
This commit is contained in:
1 parent
9bd49c9dcc
commit
de40696ec4
92 files changed
+1474
-1214
No files matched your search
+4
-4
@@ -25,7 +25,7 @@ expression: snapshot
|
||||
|
||||
|
||||
tab/1–6 section · z dashboard · ←/→ day
|
||||
r 7/30d · R refresh · pgup/pgdn scroll · esc back · q close
|
||||
r 7/30d · R refresh · esc back · q close
|
||||
|
||||
Analytics · Live account
|
||||
[7d] 30d · [date range]
|
||||
@@ -50,10 +50,11 @@ expression: snapshot
|
||||
|
||||
|
||||
tab/1–6 section · z dashboard · ←/→ day
|
||||
r 7/30d · R refresh · pgup/pgdn scroll · esc back · q close
|
||||
r 7/30d · R refresh · esc back · q close
|
||||
|
||||
Analytics · Live account
|
||||
|
||||
|
||||
[1 Summary] 2 Total usage history 3 Messages 4 Plugins called 5 Skills
|
||||
used 6 Top chats
|
||||
|
||||
@@ -67,12 +68,11 @@ expression: snapshot
|
||||
— —
|
||||
Current streak Longest streak
|
||||
|
||||
Token activity Daily [Weekly] Cumulative
|
||||
Token activity Weekly
|
||||
Last 12 months
|
||||
|
||||
Token activity history unavailable
|
||||
|
||||
Activity insights Most used plugins and skills
|
||||
|
||||
tab/1–6 section · z dashboard · ↑/↓ scroll
|
||||
g view · R refresh · pgup/pgdn scroll · esc back · q close
|
||||
@@ -162,7 +162,7 @@ async fn analytics_menu_reopen_preserves_navigation_and_explicit_view_selects_su
|
||||
assert_eq!(screens[0], screens[1]);
|
||||
assert!(screens[1].contains("[4 Plugins called]"));
|
||||
assert!(screens[2].contains("[1 Summary]"));
|
||||
assert!(screens[2].contains("[Weekly]"));
|
||||
assert!(screens[2].contains("Weekly"));
|
||||
let snapshot = screens.join("\n\n");
|
||||
let snapshot = snapshot
|
||||
.lines()
|
||||
|
||||
Reference in new issue
Block a user