You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
DESIGN_REQUIREMENTS FR-3.1.5: "Drag column headers to reorder; persist column order per query/table". FR-3.1.2: "Click column header to sort ASC/DESC/none; multi-column sort with Shift+Click; sort indicator arrows".
Problem
Per docs/audits/results.md F5.
useReactTable is configured without enableMultiSort: true or isMultiSortEvent: (e) => e.shiftKey. No columnOrder state, no drag handle on the header, no onColumnOrderChange. Users who want to sort by 2 columns (e.g., department ASC, then hire_date DESC) see only the most recent click.
Drag email header to the left of id → columns reorder and persist after reload.
Shift+click department then Shift+click hire_date → both show sort indicators in priority order.
Proposed fix
Scope M. Add columnOrder state + drag handle (HTML5 dnd or react-dnd); persist to localStorage keyed by connectionId + sql-hash. Add enableMultiSort: true, isMultiSortEvent: (e) => Boolean(e?.shiftKey) to useReactTable.
Acceptance
Drag-reorder persists across reloads; Shift+click adds a secondary sort key; third click resets.
Activity
feat(grid): multi-column sort and drag-to-reorder columns
feat(grid): multi-column sort and drag-to-reorder columns (#635)