feat(dashboard): rework create variant flow (#9132)

**What**
- new Create variant flow which allows for pricing and inventory creation as well

---

https://github.com/user-attachments/assets/75ddcf5a-0f73-40ca-b474-2189c5e2e297

---

CLOSES CC-345
This commit is contained in:
Frane Polić
2024-09-17 17:46:23 +00:00
committed by GitHub
parent d2c48228df
commit 26700821a2
9 changed files with 898 additions and 422 deletions
@@ -30,6 +30,11 @@ export interface AdminCreateProductVariantPrice {
rules?: { region_id: string } | null
}
export interface AdminCreateProductVariantInventoryKit {
inventory_item_id: string
required_quantity?: number
}
export interface AdminCreateProductVariant {
title: string
sku?: string
@@ -49,6 +54,7 @@ export interface AdminCreateProductVariant {
material?: string
metadata?: Record<string, unknown>
prices: AdminCreateProductVariantPrice[]
inventory_items?: AdminCreateProductVariantInventoryKit[]
options?: Record<string, string>
}