Skip to content

[CRITICAL] [VIP-Travel] Create workspace address page and section in overview #37827

Description

@stitesExpensify

VIP-Travel Implementation Issue

Tracking Issue: https://github.com/Expensify/Expensify/issues/333471
Project: [#whatsnext] #Travel
Relevant Design Doc Section: https://docs.google.com/document/d/122DLLTuCsU4NC3c7rNiy4UF8bZxVlLEWSy3yncqCTcQ/edit#bookmark=id.9gtuxny77xql

This issue is for creating the new workspace address page:
2024-03-06_08-42-12

  • A new MenuItemWithTopDescription will be added to WorkspaceOverviewPage to display the Company address as shown above. On click, it’ll open WorkspaceOverviewAddressPage.
  • A new page, WorkspaceOverviewAddressPage will be created, with a new route, ROUTES.WORKSPACE_PROFILE_ADDRESS. It will mostly mimic AddressPage.js with a couple of changes:
  • Instead of receiving the user’s personal details, it’ll receive the workspace data, including the address.
  • Instead of calling PersonalDetails.UpdateAddress, it will call a new function, Policy.updateAddress.
    Policy.updateAddress will behave much like Policy.updateWorkspaceCustomUnitAndRate, but it will call a new command, UpdateWorkspaceAddress.
  • The PHP layer will be updated to receive the new command in api.php, and it will call a new function, PolicyAPI::updateWorkspaceAddress, which, in turn, will call a new Auth command.. [WIP]
  • The current Policy.updateGeneralSettings… [WIP]

Routes table:
https://docs.google.com/document/d/122DLLTuCsU4NC3c7rNiy4UF8bZxVlLEWSy3yncqCTcQ/edit#bookmark=id.gn6jbl2udlnx

Metadata

Metadata

Type

No type

Fields

No fields configured for issues without a type.

Projects

Status
Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions