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

[HOLD for payment 2024-07-22] [HOLD for payment 2024-07-17] [Travel] [Refactor] Create a new shared component for AddressPage #41965

Closed
mountiny opened this issue May 10, 2024 · 41 comments
Assignees
Labels
Awaiting Payment Auto-added when associated PR is deployed to production NewFeature Something to build that is a new item. Weekly KSv2

Comments

@mountiny
Copy link
Contributor

mountiny commented May 10, 2024

Problem

Currently WorkspaceProfileAddressPage and AddressPage have some repeated code (ex. handleAddressChange callback, useEffect on countryFromUrl or useEffect on address)

Moreover, AddressPage has code which has no effect - ex. useEffect on stateFromUrl (because stateFromUrl is always undefined).

Those code readability issues were detected while creating and reviewing WorkspaceProfilePage PR ex. here or here.

Solution

We should create a new component as a middle layer between AddressPage/WorkspaceProfileAddressPage and AddressForm. Current AddressPage should be renamed to PersonalAddressPage and the new component should be named AddressPage.

New AddressPage should contain all the common logic for PersonalAddressPage and WorkspaceAddressPage.

WorkspaceAddressPage and PersonalAddressPage should only contain logic behind callbacks to API.
Those are rather simple changes which should improve code readability and make it easier to maintain.

Issue OwnerCurrent Issue Owner: @slafortune / @joekaufmanexpensify
Issue OwnerCurrent Issue Owner: @slafortune
@mountiny mountiny added Daily KSv2 NewFeature Something to build that is a new item. labels May 10, 2024
@mountiny mountiny self-assigned this May 10, 2024
Copy link

melvin-bot bot commented May 10, 2024

Triggered auto assignment to @slafortune (NewFeature), see https://stackoverflowteams.com/c/expensify/questions/14418#:~:text=BugZero%20process%20steps%20for%20feature%20requests for more details. Please add this Feature request to a GH project, as outlined in the SO.

@melvin-bot melvin-bot bot added Weekly KSv2 and removed Daily KSv2 labels May 10, 2024
Copy link

melvin-bot bot commented May 10, 2024

⚠️ It looks like this issue is labelled as a New Feature but not tied to any GitHub Project. Keep in mind that all new features should be tied to GitHub Projects in order to properly track external CAP software time ⚠️

Copy link

melvin-bot bot commented May 10, 2024

Triggered auto assignment to Design team member for new feature review - @dubielzyk-expensify (NewFeature)

@smelaa
Copy link
Contributor

smelaa commented May 10, 2024

Hi, I am Aleksandra Smela from SWM and I would like to work on this issue!

@dubielzyk-expensify
Copy link
Contributor

I've been assigned as a design reviewer. Would you like me to have a look at this PR now or is it still too early?

@mountiny
Copy link
Contributor Author

I dont think this should have any change in design so maybe its not required and you can unassign. Its automated as its a new feature.

The code changes should be unnoticed in product, purely code readability

@melvin-bot melvin-bot bot added Reviewing Has a PR in review Weekly KSv2 and removed Weekly KSv2 labels May 13, 2024
@slafortune
Copy link
Contributor

Looks like changes in the PR have been approved and it's moving forward! I'll be on vacation until June 4th, so adding another BZ in the meantime.

@slafortune slafortune removed their assignment May 23, 2024
@slafortune slafortune added NewFeature Something to build that is a new item. and removed NewFeature Something to build that is a new item. labels May 23, 2024
Copy link

melvin-bot bot commented May 23, 2024

Triggered auto assignment to @joekaufmanexpensify (NewFeature), see https://stackoverflowteams.com/c/expensify/questions/14418#:~:text=BugZero%20process%20steps%20for%20feature%20requests for more details. Please add this Feature request to a GH project, as outlined in the SO.

@mountiny
Copy link
Contributor Author

Asked to get this PR merged

@getusha
Copy link
Contributor

getusha commented May 27, 2024

@mountiny could you assign me here? thanks

Copy link

melvin-bot bot commented May 27, 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.

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

@mateuuszzzzz There was this proposal that fixes the regression, in case it's helpful to you.

@zfurtak
Copy link
Contributor

zfurtak commented Jun 18, 2024

Hello there :) If it's okay, from now I will be working on this issue instead of @mateuuszzzzz as recently he's had a lot stuff to do with Hybrid app.

@slafortune
Copy link
Contributor

slafortune commented Jun 19, 2024

@zfurtak @mateuuszzzzz was there a conversation about this somewhere you can link here?

@zfurtak
Copy link
Contributor

zfurtak commented Jun 20, 2024

Oh sorry for confusion, there's no conversation to link, but I'm working for Software Mansion Agency and internally we decided to change the maintainer of this task.
I will look into it today or tomorrow.

@mountiny
Copy link
Contributor Author

@slafortune I think this is fine for SWM to distribute internally. I will assign @zfurtak to this issue now

Copy link

melvin-bot bot commented Jul 8, 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.

@melvin-bot melvin-bot bot added Weekly KSv2 and removed Weekly KSv2 labels Jul 10, 2024
@melvin-bot melvin-bot bot changed the title [Travel] [Refactor] Create a new shared component for AddressPage [HOLD for payment 2024-07-17] [Travel] [Refactor] Create a new shared component for AddressPage Jul 10, 2024
Copy link

melvin-bot bot commented Jul 10, 2024

Reviewing label has been removed, please complete the "BugZero Checklist".

@melvin-bot melvin-bot bot removed the Reviewing Has a PR in review label Jul 10, 2024
Copy link

melvin-bot bot commented Jul 10, 2024

The solution for this issue has been 🚀 deployed to production 🚀 in version 9.0.5-13 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue:

If no regressions arise, payment will be issued on 2024-07-17. 🎊

For reference, here are some details about the assignees on this issue:

  • @mateuuszzzzz does not require payment (Contractor)
  • @getusha requires payment through NewDot Manual Requests
  • @zfurtak does not require payment (Contractor)

Copy link

melvin-bot bot commented Jul 10, 2024

BugZero Checklist: The PR adding this new feature has been merged! The following checklist (instructions) will need to be completed before the issue can be closed:

  • [@getusha] Please propose regression test steps to ensure the new feature will work correctly on production in further releases.
  • [@slafortune] Link the GH issue for creating/updating the regression test once above steps have been agreed upon.

@mountiny
Copy link
Contributor Author

There is one sneaky regression but I think its really hard to catch in this flow so I suggest a normal $250 to @getusha and we can close this issue

@melvin-bot melvin-bot bot added Weekly KSv2 and removed Weekly KSv2 labels Jul 15, 2024
@melvin-bot melvin-bot bot changed the title [HOLD for payment 2024-07-17] [Travel] [Refactor] Create a new shared component for AddressPage [HOLD for payment 2024-07-22] [HOLD for payment 2024-07-17] [Travel] [Refactor] Create a new shared component for AddressPage Jul 15, 2024
Copy link

melvin-bot bot commented Jul 15, 2024

The solution for this issue has been 🚀 deployed to production 🚀 in version 9.0.6-8 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue:

If no regressions arise, payment will be issued on 2024-07-22. 🎊

For reference, here are some details about the assignees on this issue:

  • @mateuuszzzzz does not require payment (Contractor)
  • @getusha requires payment through NewDot Manual Requests
  • @zfurtak does not require payment (Contractor)

Copy link

melvin-bot bot commented Jul 15, 2024

BugZero Checklist: The PR adding this new feature has been merged! The following checklist (instructions) will need to be completed before the issue can be closed:

  • [@getusha] Please propose regression test steps to ensure the new feature will work correctly on production in further releases.
  • [@slafortune] Link the GH issue for creating/updating the regression test once above steps have been agreed upon.

@slafortune
Copy link
Contributor

Based on this comment
@getusha is due for the C+ role $250 via newdot 👍
@zfurtak and @mateuuszzzzz are expert contributors and not due payment.

@JmillsExpensify
Copy link

$250 approved for @getusha

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Awaiting Payment Auto-added when associated PR is deployed to production NewFeature Something to build that is a new item. Weekly KSv2
Development

No branches or pull requests

10 participants