feat(admin-ui, medusa, medusa-react, medusa-js): Price List UI revamp (#5233)

* progress on cleanup

* rm forceMount

* close modal on succesful submit

* fix: invalidate price list query on useAdminCreatePriceListPrices

* sync translation keys

* add last translations

* sync translation keys

* improve tabbing between cells

* add comment

* fix: remove double variant, set collision boundary on column dropdown

* add widgets

* update lock file

* decrease details info size, and add missing status update function

* sync translation keys

* add snapshots and remove min/max

* add missing filter menu for customer groups table

* add translation keys for filter menu

* rm unused code

* Create tall-apricots-run.md

* Update tall-apricots-run.md

* fix: discard invalid paste values

* add translation keys

* bump snapshots + minor fixes

* rm console.log

* bump snapshots

* bump ui packages, and add missing tax inclusive display in New form

* update lock file

* fix filter menu

* update snapshot

* update ui package and fix sub menu position

---------

Co-authored-by: Sebastian Rindom <skrindom@gmail.com>
Co-authored-by: Oli Juhl <59018053+olivermrbl@users.noreply.github.com>
This commit is contained in:
authored and GitHub committed 2023-10-06 08:22:25 -07:00
1 parent 4ca70a0d0c
commit 0f34e0f381
86 files changed
+9910 -2667

No files matched your search

@@ -1,14 +1,15 @@
import {
AdminDeletePriceListPricesPricesReq,
AdminDeletePriceListsPriceListProductsPricesBatchReq,
AdminGetPriceListPaginationParams,
AdminGetPriceListsPriceListProductsParams,
AdminPostPriceListPricesPricesReq,
AdminPostPriceListsPriceListPriceListReq,
AdminPostPriceListsPriceListReq,
AdminPriceListDeleteBatchRes,
AdminPriceListDeleteRes,
AdminPriceListRes,
AdminGetPriceListPaginationParams,
AdminPriceListsListRes,
AdminDeletePriceListPricesPricesReq,
AdminPriceListDeleteBatchRes,
AdminGetPriceListsPriceListProductsParams,
} from "@medusajs/medusa"
import qs from "qs"
import { ResponsePromise } from "../../typings"
@@ -112,6 +113,15 @@ class AdminPriceListResource extends BaseResource {
const path = `/admin/price-lists/${priceListId}/variants/${variantId}/prices`
return this.client.request("DELETE", path, undefined, {}, customHeaders)
}
deleteProductsPrices(
priceListId: string,
payload: AdminDeletePriceListsPriceListProductsPricesBatchReq,
customHeaders: Record<string, any> = {}
): ResponsePromise<AdminPriceListDeleteBatchRes> {
const path = `/admin/price-lists/${priceListId}/products/prices/batch`
return this.client.request("DELETE", path, payload, {}, customHeaders)
}
}
export default AdminPriceListResource