Repository navigation
migrate POLICY_ACCOUNTING_SAGE_INTACCT_EXPORT - #89510
mjasikowski merged 3 commits into
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] |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 9276b9d039
ℹ️ 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".
| accessVariants={[CONST.POLICY.ACCESS_VARIANTS.ADMIN, CONST.POLICY.ACCESS_VARIANTS.PAID]} | ||
| policyID={policyID} | ||
| onBackButtonPress={goBack} | ||
| onBackButtonPress={() => Navigation.goBack(backPath)} |
There was a problem hiding this comment.
Preserve company-card back redirect for unsupported export mode
When this screen is opened from workspaces/:policyID/company-cards/:feed/:cardID/edit/export, the new onBackButtonPress={() => Navigation.goBack(backPath)} always returns to that .../edit/export route. That regresses the previous safeguard (goBackFromExportConnection) that redirected straight to card details when Sage Intacct reimbursable is EXPENSE_REPORT (an unsupported company-card export mode). In that state, users are sent back to an export-edit screen that no longer has a valid export option, instead of the intended card details page.
Useful? React with 👍 / 👎.
Codecov Report❌ Looks like you've decreased code coverage for some files. Please write tests to increase, or at least maintain, the existing level of code coverage. See our documentation here for how to interpret this table.
|
…Y_ACCOUNTING_SAGE_INTACCT_EXPORT
|
@mananjadhav This PR is ready for review. |
mananjadhav
left a comment
There was a problem hiding this comment.
Starting to review.
|
|
||
| const goBack = useCallback(() => { | ||
| Navigation.goBack(backTo ?? (policyID && ROUTES.POLICY_ACCOUNTING_SAGE_INTACCT_EXPORT.getRoute(policyID))); | ||
| Navigation.goBack(backTo ?? (policyID && createDynamicRoute(DYNAMIC_ROUTES.POLICY_ACCOUNTING_SAGE_INTACCT_EXPORT.path, ROUTES.POLICY_ACCOUNTING.getRoute(policyID)))); |
There was a problem hiding this comment.
Do we still need the backTo?
There was a problem hiding this comment.
@mananjadhav I think yes, because we still haven’t migrated the SageIntacctDatePage page yet. So for now, we should not remove it to avoid affecting the existing logic. Once we migrate SageIntacctDatePage, we can remove them afterward.
|
@huult I am having some trouble with Github. But I raised a comment, do we really need
|
Screenshots/VideosAndroid: HybridAppandroid-bt-sage-export.movAndroid: mWeb Chromemweb-chrome-bt-sage-export.moviOS: HybridAppios-sage-export.moviOS: mWeb Safarimweb-safari-sage-export.movMacOS: Chrome / Safariweb-bt-sage-export.mov |
Reviewer Checklist
Screenshots/VideosAre uploaded in the previous comment. |
|
@mjasikowski looks like this was merged without a test passing. Please add a note explaining why this was done and remove the |
|
🚧 @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. |
|
Not an emergency, PR reviewer checklist was there |
|
🚀 Deployed to staging by https://github.com/mjasikowski in version: 9.3.69-0 🚀
Bundle Size Analysis (Sentry): |
|
No help site changes required. This PR is a purely internal navigation refactoring — it migrates the Sage Intacct Export page route from a static route ( The existing Sage Intacct help articles under |
|
🚀 Deployed to production by https://github.com/Beamanator in version: 9.3.69-18 🚀
|

Explanation of Change
Fixed Issues
$ #83866
PROPOSAL:
Tests
Same QA step
Offline tests
QA Steps
POLICY_ACCOUNTING_SAGE_INTACCT_EXPORT
Precondition: The workspace is connected to Sage Intacct.
Precondition: The workspace is connected to Sage Intacct, and a company card is assigned.
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
iOS: mWeb Safari
MacOS: Chrome / Safari
Screen.Recording.2026-05-05.at.11.51.53.mov