Skip to content

Conversation

@kidinov
Copy link
Contributor

@kidinov kidinov commented Jun 9, 2022

Closes: #6714

Description

Adds more info in the refund lines.

Possible cases:

  • Refunded: 1 product
  • Refunded: 2 products
  • Refunded: 1 product, shipping
  • Refunded: 1 product, fees
  • Refunded: 1 product, shipping, fees
  • Refunded: shipping, fees
  • Refunded: fees
  • Refunded: shipping

@joe-keenan @joshheald wdyt about this approach?

Testing instructions

Images/gif

image

image

@kidinov kidinov added the feature: refunds Related to order refunds. label Jun 9, 2022
@kidinov kidinov requested a review from AnirudhBhat June 9, 2022 09:05
@peril-woocommerce
Copy link

peril-woocommerce bot commented Jun 9, 2022

You can trigger optional UI/connected tests for these changes by visiting CircleCI here.

@kidinov kidinov changed the base branch from trunk to feature/ducks-in-row June 9, 2022 09:05
@peril-woocommerce
Copy link

peril-woocommerce bot commented Jun 9, 2022

Warnings
⚠️ PR is not assigned to a milestone.

Generated by 🚫 dangerJS

@joshheald
Copy link
Contributor

@joe-keenan @joshheald wdyt about this approach?

image

I think Android's font is more forgiving than iOS's!

Removing the word "and" helps too, even though it doesn't seem quite as polished. On iOS, the English text still reaches more than half way across the row with a comma instead of "and", so I'm still worried about truncation for localizations with longer words or in larger dynamic type sizes.

Joe is taking a look at other options too.

Another difference: on iOS we style these lines with colour, to indicate that they can be tapped to show more detail. Has Android never had that?

Perhaps they should have a disclosure indicator instead, but perhaps the reason they don't is that it would take the amounts out of alignment in the tableview.

@wpmobilebot
Copy link
Collaborator

wpmobilebot commented Jun 9, 2022

You can test the changes on this Pull Request by downloading an installable build, or scanning this QR code:

@joe-keenan
Copy link

joe-keenan commented Jun 9, 2022

Another difference: on iOS we style these lines with colour, to indicate that they can be tapped to show more detail. Has Android never had that?

🤯
That’s why they’re pink on iOS? I’ve been looking at this screen so much and I never thought to tap those refund rows. I just thought it was calling out the negative value!

Perhaps they should have a disclosure indicator instead, but perhaps the reason they don't is that it would take the amounts out of alignment in the tableview.

I think an indicator of some sort would be a lot more accessible, but you’re right about it being tricky to find a spot for it. I’ll add it to my list of things to think about.

@kidinov
Copy link
Contributor Author

kidinov commented Jun 9, 2022

@joe-keenan @joshheald

Another difference: on iOS we style these lines with colour, to indicate that they can be tapped to show more detail. Has Android never had that?

yep, on android it's not clickable at all. Just the text

@AnirudhBhat AnirudhBhat self-assigned this Jun 13, 2022
}

@Test
fun `given refund with product, shipping and fee, when building line, then product shipping and fee returned`() {
Copy link
Contributor

Choose a reason for hiding this comment

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

❓ What do you think about writing tests that verify multiple products?
Like
"2 products, shipping"
"5 products, fees"
"10 products, shipping, fees"

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Added more tests here - 7677549

Copy link
Contributor

@AnirudhBhat AnirudhBhat left a comment

Choose a reason for hiding this comment

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

@kidinov Thank you for working on this! I've tested the changes and it works as expected. The code changes look good as well. I've left a minor comment related to unit tests and it is not blocking at all.

I read in the linked issue that the designs are not finalized for this. I'll not merge this PR as of now. Feel free to merge this if you think that the design part can be taken in a separate PR.

@kidinov
Copy link
Contributor Author

kidinov commented Jun 15, 2022

@joe-keenan @joshheald I'll merge this PR for now (it goes to a feature branch so no changes to production) and add a comment to our P2 with the changes between iOS and Android here so we can decide on what platform extra changes are needed

@kidinov kidinov merged commit e2d7ee5 into feature/ducks-in-row Jun 15, 2022
@kidinov kidinov deleted the 6714-order-details-show-refunded-shipping-lines-in-refund-summary branch June 15, 2022 08:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feature: refunds Related to order refunds.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Order Details] Show refunded shipping lines in refund summary

6 participants