Skip to content

[BT-107] Migrate Workspace - Receipt Partners + Expensify Cards #83835

Description

@mjasikowski

Description

Current State:

  • 5 routes for receipt partners and Expensify card management
  • 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 (5):

Route Constant Path
WORKSPACE_RECEIPT_PARTNERS_INVITE workspaces/:policyID/receipt-partners/:integration/invite
WORKSPACE_RECEIPT_PARTNERS_INVITE_EDIT workspaces/:policyID/receipt-partners/:integration/invite/edit
WORKSPACE_EXPENSIFY_CARD_DETAILS workspaces/:policyID/expensify-card/:cardID
WORKSPACE_EXPENSIFY_CARD_NAME workspaces/:policyID/expensify-card/:cardID/edit/name
WORKSPACE_EXPENSIFY_CARD_LIMIT workspaces/:policyID/expensify-card/:cardID/edit/limit

Usages

WORKSPACE_RECEIPT_PARTNERS_INVITE:

  • Search for usages in receipt partners invite flow

WORKSPACE_RECEIPT_PARTNERS_INVITE_EDIT:

  • Search for usages in receipt partners invite edit flow

WORKSPACE_EXPENSIFY_CARD_DETAILS:

  • src/pages/workspace/members/WorkspaceMemberDetailsPage.tsx:250
  • src/pages/workspace/expensifyCard/WorkspaceExpensifyCardListPage.tsx:168

WORKSPACE_EXPENSIFY_CARD_NAME:

  • Search for usages in card name edit flow

WORKSPACE_EXPENSIFY_CARD_LIMIT:

  • Search for usages in card limit edit flow

Files to modify:

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

Migration Progress

  • WORKSPACE_RECEIPT_PARTNERS_INVITE
  • WORKSPACE_RECEIPT_PARTNERS_INVITE_EDIT
  • WORKSPACE_EXPENSIFY_CARD_DETAILS
  • WORKSPACE_EXPENSIFY_CARD_NAME
  • WORKSPACE_EXPENSIFY_CARD_LIMIT
Issue OwnerCurrent Issue Owner: @suneox

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

DailyKSv2InternalRequires API changes or must be handled by Expensify staffSkip PaymentSkips all the payment process steps for an issue. Use it for fixed-price projects.

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions