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

Move ExistingOwners view into new component. Reuse confirm modal. #5038

Merged
merged 10 commits into from
Sep 8, 2021

Conversation

marcaaron
Copy link
Contributor

@marcaaron marcaaron commented Sep 2, 2021

cc @aldo-expensify @jasperhuangg

Details

Just moving some things around so that our error handling is easier to follow.

Fixed Issues

$ https://github.com/Expensify/Expensify/issues/176349

Tests

  1. Follow steps here to get the modal to appear https://stackoverflow.com/c/expensify/questions/10740/10741
  2. Verified this modal appears
    2021-09-02_13-18-33
  3. Pressed "Got it" and verified it went away
  4. Make it appear again
  5. Press the link and verify the modal closes and we navigate to the "Company Information" step.

QA Steps

  1. Create a policy and add User A and User B
  2. Create bank account in open state with User A (via OldDot or via the /bank-account flow in NewDot)
  3. Attempt to create bank account as User B in NewDot via the /bank-account flow
  4. Verified this modal appears
  5. Press "Got it" and verify it goes away
  6. Make it appear again (add the same account)
  7. Press the hyperlink and verify the modal closes and we navigate to the "Company Information" step.

Note: This cannot be QA'd on native platforms yet as the Plaid staging credentials do not work in NewDot yet.

Tested On

  • Web
  • Mobile Web
  • Desktop
  • iOS
  • Android

Screenshots

Web

2021-09-07_12-07-41

Mobile Web

Desktop

iOS

Android

2021-09-07_12-09-11

@marcaaron marcaaron requested a review from a team as a code owner September 2, 2021 23:19
@marcaaron marcaaron self-assigned this Sep 2, 2021
@MelvinBot MelvinBot requested review from joelbettner and removed request for a team September 2, 2021 23:20
@marcaaron
Copy link
Contributor Author

@joelbettner do you happen to know much about what an "existing copy" is or when we'd show this?
I couldn't figure out how to surface this error organically.

aldo-expensify
aldo-expensify previously approved these changes Sep 3, 2021
Copy link
Contributor

@aldo-expensify aldo-expensify left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good.

Found a problem, see comment below.

@aldo-expensify aldo-expensify dismissed their stale review September 4, 2021 00:00

Double checking something...

@aldo-expensify
Copy link
Contributor

aldo-expensify commented Sep 4, 2021

If you click the blue link in the modal, it takes you to the Company step, but the modal stays there and the error changes to the generic error -> the modal should hide. If you try this in the main branch, it takes you to the Company step, but the modal leaves.

Screen.Recording.2021-09-03.at.4.54.52.PM.mov

On a side note and out of the scope of this PR: the blue link is taking the user to the company step, is this correct?

@marcaaron
Copy link
Contributor Author

On a side note and out of the scope of this PR: the blue link is taking the user to the company step, is this correct?

I'll look into this today thanks!

@marcaaron
Copy link
Contributor Author

the blue link is taking the user to the company step, is this correct

AFAIK this is correct. We handle the link the same way in OldDot.

@marcaaron
Copy link
Contributor Author

OK, fixed the issue with the modal not closing. Still unsure exactly how to trigger the existing copies warning in staging.

@marcaaron
Copy link
Contributor Author

Ok figured this out and added a SO post here

Copy link
Contributor

@aldo-expensify aldo-expensify left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. Tested in Android and web.

@aldo-expensify aldo-expensify merged commit 93ac5d7 into main Sep 8, 2021
@aldo-expensify aldo-expensify deleted the marcaaron-existingOwnersRefactor branch September 8, 2021 00:39
@OSBotify
Copy link
Contributor

OSBotify commented Sep 8, 2021

✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release.

@OSBotify
Copy link
Contributor

OSBotify commented Sep 8, 2021

🚀 Deployed to staging by @aldo-expensify in version: 1.0.94-2 🚀

platform result
🤖 android 🤖 success ✅
🖥 desktop 🖥 success ✅
🍎 iOS 🍎 success ✅
🕸 web 🕸 success ✅

@isagoico
Copy link

isagoico commented Sep 9, 2021

@marcaaron Hello! This PR was a pass in web. We were unable to verify this on Android because of this issue #5075. Are we good to check it off?

@marcaaron
Copy link
Contributor Author

I think that's fine I left a "note" in the description about this.

@OSBotify
Copy link
Contributor

OSBotify commented Sep 9, 2021

🚀 Deployed to production by @yuwenmemon in version: 1.0.95-1 🚀

platform result
🤖 android 🤖 success ✅
🖥 desktop 🖥 success ✅
🍎 iOS 🍎 success ✅
🕸 web 🕸 success ✅

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants