-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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 Corpay bank info step and update file upload logic #52054
feat: Add Corpay bank info step and update file upload logic #52054
Conversation
543f72d
to
0782b6e
Compare
22e7921
to
a2030c4
Compare
@ishpaul777 Please copy/paste the Reviewer Checklist from here into a new comment on this PR and complete it. If you have the K2 extension, you can simply click: [this button] |
Reviewer Checklist
Screenshots/VideosAndroid: NativeScreen.Recording.2024-11-13.at.1.30.07.AM.movAndroid: mWeb ChromeScreen.Recording.2024-11-13.at.2.22.41.AM.moviOS: NativeScreen.Recording.2024-11-09.at.5.44.58.PM.moviOS: mWeb SafariScreen.Recording.2024-11-09.at.5.29.20.PM.movMacOS: Chrome / SafariScreen.Recording.2024-11-09.at.5.19.12.PM.movMacOS: DesktopScreen.Recording.2024-11-14.at.4.07.30.AM-1.mov |
we have conflicts @pasyukevich |
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.
minor comments
} | ||
}; | ||
|
||
const handleNextScreen = useCallback(() => { | ||
if (currency !== CONST.CURRENCY.AUD) { | ||
goToTheLastStep(); |
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.
NAB, for now its okay to skip to last step since there are only 3 steps, but in case the number of steps (bodyContent) change this logic may fail.
<TextLink | ||
style={[styles.textMicro]} | ||
// TODO add link | ||
href="" |
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.
Link missing, we probably add link from component props since this is used in multiple steps. (assuming different links)
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.
I'm waiting for the exact link here
BUG: Upload bankstatement menu item not redirecting to upload page in confirmation page Screen.Recording.2024-11-09.at.5.31.18.PM.mov |
src/pages/ReimbursementAccount/NonUSD/BankInfo/substeps/Confirmation.tsx
Outdated
Show resolved
Hide resolved
ping me when this is ready for rereview |
Fixed - now should redirect as expected |
@ishpaul777 Could you check that the crash is still reproducible for you on Android - I wasn't able to reproduce it after rebasing |
Ok now it work smoothly, before this was hanging too much and also crashing randomly. One thing i have noticed is when navigating back and changing country from screen 1, it does not rest the bank account input fields and even after changing currency the input field are prefilled, it could be expected just confirming ? @pasyukevich Screen.Recording.2024-11-13.at.1.30.07.AM.mov |
Another bug it seems, when Euro is defalut currecy, the Continue bug does not redirect to next page Screen.Recording.2024-11-13.at.2.25.11.AM.mov |
@ishpaul777 For now it is expected - it will be covered later once all steps implemented |
Both #52054 (comment) and #52054 (comment)? |
Fixed For some reason, this comment was not visible to me |
@ishpaul777 Now is ready for rereview
This flow will be covered later once all steps implemented |
Will review in ~2hours |
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!
just mention in QA steps that form validation of bank details are not proper because we used dummy fields and validations, actual data will be fetched from BE once its ready, so that QA dont create DB issue for this
isBusinessBankAccount: true, | ||
}; | ||
|
||
// return API.read(READ_COMMANDS.GET_CORPAY_BANK_ACCOUNT_FIELDS, parameters); |
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.
I think the API is ready, but we'll add it in in a the next phase right?
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.
Yes, we will do it in the next step
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
🚀 Deployed to staging by https://github.com/madmax330 in version: 9.0.63-1 🚀
|
@ishpaul777 @madmax330 is this PR internal PR? |
i believe so, though i dont have a larger context on how we are handling the QA for this new feature @madmax330 can answer this quesion better |
Im checking this off the QA checklist since its holding up deploy and i think regular users won't be affected by this flow since they cannot see it atm. @madmax330, can you verify the PR on staging when you get the chance. |
🚀 Deployed to production by https://github.com/chiragsalian in version: 9.0.63-3 🚀
|
@pasyukevich can you validate this? |
@madmax330 I will be able to validate it once the #52384 is on stage - We will be able to test it in the debug mode |
Explanation of Change
Fixed Issues
$ #50898
PROPOSAL:
Tests
Same as QA steps
Offline tests
QA Steps
PR Author Checklist
### Fixed Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)src/languages/*
files and using the translation methodSTYLE.md
) were followedAvatar
, I verified the components usingAvatar
are working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG)
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)Design
label and/or tagged@Expensify/design
so the design team can review the changes.ScrollView
component to make it scrollable when more elements are added to the page.main
branch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTest
steps.Screenshots/Videos
Android: Native
android-native-converted.webm
Android: mWeb Chrome
[android-web-converted.webm](https://github.com/user-attachments/assets/3dae1479-b1a9-4404-ad01-b37706f264a1)iOS: Native
ios-native-converted.mp4
iOS: mWeb Safari
ios-web-converted.mp4
MacOS: Chrome / Safari
desktop-web-converted.mov
MacOS: Desktop
desktop-native-converted.mov