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
3.47k stars 2.82k forks source link

[fix]: Allow 0 as input and show 2 decimal card limit in members detail page #48936

Closed allgandalf closed 1 month ago

allgandalf commented 1 month ago

Details

Fixed Issues

$ https://github.com/Expensify/App/issues/48904 $ https://github.com/Expensify/App/issues/48905 PROPOSAL: https://expensify.slack.com/archives/C036QM0SLJK/p1726000150137979?thread_ts=1725978148.730949&cid=C036QM0SLJK

Tests

  1. Add account to workspaceFeeds beta
  2. Sign in with test account
  3. Select Manage my team’s expenses
  4. Enter any business name / personal name
  5. Navigate to the workspace editor of the newly created workspace
  6. Navigate to More features tab
  7. Toggle on the feature
  8. Navigate to the Expensify Card page
  9. Select Issue new card
  10. Follow the steps for an OPEN bank account (option 3) of this SO, and exit the onboarding flow at the requestor information section Select Finish setup and continue through the VBBA flow Finish the setup process
  11. Issue an Expensify Card with >$0 limit
  12. Select the newly issued card in the cards list
  13. Change the limit to $0
  14. Verify that you see a modal with the following copy:

Header: “change card limit” Body: “If you change this card’s limit to $[new limit], new transactions will be declined until next month.” Buttons: “Change limit” and “Cancel”


  1. Add account to workspaceFeeds beta
  2. Sign in with test account
  3. Select Manage my team’s expenses
  4. Enter any business name / personal name
  5. Navigate to the workspace editor of the newly created workspace
  6. Navigate to More features tab
  7. Toggle on the feature
  8. Navigate to the Expensify Card page
  9. Select Issue new card, give the user a $2 limit
  10. Follow the steps for an OPEN bank account (option 3) of this SO
  11. Finish the setup process
  12. Navigate to members page
  13. Select the member that was assigned a card
  14. Verify the limit is showing with 2 decimals

Offline tests

N/A

QA Steps

Same as tests

PR Author Checklist

Screenshots/Videos

Android: Native
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari Screenshot 2024-09-11 at 2 21 43 AM Screenshot 2024-09-11 at 2 21 33 AM
MacOS: Chrome / Safari Screenshot 2024-09-11 at 2 12 56 AM Screenshot 2024-09-11 at 2 12 47 AM
MacOS: Desktop Screenshot 2024-09-11 at 2 17 24 AM Screenshot 2024-09-11 at 2 17 33 AM
melvin-bot[bot] commented 1 month ago

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

github-actions[bot] commented 1 month 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/48936/index.html https://ad-hoc-expensify-cash.s3.amazonaws.com/ios/48936/index.html
Android iOS
Desktop :computer: Web :spider_web:
https://ad-hoc-expensify-cash.s3.amazonaws.com/desktop/48936/NewExpensify.dmg https://48936.pr-testing.expensify.com
Desktop Web

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

mountiny commented 1 month ago

Reviewer Checklist

Screenshots/Videos

Android: Native
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari
MacOS: Desktop
OSBotify commented 1 month 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.