-
Notifications
You must be signed in to change notification settings - Fork 985
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
fix: entering two zeros in a row in the 'Amount' field in wallet #19911
Conversation
Simple fix, I think can skip QA cc @J-Son89 |
Jenkins BuildsClick to see older builds (10)
|
@@ -78,9 +78,10 @@ | |||
|
|||
(defn add-character | |||
[state character] | |||
(when (can-add-character? state character) | |||
(if (can-add-character? state character) |
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.
is this all to handle the custom keyboard?
We should really raise this with the design team as something to reconsider as it seems to be a bug factory that we could easily avoid :)
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.
also this looks good but since this is in /common/ I wonder is this code used elsewhere and if so is this the expected behaviour for these uses?
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.
is this all to handle the custom keyboard?
@J-Son89 Yes 🤷♂️
We should really raise this with the design team as something to reconsider as it seems to be a bug factory
Agreed! I think @vkjr worked on this, maybe he can share his thoughts also (and maybe @ulisesmac)
also this looks good but since this is in /common/
It is used in the send screen only.
The fix here is to return the same state if the character cannot be added. Previously was returning nil
hence the crash.
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.
yeah let's collate of all the lists and issues this brings in. I believe it's also a big takeaway from accessibility of the end user. @shivekkhurana was discussing something like this before.
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.
Hey!
I just found this discussion since was on vacation.
Yes, if we continue to use custom keyboard, the controlled-input will be reused everywhere, this is the idea. But if in general we can reconsider using custom keyboard - I think it is even better)
Hi @OmarBasem ! I am moving back your PR to the corresponding column as it doesn't meet the requirements outlined here: Please, make sure your fix should/shouldn't be tested by QA's and add necessary information to PR's description. |
Thanks @mariia-skrypnyk, updated the description. |
Thanks @OmarBasem for adding label and description! 🙌🤗 |
Will review e2e and let you know! @OmarBasem |
83% of end-end tests have passed
Failed tests (7)Click to expandClass TestDeepLinksOneDevice:
Class TestWalletOneDevice:
Class TestGroupChatMultipleDeviceMergedNewUI:
Class TestWalletMultipleDevice:
Class TestOneToOneChatMultipleSharedDevicesNewUi:
Expected to fail tests (2)Click to expandClass TestCommunityOneDeviceMerged:
Class TestGroupChatMultipleDeviceMergedNewUI:
Passed tests (43)Click to expandClass TestActivityMultipleDevicePRTwo:
Class TestActivityMultipleDevicePR:
Class TestCommunityMultipleDeviceMerged:
Class TestCommunityMultipleDeviceMergedTwo:
Class TestWalletOneDevice:
Class TestGroupChatMultipleDeviceMergedNewUI:
Class TestOneToOneChatMultipleSharedDevicesNewUiTwo:
Class TestActivityCenterContactRequestMultipleDevicePR:
Class TestCommunityOneDeviceMerged:
Class TestOneToOneChatMultipleSharedDevicesNewUi:
|
Hey @mariia-skrypnyk, is this good to merge? |
Hey @OmarBasem ! Thanks for your patience! Just needed to manually check some moments. |
fixes: #19908
This PR fixes an issue that caused a crash when typing zeroes in the input amout on the send screen.
Skipping QA as it is a simple fix.
Demo:
Screen_Recording_20240506_162100_Status.mp4