BT - Migrate SAGE_INTACCT Export#87554
Conversation
Codecov Report✅ Changes either increased or maintained existing code coverage, great job!
|
|
Issues with my Android emulator. @huult Can you review and help with the QA for Android Native? |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 992d36105b
ℹ️ About Codex in GitHub
Codex has been enabled to automatically 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 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
| entryScreens: [SCREENS.WORKSPACE.ACCOUNTING.QUICKBOOKS_ONLINE_EXPORT], | ||
| }, | ||
| POLICY_ACCOUNTING_SAGE_INTACCT_PREFERRED_EXPORTER: { | ||
| path: 'sage-preferred-exporter', |
There was a problem hiding this comment.
Keep legacy Sage preferred-exporter route reachable
Changing this suffix from preferred-exporter to sage-preferred-exporter breaks previously issued Sage Intacct export URLs (for example browser history, shared links, or stale backTo links) because the old static Sage route was removed in this commit and there is no compatibility remap in OldRoutes. Users opening the old URL will no longer land on the intended screen, so we should keep an alias/redirect for the legacy path.
Useful? React with 👍 / 👎.
There was a problem hiding this comment.
@collectioneur I am getting this conflicts with path name errors. For now I am fixing it with adding prefixes. Let me know if there's any other alternative. I have seen us removing advanced/ etc. prefixes from other PRs.
Found conflicting screens with the same pattern. The pattern 'preferred-exporter' resolves to both 'RightModalNavigator > Settings > Dynamic_Workspace_Accounting_Quickbooks_Online_Export_Preferred_Exporter' and 'RightModalNavigator > Settings > Dynamic_Policy_Accounting_Sage_Intacct_Preferred_Exporter'. Patterns must be unique and cannot resolve to more than one screen.
There was a problem hiding this comment.
Yes, this is right approach. We just need to add a mapping from the old route to the new one that you migrated. I'll open a PR today to show exactly how to do this. And from now on, whenever a suffix is renamed, let's make sure to add a redirect so that users with bookmarks or deep links are smoothly redirected to the new, migrated route
| path: 'nonreimbursable-expenses', | ||
| entryScreens: [SCREENS.WORKSPACE.ACCOUNTING.DYNAMIC_SAGE_INTACCT_NON_REIMBURSABLE_EXPENSES], | ||
| }, | ||
| POLICY_ACCOUNTING_SAGE_INTACCT_REIMBURSABLE_DESTINATION: { | ||
| path: 'reimbursable-expenses', |
There was a problem hiding this comment.
Keep legacy Sage destination URLs reachable
Renaming destination suffixes to nonreimbursable-expenses and reimbursable-expenses changes previously valid URLs (.../nonreimbursable/destination and .../reimbursable/destination) without a migration path, so old deep links/history entries now fail to resolve to the destination pages. This is a regression for anyone reopening existing links, and we should preserve backward compatibility with aliases or explicit redirects.
Useful? React with 👍 / 👎.
There was a problem hiding this comment.
Same as before.
|
@mananjadhav could you review the Codex comment? Thanks! |
|
@huult The codex comments are about the error we already discussed and also asked for @collectioneur feedback here. |
|
Thanks, I’ll come back after the comments are resolved. |
|
@mananjadhav Is this PR ready? |
|
Looks like I've got some lint errors. I'll sync main and add the OldRoute mapping. Then it'll be ready. |
|
Okay, let's do it. I’ll review this PR soon |
|
PR is ready for review. |
Reviewer Checklist
Screenshots/VideosAndroid: HybridAppScreen.Recording.2026-04-21.at.14.45.22.mp4Android: mWeb ChromeScreen.Recording.2026-04-21.at.14.48.37.mp4iOS: HybridAppScreen.Recording.2026-04-21.at.14.51.12.mp4iOS: mWeb SafariScreen.Recording.2026-04-21.at.14.52.23.mp4MacOS: Chrome / SafariScreen.Recording.2026-04-21.at.14.41.30.mp4 |
|
🚧 @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.61-0 🚀
Bundle Size Analysis (Sentry): |
|
This PR is a purely internal navigation refactor — it migrates Sage Intacct export route definitions from static routes to dynamic routes ( No user-facing labels, feature names, settings, or behavior changed. I reviewed the Sage Intacct help site articles under No help site updates are required for this PR. |
|
Hi @mananjadhav @mjasikowski Could you please share steps for QA team? thanks |
|
@izarutskaya The QA steps are same as the test steps. I missed adding that comment. Are you able to continue with the test steps now? |
Explanation of Change
Fixed Issues
$ #83845
PROPOSAL:
Tests
Preconditions
backToquery param from the URL (if present) before starting.Case 1 :
POLICY_ACCOUNTING_SAGE_INTACCT_EXPORT(regression test)
Case 2 :
POLICY_ACCOUNTING_SAGE_INTACCT_PREFERRED_EXPORTERCase 3 :
POLICY_ACCOUNTING_SAGE_INTACCT_EXPORT_DATECase 4 :
POLICY_ACCOUNTING_SAGE_INTACCT_REIMBURSABLE_EXPENSESCase 5 :
POLICY_ACCOUNTING_SAGE_INTACCT_REIMBURSABLE_DESTINATIONCase 6 :
POLICY_ACCOUNTING_SAGE_INTACCT_NON_REIMBURSABLE_EXPENSESCase 7 :
POLICY_ACCOUNTING_SAGE_INTACCT_NON_REIMBURSABLE_DESTINATIONCase 8 :
POLICY_ACCOUNTING_SAGE_INTACCT_DEFAULT_VENDORCase 9 :
POLICY_ACCOUNTING_SAGE_INTACCT_NON_REIMBURSABLE_CREDIT_CARD_ACCOUNTOffline tests
Same as Test Steps
QA Steps
// TODO: These must be filled out, or the issue title must include "[No QA]."
Same as Test Steps
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand 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
mweb-chrome-sage-intacct-export-1.mov
iOS: Native
ios-sage-intacct-export-1.mov
iOS: mWeb Safari
mweb-safari-sage-intacct-export-1.mov
MacOS: Chrome / Safari
web-sage-intacct-export-1.mov