Skip to content

crimes(explore): Add Heat Map chart type to Metrics#115114

Closed
gggritso wants to merge 2 commits into
masterfrom
georgegritsouk/dain-1635-add-heat-map-widget-to-explore
Closed

crimes(explore): Add Heat Map chart type to Metrics#115114
gggritso wants to merge 2 commits into
masterfrom
georgegritsouk/dain-1635-add-heat-map-widget-to-explore

Conversation

@gggritso
Copy link
Copy Markdown
Member

@gggritso gggritso commented May 7, 2026

Don't look at me, I'm doing crimes for prototyping!

Wire HeatMapWidgetVisualization into the Explore Metrics tab as a new
chart type alongside Line, Area, and Bar. When selected, the metric graph
fetches from /events-heatmap/ and renders the heatmap with a logarithmic
z-axis.

This is an MVP — known limitations (e.g. interval snapping prevents an
exact 50-bucket horizontal target, missing yAxis valueType/valueUnit on
the API, add-to-dashboard falls back to LINE) are documented inline.

Refs DAIN-1635
Co-Authored-By: Claude <noreply@anthropic.com>
@linear-code
Copy link
Copy Markdown

linear-code Bot commented May 7, 2026

DAIN-1635

@gggritso gggritso changed the title feat(explore): Add Heat Map chart type to Metrics crimes(explore): Add Heat Map chart type to Metrics May 7, 2026
@github-actions github-actions Bot added the Scope: Frontend Automatically applied to PRs that change frontend components label May 7, 2026
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 7, 2026

📊 Type Coverage Diff

Metric Before After Delta
Coverage 93.45% 93.45% ±0%
Typed 135,151 135,188 🟢 +37
Untyped 9,468 9,470 🔴 +2
🔍 2 new type safety issues introduced

Non-null assertions (!) (1 new)

File Line Detail
static/app/views/explore/metrics/hooks/useMetricHeatmap.tsx 201 ALLOWED_INTERVAL_SECONDS[ALLOWED_INTERVAL_SECONDS.length - 1]!

Type assertions (as) (1 new)

File Line Detail
static/app/views/explore/metrics/hooks/useMetricHeatmap.tsx 100 as HeatMapSeries['meta']['yAxis']['valueUnit'](traceMetric.unit ?? null) as HeatMapSeries['meta']['yAxis']['valueUnit']

This is informational only and does not block the PR.

Only used inside heatMap.tsx, so the export was flagged by Knip once
the heatMapWidget directory was removed from the exclude list.

Refs DAIN-1635
Co-Authored-By: Claude <noreply@anthropic.com>
@gggritso
Copy link
Copy Markdown
Member Author

The non-crimes (less crimes) version is at #115608

@gggritso gggritso closed this May 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Scope: Frontend Automatically applied to PRs that change frontend components

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant