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

-1
View File
@@ -32,7 +32,6 @@ impl AnalyticsView {
self.section = Section::Summary;
self.zoomed = true;
self.scroll_offset = 0;
self.group_picker = None;
if let Some(view) = view {
self.sections[Section::Summary].group = VIEWS
.iter()