Skip to content

[BT-122] Migrate Money Request (Part 3) #83850

@mjasikowski

Description

@mjasikowski

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

  • MONEY_REQUEST_STEP_DESTINATION
  • MONEY_REQUEST_STEP_DESTINATION_EDIT
  • MONEY_REQUEST_STEP_TIME
  • MONEY_REQUEST_STEP_TIME_EDIT
  • MONEY_REQUEST_STEP_SUBRATE
  • MONEY_REQUEST_STEP_SUBRATE_EDIT
Issue OwnerCurrent Issue Owner: @huult

Metadata

Metadata

Labels

InternalRequires API changes or must be handled by Expensify staffMonthlyKSv2Overdue

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions