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:
Felipe Coury authored and copyberry committed 2026-09-15 19:13:32 +00:00
1 parent 9bd49c9dcc
commit de40696ec4
92 files changed
+1474 -1214

No files matched your search

-6
View File
@@ -93,12 +93,6 @@ impl AnalyticsView {
{
self.sections[Section::Usage].group = 0;
}
if self
.group_picker
.is_some_and(|choice| choice >= self.group_options().len())
{
self.group_picker = None;
}
if let Some(chats) = self.tasks.ready() {
self.sections[Section::Chats].cursor = self.sections[Section::Chats]
.cursor