-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
[Chat] [IOU] Create IOU Amount step #1691
Comments
Hi, I would like to work on this issue. Here is my proposal:
I will modify I have a question. What kind of UI do you want for Web and Desktop?
I will add these props here:
I will add these callback functions below this line:
I will add
Function implementation in
I will update the
I will pass another boolean flag for validity of amount to enable/disable
I will use |
Hey @tugbadogan, thanks again for the proposal! I've assigned the issue to you. Please feel free to reach out if you have any questions or concerns regarding the specification. |
As you requested I need to implement BigNumberPad for native apps and mobile web. I found how to design separate design for native app and web/desktop. But I'm not sure how to handle Web and Mobile Web difference without adding platform specific code in the module. Do you have any example about that? In web and desktop, amount text field is going to be an input field, isn't it? |
Hi @tugbadogan, what I would recommend in this case is to differentiate by screen width instead of platform. So you can wrap your component with the |
Hey @tugbadogan - Totally agree with @roryabraham here. Also here is a good example of this: https://github.com/Expensify/Expensify.cash/blob/aec6a4508b31f70c2e3c7874fd28896132466485/src/pages/signin/LoginForm/index.js#L10-L14 To answer your second question:
Yes - But @Julesssss please confirm! |
Hi @tugbadogan. Yeah, Web/Desktop will function as an input field. But as you can see in the mockup we would like the input background colour to match the page background colour. Thanks @roryabraham, @AndrewGable! |
Thank you for your help @roryabraham @AndrewGable @Julesssss, I've created the PR now. However, IOU modal view has some problems on master branch and I created an issue for those problems #1769 I tested my code with a previous version and it's working as expected. I uploaded screenshots and screen recordings to the PR. |
Hi @tugbadogan looks like a regression was introduced here: The line introduced in your code here seems to be the cause: Could you create a follow-up PR to address this? Let me know if you have any questions about this! RegressionPlatform - version: web - v1.0.2-91 Action Performed (reproducible steps):
Expected Result: The cursor stays where you stopped Actual Result: The cursor jumps forward to the end of the text Notes/Photos/Videos: |
Hi @johnmlee101, Thanks for flagging this issue. In order to resolve this issue, I'm planning to add a prop to I will send the PR soon. |
Hi @johnmlee101, I fixed the problem and created a PR. |
If you haven’t already, check out our contributing guidelines for onboarding!
This issue builds on top of the existing IOU Modal, which was implemented in this PR. The
IOUAMount
step component has already been created (original PR) and functions as a controlled component (IOUModal manages its state).The page allows users to select the amount they are requesting from a single user or group. To open the Modal, you can navigate to
localhost:8080/#/iou/request
ANDlocalhost:8080/#/iou/split
.Mobile:
Web/Desktop:
Deliverables:
selectedCurrency
andamount
should be added asIOUAmount
props.numberPressed
,backspacePressed
, ¤cySelected
), similar to the already existingonStepComplete
prop.selectedCurrency
(in code form: 'GBP, USD, EUR') andamount
within IOUModal's state, pass this down to the IOUAMount Component via the props you just added.currencySelected
function prop is called, update the currency code within IOUModal state (for now, this prop function won't be called -- but please test it with a currency code, like USD, EUR, AUD).Job posting: https://www.upwork.com/jobs/~01e9946a32707d6c32
Edit: Added Web/Desktop mock
The text was updated successfully, but these errors were encountered: