Skip to content

feat(ui): sortable table columns - #68

Merged
prit-007 merged 1 commit into
mainfrom
feat/sortable-tables
Oct 10, 2026
Merged

prit-007 merged 1 commit into
mainfrom
feat/sortable-tables

Conversation

@prit-007

Copy link
Copy Markdown
Collaborator

Adds click-to-sort columns on admin tables (Orders + Invoices wired; component supports any column with a sortKey). Pure tested helper. Lint 0 · 106 tests · build OK.

- utils/sortable: compareValues (numeric-aware), sortRows (empties last in both
  directions), toggleSort — 6 tests.
- ResponsiveTable: sortable headers (TableSortLabel toggle, asc/desc), sorting
  applied before pagination.
- Enabled on Orders (orderNumber/createdAt/total) and Invoices
  (invoiceNumber/issuedAt/grandTotal).
- (Stale Vite transform cache was why invoices filters weren't visible; dev
  server restarted so code now served fresh.)

Lint 0, 106 tests, build OK.
@prit-007
prit-007 merged commit cf4826f into main Oct 10, 2026
3 checks passed
@prit-007
prit-007 deleted the feat/sortable-tables branch October 10, 2026 18:57
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