Skip to content

[BT-109] Migrate Workspace - QuickBooks Online (Part 1) #83837

@mjasikowski

Description

@mjasikowski

Description

Current State:

  • 5 routes for QuickBooks Online export configuration
  • 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_ONLINE_EXPORT workspaces/:policyID/accounting/quickbooks-online/export
POLICY_ACCOUNTING_QUICKBOOKS_ONLINE_COMPANY_CARD_EXPENSE_ACCOUNT workspaces/:policyID/accounting/quickbooks-online/export/company-card-expense-account
POLICY_ACCOUNTING_QUICKBOOKS_ONLINE_COMPANY_CARD_EXPENSE_ACCOUNT_SELECT workspaces/:policyID/accounting/quickbooks-online/export/company-card-expense-account/account-select
POLICY_ACCOUNTING_QUICKBOOKS_ONLINE_COMPANY_CARD_EXPENSE_CARD_SELECT workspaces/:policyID/accounting/quickbooks-online/export/company-card-expense-account/card-select
POLICY_ACCOUNTING_QUICKBOOKS_ONLINE_INVOICE_ACCOUNT_SELECT workspaces/:policyID/accounting/quickbooks-online/export/invoice-account-select

Usages

POLICY_ACCOUNTING_QUICKBOOKS_ONLINE_EXPORT:

  • src/pages/workspace/accounting/qbo/export/QuickbooksPreferredExporterConfigurationPage.tsx:60
  • src/pages/workspace/accounting/qbo/export/QuickbooksExportInvoiceAccountSelectPage.tsx:52
  • src/pages/workspace/accounting/qbo/export/QuickbooksExportDateSelectPage.tsx:44
  • src/pages/workspace/accounting/utils.tsx:98

POLICY_ACCOUNTING_QUICKBOOKS_ONLINE_COMPANY_CARD_EXPENSE_ACCOUNT:

  • src/pages/workspace/accounting/qbo/export/QuickbooksExportConfigurationPage.tsx
  • src/pages/workspace/accounting/qbo/export/QuickbooksCompanyCardExpenseAccountPage.tsx

POLICY_ACCOUNTING_QUICKBOOKS_ONLINE_COMPANY_CARD_EXPENSE_ACCOUNT_SELECT:

  • Search for usages in QBO account select flow

POLICY_ACCOUNTING_QUICKBOOKS_ONLINE_COMPANY_CARD_EXPENSE_CARD_SELECT:

  • Search for usages in QBO card select flow

POLICY_ACCOUNTING_QUICKBOOKS_ONLINE_INVOICE_ACCOUNT_SELECT:

  • Search for usages in QBO invoice account 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_ONLINE_EXPORT
  • POLICY_ACCOUNTING_QUICKBOOKS_ONLINE_COMPANY_CARD_EXPENSE_ACCOUNT
  • POLICY_ACCOUNTING_QUICKBOOKS_ONLINE_COMPANY_CARD_EXPENSE_ACCOUNT_SELECT
  • POLICY_ACCOUNTING_QUICKBOOKS_ONLINE_COMPANY_CARD_EXPENSE_CARD_SELECT
  • POLICY_ACCOUNTING_QUICKBOOKS_ONLINE_INVOICE_ACCOUNT_SELECT
Issue OwnerCurrent Issue Owner: @huult

Metadata

Metadata

Labels

InternalRequires API changes or must be handled by Expensify staffReviewingHas a PR in reviewWeeklyKSv2

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