feat(core-flows, dashboard, link-modules,medusa, types, utils): fulfillment shipping changes (#10902)

**What**
- product <> shipping profile link
- create and update product workflows/endpoints accepts shipping profile
- pass shipping option id when creating fulfillment to allow overriding customer selected SO
- validate shipping profile delete
- dashboard
  - set shipping profile on product create
  - manage shipping profile for a product
  - **update the create fulfillment form**
- other
  - fix create product form infinite rerenders
 
---

CLOSES CMRC-831 CMRC-834 CMRC-836 CMRC-837 CMRC-838 CMRC-857 TRI-761
This commit is contained in:
Frane Polić authored and GitHub committed 2025-01-27 12:00:20 +00:00
1 parent 3e81962503
commit 864d772e34
78 files changed
+3529 -794

No files matched your search

@@ -56,6 +56,7 @@ medusaIntegrationTestRunner({
let appContainer
let promotion
let standardPromotion
let shippingProfile
const promotionRule = {
operator: "eq",
@@ -90,6 +91,14 @@ medusaIntegrationTestRunner({
adminHeaders
)
).data.promotion
shippingProfile = (
await api.post(
`/admin/shipping-profiles`,
{ name: "default", type: "default" },
adminHeaders
)
).data.shipping_profile
})
describe("GET /admin/promotions/:id", () => {
@@ -512,7 +521,10 @@ medusaIntegrationTestRunner({
const product = (
await api.post(
"/admin/products",
medusaTshirtProduct,
{
...medusaTshirtProduct,
shipping_profile_id: shippingProfile.id,
},
adminHeaders
)
).data.product
@@ -1494,6 +1506,7 @@ medusaIntegrationTestRunner({
{
title: "Test product 1",
options: [{ title: "size", values: ["large", "small"] }],
shipping_profile_id: shippingProfile.id,
},
adminHeaders
)
@@ -1505,6 +1518,7 @@ medusaIntegrationTestRunner({
{
title: "Test product 2",
options: [{ title: "size", values: ["large", "small"] }],
shipping_profile_id: shippingProfile.id,
},
adminHeaders
)