Skip to content

feat(sql-editor): compare query data across databases with colored cells - #187

Merged
huyplb merged 4 commits into
mainfrom
cursor/query-data-compare-7e48
Aug 6, 2026
Merged

feat(sql-editor): compare query data across databases with colored cells#187
huyplb merged 4 commits into
mainfrom
cursor/query-data-compare-7e48

Conversation

@huyplb

@huyplb huyplb commented Aug 6, 2026

Copy link
Copy Markdown
Contributor

Summary

Adds Compare on SQL Editor Side-by-side results when two or more Destinations return grids for the same statement.

  • Pick a baseline connection (vs dropdown)
  • Cells that differ are colored: amber modified, rose missing, emerald extra
  • Columns align by case-insensitive name; rows by index on the current page (use the same ORDER BY)
  • Toggle Compare off anytime; badges show baseline / N differ / match

How to use

  1. Check 2+ Destinations
  2. Switch layout to Side-by-side
  3. Run the same SELECT … ORDER BY …
  4. Leave Compare on and choose the baseline

Screenshot (seeded e2e)

SQL Editor data compare with amber modified cells

Two SQLite seeds (Alice vs Bob on customers.name) — Compare highlights the differing cells on both grids.

Test plan

  • Unit tests for compareResultGrids / value equality
  • tsc for apps/web
  • E2E: seed two SQLite DBs, assert data-diff="modified" cells, toggle clears highlights
  • E2E screenshot artifact captured

To show artifacts inline, enable in settings.

Open in Web Open in Cursor 

…lors

Side-by-side results can highlight differences vs a baseline connection
(amber modified, rose missing, emerald extra). Rows align by page index;
columns match by case-insensitive name.

Co-authored-by: huy.phan9 <huyplb@users.noreply.github.com>
Comment thread apps/web/src/frontend/components/sql-editor/DataGrid.tsx Fixed
cursoragent and others added 3 commits August 6, 2026 22:39
Extends the multi-credential SQL Editor suite to turn on Side-by-side
Compare against Alice/Bob seeds and verify modified cell highlights.

Co-authored-by: huy.phan9 <huyplb@users.noreply.github.com>
Save viewport + artifact PNGs while Compare highlights Alice vs Bob.

Co-authored-by: huy.phan9 <huyplb@users.noreply.github.com>
Co-authored-by: huy.phan9 <huyplb@users.noreply.github.com>
@huyplb
huyplb marked this pull request as ready for review August 6, 2026 23:17
@huyplb
huyplb merged commit 521923f into main Aug 6, 2026
1 check passed
@huyplb
huyplb deleted the cursor/query-data-compare-7e48 branch August 6, 2026 23:17
@cursor

cursor Bot commented Aug 6, 2026

Copy link
Copy Markdown
Contributor

Bugbot couldn't run - usage limit reached

Bugbot is counted against Cursor usage for this user or team, and this run hit a usage or spend limit.

A user or team admin can review and increase usage limits in the Cursor dashboard.

(requestId: serverGenReqId_85b1cdd6-48a3-48c5-8455-968ee49ab475)

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants