83842 migrate workspace xero v2 - #87342
Conversation
|
@mananjadhav 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] |
Codecov Report✅ Changes either increased or maintained existing code coverage, great job!
|
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 7dddf46557
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| return `${environmentURL}/${ROUTES.WORKSPACE_ACCOUNTING_QUICKBOOKS_ONLINE_AUTO_SYNC.getRoute(policyID, backTo)}`; | ||
| case CONST.POLICY.CONNECTIONS.ROUTE.XERO: | ||
| return `${environmentURL}/${ROUTES.POLICY_ACCOUNTING_XERO_AUTO_SYNC.getRoute(policyID, backTo)}`; | ||
| return `${environmentURL}/${ROUTES.WORKSPACE_ACCOUNTING_CARD_RECONCILIATION.getRoute(policyID)}/${DYNAMIC_ROUTES.POLICY_ACCOUNTING_XERO_AUTO_SYNC.path}`; |
There was a problem hiding this comment.
Pass Xero connection when building auto-sync deep link
The Xero branch now builds the auto-sync URL from WORKSPACE_ACCOUNTING_CARD_RECONCILIATION.getRoute(policyID) without a connection, so the generated link contains accounting/undefined/card-reconciliation/autosync. This makes the “Auto-sync” link from Card Reconciliation invalid for Xero workspaces and can send users to a not-found/incorrect route.
Useful? React with 👍 / 👎.
| 'workspace.expensifyCard.settlementAccountInfo', | ||
| `${environmentURL}/${ROUTES.WORKSPACE_ACCOUNTING_RECONCILIATION_ACCOUNT_SETTINGS.getRoute(policyID, connectionParam, Navigation.getActiveRoute())}`, | ||
| `${environmentURL}/${ROUTES.WORKSPACE_ACCOUNTING_CARD_RECONCILIATION.getRoute(policyID, connectionParam)}/${DYNAMIC_ROUTES.WORKSPACE_ACCOUNTING_RECONCILIATION_ACCOUNT_SETTINGS.path}`, | ||
| `${CONST.MASKED_PAN_PREFIX}${getLastFourDigits(paymentBankAccountNumber)}`, |
There was a problem hiding this comment.
Preserve caller back path in settlement info link
This link no longer carries the current route as backTo, and the migrated settings page now derives back navigation by stripping the dynamic suffix, so opening Reconciliation Account from Settlement Account always backs to Card Reconciliation instead of returning to Settlement Account. Users who follow this cross-link lose their original context and cannot navigate back to where they started with a single back action.
Useful? React with 👍 / 👎.
Reviewer Checklist
Screenshots/VideosAndroid: HybridAppandroid-bt-xero-adv.movAndroid: mWeb Chromemweb-chrome-bt-xero-adv.moviOS: HybridAppios-bt-xero-adv.moviOS: mWeb Safarimweb-safari-bt-xero-adv.movMacOS: Chrome / Safariweb-bt-xero-auto-sync.mov |
mananjadhav
left a comment
There was a problem hiding this comment.
Took a bit longer than expected as I needed the card feeds. LGTM.
|
@mjasikowski all yours |
|
🚧 @mjasikowski has triggered a test Expensify/App build. You can view the workflow run here. |
|
🧪🧪 Use the links below to test this adhoc build on Android, iOS, and Web. Happy testing! 🧪🧪
|
|
✋ 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/mjasikowski in version: 9.3.58-0 🚀
Bundle Size Analysis (Sentry): |
|
No help site changes are required. This PR is a purely internal navigation refactor — it migrates two Xero-related routes ( The existing help article at |
|
🚀 Deployed to production by https://github.com/AndrewGable in version: 9.3.58-9 🚀
|
|
🚀 Deployed to production by https://github.com/AndrewGable in version: 9.3.58-9 🚀
|
Explanation of Change
Fixed Issues
$ #83842
PROPOSAL:
Tests
Same QA step
Offline tests
QA Steps
WORKSPACE_ACCOUNTING_XERO_AUTO_SYNC
Precondition:
WORKSPACE_ACCOUNTING_CARD_RECONCILIATION_ACCOUNT
Precondition:
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectioncanBeMissingparam foruseOnyxtoggleReportand notonIconClick)src/languages/*files and using the translation methodSTYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG))npm run compress-svg)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: mWeb Chrome
iOS: Native
Screen.Recording.2026-04-08.at.13.49.44.mov
iOS: mWeb Safari
MacOS: Chrome / Safari
Screen.Recording.2026-04-08.at.15.29.16.mov