feat(medusa,types): create promotion flows (#7029)

* chore: create promotion phase

* chore: fix specs + minor ui changes

* chore: minor fixes

* chore: added changeset

* address pr reviews

* chore: fix spec

* Update packages/admin-next/dashboard/src/v2-routes/promotions/common/edit-rules/edit-rules.tsx

Co-authored-by: Frane Polić <16856471+fPolic@users.noreply.github.com>

* chore: fix specs

---------

Co-authored-by: Frane Polić <16856471+fPolic@users.noreply.github.com>
This commit is contained in:
Riqwan Thamir
2024-04-23 12:08:39 +02:00
committed by GitHub
co-authored by Frane Polić
parent b61dcb84c9
commit 93ef94cad3
37 changed files with 1807 additions and 569 deletions
@@ -824,6 +824,8 @@
"value": "Value",
"campaign": "Campaign",
"allocation": "Allocation",
"addCondition": "Add condition",
"clearAll": "Clear all",
"conditions": {
"rules": {
"title": "Who can use this code?",
@@ -839,6 +841,10 @@
}
}
},
"errors": {
"requiredField": "Required field"
},
"create": {},
"edit": {
"title": "Edit Promotion Details",
"rules": {
@@ -855,6 +861,9 @@
"title": "Add Promotion To Campaign"
},
"form": {
"required": "Required",
"and": "AND",
"selectAttribute": "Select Attribute",
"campaign": {
"existing": {
"title": "Existing Campaign",
@@ -875,17 +884,31 @@
},
"automatic": {
"title": "Automatic",
"description": "Customers will automatically see this during checkout"
"description": "Customers will see this at checkout"
}
},
"max_quantity": {
"title": "Maximum Quantity",
"description": "Maximum quantity of items this promotion applies to"
},
"type": {
"standard": {
"title": "Standard",
"description": "A standard promotion"
},
"buyget": {
"title": "Buy Get",
"description": "Buy X get Y promotion"
}
},
"allocation": {
"each": {
"title": "Each",
"description": "Applies value on each product"
"description": "Applies value on each item"
},
"across": {
"title": "Across",
"description": "Applies value proportionally across products"
"description": "Applies value across items"
}
},
"code": {