feat: Support raw sql number charts and pie charts#1875
Conversation
🦋 Changeset detectedLatest commit: db55617 The changes in this PR will be included in the next version bump. This PR includes changesets to release 4 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
PR Review: feat: Support raw sql number charts and pie charts✅ Overall looks good — clean refactoring, good test coverage, and well-structured shared Minor issues:
No critical bugs or security issues found. |
Code Review
Overall the refactor is clean - shared ChartErrorState component is a good abstraction, and the raw SQL support for number/pie charts follows the established line chart pattern correctly. |
8d91320 to
59e4033
Compare
Code Review
Otherwise the approach is clean — good refactor consolidating error state into a shared |
59e4033 to
4648f60
Compare
Code ReviewNo critical issues found. A few minor observations:
Overall the PR is clean: the shared ChartErrorState component is a good abstraction, type unions are handled correctly, and the test updates correctly reflect the behavioral change in formatResponseForPieChart (throw vs. return empty array). |
4648f60 to
2d06b75
Compare
E2E Test Results✅ All tests passed • 87 passed • 3 skipped • 927s
Tests ran across 4 shards in parallel. |
## Summary This PR adds support for Raw SQL Charts to the external dashboards APIs. ### Screenshots or video <img width="2294" height="1180" alt="Screenshot 2026-03-10 at 1 25 16 PM" src="https://github.com/user-attachments/assets/1f35bbe9-2558-43fa-8cc4-148af75042c5" /> ### How to test locally or on Vercel - `yarn dev` locally - Grab your Personal API Key from Team Settings - Make a request to the dashboard endpoints ``` curl http://localhost:8000/api/v2/dashboards -H "Authorization: Bearer <Key>" -H "Content-Type: application/json" ``` Schema is available at [`http://localhost:8000/api/v2/docs/#/`](http://localhost:8000/api/v2/docs/#/) ### References - Linear Issue: HDX-3582 HDX-3585 - Related PRs: #1866, #1875
| </div> | ||
| )} | ||
| {queryReady && queriedConfig != null && activeTab === 'number' && ( | ||
| <div className="flex-grow-1 d-flex flex-column" style={{ height: 400 }}> |
There was a problem hiding this comment.
If there's some pattern you see to extract this rather than wrapping every chart in this flex-grow div, go for it
Summary
This PR adds support for Raw SQL Number and Pie charts. It also introduces a shared ChartErrorState component for a few chart types.
Screenshots or video
Number and Pie Chart:


Error States



How to test locally or on Vercel
This change can be tested in the preview environment.
References