Skip to content

[P0] [doc-drift] FR-3.1.5 column reorder + FR-3.1.2 multi-sort — completely missing #392

Closed

Description

@EVWorth

[P0] [doc-drift] FR-3.1.5 column reorder + FR-3.1.2 multi-column sort — completely missing

Context

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.

Files

  • src/components/grid/ResultsGrid.tsx:464-468, 609, 759

Repro (if applicable)

Static analysis only.

Expected

  • 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.

Needs human verify

Yes

Labels: audit, area/results, severity/p0, kind/doc-drift

Activity

  1. added
    audit
    severity/p0
    kind/doc-drift
    area/results
    on Jul 31, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/resultsauditkind/doc-driftseverity/p0

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions