Description
Current State:
- 5 routes for QuickBooks Online export configuration
- 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 (5):
| Route Constant |
Path |
POLICY_ACCOUNTING_QUICKBOOKS_ONLINE_EXPORT |
workspaces/:policyID/accounting/quickbooks-online/export |
POLICY_ACCOUNTING_QUICKBOOKS_ONLINE_COMPANY_CARD_EXPENSE_ACCOUNT |
workspaces/:policyID/accounting/quickbooks-online/export/company-card-expense-account |
POLICY_ACCOUNTING_QUICKBOOKS_ONLINE_COMPANY_CARD_EXPENSE_ACCOUNT_SELECT |
workspaces/:policyID/accounting/quickbooks-online/export/company-card-expense-account/account-select |
POLICY_ACCOUNTING_QUICKBOOKS_ONLINE_COMPANY_CARD_EXPENSE_CARD_SELECT |
workspaces/:policyID/accounting/quickbooks-online/export/company-card-expense-account/card-select |
POLICY_ACCOUNTING_QUICKBOOKS_ONLINE_INVOICE_ACCOUNT_SELECT |
workspaces/:policyID/accounting/quickbooks-online/export/invoice-account-select |
Usages
POLICY_ACCOUNTING_QUICKBOOKS_ONLINE_EXPORT:
src/pages/workspace/accounting/qbo/export/QuickbooksPreferredExporterConfigurationPage.tsx:60
src/pages/workspace/accounting/qbo/export/QuickbooksExportInvoiceAccountSelectPage.tsx:52
src/pages/workspace/accounting/qbo/export/QuickbooksExportDateSelectPage.tsx:44
src/pages/workspace/accounting/utils.tsx:98
POLICY_ACCOUNTING_QUICKBOOKS_ONLINE_COMPANY_CARD_EXPENSE_ACCOUNT:
src/pages/workspace/accounting/qbo/export/QuickbooksExportConfigurationPage.tsx
src/pages/workspace/accounting/qbo/export/QuickbooksCompanyCardExpenseAccountPage.tsx
POLICY_ACCOUNTING_QUICKBOOKS_ONLINE_COMPANY_CARD_EXPENSE_ACCOUNT_SELECT:
- Search for usages in QBO account select flow
POLICY_ACCOUNTING_QUICKBOOKS_ONLINE_COMPANY_CARD_EXPENSE_CARD_SELECT:
- Search for usages in QBO card select flow
POLICY_ACCOUNTING_QUICKBOOKS_ONLINE_INVOICE_ACCOUNT_SELECT:
- Search for usages in QBO invoice account select flow
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 (5):
POLICY_ACCOUNTING_QUICKBOOKS_ONLINE_EXPORTworkspaces/:policyID/accounting/quickbooks-online/exportPOLICY_ACCOUNTING_QUICKBOOKS_ONLINE_COMPANY_CARD_EXPENSE_ACCOUNTworkspaces/:policyID/accounting/quickbooks-online/export/company-card-expense-accountPOLICY_ACCOUNTING_QUICKBOOKS_ONLINE_COMPANY_CARD_EXPENSE_ACCOUNT_SELECTworkspaces/:policyID/accounting/quickbooks-online/export/company-card-expense-account/account-selectPOLICY_ACCOUNTING_QUICKBOOKS_ONLINE_COMPANY_CARD_EXPENSE_CARD_SELECTworkspaces/:policyID/accounting/quickbooks-online/export/company-card-expense-account/card-selectPOLICY_ACCOUNTING_QUICKBOOKS_ONLINE_INVOICE_ACCOUNT_SELECTworkspaces/:policyID/accounting/quickbooks-online/export/invoice-account-selectUsages
POLICY_ACCOUNTING_QUICKBOOKS_ONLINE_EXPORT:src/pages/workspace/accounting/qbo/export/QuickbooksPreferredExporterConfigurationPage.tsx:60src/pages/workspace/accounting/qbo/export/QuickbooksExportInvoiceAccountSelectPage.tsx:52src/pages/workspace/accounting/qbo/export/QuickbooksExportDateSelectPage.tsx:44src/pages/workspace/accounting/utils.tsx:98POLICY_ACCOUNTING_QUICKBOOKS_ONLINE_COMPANY_CARD_EXPENSE_ACCOUNT:src/pages/workspace/accounting/qbo/export/QuickbooksExportConfigurationPage.tsxsrc/pages/workspace/accounting/qbo/export/QuickbooksCompanyCardExpenseAccountPage.tsxPOLICY_ACCOUNTING_QUICKBOOKS_ONLINE_COMPANY_CARD_EXPENSE_ACCOUNT_SELECT:POLICY_ACCOUNTING_QUICKBOOKS_ONLINE_COMPANY_CARD_EXPENSE_CARD_SELECT:POLICY_ACCOUNTING_QUICKBOOKS_ONLINE_INVOICE_ACCOUNT_SELECT:Files to modify:
src/ROUTES.ts- Update route definitionssrc/libs/Navigation/types.ts- RemovebackTofrom paramsMigration Progress
POLICY_ACCOUNTING_QUICKBOOKS_ONLINE_EXPORTPOLICY_ACCOUNTING_QUICKBOOKS_ONLINE_COMPANY_CARD_EXPENSE_ACCOUNTPOLICY_ACCOUNTING_QUICKBOOKS_ONLINE_COMPANY_CARD_EXPENSE_ACCOUNT_SELECTPOLICY_ACCOUNTING_QUICKBOOKS_ONLINE_COMPANY_CARD_EXPENSE_CARD_SELECTPOLICY_ACCOUNTING_QUICKBOOKS_ONLINE_INVOICE_ACCOUNT_SELECTIssue Owner
Current Issue Owner: @huult