feat(dashboard): order fulfillment UI (#7262)
* feat: initial impl. of Unfulfilled section and create flow * feat: create fulfillment * feat: order <> fulfillment link, fulfillment section * feat: accept order_id when creating fulfillment * feat: finish create and cancel * fix: integration test * refactor: real Order<>Fulfillment link instead readonly, add link step to the workflow * fix: revert `order_id` definitions * chore: add changeset * fix: build * fix: address comments * fix: fetch inventory and location levels for fulfilled variant * fix: loading inventory details * add isList to order fulfillment link * fix: duplicate declaration * fix: type * refactor: link orders step, fix client * fix: move translations to the new file * fix: pass order id in test --------- Co-authored-by: olivermrbl <oliver@mrbltech.com>
This commit is contained in:
@@ -8,6 +8,7 @@ export function generateCreateFulfillmentData(
|
||||
data: Partial<CreateFulfillmentDTO> & {
|
||||
provider_id: string
|
||||
shipping_option_id: string
|
||||
order_id: string
|
||||
}
|
||||
) {
|
||||
const randomString = Math.random().toString(36).substring(7)
|
||||
@@ -49,6 +50,7 @@ export function generateCreateFulfillmentData(
|
||||
},
|
||||
],
|
||||
order: data.order ?? {},
|
||||
order_id: data.order_id,
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -69,6 +69,7 @@ medusaIntegrationTestRunner({
|
||||
const data = generateCreateFulfillmentData({
|
||||
provider_id: providerId,
|
||||
shipping_option_id: shippingOption.id,
|
||||
order_id: "fake-order",
|
||||
})
|
||||
const { errors } = await workflow.run({
|
||||
input: data,
|
||||
|
||||
@@ -140,6 +140,7 @@ medusaIntegrationTestRunner({
|
||||
const data = generateCreateFulfillmentData({
|
||||
provider_id: providerId,
|
||||
shipping_option_id: shippingOption.id,
|
||||
order_id: "order_123",
|
||||
})
|
||||
|
||||
const response = await api
|
||||
|
||||
Reference in New Issue
Block a user