Skip to content
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

Convert RefundPayment state values to lowercase #197

Merged
merged 1 commit into from
Mar 11, 2020

Conversation

diimpp
Copy link
Member

@diimpp diimpp commented Mar 4, 2020

Fixes #188
Supersedes #190

@@ -0,0 +1,13 @@
{%
set viewOptions = {
completed: { icon: 'adjust', color: 'green' },
Copy link
Member Author

@diimpp diimpp Mar 4, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Colors and icons are re-used from regular payment label. To me it looks better balanced.

@@ -17,7 +17,7 @@
<tr>
<td>{{ money.format(refund_payment.amount, refund_payment.currencyCode) }}</td>
<td>
{% include [('@SyliusRefundPlugin/RefundPayment/Label/State/' ~ refund_payment.state ~ '.html.twig'), '@SyliusUi/Label/_default.html.twig'] with {'value': refund_payment.state} %}
{% include '@SyliusRefundPlugin/Common/Label/refundPaymentState.html.twig' with {'data': refund_payment.state} %}
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

include is redesigned in fashion of SyliusAdmin/SyliusShop paymentState label.

@diimpp
Copy link
Member Author

diimpp commented Mar 5, 2020

@Zales0123

 {% if refund_payment.state != 'sylius_refund.ui.completed'|trans %}

image

I will just leave it here as thinking material :D

@diimpp diimpp force-pushed the Issue188_state_machine_lower_case branch from 3c61308 to 8e2f070 Compare March 5, 2020 14:02
@diimpp diimpp marked this pull request as ready for review March 5, 2020 15:14
@diimpp diimpp requested a review from a team as a code owner March 5, 2020 15:14
@diimpp
Copy link
Member Author

diimpp commented Mar 11, 2020

@lchrusciel @Zales0123 hey guys, any questions? Can it be merged?

@lchrusciel
Copy link
Member

It can be merged, but we need to add it to UPGRADE.md. Can you do it?

@diimpp diimpp force-pushed the Issue188_state_machine_lower_case branch from 8e2f070 to 083e706 Compare March 11, 2020 16:38
@diimpp
Copy link
Member Author

diimpp commented Mar 11, 2020

@lchrusciel done

Copy link
Member

@lchrusciel lchrusciel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wish we have more contributors like you 🎉

@lchrusciel lchrusciel added DX Issues and PRs aimed at improving Developer eXperience. Enhancement Minor issues and PRs improving the current solutions (optimizations, typo fixes, etc.). labels Mar 11, 2020
@lchrusciel lchrusciel merged commit 46a219b into Sylius:master Mar 11, 2020
@lchrusciel
Copy link
Member

Thank you, Dmitri! 🎉

@diimpp diimpp deleted the Issue188_state_machine_lower_case branch March 12, 2020 06:32
@diimpp
Copy link
Member Author

diimpp commented Mar 12, 2020

Great, thank you! :)

@GSadee GSadee mentioned this pull request Jan 7, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
DX Issues and PRs aimed at improving Developer eXperience. Enhancement Minor issues and PRs improving the current solutions (optimizations, typo fixes, etc.).
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Refund payment's state machine states should be in lower case
2 participants