feat(dashboard): add heatmap display type - #1395
Conversation
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
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Jared, get the lint error fixed |
|
fixed biome formatting (unsafe new + line wrapping). lint clean. |
|
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 You're obviously free to deviate from the product, but this is a heads-up, unless I'm misinterpreting |
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
❌ 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.
|
Jared, wdyt about George's comment? |

adds
heatmapend-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 indashboard viewas 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