Expensify / App

Welcome to New Expensify: a complete re-imagination of financial collaboration, centered around chat. Help us build the next generation of Expensify by sharing feedback and contributing to the code.
https://new.expensify.com
MIT License
2.99k stars 2.5k forks source link

Update onboarding flow #41593

Closed DylanDylann closed 2 weeks ago

DylanDylann commented 2 weeks ago

Details

Fixed Issues

$ https://github.com/Expensify/App/issues/41589 PROPOSAL: NA

Tests

Offline tests

QA Steps

  1. Sign up with a new account
  2. Click Manage my team's Expenses in the onboarding modal
  3. Verify that the next question you're asked is for your business name
  4. Enter your business name
  5. Verify that the next question you're asked is for your personal name
    • [x] Verify that no errors appear in the JS console

PR Author Checklist

Screenshots/Videos

Android: Native https://github.com/Expensify/App/assets/141406735/c4209d73-75ba-4d3c-9ff1-7fa512ba2195
Android: mWeb Chrome https://github.com/Expensify/App/assets/141406735/85438a2e-9fff-4996-8490-97ac900964fa
iOS: Native https://github.com/Expensify/App/assets/141406735/396fa5f5-30aa-479d-a0be-bc268199b792
iOS: mWeb Safari https://github.com/Expensify/App/assets/141406735/d6ba081b-8be5-4027-b26d-f168805e5464
MacOS: Chrome / Safari https://github.com/Expensify/App/assets/141406735/860d3aef-0774-4d71-86de-c4f1a83437ec
MacOS: Desktop https://github.com/Expensify/App/assets/141406735/cf202935-b1fd-4a4a-8fb4-c398de572526
melvin-bot[bot] commented 2 weeks ago

@ishpaul777 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]

ishpaul777 commented 2 weeks ago

Reviewer Checklist

Screenshots/Videos

Android: Native https://github.com/Expensify/App/assets/104348397/f74b4a6b-0fc1-4cc5-ab6f-eb1370394124
Android: mWeb Chrome https://github.com/Expensify/App/assets/104348397/a9d244dd-1d99-4afc-af25-69e1013e4553
iOS: Native https://github.com/Expensify/App/assets/104348397/f20a7c2e-2215-4f17-bcd1-7e55657bd24c
iOS: mWeb Safari https://github.com/Expensify/App/assets/104348397/bbb43f89-cf10-4d2e-a396-710cc2a636a2
MacOS: Chrome / Safari https://github.com/Expensify/App/assets/104348397/90166396-dded-4272-818a-1c817f79b3bd
MacOS: Desktop https://github.com/Expensify/App/assets/104348397/661630fb-7813-4ef3-956b-205f0198c16a
DylanDylann commented 2 weeks ago

@ishpaul777 Uploaded all videos. All yours

DylanDylann commented 2 weeks ago

Oh wait a minute, I need to update something

DylanDylann commented 2 weeks ago

@ishpaul777 Explain for new commit: The business name is only visible if the user select the Manage Team option

github-actions[bot] commented 2 weeks ago
:test_tube::test_tube: Use the links below to test this adhoc build on Android, iOS, Desktop, and Web. Happy testing! :test_tube::test_tube: Android :robot: iOS :apple:
https://ad-hoc-expensify-cash.s3.amazonaws.com/android/41593/index.html https://ad-hoc-expensify-cash.s3.amazonaws.com/ios/41593/index.html
Android iOS
Desktop :computer: Web :spider_web:
https://ad-hoc-expensify-cash.s3.amazonaws.com/desktop/41593/NewExpensify.dmg https://41593.pr-testing.expensify.com
Desktop Web

:eyes: View the workflow run that generated this build :eyes:

trjExpensify commented 2 weeks ago

Agreed with @ishpaul777, testing the adhoc build of this PR the CreateWorkspace command isn't fired at all:

https://github.com/Expensify/App/assets/16232057/d1d32d5b-8f2c-4417-b532-a4b55cc7cd14

We want CreateWorkspace to be triggered when they hit confirm on the "Where do you work?" page. Then we want the CompleteGuidedSetup command to be triggered when they confirm on the "What's your name?" page.

DylanDylann commented 2 weeks ago

@ishpaul777 Updated

trjExpensify commented 2 weeks ago

@DylanDylann can you record a quick video with the network tab open in the console with these latest changes? Thanks!

francoisl commented 2 weeks ago

Workspace is created at the right time for me (haven't reviewed the code in detail yet)

https://github.com/Expensify/App/assets/2229301/c4e8b713-6df1-4e57-a56e-e5f6e8e1a748

DylanDylann commented 2 weeks ago

@trjExpensify

https://github.com/Expensify/App/assets/141406735/cadbfeac-8c8b-462c-b458-c2417ee857b5

ishpaul777 commented 2 weeks ago

hey i just noticed we have to pass adminsChatReportID to Report.completeOnboarding in displayname page (where flow is completed)

DylanDylann commented 2 weeks ago

@ishpaul777 What do you think about creating a new field called ONBOARDING_ADMINS_CHAT_REPORT_ID like we did with ONBOARDING_PURPOSE_SELECTED?

ishpaul777 commented 2 weeks ago

as long as we clear it after its usage, i think it should be fine, cc @francoisl

francoisl commented 2 weeks ago

Yeah works for me 👍

DylanDylann commented 2 weeks ago

@ishpaul777 @francoisl Updated

OSBotify commented 2 weeks ago

:hand: 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 commented 1 week ago

🚀 Deployed to production by https://github.com/marcaaron in version: 1.4.71-6 🚀

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