fix(dashboard): campaign UI improvements (#13723)

* fix(dashboard): campaign UI improvements

* fix: camel case translation key
This commit is contained in:
Frane Polić
2025-10-09 16:15:26 +02:00
committed by GitHub
parent 21fbc0756f
commit c6896ffa6a
8 changed files with 66 additions and 17 deletions

View File

@@ -8312,6 +8312,9 @@
"total_used": {
"type": "string"
},
"totalUsedByAttribute": {
"type": "string"
},
"budget_limit": {
"type": "string"
},
@@ -8333,6 +8336,7 @@
"end_date",
"total_spend",
"total_used",
"totalUsedByAttribute",
"budget_limit",
"campaign_id"
],
@@ -8378,10 +8382,7 @@
"budgetAttributeTooltip": {
"type": "string"
},
"limitBudgetAttributeCustomer": {
"type": "string"
},
"limitBudgetAttributeEmail": {
"totalUsedByAttribute": {
"type": "string"
}
},
@@ -8392,8 +8393,7 @@
"used",
"budgetAttribute",
"budgetAttributeTooltip",
"limitBudgetAttributeCustomer",
"limitBudgetAttributeEmail"
"totalUsedByAttribute"
],
"additionalProperties": false
},
@@ -8425,9 +8425,22 @@
},
"required": ["title", "description"],
"additionalProperties": false
},
"useByAttribute": {
"type": "object",
"properties": {
"title": {
"type": "string"
},
"description": {
"type": "string"
}
},
"required": ["title", "description"],
"additionalProperties": false
}
},
"required": ["spend", "usage"],
"required": ["spend", "usage", "useByAttribute"],
"additionalProperties": false
},
"edit": {
@@ -11162,6 +11175,9 @@
"discountable": {
"type": "string"
},
"promotionCode": {
"type": "string"
},
"handle": {
"type": "string"
},
@@ -11588,6 +11604,7 @@
"category",
"collection",
"discountable",
"promotionCode",
"handle",
"subtitle",
"by",

View File

@@ -2233,6 +2233,7 @@
"end_date": "End date",
"total_spend": "Budget spent",
"total_used": "Budget used",
"totalUsedByAttribute": "Total used",
"budget_limit": "Budget limit",
"campaign_id": {
"hint": "Disabled campaigns have budget in a different currency than the promotion."
@@ -2251,8 +2252,7 @@
"used": "Used",
"budgetAttribute": "Limit usage per",
"budgetAttributeTooltip": "Define how many times the promotion can be used by a specific customer or email.",
"limitBudgetAttributeCustomer": "Budget limit per customer",
"limitBudgetAttributeEmail": "Budget limit per email"
"totalUsedByAttribute": "Budget limit per: {{attribute}}"
},
"type": {
"spend": {
@@ -2262,6 +2262,10 @@
"usage": {
"title": "Usage",
"description": "Set a limit on how many times the promotion can be used."
},
"useByAttribute": {
"title": "Usage by attribute (customer id, email, etc.)",
"description": "Set a limit on how many times the promotion can be used by a specific attribute value."
}
},
"edit": {
@@ -3008,6 +3012,7 @@
"category": "Category",
"collection": "Collection",
"discountable": "Discountable",
"promotionCode": "Promotion code",
"handle": "Handle",
"subtitle": "Subtitle",
"by": "By",