fix(tables): auto-scroll during column drag - #6722
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub. |
PR SummaryMedium Risk Overview Drop targeting no longer walks column widths from scroll coordinates. Headers now expose Column drag uses stable column keys (including workflow group meta cells via Reviewed by Cursor Bugbot for commit 3c831be. Bugbot is set up for automated code reviews on this repo. Configure here. |
Greptile SummaryThe PR adds horizontal auto-scrolling while table columns are dragged near viewport edges and keeps drag targets aligned with the visible headers.
Confidence Score: 5/5The PR appears safe to merge. No blocking failure remains.
|
| Filename | Overview |
|---|---|
| apps/sim/app/workspace/[workspaceId]/tables/[tableId]/components/table-grid/table-grid.tsx | Implements drag auto-scroll, viewport-based target resolution, grouped-header handling, and drag lifecycle cleanup; the previously reported failures are addressed at current HEAD. |
| apps/sim/app/workspace/[workspaceId]/tables/[tableId]/components/table-grid/utils.ts | Adds a bounded edge-scroll velocity helper that safely handles zero-width and narrow scrollable viewports. |
| apps/sim/app/workspace/[workspaceId]/tables/[tableId]/components/table-grid/utils.test.ts | Covers left and right edge scrolling, central dead zones, fully pinned viewports, and narrow overlapping edge zones. |
| apps/sim/app/workspace/[workspaceId]/tables/[tableId]/components/table-grid/headers/column-header-menu.tsx | Adds stable drag-target and workflow-group metadata to rendered column headers. |
| apps/sim/app/workspace/[workspaceId]/tables/[tableId]/components/table-grid/headers/workflow-group-meta-cell.tsx | Uses stable column keys for workflow-group dragging and exposes group metadata for viewport hit-testing. |
Reviews (4): Last reviewed commit: "fix(tables): align workflow group drop i..." | Re-trigger Greptile
e5daa12 to
9011512
Compare
|
@cursor review |
|
@cursor review |
|
@cursor review |
There was a problem hiding this comment.
✅ Bugbot reviewed your changes and found no new issues!
Comment @cursor review or bugbot run to trigger another review on this PR
Reviewed by Cursor Bugbot for commit 3c831be. Configure here.
Summary
Type of Change
Testing
Checklist