Skip to content

Add Query Heatmap sub-tab to Dashboard#743

Merged
erikdarlingdata merged 1 commit intodevfrom
feature/dashboard-query-heatmap
Mar 27, 2026
Merged

Add Query Heatmap sub-tab to Dashboard#743
erikdarlingdata merged 1 commit intodevfrom
feature/dashboard-query-heatmap

Conversation

@erikdarlingdata
Copy link
Copy Markdown
Owner

Summary

  • Port of Lite's Query Heatmap to the full Dashboard (SQL Server backend)
  • New sub-tab under Query Performance with metric selector, ScottPlot heatmap, colorbar, hover tooltips, right-click drill-down
  • Uses DECOMPRESS for compressed query text in collect.query_stats
  • Same UX patterns as Lite: Viridis colormap, FlipVertically, manual tick labels, whole-number colorbar

Test plan

  • Connect to a server, navigate to Query Performance > Query Heatmap
  • Verify heatmap renders with data and correct Y-axis labels
  • Switch metric dropdown — heatmap refreshes
  • Hover over colored cells — tooltip shows time, bucket, count, query text
  • Right-click > "Show Active Queries at This Time" — navigates to Active Queries with correct time filter
  • Change time range — heatmap updates

Addresses #690

🤖 Generated with Claude Code

Port of the Lite Query Heatmap feature to the full Dashboard.
SQL Server implementation using collect.query_stats with DECOMPRESS
for query text, 5-minute time bucketing, and per-execution metric
averaging.

- HeatmapModels.cs: shared model classes (HeatmapMetric, HeatmapResult, HeatmapCell)
- DatabaseService.QueryPerformance.cs: GetQueryHeatmapAsync with SQL Server syntax
- QueryPerformanceContent.xaml: new sub-tab with metric dropdown and ScottPlot heatmap
- QueryPerformanceContent.xaml.cs: rendering, hover tooltips, metric switching,
  right-click drill-down to Active Queries

Same UX as Lite: Viridis colormap, FlipVertically, manual tick labels,
colorbar with whole-number counts, popup tooltips, context menu drill-down.

Addresses #690

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@erikdarlingdata erikdarlingdata merged commit 8826825 into dev Mar 27, 2026
3 checks passed
@erikdarlingdata erikdarlingdata deleted the feature/dashboard-query-heatmap branch April 9, 2026 00:32
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