-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
[Xero] [Export Flow] Create the Bank account select page #41916
[Xero] [Export Flow] Create the Bank account select page #41916
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@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) ? |
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.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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. |
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 😄
@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 Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)myBool && <MyComponent />
.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-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