Skip to content

[BT-127] Migrate Workspace Confirmation + Misc #83855

@mjasikowski

Description

@mjasikowski

Description

Current State:

  • 4 routes for workspace confirmation and referral
  • 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
WORKSPACE_CONFIRMATION workspace/confirmation
CURRENCY_SELECTION workspace/confirmation/currency
MIGRATED_USER_WELCOME_MODAL onboarding/migrated-user-welcome
REFERRAL_DETAILS_MODAL referral/:contentType

Usages

WORKSPACE_CONFIRMATION:

  • src/libs/ReportUtils.ts:11552
  • src/pages/workspace/WorkspacesListPageHeaderButton.tsx:37,59
  • src/pages/workspace/WorkspacesEmptyStateComponent.tsx:37
  • src/pages/home/sidebar/FloatingActionButtonAndPopover.tsx:673

CURRENCY_SELECTION:

  • Search for usages in currency selection flow

MIGRATED_USER_WELCOME_MODAL:

  • Search for usages in migrated user flow

REFERRAL_DETAILS_MODAL:

  • src/components/ReferralProgramCTA.tsx

Files to modify:

  • src/ROUTES.ts - Update route definitions
  • src/libs/Navigation/types.ts - Remove backTo from params
  • Components listed above

Migration Progress

  • WORKSPACE_CONFIRMATION
  • CURRENCY_SELECTION
  • MIGRATED_USER_WELCOME_MODAL
  • REFERRAL_DETAILS_MODAL
Issue OwnerCurrent Issue Owner: @huult

Metadata

Metadata

Labels

InternalRequires API changes or must be handled by Expensify staffMonthlyKSv2

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