[Xero] [Export Flow] Create the Bank account select page#41916
[Xero] [Export Flow] Create the Bank account select page#41916lakchote merged 7 commits intoExpensify:xero-merge-freezefrom
Conversation
|
@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] |
|
@pecanoro could we please have the spanish translation for this: Link to the line in the PR: https://github.com/Expensify/App/pull/41916/files#diff-472528060691374654a2e2e866547d385eec3849efddca38cbfca1e5b3ba47d5R2079 |
|
@mananjadhav @lakchote Can you help me with steps for the precondition
|
|
@ishpaul777 You'll need to enable the |
|
@ishpaul777 Did you get the access working? Need to move this faster along. |
…into xero-export-bank-account-new
|
@pecanoro The Spanish translation is updated (screenshot added to the PR body as well).
|
|
Asking @hungvu193 to review as per this. Need this for the Xero adhoc build. |
|
Hey @mananjadhav, Sorry for delay, I was not able to priortize yesterday, will try the steps now let you know if i am able to setup in few minutes 🙇 |
Thanks for responding. Just asked @hungvu193 to review. They already have the setup as well as the context. But sure try and let me know. |
|
I was able to setup Xero 🎉 Just confirming by "account that has Bank Accounts" you mean the bank plaid bank account in new dot right ? |
|
No. Means a Xero account with Bank names. |
|
Oh nvm, I see a option to create a demo organisation with Bank account on Xero |
| const xeroSelectorOptions = useMemo<SelectorType[]>( | ||
| () => | ||
| (bankAccounts ?? []).map(({id, name}) => ({ | ||
| value: id, | ||
| text: name, | ||
| keyForList: id, | ||
| isSelected: nonReimbursableAccount === id, | ||
| })), | ||
| [nonReimbursableAccount, bankAccounts], | ||
| ); |
There was a problem hiding this comment.
Hmm i see posibility that there can be a possibility when there is no bank account to choose from, should we show a empty state desgin in this case ?
There was a problem hiding this comment.
@lakchote Can confirm this. We didn't add it in other screens so I've kept it as is.
|
Only one comment so far, Looks good to me otherwise 👍 @mananjadhav Do you want me to fill in checklist? (or we are waiting for a review from @hungvu193) ? |
hungvu193
left a comment
There was a problem hiding this comment.
Looking good. Only 2 small comments 👍
|
|
||
| const initiallyFocusedOptionKey = useMemo(() => xeroSelectorOptions?.find((mode) => mode.isSelected)?.keyForList, [xeroSelectorOptions]); | ||
|
|
||
| const updateMode = useCallback( |
There was a problem hiding this comment.
We probably need a more understandable function name 😄
| const updateMode = useCallback( | |
| const updateBankAccount = useCallback( |
| nonReimbursableAccount: value, | ||
| }); | ||
| } | ||
| Navigation.goBack(ROUTES.POLICY_ACCOUNTING_XERO_ADVANCED.getRoute(policyID)); |
There was a problem hiding this comment.
| Navigation.goBack(ROUTES.POLICY_ACCOUNTING_XERO_ADVANCED.getRoute(policyID)); | |
| Navigation.goBack(ROUTES.POLICY_ACCOUNTING_XERO_EXPORT.getRoute(policyID)); |
|
Thanks for the important redirect bug. I had my commits messed up, could've easily missed this one. |
|
@hungvu193 @ishpaul777 Can one of you please complete the checklist for this one? |
|
I can, in few minutes 😄 |
Reviewer Checklist
Screenshots/VideosAndroid: NativeScreen.Recording.2024-05-11.at.1.57.05.PM.movAndroid: mWeb ChromeScreen.Recording.2024-05-11.at.1.59.44.PM.moviOS: NativeScreen.Recording.2024-05-11.at.1.42.42.PM.moviOS: mWeb SafariScreen.Recording.2024-05-11.at.1.46.13.PM.movMacOS: Chrome / SafariScreen.Recording.2024-05-11.at.1.37.52.PM.movMacOS: DesktopScreen.Recording.2024-05-11.at.2.03.01.PM.mov |
|
@mananjadhav there are conflicts that need to be solved |
|
I’ll resolve them in a few hours. |
…into xero-export-bank-account-new
|
Running prettier diff. |
|
Fixed lint issues. All checks should pass now. |
|
🚀 Deployed to staging by https://github.com/lakchote in version: 1.4.74-0 🚀
|
|
🚀 Deployed to production by https://github.com/chiragsalian in version: 1.4.74-6 🚀
|

Details
Fixed Issues
$ #39745
PROPOSAL:
Tests
Precondition:
Workspace with Xero connection and has Bank accounts.
Test steps
Offline tests
Same as Test Steps
QA Steps
Same as Test Steps
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)myBool && <MyComponent />.src/languages/*files and using the translation methodSTYLE.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 and/or tagged@Expensify/designso 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
Android: Native
android-xero-export-bank-account.mov
Android: mWeb Chrome
mweb-chrome-xero-export-bank-account.mov
iOS: Native
ios-xero-export-bank-account.mov
iOS: mWeb Safari
mweb-safari-xero-export-bank-account.mov
MacOS: Chrome / Safari
web-xero-export-bank-account.mov
MacOS: Desktop
desktop-xero-export-bank-account.mov