Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
stitesExpensify opened this issue Mar 6, 2024 · 29 comments
Assignees
Labels
Engineering Reviewing Has a PR in review Weekly KSv2

Comments

@stitesExpensify
Copy link
Contributor

stitesExpensify commented Mar 6, 2024

VIP-Travel Implementation Issue

Tracking Issue: https://github.com/Expensify/Expensify/issues/333471
Project: https://github.com/orgs/Expensify/projects/112/
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

@stitesExpensify stitesExpensify changed the title [CRITICAL] [VIP-Travel] Create new Trip Room [CRITICAL] [VIP-Travel] Create workspace address page and section in overview Mar 6, 2024
@smelaa
Copy link
Contributor

smelaa commented Mar 8, 2024

Hello, I'm Aleksandra from Software Mansion, the expert agency, and I'd like to work on this issue.

@twisterdotcom
Copy link
Contributor

Adding a C+ here for Travel reviews: @shubham1206agra

@twisterdotcom
Copy link
Contributor

Only assigned on Friday. We can give them a day here Melvin.

@melvin-bot melvin-bot bot removed the Overdue label Mar 11, 2024
@smelaa
Copy link
Contributor

smelaa commented Mar 13, 2024

Hi,

Instead of receiving the user’s personal details, it’ll receive the workspace data, including the address.

Could you please let me know under which prop can I find that address? Is it already implemented?

@stitesExpensify
Copy link
Contributor Author

The address is not implemented yet. It will be a field on the policy object

@twisterdotcom
Copy link
Contributor

Draft PR above.

@melvin-bot melvin-bot bot added Overdue and removed Overdue labels Mar 18, 2024
@smelaa
Copy link
Contributor

smelaa commented Mar 27, 2024

Would you me to make the changes visible only for Spotnana Travel beta users?

@melvin-bot melvin-bot bot removed the Overdue label Mar 27, 2024
@stitesExpensify
Copy link
Contributor Author

Yes please!

@melvin-bot melvin-bot bot added the Overdue label Apr 1, 2024
@twisterdotcom
Copy link
Contributor

How is this one coming along @smelaa?

@melvin-bot melvin-bot bot added Overdue and removed Overdue labels Apr 3, 2024
@twisterdotcom
Copy link
Contributor

Still waiting on webhooks.

@melvin-bot melvin-bot bot removed the Overdue label Apr 8, 2024
@smelaa
Copy link
Contributor

smelaa commented Apr 9, 2024

@twisterdotcom I was OOO last week. The PR draft is ready, just waiting to be connected to backend.

@melvin-bot melvin-bot bot added the Overdue label Apr 11, 2024
@twisterdotcom
Copy link
Contributor

Waiting on the backend.

@stitesExpensify
Copy link
Contributor Author

@melvin-bot melvin-bot bot added the Overdue label Apr 17, 2024
@twisterdotcom
Copy link
Contributor

This is unblocked now right? Let's get this one moving @smelaa!

@melvin-bot melvin-bot bot added Overdue and removed Overdue labels Apr 18, 2024
@twisterdotcom
Copy link
Contributor

Can we make this ready for review yet @smelaa?

@melvin-bot melvin-bot bot removed the Overdue label Apr 22, 2024
@smelaa
Copy link
Contributor

smelaa commented Apr 23, 2024

@stitesExpensify @twisterdotcom Can I have more details on this API endpoint? I think the linked issue is internal and I can't see the link.

@Gonals
Copy link
Contributor

Gonals commented Apr 25, 2024

Discussed it via DM, but posting here for visibility.

For the endPoint, it requires 2 parameters (besides the AuthToken):

  • policyID

  • data, which is an array with the address containing:

addressStreet (the street name and number, like "1234 Any Street". Secondary address line, if any, should be separated by a newline (\n) character)

city

country

state

zipCode

@melvin-bot melvin-bot bot added the Overdue label Apr 25, 2024
@melvin-bot melvin-bot bot added Reviewing Has a PR in review Weekly KSv2 and removed Overdue Daily KSv2 labels Apr 25, 2024
Copy link

melvin-bot bot commented Apr 29, 2024

Triggered auto assignment to @lakchote, see https://stackoverflow.com/c/expensify/questions/7972 for more details.

Copy link

melvin-bot bot commented May 2, 2024

⚠️ Looks like this issue was linked to a Deploy Blocker here

If you are the assigned CME please investigate whether the linked PR caused a regression and leave a comment with the results.

If a regression has occurred and you are the assigned CM follow the instructions here.

If this regression could have been avoided please consider also proposing a recommendation to the PR checklist so that we can avoid it in the future.

Copy link

melvin-bot bot commented May 2, 2024

⚠️ Looks like this issue was linked to a Deploy Blocker here

If you are the assigned CME please investigate whether the linked PR caused a regression and leave a comment with the results.

If a regression has occurred and you are the assigned CM follow the instructions here.

If this regression could have been avoided please consider also proposing a recommendation to the PR checklist so that we can avoid it in the future.

Copy link

melvin-bot bot commented May 2, 2024

⚠️ Looks like this issue was linked to a Deploy Blocker here

If you are the assigned CME please investigate whether the linked PR caused a regression and leave a comment with the results.

If a regression has occurred and you are the assigned CM follow the instructions here.

If this regression could have been avoided please consider also proposing a recommendation to the PR checklist so that we can avoid it in the future.

@lakchote
Copy link
Contributor

lakchote commented May 3, 2024

cc @smelaa looks like a lot of blockers are related to it

@shubham1206agra
Copy link
Contributor

@lakchote This feature is behind beta. So you can remove the deploy blocker label from them.

@twisterdotcom
Copy link
Contributor

This is already live!

@shubham1206agra
Copy link
Contributor

@twisterdotcom This issue still requires payment.

@twisterdotcom
Copy link
Contributor

Ah! Didn't realise this was linked to a PR, thought it was one of those handled in another issue. Found it: #38381

@twisterdotcom twisterdotcom reopened this May 15, 2024
@twisterdotcom
Copy link
Contributor

Payment Summary:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Engineering Reviewing Has a PR in review Weekly KSv2
Projects
Development

No branches or pull requests

7 participants