feat(dashboard): Draft orders create (#6680)

**What**
- Adds Create draft order form
- Updates draft order details page to also display "custom" items.

**Note**
- Currently, the form is missing a way to input a discount code. Need to rethink this a bit, as the we can't implement the design in Figma.
- The current design is missing a way to select from a customers existing shipping addresses, we should add that to keep the features we have today.
- This PR uses `useInfiniteQuery` which does not work on our staging (due to duplicate dependencies as a result of building straight from the monorepo), so you will need to test locally.
This commit is contained in:
Kasper Fabricius Kristensen
2024-03-25 17:18:24 +00:00
committed by GitHub
parent 20132d7cea
commit 26531c5a38
54 changed files with 3414 additions and 536 deletions
+11
View File
@@ -0,0 +1,11 @@
---
"@medusajs/ui-preset": patch
"@medusajs/ui": patch
"@medusajs/medusa": patch
"@medusajs/client-types": patch
---
feat(ui-preset): Pull latest styles from Figma.
fix(ui): Fix invalid state styling of Select, so it correctly shows when aria-invalid is true.
fix(medusa): Align query params between `/admin/products/:id/variants` and `/admin/variants`.
chore(client-types): Update `medusa` client types to reflect changes to the API.