Skip to content

Fix Query Store time slicer metric display#132

Merged
erikdarlingdata merged 1 commit intodevfrom
fix/slicer-metric-label
Mar 20, 2026
Merged

Fix Query Store time slicer metric display#132
erikdarlingdata merged 1 commit intodevfrom
fix/slicer-metric-label

Conversation

@erikdarlingdata
Copy link
Owner

Summary

  • Increase slicer metric label font size (9 → 12) and switch from muted to foreground brush
  • Fix metric label always showing "Total" even when an avg metric is selected (e.g., "Avg CPU" dropdown showed "Total CPU (ms)" in the chart)
  • Add per-bucket average properties to QueryStoreTimeSlice so the slicer chart shape reflects total vs avg correctly

Test plan

  • Switch between Total CPU and Avg CPU — label updates, chart shape changes
  • Verified across all 6 metric pairs (CPU, Duration, Reads, Writes, Physical Reads, Memory)
  • Metric label is larger and readable

🤖 Generated with Claude Code

- Increase metric label font size from 9 to 12 for readability
- Use ForegroundBrush instead of muted SlicerLabelBrush for metric label
- Fix metric label showing "Total" for avg metrics (e.g., avg-cpu showed
  "Total CPU" instead of "Avg CPU") by splitting combined or-patterns
- Add per-bucket average properties to QueryStoreTimeSlice so the slicer
  chart shape reflects the selected metric (total vs avg) instead of
  always showing totals

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@erikdarlingdata erikdarlingdata merged commit aab420a into dev Mar 20, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant