commercelayer-react-components
commercelayer-react-components copied to clipboard
Fix sort order list
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-v8from^3.0.4to^3.0.7andvitestfrom^3.0.4to^3.0.7. [1] [2]
Enhancements to CustomerReducer:
packages/react-components/src/reducers/CustomerReducer.ts: AddedQuerySortto the import statements.packages/react-components/src/reducers/CustomerReducer.ts: Added asortparameter to theGetCustomerOrdersPropsinterface and thegetCustomerOrdersfunction, with a default value of{ created_at: 'desc' }. [1] [2]packages/react-components/src/reducers/CustomerReducer.ts: Added asortparameter to thegetCustomerSubscriptionsfunction, 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.
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 |
Any news on this bug?