diff --git a/.changeset/loud-steaks-perform.md b/.changeset/loud-steaks-perform.md new file mode 100644 index 00000000000..3e31f300c19 --- /dev/null +++ b/.changeset/loud-steaks-perform.md @@ -0,0 +1,5 @@ +--- +"saleor-dashboard": minor +--- + +Improve promotion ui aligments diff --git a/locale/defaultMessages.json b/locale/defaultMessages.json index 07b58dea903..047b86419c9 100644 --- a/locale/defaultMessages.json +++ b/locale/defaultMessages.json @@ -2315,6 +2315,9 @@ "context": "Order summary refunds header", "string": "Refunds" }, + "E9E5Eh": { + "string": "Please remember that conditions will not be updated when you change the channel." + }, "EA7rjI": { "context": "disabled status label", "string": "Disabled" @@ -6012,6 +6015,9 @@ "context": "order history message", "string": "Invoice was requested by {requestedBy}" }, + "ckSjjv": { + "string": "Too complex conditions to display, use playground to see details." + }, "cnvyqW": { "context": "ChannelsSection select field placeholder", "string": "Add Channel" @@ -6252,6 +6258,9 @@ "context": "dialog header", "string": "Search Collection" }, + "f1Pj99": { + "string": "Discount of {value} through the {channel} with {unknown} conditions" + }, "f2F1NJ": { "context": "section title", "string": "Quick Pick" @@ -6311,9 +6320,6 @@ "context": "Amount error message", "string": "Amount cannot be bigger than max refund" }, - "feF0lB": { - "string": "Too complex conditions to display, use playground to see details" - }, "fehqPs": { "context": "order history message", "string": "Products were deleted from an order" @@ -8479,6 +8485,9 @@ "un+VWt": { "string": "Search products" }, + "uo8NOT": { + "string": "unknown" + }, "uoKAmI": { "string": "Add new order" }, diff --git a/src/discounts/components/DiscountGeneralInfo/DiscountGeneralInfo.tsx b/src/discounts/components/DiscountGeneralInfo/DiscountGeneralInfo.tsx index ad2ecd77386..c4cc29596a5 100644 --- a/src/discounts/components/DiscountGeneralInfo/DiscountGeneralInfo.tsx +++ b/src/discounts/components/DiscountGeneralInfo/DiscountGeneralInfo.tsx @@ -54,7 +54,18 @@ export const DiscountGeneralInfo = ({ - + + - - - ({ /> - + diff --git a/src/discounts/components/DiscountRules/componenets/RuleForm/components/RuleConditionValues/RuleConditionValues.tsx b/src/discounts/components/DiscountRules/componenets/RuleForm/components/RuleConditionValues/RuleConditionValues.tsx index 2f7dc4c990a..8aee6d15479 100644 --- a/src/discounts/components/DiscountRules/componenets/RuleForm/components/RuleConditionValues/RuleConditionValues.tsx +++ b/src/discounts/components/DiscountRules/componenets/RuleForm/components/RuleConditionValues/RuleConditionValues.tsx @@ -60,7 +60,7 @@ export const RuleConditionValues = ({ if (inputType === "price.range" || inputType === "number.range") { return ( - + {intl.formatMessage(messages.conditions)} - + {fields.map((condition, conditionIndex) => ( - - {intl.formatMessage(messages.noHanldedConditions)} - + + + {intl.formatMessage(messages.noHanldedConditions)} + + + {intl.formatMessage(messages.noHandledConditionsReminder)} + +