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

[Fix]: Single category and tag isn't auto selected when requesting money #41651

Closed GandalfGwaihir closed 5 days ago

GandalfGwaihir commented 1 week ago

Details

Tags and Categories weren't auto selected when requesting money if only 1 item from each were present, this PR fixed that issue and auto selects tag and category if only one of them is present.

Fixed Issues

$ https://github.com/Expensify/App/issues/40591 PROPOSAL: https://github.com/Expensify/App/issues/40591#issuecomment-2067416986

Tests

Same as QA

Offline tests

Same as QA

QA Steps

  1. Open app and go to Profile settings > Workspaces > Create a new workspace
  2. From LHN open More features and enable tags and categories
  3. From LHN open Tags > add new tag
  4. from Tags header click on "settings" and enable "Members must tag all spend"
  5. From LHN open Categories and disable all categories and keep only one category enabled
  6. from Categories header click on "settings" and then enable "Members must categorize all spend"
  7. Navigate to FAB > Submit expense > Manual > enter amount and click next
  8. Select the workspace chat which you just created
  9. Verify that category and tags are not under "Show more" section and are auto selected with the tag and category you created above.

PR Author Checklist

Screenshots/Videos

Android: Native https://github.com/Expensify/App/assets/110545952/3993be25-1c3f-4478-98b9-8365b7c00044
Android: mWeb Chrome https://github.com/Expensify/App/assets/110545952/0fe74efe-676e-45e9-882a-04489e99f98c
iOS: Native https://github.com/Expensify/App/assets/110545952/f70c864c-c12a-4aaa-a50f-5549caf3ecff
iOS: mWeb Safari https://github.com/Expensify/App/assets/110545952/2ff9c606-5a1e-4b4f-8c42-a34f26022ce6
MacOS: Chrome / Safari https://github.com/Expensify/App/assets/41129870/e017256e-d135-40bb-b006-263c52c4cd3f
MacOS: Desktop https://github.com/Expensify/App/assets/110545952/6035fb45-77cf-470a-ad79-c46be68dc247
melvin-bot[bot] commented 1 week ago

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

GandalfGwaihir commented 1 week ago

friendly bump @ahmedGaber93 for review

ahmedGaber93 commented 1 week ago

@GandalfGwaihir Reviewing today

ahmedGaber93 commented 1 week ago

Reviewer Checklist

Screenshots/Videos

Android: Native https://github.com/Expensify/App/assets/41129870/5b35fd1c-508f-4076-814c-62c3c9fe40ee
Android: mWeb Chrome https://github.com/Expensify/App/assets/41129870/ee0ebc5d-f134-46c2-9984-a709ed43887c
iOS: Native https://github.com/Expensify/App/assets/41129870/0d7287ac-432f-4eb9-b2d8-608deceeea9e
iOS: mWeb Safari https://github.com/Expensify/App/assets/41129870/3ee74a8a-c208-423a-a61d-7b4abfdec69b
MacOS: Chrome / Safari https://github.com/Expensify/App/assets/41129870/c84c41fb-2ed5-48d7-8659-35297a62399f
MacOS: Desktop https://github.com/Expensify/App/assets/41129870/12985ad4-b07c-4ab8-964e-85e0822e2fbc
ahmedGaber93 commented 1 week ago

@GandalfGwaihir please update tests step with the following

  1. Open app and go to Profile settings > Workspaces > Create a new workspace
  2. From LHN open More features and enable tags and categories
  3. From LHN open Tags > add new tag
  4. from Tags header click on "settings" and enable "Members must tag all spend"
  5. From LHN open Categories and disable all categories and keep only one category enabled
  6. from Categories header click on "settings" and then enable "Members must categorize all spend"
  7. Navigate to FAB > Submit expense > Manual > enter amount and click next
  8. Select the workspace chat which you just created
  9. Verify that category and tags are not under "Show more" section and are auto selected with the tag and category you created above.

Also use at latest on video has all steps above, you can use my video in web https://github.com/Expensify/App/assets/41129870/e017256e-d135-40bb-b006-263c52c4cd3f

GandalfGwaihir commented 1 week ago

Have updated the QA steps, please have a look again @ahmedGaber93

ahmedGaber93 commented 1 week ago

Also use at latest on video has all steps above, you can use my video in web https://github.com/Expensify/App/assets/41129870/e017256e-d135-40bb-b006-263c52c4cd3f

@GandalfGwaihir just update web video
with the link above or record your own. That can help QA to understand the steps well!

GandalfGwaihir commented 1 week ago

Yeah did that, thanks :)

OSBotify commented 3 days ago

🚀 Deployed to staging by https://github.com/cristipaval in version: 1.4.74-0 🚀

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