Skip to content

Save VBA flow information as users type#5114

Merged
marcaaron merged 49 commits into
mainfrom
cmartins-saveVBODraft
Sep 9, 2021
Merged

Save VBA flow information as users type#5114
marcaaron merged 49 commits into
mainfrom
cmartins-saveVBODraft

Conversation

@luacmartins

@luacmartins luacmartins commented Sep 7, 2021

Copy link
Copy Markdown
Contributor

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
@luacmartins luacmartins requested a review from Jag96 September 8, 2021 21:26
Comment thread src/libs/getDefaultStateForField.js
}));
this.setState((prevState) => {
this.debouncedUpdateReimbursementAccountDraft({hasAcceptedTerms: !prevState.hasAcceptedTerms});
return {hasAcceptedTerms: !prevState.hasAcceptedTerms};

Copy link
Copy Markdown
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

@marcaaron marcaaron left a comment

Copy link
Copy Markdown
Contributor

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.

Comment thread src/libs/getDefaultStateForField.js Outdated
@luacmartins

Copy link
Copy Markdown
Contributor Author

Updated!

@Jag96

Jag96 commented Sep 9, 2021

Copy link
Copy Markdown
Contributor

@luacmartins conflicts, will review once resolved!

@luacmartins

Copy link
Copy Markdown
Contributor Author

Updated!

Jag96
Jag96 previously approved these changes Sep 9, 2021

@Jag96 Jag96 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM

@marcaaron marcaaron left a comment

Copy link
Copy Markdown
Contributor

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.

Comment thread src/pages/ReimbursementAccount/BeneficialOwnersStep.js Outdated
@luacmartins

Copy link
Copy Markdown
Contributor Author

Updated!

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

@marcaaron marcaaron left a comment

Copy link
Copy Markdown
Contributor

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

OSBotify commented Sep 9, 2021

Copy link
Copy Markdown
Contributor

✋ 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
Copy Markdown
Contributor Author

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

@OSBotify

Copy link
Copy Markdown
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
Copy Markdown
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