Skip to content

chore: [preview] multi-column sort dev page (do not merge)#4685

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

chore: [preview] multi-column sort dev page (do not merge)#4685
gethinwebster wants to merge 4 commits into
mainfrom
dev-v3-gethinw-multi-column-sort-preview

Conversation

@gethinwebster

Copy link
Copy Markdown
Member

Preview-only PR — do not merge.

Deploys a preview of the multi-column sort dev page (pages/table/multi-column-sort.page.tsx) wired to useCollection with multiColumn: true.

Because the multi-sort useCollection API isn't published yet (depends on cloudscape-design/collection-hooks#155), this branch vendors the built collection-hooks as vendor/collection-hooks-1.0.0.tgz and points the dependency at it via a repo-relative file: path so the preview deploy (npm i + quick-build) resolves the unpublished API.

The real feature PR drops the vendored tarball and bumps @cloudscape-design/collection-hooks to the published version once #155 releases.

Opened solely to trigger the preview deploy workflow.

@codecov

codecov Bot commented Jul 2, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 97.43590% with 5 lines in your changes missing coverage. Please review.
✅ Project coverage is 97.57%. Comparing base (744f264) to head (1f0cc56).

Files with missing lines Patch % Lines
src/table/multi-column-sort/live-announcement.tsx 84.84% 5 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #4685      +/-   ##
==========================================
- Coverage   97.57%   97.57%   -0.01%     
==========================================
  Files         948      952       +4     
  Lines       30507    30679     +172     
  Branches    11164    11241      +77     
==========================================
+ Hits        29767    29934     +167     
- Misses        693      738      +45     
+ 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.

gethinwebster and others added 4 commits July 3, 2026 12:27
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.
Real translations for the eight original multi-column sort strings, handed back
from AWS-UI-Components-I18n (CR-286059617). Covers 12 locales; en/en-GB already
carried the English source values, and Thai (th) is not yet translated.
…[DROP before PR]

Placeholder (English) values for the two new sort disabled-reason strings and
the three live-region announcement strings, across the 13 supported locales.
Real translations arrive via the Totoro handback; drop this commit before the PR.
…, do not merge]

Vendors the unpublished collection-hooks multi-sort build as
vendor/collection-hooks-1.0.0.tgz and points the dependency at it via a
repo-relative file: path so the preview deploy (npm i + quick-build) resolves
the unpublished multi-sort API. Also swaps in the expanded useCollection dev
page (with I18nProvider) for the bug bash. Dropped in the real feature PR.
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