Skip to content

[BT-151] Migrate Settings - Profile (Part 2) #83362

@mjasikowski

Description

@mjasikowski

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

  • SETTINGS_CONTACT_METHOD_DETAILS
  • SETTINGS_NEW_CONTACT_METHOD
  • SETTINGS_NEW_CONTACT_METHOD_CONFIRM_MAGIC_CODE
  • MONEY_REQUEST_STATE_SELECTOR
Issue OwnerCurrent Issue Owner: @mananjadhav

Metadata

Metadata

Labels

InternalRequires API changes or must be handled by Expensify staffWeeklyKSv2

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