Skip to content

Initial Setup for wallet Transfer#6852

Merged
marcaaron merged 8 commits into
Expensify:mainfrom
parasharrajat:trans-amount-scaffold
Dec 21, 2021
Merged

Initial Setup for wallet Transfer#6852
marcaaron merged 8 commits into
Expensify:mainfrom
parasharrajat:trans-amount-scaffold

Conversation

@parasharrajat

@parasharrajat parasharrajat commented Dec 21, 2021

Copy link
Copy Markdown
Member

Details

Please review @marcaaron

  • Do a simple PR to scaffold out some of the little changes first and add all the assets, consts, pages, etc:

    Add consts
    Add Routes
    Add blank pages for the new routes we are adding
    Translations
    API.js change
    Move payment methods list building logic into PaymentUtils without modifying the original logic and use in PaymentMethodList.

Fixed Issues

$ #3922

Tests | QA Steps

  1. Go to the payments page.
  2. Check that all payment methods are listed.
  3. You should be able to click the PayPal method and navigate to the PayPal page.
  4. Add Payment Method menu should work properly.

Tested On

  • Web
  • Mobile Web
  • Desktop
  • iOS
  • Android

Screenshots

Web

output_file.mp4

Mobile Web

Desktop

iOS

Android

@parasharrajat parasharrajat requested a review from a team as a code owner December 21, 2021 19:13
@MelvinBot MelvinBot requested review from stitesExpensify and removed request for a team December 21, 2021 19:13
@parasharrajat

parasharrajat commented Dec 21, 2021

Copy link
Copy Markdown
Member Author

I have used the same test steps and video as the main PR. I am not sure what should I put there. There is nothing to test on this PR.

@marcaaron

Copy link
Copy Markdown
Contributor

Let's just tag this as No QA since there is nothing to test.

@marcaaron marcaaron left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Looks good I just have a few basic suggestions and will merge as soon as they are resolved.

},
{
Component: ChooseTransferAccountPage,
name: 'Settings_Choose_Transfer_Account',

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I feel we could make it clearer that this is related to the Payments page and that would be a good pattern to follow.

We have SETTINGS_PAYMENTS_CHOOSE_TRANSFER_ACCOUNT but the name for this is just Settings_Choose_Transfer_Account and should probably be changed to Settings_Payments_Choose_Transfer_Account

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Ok. I was thinking the same.

Comment thread src/libs/PaymentUtils.js
Comment thread src/libs/PaymentUtils.js
Comment thread src/libs/PaymentUtils.js
@parasharrajat parasharrajat changed the title Initial Setup for wallet Transfer [No QA] Initial Setup for wallet Transfer Dec 21, 2021
@stitesExpensify

Copy link
Copy Markdown
Contributor

Is there any specific regression testing that we need to do? Or do we always do the whole app @marcaaron ?

@stitesExpensify

Copy link
Copy Markdown
Contributor

@parasharrajat looks like there are some conflicts :(

Comment thread src/pages/settings/Payments/PaymentMethodList.js
{
Permissions.canUseWallet(this.props.betas) && <CurrentWalletBalance />
}
{Permissions.canUseWallet(this.props.betas) && (

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Just to double check, regular users aren't on this beta right? So this button won't show for them? Just want to make sure we're not leading people to a blank page

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

I am not sure about it yet but I can remove this until the next PR.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

All of expensify.com and a handful of testers are on the beta.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

so I should remove it for now.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

FWIW this is what someone will see if they are not on the beta

2021-12-21_10-31-41

So the Transfer Balance button won't appear but they do see a weird message and are able to access the "Payments" screen via "Settings"

2021-12-21_10-32-54

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

so I should remove it for now.

I think we could have just left it, but it's fine to add it in another PR

@marcaaron

marcaaron commented Dec 21, 2021

Copy link
Copy Markdown
Contributor

Is there any specific regression testing that we need to do? Or do we always do the whole app @marcaaron ?

No specific regression testing that I know of but the whole app should be tested. At a minimum, we can just make sure that the payments list is still rendering correctly since that is the only thing materially changing getting shuffled and not behind a beta?

@parasharrajat

Copy link
Copy Markdown
Member Author

Updated & removed the Transfer link until next PR.

@marcaaron marcaaron left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM. @parasharrajat please update the test steps.

@parasharrajat parasharrajat changed the title [No QA] Initial Setup for wallet Transfer Initial Setup for wallet Transfer Dec 21, 2021
@marcaaron marcaaron merged commit 0e29309 into Expensify:main Dec 21, 2021
@OSBotify

Copy link
Copy Markdown
Contributor

✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release.

@OSBotify

Copy link
Copy Markdown
Contributor

🚀 Deployed to staging by @marcaaron in version: 1.1.23-2 🚀

platform result
🤖 android 🤖 success ✅
🖥 desktop 🖥 failure ❌
🍎 iOS 🍎 failure ❌
🕸 web 🕸 success ✅

@OSBotify

OSBotify commented Jan 4, 2022

Copy link
Copy Markdown
Contributor

🚀 Deployed to production by @francoisl in version: 1.1.24-8 🚀

platform result
🤖 android 🤖 success ✅
🖥 desktop 🖥 success ✅
🍎 iOS 🍎 success ✅
🕸 web 🕸 success ✅

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants