-
Notifications
You must be signed in to change notification settings - Fork 3.5k
[TS migration] Migrate 'ReimbursementAccount' to TypeScript #36495
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
[TS migration] Migrate 'ReimbursementAccount' to TypeScript #36495
Conversation
blazejkustra
left a comment
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.
One minor comments, otherwise LGTM!
|
@aimane-chnaif @ One of you needs to 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] |
|
QA Steps is missing for this big change? |
|
@mateuuszzzzz I agree with Aimane, let's fill out tests and QA sections |
aimane-chnaif
left a comment
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 see that lots of unused functions are removed but was it discussed?
|
We did not find an internal engineer to review this PR, trying to assign a random engineer to #24928 as well as to this PR... Please reach out for help on Slack if no one gets assigned! |
Reviewer Checklist
Screenshots/VideosAndroid: NativeAndroid: mWeb ChromeiOS: NativeiOS: mWeb SafariMacOS: Chrome / Safariweb.movMacOS: Desktop |
|
@mateuuszzzzz please merge main. 3.8k commits are too much 😮 |
|
@mateuuszzzzz or @blazejkustra can someone merge main please |
I’ll take care of it soon |
|
@mountiny @aimane-chnaif done |
According to this. We had discussion about deleting them in this PR and decided to do it since those functions are pretty old |
mountiny
left a comment
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.
@mateuuszzzzz thanks! Have you tested the full flow in the bank account and added the testing bank account succefully? Then also removed it?
Seems like there is couple of changes different from the JS so curious why they needed and hence I think we need to be thorough with testing here
| { | ||
| onyxMethod: Onyx.METHOD.SET, | ||
| key: ONYXKEYS.FORMS.REIMBURSEMENT_ACCOUNT_FORM_DRAFT, | ||
| value: { |
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.
In the js file we just set this to empty object, why this change
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.
Similarly here typecheck throws an error, because keys of the type used here are not optional
| [BANK_INFO_STEP_KEYS.ACCOUNT_NUMBER]: '', | ||
| [BANK_INFO_STEP_KEYS.PLAID_MASK]: '', | ||
| [BANK_INFO_STEP_KEYS.IS_SAVINGS]: '', | ||
| [BANK_INFO_STEP_KEYS.IS_SAVINGS]: false, |
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.
why is this change needed?
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.
Before migration we had incorrect type value here. After migration typecheck throws type mismatch so it had to be changed. Since empty string is falsy I assume using false boolean value is fine here.
| CITY: 'requestorAddressCity', | ||
| STATE: 'requestorAddressState', | ||
| ZIP_CODE: 'requestorAddressZipCode', | ||
| IS_ONFIDO_SETUP_COMPLETE: 'isOnfidoSetupComplete', |
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.
Why do we need this new input id here?
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.
It turned out we use it here https://github.com/software-mansion-labs/expensify-app-fork/blob/401bb219c74fb615704895554b6876eb25601a11/src/pages/ReimbursementAccount/RequestorOnfidoStep.js#L49 and missed it before
@mountiny In general, I have a problem with verification via |
|
The logic change in this PR is |
|
|
|
@mountiny In my case setup was successful |
mountiny
left a comment
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.
Thanks!
|
✋ 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/mountiny in version: 1.4.54-0 🚀
|
|
🚀 Deployed to production by https://github.com/AndrewGable in version: 1.4.54-4 🚀
|


Details
Fixed Issues
$ #24928
PROPOSAL:
Tests
Connect bank account.Start overbutton) the flow at any point does not cause problems with future bank account setups.(e.g. if old errors don't appear in future setups and information related to previous setup is removed).Offline tests
QA Steps
Same as tests
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)myBool && <MyComponent />.src/languages/*files and using the translation methodWaiting for Copylabel for a copy review on the original GH to get the correct copy.STYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG))Avataris modified, I verified thatAvataris working as expected in all cases)Designlabel so the design team can review the changes.ScrollViewcomponent to make it scrollable when more elements are added to the page.mainbranch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTeststeps.Screenshots/Videos
Not sure if there are any videos to include since the pr modifies action code.
Android: Native
Android.native.mov
Android: mWeb Chrome
Android.mweb.mov
iOS: Native
iOS.native.mov
iOS: mWeb Safari
iOS.mweb.mov
MacOS: Chrome / Safari
MacOS.browser.mov
MacOS: Desktop
Desktop.mov