Skip to content

[BT-113] Migrate Workspace - QBD + Xero #83841

@mjasikowski

Description

@mjasikowski

Description

Current State:

  • 5 routes for QuickBooks Desktop out-of-pocket and Xero export
  • 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
POLICY_ACCOUNTING_QUICKBOOKS_DESKTOP_OUT_OF_POCKET_EXPENSE_ACCOUNT_SELECT workspaces/:policyID/accounting/quickbooks-desktop/export/out-of-pocket-expense/account-select
POLICY_ACCOUNTING_QUICKBOOKS_DESKTOP_OUT_OF_POCKET_EXPENSE_ENTITY_SELECT workspaces/:policyID/accounting/quickbooks-desktop/export/out-of-pocket-expense/entity-select
POLICY_ACCOUNTING_XERO_EXPORT workspaces/:policyID/accounting/xero/export
POLICY_ACCOUNTING_XERO_PREFERRED_EXPORTER_SELECT workspaces/:policyID/connections/xero/export/preferred-exporter/select
POLICY_ACCOUNTING_XERO_EXPORT_PURCHASE_BILL_DATE_SELECT workspaces/:policyID/accounting/xero/export/purchase-bill-date-select

Usages

POLICY_ACCOUNTING_QUICKBOOKS_DESKTOP_OUT_OF_POCKET_EXPENSE_ACCOUNT_SELECT:

  • Search for usages in QBD OOP account select flow

POLICY_ACCOUNTING_QUICKBOOKS_DESKTOP_OUT_OF_POCKET_EXPENSE_ENTITY_SELECT:

  • Search for usages in QBD OOP entity select flow

POLICY_ACCOUNTING_XERO_EXPORT:

  • src/pages/workspace/accounting/xero/export/XeroExportConfigurationPage.tsx

POLICY_ACCOUNTING_XERO_PREFERRED_EXPORTER_SELECT:

  • Search for usages in Xero preferred exporter flow

POLICY_ACCOUNTING_XERO_EXPORT_PURCHASE_BILL_DATE_SELECT:

  • Search for usages in Xero bill date select flow

Files to modify:

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

Migration Progress

  • POLICY_ACCOUNTING_QUICKBOOKS_DESKTOP_OUT_OF_POCKET_EXPENSE_ACCOUNT_SELECT
  • POLICY_ACCOUNTING_QUICKBOOKS_DESKTOP_OUT_OF_POCKET_EXPENSE_ENTITY_SELECT
  • POLICY_ACCOUNTING_XERO_EXPORT
  • POLICY_ACCOUNTING_XERO_PREFERRED_EXPORTER_SELECT
  • POLICY_ACCOUNTING_XERO_EXPORT_PURCHASE_BILL_DATE_SELECT
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