Skip to content

feat: add multi-column sort to Table#4713

Draft
gethinwebster wants to merge 5 commits into
mainfrom
dev-v3-gethinw-multi-column-sort
Draft

feat: add multi-column sort to Table#4713
gethinwebster wants to merge 5 commits into
mainfrom
dev-v3-gethinw-multi-column-sort

Conversation

@gethinwebster

@gethinwebster gethinwebster commented Jul 10, 2026

Copy link
Copy Markdown
Member

Adds opt-in multi-column sorting to Table via the multiColumnSort prop (and useCollection sorting.multiColumn): per-column sort menu, Shift+click, and numbered priority badges. Includes i18n strings, screen-reader live-region announcements, test-utils, and translations for supported locales.

gethinwebster and others added 2 commits July 10, 2026 09:21
Add multi-column sorting to Table, activated by shift-clicking sortable
column headers or via a per-column sort menu.

- Per-column sort menu: set ascending/descending direction (shown as a
  checked state), add to / remove from the multi-column sort, with
  disabled-reason tooltips on unavailable actions.
- Priority badges on sorted column headers and a Clear sort control.
- A polite live region announcing the current sort order (and when sorting
  is cleared), reading localized header text from the DOM and joining
  columns with locale-appropriate separators.
- Focus management so clearing the sort keeps keyboard focus on a sortable
  column header instead of dropping to the document body.
- Styling fixes so the sort icon and priority badge do not overlap
  truncated header text in narrow columns.
- i18n strings for all new labels and screen reader announcements, plus
  test-utils and unit tests covering the new behavior.
Adds translations for the multi-column sort strings across supported locales.
@codecov

codecov Bot commented Jul 10, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 97.61%. Comparing base (3ad0425) to head (7063d10).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #4713      +/-   ##
==========================================
+ Coverage   97.59%   97.61%   +0.01%     
==========================================
  Files         950      954       +4     
  Lines       30642    30814     +172     
  Branches    11229    11306      +77     
==========================================
+ Hits        29906    30078     +172     
- Misses        689      729      +40     
+ Partials       47        7      -40     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant