Skip to content

feat(sql-editor): Data Peek polish + DB2 paging fix - #127

Merged
cursor[bot] merged 17 commits into
mainfrom
cursor/foxscript-7e48
Jul 29, 2026
Merged

feat(sql-editor): Data Peek polish + DB2 paging fix#127
cursor[bot] merged 17 commits into
mainfrom
cursor/foxscript-7e48

Conversation

@huyplb

@huyplb huyplb commented Jul 29, 2026

Copy link
Copy Markdown
Contributor

Summary

User-facing SQL Editor improvements (short list only):

  • DB2 paging — page wrap alias no longer starts with _ (SQL20521N).
  • Data Peek — WHERE / ORDER BY / LIMIT, Prev/Next, vertical stack + scroll, drag to arrange, clearer FK colors.
  • Results → Peek — rust FK cells in editor results open Data Peek (same as Schema Cmd/Ctrl-click).
  • CopyrightNOTICE + SPDX headers (Huy Phan); keep LICENSE/NOTICE when redistributing.

Test plan

  • Unit tests for page wrap / table preview / peek helpers
  • Manual: DB2 SELECT … ORDER BY with Rows/page
  • Manual: Schema Cmd/Ctrl-click peek + result FK click

Copyright 2024–2026 Huy Phan <huyplb@gmail.com> · Apache-2.0 · see NOTICE

Open in Web Open in Cursor 

cursoragent and others added 15 commits July 29, 2026 00:41
DB2 treats identifiers like _fox_page as conditional-compilation
directives (SQL20521N). Use fox_page for all dialect page wraps.

Co-authored-by: huy.phan9 <huyplb@users.noreply.github.com>
Makes DB2 alias issues (e.g. legacy _fox_page) visible in the UI so a
stale API process is obvious after checkout.

Co-authored-by: huy.phan9 <huyplb@users.noreply.github.com>
Constrain the peek modal and grid height so wide tables scroll inside
the viewport. Use high-contrast CSS vars for numeric cells and FK links
(replace washed cyan on the light paper grid).

Co-authored-by: huy.phan9 <huyplb@users.noreply.github.com>
Stack sibling drills per FK column (order / technician / lifecycle can
all stay open). FK cells keep the dark number color with underline only.
Fit the peek modal to the viewport with compact child panels.

Co-authored-by: huy.phan9 <huyplb@users.noreply.github.com>
Add per-panel WHERE / ORDER BY / LIMIT with safe clause checks,
drag-to-resize grids, and high-contrast rust foreign-key link colors.

Co-authored-by: huy.phan9 <huyplb@users.noreply.github.com>
By credential mode no longer lays statement results side by side;
each Out grid is full width with its own height resize handle.

Co-authored-by: huy.phan9 <huyplb@users.noreply.github.com>
Drill panels (e.g. technician + order) always stack full-width
instead of sitting side by side.

Co-authored-by: huy.phan9 <huyplb@users.noreply.github.com>
Give stacked FK panels a taller default height and a wider modal so
sub-datagrids stay readable instead of cramped.

Co-authored-by: huy.phan9 <huyplb@users.noreply.github.com>
Keep each peek panel at a fixed height (no flex-shrink) so opening
many FK drills stacks into a scrollable body instead of crushing grids.

Co-authored-by: huy.phan9 <huyplb@users.noreply.github.com>
Track pageIndex per peek panel, pass OFFSET to /sql/execute, and show
Prev/Next controls on ORDER_TECHNICIAN and drill grids.

Co-authored-by: huy.phan9 <huyplb@users.noreply.github.com>
Add a grip handle on each peek panel so stacked datagrids can be
reordered in the main vertical scroll.

Co-authored-by: huy.phan9 <huyplb@users.noreply.github.com>
Co-authored-by: huy.phan9 <huyplb@users.noreply.github.com>
Wire rust FK links on editor result grids to open Data Peek, hoist the
peek modal to SqlEditorView, and document both Schema and Results entry
points in the empty-state tip and USER_GUIDE.

Co-authored-by: huy.phan9 <huyplb@users.noreply.github.com>
Co-authored-by: huy.phan9 <huyplb@users.noreply.github.com>
Sign SQL Editor / Data Peek sources and root NOTICE for Huy Ph
authorship. Keep public PR write-ups short (no long internal plans).

Co-authored-by: huy.phan9 <huyplb@users.noreply.github.com>
@cursor cursor Bot changed the title fix(sql-editor): DB2 paging alias — avoid leading _ (SQL20521N) feat(sql-editor): Data Peek polish + DB2 paging fix Jul 29, 2026
cursoragent and others added 2 commits July 29, 2026 05:38
Co-authored-by: huy.phan9 <huyplb@users.noreply.github.com>
Co-authored-by: huy.phan9 <huyplb@users.noreply.github.com>
@cursor
cursor Bot marked this pull request as ready for review July 29, 2026 05:40
@cursor
cursor Bot merged commit 5f56cd7 into main Jul 29, 2026
6 checks passed
@cursor
cursor Bot deleted the cursor/foxscript-7e48 branch July 29, 2026 05:40
@cursor

cursor Bot commented Jul 29, 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_e63b279b-76d6-4ae8-b107-0f2ca77e5c79)

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