commercelayer-react-components icon indicating copy to clipboard operation
commercelayer-react-components copied to clipboard

Fix sort order list

Open alisonjsilva opened this issue 9 months ago • 1 comments

This pull request includes updates to dependencies and enhancements to the CustomerReducer in the packages/react-components package. The most important changes include upgrading dependencies in package.json and adding sorting capabilities to the getCustomerOrders and getCustomerSubscriptions functions.

Dependency updates:

  • packages/react-components/package.json: Upgraded @vitest/coverage-v8 from ^3.0.4 to ^3.0.7 and vitest from ^3.0.4 to ^3.0.7. [1] [2]

Enhancements to CustomerReducer:

  • packages/react-components/src/reducers/CustomerReducer.ts: Added QuerySort to the import statements.
  • packages/react-components/src/reducers/CustomerReducer.ts: Added a sort parameter to the GetCustomerOrdersProps interface and the getCustomerOrders function, with a default value of { created_at: 'desc' }. [1] [2]
  • packages/react-components/src/reducers/CustomerReducer.ts: Added a sort parameter to the getCustomerSubscriptions function, with a default value of { created_at: 'desc' } and appropriate handling for sorting orders and subscriptions.
  • [x] Make sure your changes are tested (stories and/or unit, integration, or end-to-end tests).
  • [x] Make sure to add/update documentation regarding your changes.
  • [x] You are NOT deprecating/removing a feature.

alisonjsilva avatar Feb 26 '25 10:02 alisonjsilva

Deploy Preview for commercelayer-react-components failed.

Name Link
Latest commit f97c0f37f282a1093fed62a99e22a52c12c85fb8
Latest deploy log https://app.netlify.com/sites/commercelayer-react-components/deploys/67beeef08f6a470008cd11b6

netlify[bot] avatar Feb 26 '25 10:02 netlify[bot]

Any news on this bug?

alisonjsilva avatar May 23 '25 10:05 alisonjsilva