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

feat: create workspace at the end of the actionable whisper #41465

Closed allroundexperts closed 1 week ago

allroundexperts commented 2 weeks ago

Details

Fixed Issues

$ https://github.com/Expensify/App/issues/40668 PROPOSAL: N/A

Tests

  1. Create a new account and login
  2. Click on the Fab, then track expense and create a track expense request
  3. Actionable whispers should appear in personal chat
  4. Click on the Categorize option.
  5. Verify that an option to select a category appears and selecting it creates a request successfully.
  6. Verify that a new workspace gets created ONLY once the request is submitted.
  7. Repeat steps 1-3, and click on the Share with accountant whisper
  8. Verify that you are redirected to the request confirmation page and upon confirmation, you're able to see an invite members page.

Offline tests

N/A

QA Steps

  1. Create a new account and login
  2. Click on the Fab, then track expense and create a track expense request
  3. Actionable whispers should appear in personal chat
  4. Click on the Categorize option.
  5. Verify that an option to select a category appears and selecting it creates a request successfully.
  6. Verify that a new workspace gets created ONLY once the request is submitted.
  7. Repeat steps 1-3, and click on the Share with accountant whisper
  8. Verify that you are redirected to the request confirmation page and upon confirmation, you're able to see an invite members page.

PR Author Checklist

Screenshots/Videos

Android: Native https://github.com/Expensify/App/assets/30054992/dd74b55d-c4cb-40e4-b6cc-a6b57bc3507f
Android: mWeb Chrome https://github.com/Expensify/App/assets/30054992/df070fa1-2322-4b3a-ba07-423b2b066032
iOS: Native https://github.com/Expensify/App/assets/30054992/ed86faea-290f-4a4d-bfe4-b46d05b210e2
iOS: mWeb Safari https://github.com/Expensify/App/assets/30054992/5a2160a8-47e9-48a6-a79c-92ee93ab6660
MacOS: Chrome / Safari https://github.com/Expensify/App/assets/30054992/896bcf4f-1a01-42a4-a131-0f7a6c45c40a
MacOS: Desktop https://github.com/Expensify/App/assets/30054992/279a6ddb-a7f4-427a-ba2f-fd7fc6c9c159
melvin-bot[bot] commented 2 weeks ago

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

shubham1206agra commented 2 weeks ago

https://github.com/Expensify/App/assets/58412969/7b38e36a-99bf-4b49-b246-cb6557fc6f78

@allroundexperts 2 things I noticed is

  1. If you try to open the categorize option again, it will not work correctly.
  2. There should be no call to OpenDraftWorkspaceRequest since it breaks our 1:1:1 philosophy.
allroundexperts commented 2 weeks ago

Fixed both @shubham1206agra!

shubham1206agra commented 2 weeks ago

Reviewer Checklist

Screenshots/Videos

Android: Native
Android: mWeb Chrome https://github.com/Expensify/App/assets/58412969/9aaa7a86-bdb2-4df6-9989-33a75c4031c4
iOS: Native https://github.com/Expensify/App/assets/58412969/6daf9032-35d8-49cf-94bf-f78cb8d8c9c0
iOS: mWeb Safari https://github.com/Expensify/App/assets/58412969/f4d38584-3a58-4243-b2c8-c9b4c412c6d7
MacOS: Chrome / Safari https://github.com/Expensify/App/assets/58412969/9e7ef00f-600f-413a-90cb-e4f4722b7b29
MacOS: Desktop https://github.com/Expensify/App/assets/58412969/52abe44a-1945-4609-944e-2a2c124f4ea5
shubham1206agra commented 1 week ago

@allroundexperts Can you fix the OpenDraftWorkspaceRequest issue so I can approve this PR?

allroundexperts commented 1 week ago

Sure, I'll do that today.

allroundexperts commented 1 week ago

@shubham1206agra Added the condition you requested.

OSBotify commented 1 week 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 ✅