fix: Refactor completeOnboarding to use a parameter object.#58532
fix: Refactor completeOnboarding to use a parameter object.#58532neil-marcellini merged 6 commits intoExpensify:mainfrom
Conversation
Signed-off-by: krishna2323 <belivethatkg@gmail.com>
Signed-off-by: krishna2323 <belivethatkg@gmail.com>
|
@mananjadhav Please copy/paste the Reviewer Checklist from here into a new comment on this PR and complete it. If you have the K2 extension, you can simply click: [this button] |
@Krishna2323 Can provide give 1-2 examples here? |
|
@mananjadhav, updated. |
src/libs/actions/Report.ts
Outdated
| data: ValueOf<typeof CONST.ONBOARDING_MESSAGES>, | ||
| function completeOnboarding({ | ||
| engagementChoice, | ||
| data, |
There was a problem hiding this comment.
I know this is an existing param, but now that it's a named arg, let's use a better name instead of data. I think we can call it onboardingMessage.
mananjadhav
left a comment
There was a problem hiding this comment.
One small comment. Rest looks good. I'll start with the QA.
Signed-off-by: krishna2323 <belivethatkg@gmail.com>
Reviewer Checklist
Screenshots/VideosAndroid: Nativeandroid-complete-onboarding-refactor.movAndroid: mWeb Chromemweb-chrome-complete-onboarding-refactor.moviOS: Nativeios-complete-onboarding-refactor.moviOS: mWeb Safarimweb-safari-complete-onboarding-refactor.movMacOS: Chrome / Safariweb-completing-onboarding-refactor.movweb-onboarding-tasks.movMacOS: Desktopdesktop-completing-onboarding-refactor.mov |
mananjadhav
left a comment
There was a problem hiding this comment.
The not here links on the iOS is because of different ports. I've added a second recording for the onboarding tasks in the Web section.
neil-marcellini
left a comment
There was a problem hiding this comment.
Great works, thanks. You can address the NAB in a follow up if you like. I'm ok with it either way.
| }: { | ||
| engagementChoice: OnboardingPurpose; | ||
| onboardingMessage: ValueOf<typeof CONST.ONBOARDING_MESSAGES>; | ||
| firstName?: string; | ||
| lastName?: string; | ||
| adminsChatReportID?: string; | ||
| onboardingPolicyID?: string; | ||
| paymentSelected?: string; | ||
| companySize?: OnboardingCompanySize; | ||
| userReportedIntegration?: OnboardingAccounting; | ||
| wasInvited?: boolean; | ||
| }) { |
There was a problem hiding this comment.
NAB: I prefer declaring the type separately and naming it.
| data: ValueOf<typeof CONST.ONBOARDING_MESSAGES>, | ||
| function completeOnboarding({ | ||
| engagementChoice, | ||
| onboardingMessage, |
There was a problem hiding this comment.
Thanks, that's a much better name than data 😄
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
|
🚀 Deployed to staging by https://github.com/neil-marcellini in version: 9.1.22-0 🚀
|
|
🚀 Deployed to production by https://github.com/grgia in version: 9.1.22-10 🚀
|
Explanation of Change
Fixed Issues
$ #57259
PROPOSAL: #57259 (comment)
Tests
Manage my team's expenses>Any team size> Verify you are taken tostaging.expensify.com> Click browser back button > Verify a workspace is created and there are several tasks likeSet up categories,Set up tags,Add expense approvals&Invite your team.Offline tests
QA Steps
Manage my team's expenses>Any team size> Verify you are taken tostaging.expensify.com> Click browser back button > Verify a workspace is created and there are several tasks likeSet up categories,Set up tags,Add expense approvals&Invite your team.PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)src/languages/*files and using the translation methodSTYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG))Avataris modified, I verified thatAvataris working as expected in all cases)Designlabel and/or tagged@Expensify/designso the design team can review the changes.ScrollViewcomponent to make it scrollable when more elements are added to the page.mainbranch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTeststeps.Screenshots/Videos
Android: Native
android_native.mp4
Android: mWeb Chrome
android_chrome.mp4
iOS: Native
ios_native.mp4
iOS: mWeb Safari
ios_safari.mp4
MacOS: Chrome / Safari
web_chrome.mp4
MacOS: Desktop
desktop_app.mp4