Description
Current State:
- 8 routes for search, bank accounts, and new task creation
- These routes use
backTo parameter for return navigation
Implementation:
- Replace
getRoute(..., backTo) with createDynamicRoute()
- Add source screens to
entryScreens array
- Remove
backTo parameter from route definitions
- Test forward/back navigation
Scope
Routes (8):
| Route Constant |
Path |
SEARCH_MONEY_REQUEST_REPORT |
search/r/:reportID |
SEARCH_MONEY_REQUEST_REPORT_HOLD_TRANSACTIONS |
search/r/:reportID/hold |
BANK_ACCOUNT_VERIFY_ACCOUNT |
bank-account/verify-account |
BANK_ACCOUNT_WITH_STEP_TO_OPEN |
bank-account/:stepToOpen |
NEW_TASK |
new/task |
NEW_TASK_ASSIGNEE |
new/task/assignee |
NEW_TASK_DETAILS |
new/task/details |
NEW_TASK_TITLE |
new/task/title |
Usages
SEARCH_REPORT:
src/pages/TransactionDuplicate/Review.tsx:74
src/pages/Search/SearchReportVerifyAccountPage.tsx:14
src/pages/Search/SearchPage.tsx:493,505,519
src/libs/SettlementButtonUtils.ts:43,62
src/libs/SearchUIUtils.ts:1635
src/libs/ReportUtils.ts:10134
src/components/SelectionListWithSections/Search/TransactionGroupListExpanded.tsx:116
src/components/Search/index.tsx:835,845
src/components/ParentNavigationSubtitle.tsx:161
src/components/MoneyRequestReportView/MoneyRequestReportTransactionList.tsx:397
src/libs/PaymentUtils.ts:152
src/components/ReportActionItem/MoneyRequestAction.tsx:130,138
src/components/HTMLEngineProvider/HTMLRenderers/MentionReportRenderer/index.tsx:47
BANK_ACCOUNT_WITH_STEP_TO_OPEN:
src/libs/ReportUtils.ts:1785
src/components/SettlementButton/index.tsx:606
src/components/Search/SearchPageHeader/SearchFiltersBar.tsx:844
src/pages/workspace/expensifyCard/WorkspaceExpensifyCardPageEmptyState.tsx:57
src/pages/workspace/expensifyCard/WorkspaceExpensifyCardBankAccounts.tsx:73
src/pages/ReimbursementAccount/USD/ConnectBankAccount/components/Enable2FACard.tsx:35
src/pages/ReimbursementAccount/ReimbursementAccountVerifyAccountPage.tsx:16,18
src/pages/ReimbursementAccount/NonUSD/Finish/index.tsx:70
src/components/Navigation/DebugTabView.tsx:83
src/components/KYCWall/BaseKYCWall.tsx:145,157,175
src/libs/actions/ReimbursementAccount/navigation.ts:22
SEARCH_MONEY_REQUEST_REPORT:
src/pages/TransactionMerge/ConfirmationPage.tsx:104
src/pages/Search/SearchMoneyRequestReportVerifyAccountPage.tsx:16,17
src/pages/NewReportWorkspaceSelectionPage.tsx:110
src/libs/actions/IOU/index.ts:996
src/libs/SettlementButtonUtils.ts:58
src/components/Search/index.tsx:829
src/components/ParentNavigationSubtitle.tsx:140
src/pages/home/sidebar/FloatingActionButtonAndPopover.tsx:248
src/pages/Search/SearchSelectedNarrow.tsx:65
src/pages/Search/EmptySearchView.tsx:229
src/libs/PaymentUtils.ts:150
src/libs/Navigation/helpers/getReportURLForCurrentContext.ts:58
BANK_ACCOUNT_VERIFY_ACCOUNT:
src/pages/ReimbursementAccount/VerifiedBankAccountFlowEntryPoint.tsx:159,179
Files to modify:
src/ROUTES.ts - Update route definitions
src/libs/Navigation/types.ts - Remove backTo from params
- Components listed above
Migration Progress
Issue Owner
Current Issue Owner: @huult
Description
Current State:
backToparameter for return navigationImplementation:
getRoute(..., backTo)withcreateDynamicRoute()entryScreensarraybackToparameter from route definitionsScope
Routes (8):
SEARCH_MONEY_REQUEST_REPORTsearch/r/:reportIDSEARCH_MONEY_REQUEST_REPORT_HOLD_TRANSACTIONSsearch/r/:reportID/holdBANK_ACCOUNT_VERIFY_ACCOUNTbank-account/verify-accountBANK_ACCOUNT_WITH_STEP_TO_OPENbank-account/:stepToOpenNEW_TASKnew/taskNEW_TASK_ASSIGNEEnew/task/assigneeNEW_TASK_DETAILSnew/task/detailsNEW_TASK_TITLEnew/task/titleUsages
SEARCH_REPORT:src/pages/TransactionDuplicate/Review.tsx:74src/pages/Search/SearchReportVerifyAccountPage.tsx:14src/pages/Search/SearchPage.tsx:493,505,519src/libs/SettlementButtonUtils.ts:43,62src/libs/SearchUIUtils.ts:1635src/libs/ReportUtils.ts:10134src/components/SelectionListWithSections/Search/TransactionGroupListExpanded.tsx:116src/components/Search/index.tsx:835,845src/components/ParentNavigationSubtitle.tsx:161src/components/MoneyRequestReportView/MoneyRequestReportTransactionList.tsx:397src/libs/PaymentUtils.ts:152src/components/ReportActionItem/MoneyRequestAction.tsx:130,138src/components/HTMLEngineProvider/HTMLRenderers/MentionReportRenderer/index.tsx:47BANK_ACCOUNT_WITH_STEP_TO_OPEN:src/libs/ReportUtils.ts:1785src/components/SettlementButton/index.tsx:606src/components/Search/SearchPageHeader/SearchFiltersBar.tsx:844src/pages/workspace/expensifyCard/WorkspaceExpensifyCardPageEmptyState.tsx:57src/pages/workspace/expensifyCard/WorkspaceExpensifyCardBankAccounts.tsx:73src/pages/ReimbursementAccount/USD/ConnectBankAccount/components/Enable2FACard.tsx:35src/pages/ReimbursementAccount/ReimbursementAccountVerifyAccountPage.tsx:16,18src/pages/ReimbursementAccount/NonUSD/Finish/index.tsx:70src/components/Navigation/DebugTabView.tsx:83src/components/KYCWall/BaseKYCWall.tsx:145,157,175src/libs/actions/ReimbursementAccount/navigation.ts:22SEARCH_MONEY_REQUEST_REPORT:src/pages/TransactionMerge/ConfirmationPage.tsx:104src/pages/Search/SearchMoneyRequestReportVerifyAccountPage.tsx:16,17src/pages/NewReportWorkspaceSelectionPage.tsx:110src/libs/actions/IOU/index.ts:996src/libs/SettlementButtonUtils.ts:58src/components/Search/index.tsx:829src/components/ParentNavigationSubtitle.tsx:140src/pages/home/sidebar/FloatingActionButtonAndPopover.tsx:248src/pages/Search/SearchSelectedNarrow.tsx:65src/pages/Search/EmptySearchView.tsx:229src/libs/PaymentUtils.ts:150src/libs/Navigation/helpers/getReportURLForCurrentContext.ts:58BANK_ACCOUNT_VERIFY_ACCOUNT:src/pages/ReimbursementAccount/VerifiedBankAccountFlowEntryPoint.tsx:159,179Files to modify:
src/ROUTES.ts- Update route definitionssrc/libs/Navigation/types.ts- RemovebackTofrom paramsMigration Progress
SEARCH_MONEY_REQUEST_REPORTSEARCH_MONEY_REQUEST_REPORT_HOLD_TRANSACTIONSBANK_ACCOUNT_VERIFY_ACCOUNTBANK_ACCOUNT_WITH_STEP_TO_OPENNEW_TASKNEW_TASK_ASSIGNEENEW_TASK_DETAILSNEW_TASK_TITLEIssue Owner
Current Issue Owner: @huult