-
Notifications
You must be signed in to change notification settings - Fork 25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: add strategy all to StrategyCard #178
Conversation
@@ -576,6 +576,10 @@ | |||
"maximum": { | |||
"label": "Maximum", | |||
"helpText": "Only apply the discount that offers the maximum reduction." | |||
}, | |||
"all": { | |||
"label": "All", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Localization quality issue found
The following issues may affect the quality of localized translations if they are not addressed:
- The value
All
for keyDiscountAppComponents.DiscountApplicationStrategyCard.all.label
is very short. Short strings are more likely to be misunderstood by translators without context. Please provide additional context for the translators if possible.
Please look out for other instances of this issue in your PR and fix them as well if possible.
Questions about these messages? Hop in the #help-localization Slack channel.
830dcfb
to
d82c300
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
would this change the card for all discount types to include ALL
? Because it is only supported for Product discounts - both order and shipping shouldn't have ALL
as an option.
hmm good point 🤔 I will look into how to best handle this! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm!
@aeperea @samihibrahim updated UI to conditionally render specific strategies based on discount class: Order = First, Maximum |
3f6893f
to
7a043f2
Compare
const isShipping = discountClass === DiscountClass.Shipping; | ||
|
||
const choices = [ | ||
...(isProduct || isOrder |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
❤️
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! 🎉
71ed8bf
to
243b4a2
Compare
243b4a2
to
715459f
Compare
What problem is this PR solving?
closes #179
Reviewers’ hat-rack 🎩
yarn run storybook
Before
After for Product:
After for Shipping:
After for Order:
Before requesting reviews
Before you deploy