-
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
Added ability to modify IOU Amount #7433
Conversation
@rushatgabhane I do not have access to an iOS device rn, So I couldn't test it there.I hope you can verify if it works :D |
@sig5 The cursor position isn't being updated on iOS, can you find a fix for that? android is working tho |
Hi folks, sorry for the delay. I have been trying to find out the reason for this erratic behavior on iOS. I will list down the approaches and issues with them down below:
I am trying to add find any more suitable solution if I can. Currently, the two available approaches work exclusively on iOS and Android respectively. |
@sig5 let me know if you have any updates, thanks. |
Hi guys,
The issue @rushatgabhane mentioned in the previous comment was faced here too: #6876 (comment). |
@sig5 sorry, will get back to you tomorrow. |
@sig5 thanks for your effort, and attaching some snack links. Although, a video for this repo would be preferred next time.
Can you help me with a case where this is applicable to the issue or anytime in future?
Do you think direct manipulation of value using setNativeProps will help? |
Hi @rushatgabhane ,
I added snack links because this seems like a react native issue and wanted to demonstrate the same. :D will take care of it from now on.
This issue doesn't concern us as of now, but I have mentioned it if we come across it in the future. The behavior of the selection prop is unexpected in the other cases too (https://snack.expo.dev/@sig5/add0b7).And these don't even consider block delete/update yet. Screencast.from.04-02-22.07-23-13.AM.IST.movScreencast.from.04-02-22.07-24-02.AM.IST.mov
I have tried to do that. But that doesn't help. |
Okay, I see what you mean.
I'd like us to set selection using native props as it's faster but we can't do that for iOS yet. Could you also link/create a relevant react-native issue? |
Yes, that will be ideal.
Sure I will do that. |
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.
@sig5 please merge main
from upstream into your branch, and re-test all platforms because there have been many changes to TextInput
. Let's also add screenshots for Safari
@sig5 how's it looking? |
Hey there @sig5 👋 , so any update here?
We'll give you this week to provide an update but if there is no update we'll have to consider the PR as abandoned and we won't be able to pay you for your work even if the remaining work is minimal. So anyway, if possible we're hoping you would still continue the task here since the only thing pending at this time is this comment for you to address. You've done good work here so it would definitely be a shame if this was considered abandoned. |
Hi @chiragsalian , |
Sure thank you for your update. Yes your plan sounds find to me. As for the concern about merge conflicts arising due to refactors elsewhere, thats a valid concern. Something that could help is to work fast to get close to the end and then block off time by us the reviewers so that we can work fast in that timeframe to review multiple times to get this PR out the door 🙂 The reason i say this is because there are tons of people working on this repo so the more days we wait for an update the more conflicts will arise so it'll be easier to go faster. Let me know if that helps. |
That sounds good to me! |
I have made a few changes that were an issue in the previous PR and merged main. The current PR tests well for me. The changes are merely modifications to the previous PR as per the modifications in main. |
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.
@sig5 bug: copy pasting amount doesn't work on iOS - Safari.
Screen.Recording.2022-03-26.at.9.27.14.AM.mov
Hi @rushatgabhane, iOS mWeb seems to natively append a space before the pasted text. I have added a replace call using regex for tackling the issue. |
Thanks @sig5, could please add the copy paste thing in QA steps.
And also please overexplain the QA steps so that someone unfamiliar with the issue can also test the PR, for all cases. |
Done! @rushatgabhane |
@sig5 kindly add the PR checklist to your post (it didn't exist when your PR was created) |
Done! @rushatgabhane |
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.
@sig5 the cursor position is wrong when copy pasting in Android.
@sig5 any updates? how's it looking? |
Hi, I have been looking at this issue for a while. So this caret positioning seems to be off on android and iOS- Safari mWeb. But since the same code works well on all platforms that use This bug appears in the following cases
I have been trying to find the cause but am unable to find the exact cause, so please let me know the next steps. |
This comment was marked as outdated.
This comment was marked as outdated.
@sig5 cursor position after pasting in compose box is correct on all platforms. |
@sig5 / @chiragsalian this PR can be closed as it's no longer being worked on. |
Details
The NumberPad was missing handling for some features, Added handling for different use cases. We are modifying the selection prop via the selection API and optimistic updates are being done in
IOUAmount.js
Note:
Due to the development overheads, the dev App might have some cursor inconsistencies in the dev build. The App works fine in the release builds.
Edit: The components have been restructured such that:
Fixed Issues
$ #6154
PR Review Checklist
Contributor (PR Author) Checklist
### Fixed Issues
section aboveTests
sectionQA steps
sectiontoggleReport
and notonIconClick
)src/languages/*
filesSTYLE.md
) were followedAvatar
, I verified the components usingAvatar
are working as expected)/** comment above it */
displayName
propertythis
properly so there are no scoping issues (i.e. foronClick={this.submit}
the methodthis.submit
should be bound tothis
in the constructor)this
are necessary to be bound (i.e. avoidthis.submit = this.submit.bind(this);
ifthis.submit
is never passed to a component event handler likeonClick
)StyleUtils.getBackgroundAndBorderStyle(themeColors.componentBG
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)PR Reviewer Checklist
### Fixed Issues
section aboveTests
sectionQA steps
sectiontoggleReport
and notonIconClick
).src/languages/*
filesSTYLE.md
) were followed/** comment above it */
displayName
propertythis
properly so there are no scoping issues (i.e. foronClick={this.submit}
the methodthis.submit
should be bound tothis
in the constructor)this
are necessary to be bound (i.e. avoidthis.submit = this.submit.bind(this);
ifthis.submit
is never passed to a component event handler likeonClick
)StyleUtils.getBackgroundAndBorderStyle(themeColors.componentBG
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)Tests
QA Steps
Tested On
Screenshots
Web
Screencast.from.27-01-22.09-36-06.AM.IST.mov
Mobile Web
WhatsApp.Video.2022-01-27.at.9.48.05.AM.mp4
Desktop
out2.mp4
iOS
out3.mp4
Android
WhatsApp.Video.2022-01-27.at.9.29.59.AM.mp4