-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Refactor IOUAmountPage #2203
Refactor IOUAmountPage #2203
Conversation
This change makes input entry smoother by preventing TextInput to update its own value
Couple of design comments:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like there are some conflicts
src/styles/styles.js
Outdated
function getHiddenElementOutsideOfWindow(windowWidth) { | ||
return { | ||
position: 'absolute', | ||
opacity: 0, | ||
left: windowWidth, | ||
}; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are there any alternatives to this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wanted to move this hidden element out of the screen so it doesn't block any visible component. Maybe we can try using z-index and move this component background.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd be interested in seeing if a negative z-index gives us a slightly simpler solution, but I don't think it should block the PR.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
there is also transform: translateX()
as an option
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I used transform solution to hide the element like this:
hiddenElementOutsideOfWindow: {
position: 'fixed',
top: 0,
left: 0,
opacity: 0,
transform: 'translateX(-100%)',
},
I updated IOU Amount color.
I'm already using |
Can you please fix the conflicts before I take another look at this? |
@tgolen |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Mostly looks good. Only have some small comments about naming conventions.
@tgolen I updated the PR. Can you review again? |
I believe this PR may have caused a regression related to many text inputs. |
The problem is that if we have no |
Thanks for the flag @marcaaron , creating a PR now. |
I don't think we're able to QA this PR since it requires changing some code. Can you guys assign someone to QA and let me know once it's done so we can check it off the list? Thanks in advance. CC @marcaaron @tgolen @Julesssss @ctkochan22 |
@isagoico Seems testable by using a deep link or entering url in web? Which code changes are you referring to? |
Oh idk why I thought there was a code change needed here 🤦 my apologies.
Can you share the deeplink or URL that we can use to test this? |
I believe |
It should work on all platforms except desktop I think? |
|
Split - Able to enter more than 8 decimals and LHN/conversation area is blankExpected ResultMake sure you can write only decimal number(max 6 digit and 2 decimal) to input field. Actual ResultAble to enter 3 decimal inputs Action performed
PlatformIssue is confirmed in: Android ✔️ Build version: 1.0.21-0 |
I think this test step is out of date and needed to be updated. |
Sorry, I forgot to update the test plan. Fixed it now. |
🚀 [Deployed](https://github.com/Expensify/Expensify.cash
|
@trjExpensify @Julesssss @tgolen
Details
Fixed Issues
Fixes #1691
Tests
Manually tested on all platforms.
QA Steps
Tested On
Screenshots
Web
Screen.Recording.2021-04-01.at.17.46.06.mov
Android
Screen.Recording.2021-04-01.at.17.44.41.mov