chore: Make dashboard tile error state consistent across chart types#2404
Conversation
Replace custom error rendering in DBHeatmapChart, DBTableChart, DBHistogramChart, DBListBarChart, and ServiceDashboardSlowestEventsTile with the shared ChartErrorState component. Add errorVariant prop to each chart component so callers can choose between collapsible (modal button, default for dashboard tiles) and inline (expanded details, used in chart explorer and tile editor). Update ChartPreviewPanel to pass errorVariant='inline' to DBTableChart and DBHeatmapChart, matching the existing pattern for DBTimeChart, DBNumberChart, and DBPieChart. Resolves HDX-4430 Co-authored-by: Drew Davis <pulpdrew@gmail.com>
🦋 Changeset detectedLatest commit: e3ab80b The changes in this PR will be included in the next version bump. This PR includes changesets to release 3 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.
|
E2E Test Results✅ All tests passed • 196 passed • 3 skipped • 1304s
Tests ran across 4 shards in parallel. |
🟡 Tier 3 — StandardIntroduces new logic, modifies core functionality, or touches areas with non-trivial risk. Why this tier:
Review process: Full human review — logic, architecture, edge cases. Stats
|
Deep Review✅ No critical issues found. This is a focused, low-risk frontend refactor: each chart type's error branch is routed through the shared 🟡 P2 — recommended
🔵 P3 nitpicks (3)
Reviewers (9): correctness, kieran-typescript, maintainability, testing, adversarial, julik-frontend-races, project-standards, agent-native, learnings-researcher. Testing gaps:
Coverage notes:
|
knudtty
left a comment
There was a problem hiding this comment.
LGTM. Great way to decrease debt
Summary
This PR updates each chart type to have a consistent error state, using the shared
ChartErrorStatecomponent. Further, the variant of the component now matches ("collapsible" when the chart is a dashboard tile, "inline" when editing the chart or viewing on the search page).Before:
After:
Screen.Recording.2026-06-03.at.8.16.17.AM.mov
How to test on Vercel preview
This can be tested in the preview environment - any invalid SQL WHERE filter should trigger a query failure and cause an error state, on dashboards or elsewhere.
References