Add PlusMinus icon and allow negative values in MoneyRequestAmountInput#56092
Add PlusMinus icon and allow negative values in MoneyRequestAmountInput#56092nkuoch merged 94 commits intoExpensify:mainfrom
Conversation
…n MoneyRequestAmountForm
…nd simplify state updates
… and related functions
…r improved transaction handling
…text in MoneyRequestAmountForm
… currency flipping and improve amount validation
…to use updated utility functions and improve code clarity
… getTransactionDetails function
|
Hey! I see that you made changes to our Form component. Make sure to update the docs in FORMS.md accordingly. Cheers! |
|
@ZhenjaHorbach 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] |
[CP Stag]Revert "Merge pull request #56092 from callstack-internal/feature/all…
* main: (586 commits) Update Mobile-Expensify submodule version to 9.1.71-4 Update version to 9.1.71-4 rename variable Update redirects.csv Update Mobile-Expensify submodule version to 9.1.71-3 Update version to 9.1.71-3 Update Mobile-Expensify submodule version to 9.1.71-2 Update version to 9.1.71-2 Revert "Merge pull request #56092 from callstack-internal/feature/allow-negative" fix: start test drive close the modal and do nothing Update src/hooks/useLoadingBarVisibility.ts fix can't scroll accounting selection ts same on ios Make previous rollout adjustment non-critical add fallbakc Update Mobile-Expensify submodule version to 9.1.71-1 Update version to 9.1.71-1 more memory for desktop build Update Mobile-Expensify submodule version to 9.1.71-0 ...
…eature/allow-negative" This reverts commit e3255ba.
|
🚀 Deployed to production by https://github.com/chiragsalian in version: 9.1.71-11 🚀
|
|
🚀 Deployed to staging by https://github.com/nkuoch in version: 9.1.72-0 🚀
|
1 similar comment
|
🚀 Deployed to staging by https://github.com/nkuoch in version: 9.1.72-0 🚀
|
|
🚀 Deployed to production by https://github.com/puneetlath in version: 9.1.72-10 🚀
|
Co-authored-by: nkuoch <2463975+nkuoch@users.noreply.github.com>
…6092 Co-authored-by: nkuoch <2463975+nkuoch@users.noreply.github.com>
…ive-2 Reapply "Merge pull request #56092 from callstack-internal/feature/al…
|
🚀 Deployed to staging by https://github.com/nkuoch in version: 9.2.28-0 🚀
|
|
🚀 Deployed to production by https://github.com/lakchote in version: 9.2.28-5 🚀
|
Explanation of Change
Fixed Issues
$ #53441
PROPOSAL:
Tests
📱 Mobile
1️⃣ Verify negative expense cannot be created without a workspace
(account without workspaces needed)
2️⃣ Verify negative value functionality
(workspace required before running this test)
3️⃣ Verify negative value option is hidden for DM
4️⃣ Verify negative value option is hidden for Split Bill
💻 Desktop
-.1️⃣ Verify negative expense cannot be created without a workspace
(account without workspaces needed)
-followed by a number.2️⃣ Verify negative value functionality
(workspace required before running this test)
-followed by a number.-and submit.3️⃣ Verify negative value option is hidden for DM
-.4️⃣ Verify negative value option is hidden for Split Bill
Start creating a Split Bill.
Attempt to enter
-in the amount field.Verify that:
Complete creation of the Split Bill.
Open the created Split Bill.
Update the amount (without minus).
Verify that the amount updated correctly and the history comment is accurate.
Verify that no errors appear in the JS console
Offline tests
QA Steps
// TODO: These must be filled out, or the issue title must include "[No QA]."
Same as Tests
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-converted.webm
Android: mWeb Chrome
android-web-converted.webm
iOS: Native
ios-native-converted.mp4
iOS: mWeb Safari
ios-web-converted.mp4
MacOS: Chrome / Safari
mac-web-converted.mov
MacOS: Desktop
mac-native-converted.mov