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 👍 / 👎.
| 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 👍 / 👎.
|
@mananjadhav could you review the Codex comment? Thanks! |
| const goBack = useCallback(() => { | ||
| Navigation.goBack(backTo ?? (policyID && ROUTES.POLICY_ACCOUNTING_SAGE_INTACCT_EXPORT.getRoute(policyID))); | ||
| }, [policyID, backTo]); | ||
| Navigation.goBack(backPath || (policyID && ROUTES.POLICY_ACCOUNTING_SAGE_INTACCT_EXPORT.getRoute(policyID))); |
There was a problem hiding this comment.
| Navigation.goBack(backPath || (policyID && ROUTES.POLICY_ACCOUNTING_SAGE_INTACCT_EXPORT.getRoute(policyID))); | |
| Navigation.goBack(backPath); |
When we migrate this page to a dynamic route, I think backPath will always have a value, so we can remove the fallback route after it. Could you review the remaining pages that have similar patterns as well?
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
QA Steps
// TODO: These must be filled out, or the issue title must include "[No QA]."
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