[Taxes] Change max tax value length#39037
Conversation
|
@MonilBhavsar 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] |
MonilBhavsar
left a comment
There was a problem hiding this comment.
From tests section, 1.12345 is a valid value on oldDot, then why not on newDot? cc @luacmartins
|
@MonilBhavsar that was discussed here. TLDR OldDot supports 16 digits, but that breaks the design in NewDot with an overflow, so we temporarily used 4 digits as a max. Feel free to update it to a higher limit if needed. |
MonilBhavsar
left a comment
There was a problem hiding this comment.
Okay, sounds good. We can increase if a user wants to more precise value
Reviewer Checklist
Screenshots/VideosAndroid: NativeAndroid: mWeb ChromeiOS: NativeiOS: mWeb SafariMacOS: Chrome / SafariMacOS: Desktop |
|
@MonilBhavsar looks like this was merged without a test passing. Please add a note explaining why this was done and remove the |
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
|
Tests were passing! |
|
🚀 Deployed to staging by https://github.com/MonilBhavsar in version: 1.4.58-0 🚀
|
|
🚀 Deployed to production by https://github.com/Beamanator in version: 1.4.58-8 🚀
|
Details
This PR modifies the maximum integer part digits of the tax value to 4.
Fixed Issues
$ #38733 (comment)
PROPOSAL: N/A
Tests
0000.1->0.10001.1234->1.1234111.1234-> error,1.12345-> shouldn't be possible to enter,1234.1234-> error,12345-> shouldn't be possible to enter.Offline tests
N/A
QA Steps
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)myBool && <MyComponent />.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.mov
Android: mWeb Chrome
mweb-android.mov
iOS: Native
ios.mp4
iOS: mWeb Safari
mweb-ios.mp4
MacOS: Chrome / Safari
web.mov
MacOS: Desktop
desktop.mov