Description
Current State:
- 4 routes handle contact methods and state selection
- 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 (4):
| Route Constant |
Path |
SETTINGS_CONTACT_METHOD_DETAILS |
settings/profile/contact-methods/:contactMethod/details |
SETTINGS_NEW_CONTACT_METHOD |
settings/profile/contact-methods/new |
SETTINGS_NEW_CONTACT_METHOD_CONFIRM_MAGIC_CODE |
settings/profile/contact-methods/new/confirm-magic-code |
MONEY_REQUEST_STATE_SELECTOR |
submit/state |
Usages
SETTINGS_CONTACT_METHOD_DETAILS:
src/pages/settings/Profile/Contacts/NewContactMethodPage.tsx:120
src/pages/settings/Profile/Contacts/ContactMethodsPage.tsx:83
SETTINGS_NEW_CONTACT_METHOD:
src/pages/settings/Profile/Contacts/NewContactMethodConfirmMagicCodePage.tsx:30
SETTINGS_NEW_CONTACT_METHOD_CONFIRM_MAGIC_CODE:
src/pages/settings/Profile/Contacts/ContactMethodsPage.tsx:53,57
MONEY_REQUEST_STATE_SELECTOR:
- Search for usages in IOU/expense flows
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: @mananjadhav
Description
Current State:
backToparameter for return navigationImplementation:
getRoute(..., backTo)withcreateDynamicRoute()entryScreensarraybackToparameter from route definitionsScope
Routes (4):
SETTINGS_CONTACT_METHOD_DETAILSsettings/profile/contact-methods/:contactMethod/detailsSETTINGS_NEW_CONTACT_METHODsettings/profile/contact-methods/newSETTINGS_NEW_CONTACT_METHOD_CONFIRM_MAGIC_CODEsettings/profile/contact-methods/new/confirm-magic-codeMONEY_REQUEST_STATE_SELECTORsubmit/stateUsages
SETTINGS_CONTACT_METHOD_DETAILS:src/pages/settings/Profile/Contacts/NewContactMethodPage.tsx:120src/pages/settings/Profile/Contacts/ContactMethodsPage.tsx:83SETTINGS_NEW_CONTACT_METHOD:src/pages/settings/Profile/Contacts/NewContactMethodConfirmMagicCodePage.tsx:30SETTINGS_NEW_CONTACT_METHOD_CONFIRM_MAGIC_CODE:src/pages/settings/Profile/Contacts/ContactMethodsPage.tsx:53,57MONEY_REQUEST_STATE_SELECTOR:Files to modify:
src/ROUTES.ts- Update route definitionssrc/libs/Navigation/types.ts- RemovebackTofrom paramsMigration Progress
SETTINGS_CONTACT_METHOD_DETAILSSETTINGS_NEW_CONTACT_METHODSETTINGS_NEW_CONTACT_METHOD_CONFIRM_MAGIC_CODEMONEY_REQUEST_STATE_SELECTORIssue Owner
Current Issue Owner: @mananjadhav