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

Save VBA flow information as users type #5114

Merged
merged 49 commits into from
Sep 9, 2021
Merged

Conversation

luacmartins
Copy link
Contributor

@luacmartins luacmartins commented Sep 7, 2021

Users should have their VBA flow information saved as they type, so if they accidentally closed the pane or refresh the page, the data should show up again.

cc @marcaaron

Fixed Issues

$ #5035

Tests

  1. Login to NewDot with an account that has a Workspace, but no bank account setup.
  2. Navigate to Settings > Select your Workspace > Get Started
  3. Go through the flow typing in your information. You can use this SO to get to the later steps.
  4. Close the right pane or refresh the page periodically (before clicking on Save & Continue in each step).
  5. Verify that information is not lost and all data is still there when you reopen the flow.

Testing potential Onyx race condition

  1. When you get to the Beneficial owners step, check Somebody else owns more than 25% of <companyName>. Add 3 additional beneficial owners.
  2. Open the browser console, select the Application tab and search for the reimbursementAccountDraft key under localStorage.
  3. Back in the app, click Remove this beneficial owner and verify that the beneficialOwners array display the 2 remaining beneficialOwners and not null. Repeat the step until you are left with just one owner left.

QA Steps

Steps above.

Tested On

  • Web
  • Mobile Web
  • Desktop
  • iOS
  • Android

Screenshots

Web

web.mov

Mobile Web

mWeb.mov

Desktop

desktop.mov

iOS

ios.mov

Android

android.mov

@luacmartins luacmartins requested a review from a team September 7, 2021 00:03
@luacmartins luacmartins self-assigned this Sep 7, 2021
@MelvinBot MelvinBot requested review from Jag96 and removed request for a team September 7, 2021 00:04
src/libs/getDefaultStateForField.js Outdated Show resolved Hide resolved
}));
this.setState((prevState) => {
this.debouncedUpdateReimbursementAccountDraft({hasAcceptedTerms: !prevState.hasAcceptedTerms});
return {hasAcceptedTerms: !prevState.hasAcceptedTerms};
Copy link
Contributor

Choose a reason for hiding this comment

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

Looks like this is still duplicated

Copy link
Contributor

@marcaaron marcaaron left a comment

Choose a reason for hiding this comment

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

Looking good - caught one more thing.

src/libs/getDefaultStateForField.js Outdated Show resolved Hide resolved
@luacmartins
Copy link
Contributor Author

Updated!

@Jag96
Copy link
Contributor

Jag96 commented Sep 9, 2021

@luacmartins conflicts, will review once resolved!

@luacmartins
Copy link
Contributor Author

Updated!

Jag96
Jag96 previously approved these changes Sep 9, 2021
Copy link
Contributor

@Jag96 Jag96 left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Contributor

@marcaaron marcaaron left a comment

Choose a reason for hiding this comment

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

This LGTM but I still need to test. I also had one more small comment.

src/pages/ReimbursementAccount/BeneficialOwnersStep.js Outdated Show resolved Hide resolved
@luacmartins
Copy link
Contributor Author

Updated!

@marcaaron marcaaron self-requested a review September 9, 2021 23:50
Copy link
Contributor

@marcaaron marcaaron left a comment

Choose a reason for hiding this comment

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

LGTM and works great. Nice job!

@marcaaron marcaaron merged commit 82e1b44 into main Sep 9, 2021
@marcaaron marcaaron deleted the cmartins-saveVBODraft branch September 9, 2021 23:51
@OSBotify
Copy link
Contributor

OSBotify commented Sep 9, 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.

@luacmartins
Copy link
Contributor Author

Thanks for all the feedback @Jag96 and @marcaaron! I really appreciate it!

@OSBotify
Copy link
Contributor

🚀 Deployed to staging by @marcaaron in version: 1.0.96-1 🚀

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

@OSBotify
Copy link
Contributor

🚀 Deployed to production by @francoisl in version: 1.0.97-0 🚀

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