Skip to content

[P1] [doc-drift] FR-3.3 selection & copy — multi-select + UPDATE/JSON/MD missing #416

Closed

Description

@EVWorth

[P1] [doc-drift] FR-3.3 selection & copy — multi-select, drag, Copy as UPDATE/JSON/Markdown missing

Context

DESIGN_REQUIREMENTS FR-3.3.1 (Row selection: Click/Ctrl+Click/Shift+Click/Ctrl+A), FR-3.3.2 (Cell selection, drag-to-select), FR-3.3.4 (Copy as UPDATE), FR-3.3.6 (Copy as JSON), FR-3.3.7 (Copy as Markdown).

Problem

Per docs/audits/results.md F21.

None implemented. Only row context menu with Copy Cell/Copy Row (TSV)/Copy as INSERT/Copy All Results (TSV)/Delete Row. Footer Copy button does TSV of all rows. No CSV/JSON/Markdown from context menu.

Files

  • src/components/grid/ResultsGrid.tsx:122-135, 171-242

Repro (if applicable)

Static analysis only.

Expected

Click row 0 → highlight; Ctrl+click rows 2,4 → three rows highlighted; Ctrl+A → all rows; context menu "Copy as UPDATE" copies UPDATE \users` SET `name` = 'Alice' WHERE `id` = 1;`.

Proposed fix

Scope L. Add selectedRows: Set<number> state; Ctrl+Click/Shift+Click handlers; SelectionToolbar; new copy formats reusing exporters + generateUpdate.

Acceptance

Multi-select with the three modifiers works; copy formats produce the expected SQL/JSON/Markdown strings.

Needs human verify

Yes

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

Activity

  1. added
    audit
    severity/p1
    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/p1

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions