Apply correct error pattern in Xero integration (return to previous value on error)#46898
Conversation
# Conflicts: # src/components/SelectionScreen.tsx
|
@ikevin127 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] |
|
ℹ️ Will review this on Saturday (PST) when I'll return to office. |
Reviewer Checklist
Screenshots/VideosAndroid: Native *android.webmAndroid: mWeb Chrome
iOS: Native *ios.mp4iOS: mWeb Safari *ios-mweb.mp4MacOS: Chrome / Safari *web.movMacOS: Desktop *desktop.mov |
|
@war-in Tests well, LGTM 🚀
Note: Once this is addressed, I will be able to 🟢 Approve! Example w/ Purchase bill date field: Screen.Recording.2024-08-10.at.17.27.56.mov |
|
@ikevin127 thanks for noticing! It should be fixed now :) |
ikevin127
left a comment
There was a problem hiding this comment.
Thanks for handling that, LGTM 🚀
|
✋ 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/deetergp in version: 9.0.20-0 🚀
|
|
FYI I believe this was deployed to prod yesterday, from this checklist - #47356 |
| const {config} = policy?.connections?.xero ?? {}; | ||
| const xeroSelectorOptions = useMemo<SelectorType[]>( | ||
| () => getXeroBankAccountsWithDefaultSelect(policy ?? undefined, config?.export?.nonReimbursableAccount), | ||
| () => getXeroBankAccounts(policy ?? undefined, config?.export?.nonReimbursableAccount), |

Details
Fixed Issues
$ #45406 - partially fixed
PROPOSAL:
Tests
Simulate failing networkinTroubleshooting(you can setMAX_REQUEST_RETRIESto 0 to get errors faster).Settings->Workspaces-> your Xero workspace ->Accounting.Offline tests
QA Steps
Simulate failing networkinTroubleshooting(you can setMAX_REQUEST_RETRIESto 0 to get errors faster).Settings->Workspaces-> your Xero workspace ->Accounting.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
Screen.Recording.2024-08-07.at.13.21.34.mov
Android: mWeb Chrome
Screen.Recording.2024-08-07.at.13.26.36.mov
iOS: Native
ios.-.native.mov
iOS: mWeb Safari
ios.-.web.mov
MacOS: Chrome / Safari
Online.Converter.video.mov
MacOS: Desktop
desktop.mov