Skip to content

feat(dashboard): add heatmap display type - #1395

Open
jared-outpost[bot] wants to merge 6 commits into
mainfrom
issue-1230-heatmap-display-type
Open

feat(dashboard): add heatmap display type#1395
jared-outpost[bot] wants to merge 6 commits into
mainfrom
issue-1230-heatmap-display-type

Conversation

@jared-outpost

@jared-outpost jared-outpost Bot commented Aug 8, 2026

Copy link
Copy Markdown
Contributor

adds heatmap end-to-end for dashboards. it's now accepted by create/add/edit validation, fetched via the existing events-stats timeseries path (with group-by), and rendered in dashboard view as a category-by-time grid where cell intensity encodes value relative to the global max, plus a low→high legend and time axis.

Testing

vitest run test/lib/formatters/dashboard.test.ts test/types/dashboard.test.ts test/lib/api/dashboards.test.ts — all pass, including new heatmap formatter + display-type cases. typecheck errors are pre-existing (missing generated sdk/schema files), none in touched code.

Closes #1230

Accept heatmap as a valid widget display type, route it through the
events-stats timeseries query, and render it as a category-by-time grid
with intensity shading in the dashboard view.

Fixes #1230
@vercel

vercel Bot commented Aug 8, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
cli Ready Ready Preview Aug 10, 2026 3:27pm

Request Review

@jared-outpost
jared-outpost Bot marked this pull request as ready for review August 8, 2026 08:17
@github-actions github-actions Bot added the risk: high PR risk score: high label Aug 8, 2026
Comment thread packages/cli/src/lib/formatters/dashboard.ts
Comment thread packages/cli/src/lib/formatters/dashboard.ts Outdated
Comment thread packages/cli/src/lib/formatters/dashboard.ts Outdated
Comment thread packages/cli/src/lib/formatters/dashboard.ts Outdated
@BYK

BYK commented Aug 10, 2026

Copy link
Copy Markdown
Member

Jared, get the lint error fixed

@BYK
BYK requested a review from gggritso August 10, 2026 15:24
@jared-outpost

jared-outpost Bot commented Aug 10, 2026

Copy link
Copy Markdown
Contributor Author

fixed biome formatting (unsafe new + line wrapping). lint clean.

@gggritso

Copy link
Copy Markdown
Member

From the description this sounds like maybe it doesn't work quite like the UI heat maps? In the UI the heat map always uses a time X-axis and the Y-axis is buckets of a known distribution value, and the Z-axis is the count(). There's also a special endpoint called /events-heatmap that returns this data in a convenient format.

You're obviously free to deviate from the product, but this is a heads-up, unless I'm misinterpreting

@cursor cursor Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Want reviews to match your repository better? Bugbot Learning can learn team-specific rules from PR activity. A team admin can enable Learning in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit df81d99. Configure here.

Comment thread AGENTS.md
@BYK

BYK commented Aug 10, 2026

Copy link
Copy Markdown
Member

Jared, wdyt about George's comment?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

risk: high PR risk score: high

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add heatmap display type for dashboards

2 participants