feat(ledger): add keyboard-driven row selection and range-copy (Closes #466) - #580
Open
laurentketterle-hub wants to merge 1 commit into
Open
Conversation
…evoraOrg#466) - Click to select/deselect individual rows - Shift+click for range selection between anchor and target - Ctrl+A to select all visible rows - Ctrl+C to copy selected rows as TSV (with headers) - Arrow key navigation with Shift for range extension - Escape to clear selection - Visual: blue highlight (bg-blue-50) with ring indicator - Selection count badge in header with Copied! feedback - Full keyboard accessibility: tabIndex, aria-selected, data-row-id - 12 new tests covering all interaction patterns - 59/59 tests passing
Contributor
Author
|
I claim this bounty. PR ready for review. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Implements keyboard-driven row selection and range-copy for the Ledger table as requested in Issue #466.
Features
bg-blue-50) with ring indicator on selected rowstabIndex={0},aria-selected,data-row-idChanges
src/pages/Ledger.tsx: +169 lines (selection state, keyboard handler, visual styling, TSV copy)src/pages/Ledger.test.tsx: +167 lines (12 new keyboard selection tests)Test Results
Verification
npm install && npx vitest run src/pages/Ledger.test.tsx