feat: Auto-convert builder charts to Raw SQL#2634
Conversation
🦋 Changeset detectedLatest commit: 2149d8e 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.
|
Greptile SummaryThis PR automatically carries Builder charts into SQL mode. The main changes are:
Confidence Score: 4/5This is close, but the pending-source workflow should be fixed before merging.
packages/app/src/components/DBEditTimeChartForm/useBuilderToSqlConversion.ts Important Files Changed
Reviews (2): Last reviewed commit: "fix: Prevent extra in Metrics SQL" | Re-trigger Greptile |
E2E Test Results✅ All tests passed • 240 passed • 3 skipped • 1442s
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. No P0/P1 ship-blockers: no data-persistence loss, auth bypass, or injection reachable across a privilege boundary, and the happy path is sound. The findings below are correctness/reliability sharp edges and coverage gaps worth addressing before or shortly after merge. 🟡 P2 — recommended
🔵 P3 nitpicks (10)
Reviewers (11): correctness, security, adversarial, julik-frontend-races, kieran-typescript, reliability, testing, maintainability, project-standards, agent-native, learnings-researcher. Testing gaps: No |
Summary
This PR adds automatic conversion from builder charts to sql charts when switching from builder mode to sql mode, so that users don't have to start with an empty SQL template.
The sql template is only overwritten when the chart was edited in builder mode more recently than in SQL mode.
This PR does not implement SQL --> Builder conversion (I'd like to do that in a followup).
Screenshots or video
Screen.Recording.2026-07-13.at.11.39.04.AM.mov
How to test on Vercel preview
This can be tested in the preview in Chart Explorer or in Dashboards.
References