Skip to content

Refund by items: Various refactorings - Step 3#1623

Merged
anitaa1990 merged 25 commits intofeature/refund-by-items-masterfrom
0nko/items-refactoring
Dec 12, 2019
Merged

Refund by items: Various refactorings - Step 3#1623
anitaa1990 merged 25 commits intofeature/refund-by-items-masterfrom
0nko/items-refactoring

Conversation

@0nko
Copy link
Copy Markdown
Contributor

@0nko 0nko commented Dec 2, 2019

This PR is a mix of different things:

  • The refund items layout is moved into a separate file so it can be reused in the refund details screen
  • The number-picker dialog is refactored so that the navigation component is used to display it
  • The View.expand() function is updated to fix the smoothness of the animation
  • The Shipping refund section stub is added (I've enabled it just for this PR to test the expand/collapse functionality; the shipping refund has been postponed until it's supported by the API)

To test:

  1. Go to order detail and issue a refund
  2. Notice there is a shipping refund toggle
  3. Tap on the toggle and enjoy the beautiful expanding animation (no data is filled out)
  4. Tap the toggle button again and watch the collapse animation

Note: #1622 must be merged before this!

@0nko 0nko added status: do not merge Dependent on another PR, ready for review but not ready for merge. feature: refunds Related to order refunds. labels Dec 2, 2019
@0nko 0nko added this to the 3.3 milestone Dec 2, 2019
@peril-woocommerce
Copy link
Copy Markdown

peril-woocommerce bot commented Dec 2, 2019

Warnings
⚠️ PR has more than 500 lines of code changing. Consider splitting into smaller PRs if possible.
Messages
📖

This PR contains changes to Tracks-related logic. Please ensure the following are completed:
PR Author

  • The PR must be assigned the Tracks label
    PR Reviewer
  • The tracks events must be validated in the Tracks system.
  • Verify the internal tracks spreadsheet has also been updated.

Generated by 🚫 dangerJS

@peril-woocommerce
Copy link
Copy Markdown

peril-woocommerce bot commented Dec 2, 2019

You can test the changes on this Pull Request by downloading the APK here.

0nko added 6 commits December 3, 2019 20:25
# Conflicts:
#	WooCommerce/src/main/kotlin/com/woocommerce/android/widgets/NumberPickerDialog.kt
#	build.gradle
# Conflicts:
#	WooCommerce/src/main/kotlin/com/woocommerce/android/ui/refunds/IssueRefundViewModel.kt
#	WooCommerce/src/main/kotlin/com/woocommerce/android/ui/refunds/RefundByItemsFragment.kt
#	WooCommerce/src/main/res/layout/fragment_refund_by_amount.xml
#	WooCommerce/src/main/res/layout/fragment_refund_by_items.xml
#	WooCommerce/src/main/res/values/strings.xml
#	build.gradle
# Conflicts:
#	WooCommerce/src/main/kotlin/com/woocommerce/android/ui/refunds/IssueRefundViewModel.kt
#	WooCommerce/src/main/kotlin/com/woocommerce/android/ui/refunds/RefundByItemsFragment.kt
#	WooCommerce/src/main/res/layout/fragment_refund_by_items.xml
@0nko 0nko changed the base branch from 0nko/refund-items-list to feature/refund-by-items-master December 11, 2019 23:23
@0nko 0nko removed the status: do not merge Dependent on another PR, ready for review but not ready for merge. label Dec 11, 2019
@0nko 0nko requested a review from anitaa1990 December 11, 2019 23:32
@AmandaRiu AmandaRiu assigned AmandaRiu and unassigned AmandaRiu Dec 12, 2019
@anitaa1990 anitaa1990 self-assigned this Dec 12, 2019
Copy link
Copy Markdown
Contributor

@anitaa1990 anitaa1990 left a comment

Choose a reason for hiding this comment

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

LGTM :shipit:

@anitaa1990 anitaa1990 merged commit c424855 into feature/refund-by-items-master Dec 12, 2019
@anitaa1990 anitaa1990 deleted the 0nko/items-refactoring branch June 17, 2021 06:03
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.

3 participants