feat(dashboard,medusa): Draft order detail (#6703)

**What**
- Adds draft order details page
- Adds Shipping and Billing address forms to both draft order and order pages
- Adds Email form to both draft order and order pages
- Adds transfer ownership form to draft order, order and customer pages
- Update Combobox component allowing it to work with async data (`useInfiniteQuery`)

**@medusajs/medusa**
- Include country as a default relation of draft order addresses
This commit is contained in:
Kasper Fabricius Kristensen
2024-03-15 10:29:59 +00:00
committed by GitHub
parent 68d869607f
commit c3f26a6826
70 changed files with 2884 additions and 573 deletions
@@ -91,9 +91,46 @@
"defaultMessage": "An error occurred while rendering this page."
},
"addresses": {
"shippingAddress": "Shipping Address",
"billingAddress": "Billing Address",
"sameAsShipping": "Same as shipping address"
"shippingAddress": {
"header": "Shipping Address",
"editHeader": "Edit Shipping Address",
"editLabel": "Shipping address",
"label": "Shipping address"
},
"billingAddress": {
"header": "Billing Address",
"editHeader": "Edit Billing Address",
"editLabel": "Billing address",
"label": "Billing address",
"sameAsShipping": "Same as shipping address"
},
"contactHeading": "Contact",
"locationHeading": "Location"
},
"email": {
"editHeader": "Edit Email",
"editLabel": "Email",
"label": "Email"
},
"transferOwnership": {
"header": "Transfer Ownership",
"label": "Transfer ownership",
"details": {
"order": "Order details",
"draft": "Draft details"
},
"currentOwner": {
"label": "Current owner",
"hint": "The current owner of the order."
},
"newOwner": {
"label": "New owner",
"hint": "The new owner to transfer the order to."
},
"validation": {
"mustBeDifferent": "The new owner must be different from the current owner.",
"required": "New owner is required."
}
},
"products": {
"domain": "Products",
@@ -257,6 +294,13 @@
"draftOrders": {
"domain": "Draft Orders",
"deleteWarning": "You are about to delete the draft order {{id}}. This action cannot be undone.",
"paymentLinkLabel": "Payment link",
"cartIdLabel": "Cart ID",
"markAsPaid": {
"label": "Mark as paid",
"warningTitle": "Mark as Paid",
"warningDescription": "You are about to mark the draft order as paid. This action cannot be undone, and collecting payment will not be possible later."
},
"status": {
"open": "Open",
"completed": "Completed"
@@ -741,7 +785,8 @@
"summary": "Summary",
"label": "Label",
"rate": "Rate",
"requiresShipping": "Requires shipping"
"requiresShipping": "Requires shipping",
"draft": "Draft"
},
"dateTime": {
"years_one": "Year",