feat(inventory,dashboard,types,core-flows,js-sdk,medusa): Improve inventory UX (#10630)
* feat(dashboard): Add UI for bulk editing inventory stock (#10556) * progress * cleanup types * add changeset * fix 0 values * format schema * add delete event and allow copy/pasting enabled for some fields * add response types * add tests * work on fixing setValue behaviour * cleanup toggle logic * add loading state * format schema * add support for bidirectional actions in DataGrid and update Checkbox and RadioGroup * update lock * lint * fix 404 * address feedback * update cursor on bidirectional select
This commit is contained in:
1 parent
c5915451b8
commit
bc22b81cdf
82 files changed
+2720
-289
No files matched your search
@@ -2649,6 +2649,35 @@
|
||||
],
|
||||
"additionalProperties": false
|
||||
},
|
||||
"stock": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"heading": {
|
||||
"type": "string"
|
||||
},
|
||||
"description": {
|
||||
"type": "string"
|
||||
},
|
||||
"loading": {
|
||||
"type": "string"
|
||||
},
|
||||
"tooltips": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"alreadyManaged": {
|
||||
"type": "string"
|
||||
},
|
||||
"alreadyManagedWithSku": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"required": ["alreadyManaged", "alreadyManagedWithSku"],
|
||||
"additionalProperties": false
|
||||
}
|
||||
},
|
||||
"required": ["heading", "description", "loading", "tooltips"],
|
||||
"additionalProperties": false
|
||||
},
|
||||
"toasts": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
@@ -2721,6 +2750,7 @@
|
||||
"variant",
|
||||
"options",
|
||||
"organization",
|
||||
"stock",
|
||||
"toasts"
|
||||
],
|
||||
"additionalProperties": false
|
||||
@@ -3307,6 +3337,46 @@
|
||||
"updateItem"
|
||||
],
|
||||
"additionalProperties": false
|
||||
},
|
||||
"stock": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"title": {
|
||||
"type": "string"
|
||||
},
|
||||
"description": {
|
||||
"type": "string"
|
||||
},
|
||||
"action": {
|
||||
"type": "string"
|
||||
},
|
||||
"placeholder": {
|
||||
"type": "string"
|
||||
},
|
||||
"disablePrompt_one": {
|
||||
"type": "string"
|
||||
},
|
||||
"disablePrompt_other": {
|
||||
"type": "string"
|
||||
},
|
||||
"disabledToggleTooltip": {
|
||||
"type": "string"
|
||||
},
|
||||
"successToast": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"title",
|
||||
"description",
|
||||
"action",
|
||||
"placeholder",
|
||||
"disablePrompt_one",
|
||||
"disablePrompt_other",
|
||||
"disabledToggleTooltip",
|
||||
"successToast"
|
||||
],
|
||||
"additionalProperties": false
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
@@ -3322,7 +3392,8 @@
|
||||
"create",
|
||||
"reservation",
|
||||
"adjustInventory",
|
||||
"toast"
|
||||
"toast",
|
||||
"stock"
|
||||
],
|
||||
"additionalProperties": false
|
||||
},
|
||||
|
||||
@@ -645,6 +645,15 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"stock": {
|
||||
"heading": "Manage product stock levels and locations",
|
||||
"description": "Update the stocked inventory levels for all of the product's variants.",
|
||||
"loading": "Hang on this may take a moment...",
|
||||
"tooltips": {
|
||||
"alreadyManaged": "This inventory item is already editable under {{title}}.",
|
||||
"alreadyManagedWithSku": "This inventory item is already editable under {{title}} ({{sku}})."
|
||||
}
|
||||
},
|
||||
"toasts": {
|
||||
"delete": {
|
||||
"success": {
|
||||
@@ -799,6 +808,16 @@
|
||||
"updateLocations": "Locations updated successfully.",
|
||||
"updateLevel": "Inventory level updated successfully.",
|
||||
"updateItem": "Inventory item updated successfully."
|
||||
},
|
||||
"stock": {
|
||||
"title": "Update inventory levels",
|
||||
"description": "Update the stocked inventory levels for the selected inventory items.",
|
||||
"action": "Edit stock levels",
|
||||
"placeholder": "Not enabled",
|
||||
"disablePrompt_one": "You are about to disable {{count}} location level. This action cannot be undone.",
|
||||
"disablePrompt_other": "You are about to disable {{count}} location levels. This action cannot be undone.",
|
||||
"disabledToggleTooltip": "Cannot disable: clear incoming and/or reserved quantity before disabling.",
|
||||
"successToast": "Inventory levels updated successfully."
|
||||
}
|
||||
},
|
||||
"giftCards": {
|
||||
|
||||
Reference in new issue
Block a user