Description
Current State:
- 6 routes for money request destination, time, and subrate steps
- 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 (6):
| Route Constant |
Path |
MONEY_REQUEST_STEP_DESTINATION |
:action/:iouType/destination/:transactionID/:reportID |
MONEY_REQUEST_STEP_DESTINATION_EDIT |
:action/:iouType/destination/:transactionID/:reportID/edit |
MONEY_REQUEST_STEP_TIME |
:action/:iouType/time/:transactionID/:reportID |
MONEY_REQUEST_STEP_TIME_EDIT |
:action/:iouType/time/:transactionID/:reportID/edit |
MONEY_REQUEST_STEP_SUBRATE |
:action/:iouType/subrate/:transactionID/:reportID/:pageIndex |
MONEY_REQUEST_STEP_SUBRATE_EDIT |
:action/:iouType/subrate/:transactionID/:reportID/edit/:pageIndex |
Usages
MONEY_REQUEST_STEP_DESTINATION:
src/pages/iou/request/step/IOURequestStepDestination.tsx
MONEY_REQUEST_STEP_DESTINATION_EDIT:
- Search for usages in destination editing flow
MONEY_REQUEST_STEP_TIME:
- Search for usages in time selection flow
MONEY_REQUEST_STEP_TIME_EDIT:
- Search for usages in time editing flow
MONEY_REQUEST_STEP_SUBRATE:
- Search for usages in subrate flow
MONEY_REQUEST_STEP_SUBRATE_EDIT:
- Search for usages in subrate editing 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 (6):
MONEY_REQUEST_STEP_DESTINATION:action/:iouType/destination/:transactionID/:reportIDMONEY_REQUEST_STEP_DESTINATION_EDIT:action/:iouType/destination/:transactionID/:reportID/editMONEY_REQUEST_STEP_TIME:action/:iouType/time/:transactionID/:reportIDMONEY_REQUEST_STEP_TIME_EDIT:action/:iouType/time/:transactionID/:reportID/editMONEY_REQUEST_STEP_SUBRATE:action/:iouType/subrate/:transactionID/:reportID/:pageIndexMONEY_REQUEST_STEP_SUBRATE_EDIT:action/:iouType/subrate/:transactionID/:reportID/edit/:pageIndexUsages
MONEY_REQUEST_STEP_DESTINATION:src/pages/iou/request/step/IOURequestStepDestination.tsxMONEY_REQUEST_STEP_DESTINATION_EDIT:MONEY_REQUEST_STEP_TIME:MONEY_REQUEST_STEP_TIME_EDIT:MONEY_REQUEST_STEP_SUBRATE:MONEY_REQUEST_STEP_SUBRATE_EDIT:Files to modify:
src/ROUTES.ts- Update route definitionssrc/libs/Navigation/types.ts- RemovebackTofrom paramsMigration Progress
MONEY_REQUEST_STEP_DESTINATIONMONEY_REQUEST_STEP_DESTINATION_EDITMONEY_REQUEST_STEP_TIMEMONEY_REQUEST_STEP_TIME_EDITMONEY_REQUEST_STEP_SUBRATEMONEY_REQUEST_STEP_SUBRATE_EDITIssue Owner
Current Issue Owner: @huult