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

Contact methods - Not here page opens after adding existing contact and dismissing error #48450

Closed
6 tasks done
IuliiaHerets opened this issue Sep 3, 2024 · 19 comments
Closed
6 tasks done
Assignees
Labels
Bug Something is broken. Auto assigns a BugZero manager. Engineering External Added to denote the issue can be worked on by a contributor Reviewing Has a PR in review Weekly KSv2

Comments

@IuliiaHerets
Copy link

IuliiaHerets commented Sep 3, 2024

If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!


Version Number: 9.0.28-0
Reproducible in staging?: Y
Reproducible in production?: N
If this was caught during regression testing, add the test name, ID and link from TestRail: Exp #48320
Email or phone of affected tester (no customers): applausetester+kh010901@applause.expensifail.com
Issue reported by: Applause Internal Team

Action Performed:

  1. Go to staging.new.expensify.com
  2. Go to Account settings.
  3. Go to Profile > Contact methods.
  4. Click New contact method.
  5. Enter an existing email > Next.
  6. Enter magic code > Next.
  7. Click on the added existing email.
  8. Click X button.

Expected Result:

App will return to the previous page after dismissing the error.

Actual Result:

Not here page opens after adding existing contact and dismissing error.

Workaround:

Unknown

Platforms:

  • Android: Native
  • Android: mWeb Chrome
  • iOS: Native
  • iOS: mWeb Safari
  • MacOS: Chrome / Safari
  • MacOS: Desktop

Screenshots/Videos

Bug6591245_1725324057324.20240903_083651.mp4

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~01263340c168620229
  • Upwork Job ID: 1830946896292368627
  • Last Price Increase: 2024-09-03
Issue OwnerCurrent Issue Owner: @
@IuliiaHerets IuliiaHerets added DeployBlockerCash This issue or pull request should block deployment Bug Something is broken. Auto assigns a BugZero manager. labels Sep 3, 2024
Copy link

melvin-bot bot commented Sep 3, 2024

Triggered auto assignment to @isabelastisser (Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details. Please add this bug to a GH project, as outlined in the SO.

Copy link

melvin-bot bot commented Sep 3, 2024

Triggered auto assignment to @MariaHCD (DeployBlockerCash), see https://stackoverflowteams.com/c/expensify/questions/9980/ for more details.

@melvin-bot melvin-bot bot added the Daily KSv2 label Sep 3, 2024
@github-actions github-actions bot added Engineering Hourly KSv2 and removed Daily KSv2 labels Sep 3, 2024
Copy link
Contributor

github-actions bot commented Sep 3, 2024

👋 Friendly reminder that deploy blockers are time-sensitive ⏱ issues! Check out the open `StagingDeployCash` deploy checklist to see the list of PRs included in this release, then work quickly to do one of the following:

  1. Identify the pull request that introduced this issue and revert it.
  2. Find someone who can quickly fix the issue.
  3. Fix the issue yourself.

@abzokhattab
Copy link
Contributor

abzokhattab commented Sep 3, 2024

Proposal

Please re-state the problem that we are trying to solve in this issue.

Not here page opens after adding existing contact and dismissing the error

What is the root cause of that problem?

on closing the error, it removes the current email and doesn't go back to the previous page so that's why it shows not here

What changes do you think we should make in order to solve the problem?

we should add go back to the contacts page on closing the error, the same as we do when removing a contact

onClose={() => User.clearContactMethod(contactMethod)}

What alternative solutions did you explore? (Optional)

@Krishna2323
Copy link
Contributor

Krishna2323 commented Sep 3, 2024

Proposal


Regression from #48320

Please re-state the problem that we are trying to solve in this issue.

Contact methods - Not here page opens after adding existing contact and dismissing error

What is the root cause of that problem?

When isFailedAddContactMethod is true the Existing account error message is shown. And when we close the error message, User.clearContactMethod(contactMethod) is called which will remove the optimistic contact method and then not here page will be shown.

{isFailedAddContactMethod && (
<ErrorMessageRow
errors={ErrorUtils.getLatestErrorField(loginData, 'addedLogin')}
errorRowStyles={[themeStyles.mh5, themeStyles.mv3]}
onClose={() => User.clearContactMethod(contactMethod)}
canDismissError
/>
)}

What changes do you think we should make in order to solve the problem?


We should call Navigation.goBack(ROUTES.SETTINGS_CONTACT_METHODS.getRoute(backTo) before we call User.clearContactMethod(contactMethod).

What alternative solutions did you explore? (Optional)

Result

Monosnap.screencast.2024-09-03.16-07-19.mp4

@abzokhattab
Copy link
Contributor

abzokhattab commented Sep 3, 2024

Proposal updated

corrected the url but the same solution approach is used

@Krishna2323
Copy link
Contributor

Proposal Updated

  • Added result video

@MariaHCD
Copy link
Contributor

MariaHCD commented Sep 3, 2024

This looks like a regression from #48320

@hungvu193 @mollfpr can you handle the fix for this since we're still in the regression period.

@hungvu193
Copy link
Contributor

Cc @getusha

@MariaHCD
Copy link
Contributor

MariaHCD commented Sep 3, 2024

Oh, actually from this comment, we already identified this bug before merging: #48320 (review)

@getusha Could you look into the fixing the navigation when the user removes the optimistic login? The page goes to not found page because the contact method is in the URL. I think we need to redirect to the contact method list page

@MariaHCD
Copy link
Contributor

MariaHCD commented Sep 3, 2024

@getusha Let's fix this as a follow up improvement :)

@hungvu193
Copy link
Contributor

This looks like a regression from #48320

@hungvu193 @mollfpr can you handle the fix for this since we're still in the regression period.

Please assign me and @getusha. We will handle this one

@mountiny mountiny self-assigned this Sep 3, 2024
@mountiny
Copy link
Contributor

mountiny commented Sep 3, 2024

Yeah, this was known, but we moved ahead with this because it's an important fix for a fire. I dont think this has to bea deploy blocker as this is just a minor UX issue the user can get out of easily and @getusha can follow up with the fix

Happy to take over this one @MariaHCD

@mountiny mountiny added External Added to denote the issue can be worked on by a contributor and removed DeployBlockerCash This issue or pull request should block deployment Hourly KSv2 labels Sep 3, 2024
Copy link

melvin-bot bot commented Sep 3, 2024

Job added to Upwork: https://www.upwork.com/jobs/~01263340c168620229

@melvin-bot melvin-bot bot changed the title Contact methods - Not here page opens after adding existing contact and dismissing error [$250] Contact methods - Not here page opens after adding existing contact and dismissing error Sep 3, 2024
@melvin-bot melvin-bot bot added the Help Wanted Apply this label when an issue is open to proposals by contributors label Sep 3, 2024
Copy link

melvin-bot bot commented Sep 3, 2024

Current assignees @hungvu193 and @getusha are eligible for the External assigner, not assigning anyone new.

@melvin-bot melvin-bot bot added the Daily KSv2 label Sep 3, 2024
@mountiny mountiny removed the Help Wanted Apply this label when an issue is open to proposals by contributors label Sep 3, 2024
@melvin-bot melvin-bot bot added Reviewing Has a PR in review Weekly KSv2 and removed Daily KSv2 labels Sep 3, 2024
@getusha
Copy link
Contributor

getusha commented Sep 3, 2024

@mountiny @hungvu193 PR is ready for both issues

@mountiny mountiny changed the title [$250] Contact methods - Not here page opens after adding existing contact and dismissing error Contact methods - Not here page opens after adding existing contact and dismissing error Sep 3, 2024
@mountiny
Copy link
Contributor

mountiny commented Sep 3, 2024

No extra payments will be required for this one as we will handle it bundled up with the original PR

@isabelastisser
Copy link
Contributor

@mountiny, can I close this one?

@mountiny
Copy link
Contributor

I think so yes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something is broken. Auto assigns a BugZero manager. Engineering External Added to denote the issue can be worked on by a contributor Reviewing Has a PR in review Weekly KSv2
Projects
None yet
Development

No branches or pull requests

8 participants