-
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] Wallet - Clear input on long press delete #18732
[Fix] Wallet - Clear input on long press delete #18732
Conversation
@@ -15,7 +15,7 @@ | |||
(defn- view-internal | |||
[] | |||
(let [pressed? (reagent/atom false)] |
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.
should we add a schema to this component while we are adding new props to it?
I think it's not in the list of components in the schema epic as I probably missed this ns when making those issues
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.
@J-Son89 - Can we do it in a separate PR/issue? To find and fix bugs related to those changes (if any).
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.
Of course!
Jenkins BuildsClick to see older builds (16)
|
:on-long-press (fn [] | ||
(when (fn? on-long-press) | ||
(on-long-press label))) |
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.
Maybe just
#(when (fn? on-long-press)
(on-long-press label))
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.
@briansztamfater
Previously I'd suggest the same, but some time ago @ilmotta suggested to only use #
for simple one-liner functions.
The reason is it takes longer for the reader to realize if %
, (or %1
, %2
, etc...) is being used and where is placed. Instead if we have (fn[])
we know what the function takes.
on-long-press-delete (fn [loading-routes?] | ||
(when-not loading-routes? | ||
(reset! input-value "") | ||
(reset! input-error false) | ||
(move-input-cursor input-selection 0) | ||
(reagent/flush))) |
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.
👍
:on-long-press (fn [] | ||
(when (fn? on-long-press) | ||
(on-long-press label))) |
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.
@briansztamfater
Previously I'd suggest the same, but some time ago @ilmotta suggested to only use #
for simple one-liner functions.
The reason is it takes longer for the reader to realize if %
, (or %1
, %2
, etc...) is being used and where is placed. Instead if we have (fn[])
we know what the function takes.
0818e7e
to
3ccc1db
Compare
42% of end-end tests have passed
Failed tests (27)Click to expandClass TestActivityMultipleDevicePR:
Class TestOneToOneChatMultipleSharedDevicesNewUi:
Class TestActivityMultipleDevicePRTwo:
Class TestGroupChatMultipleDeviceMergedNewUI:
Class TestCommunityMultipleDeviceMergedTwo:
Class TestCommunityMultipleDeviceMerged:
Expected to fail tests (1)Click to expandClass TestCommunityOneDeviceMerged:
Passed tests (20)Click to expandClass TestOneToOneChatMultipleSharedDevicesNewUiTwo:
Class TestDeepLinksOneDevice:
Class TestCommunityOneDeviceMerged:
Class TestOneToOneChatMultipleSharedDevicesNewUi:
Class TestActivityMultipleDevicePRTwo:
Class TestGroupChatMultipleDeviceMergedNewUI:
Class TestCommunityMultipleDeviceMergedTwo:
Class TestActivityCenterContactRequestMultipleDevicePR:
|
31% of end-end tests have passed
Failed tests (32)Click to expandClass TestCommunityMultipleDeviceMergedTwo:
Class TestOneToOneChatMultipleSharedDevicesNewUi:
Class TestGroupChatMultipleDeviceMergedNewUI:
Class TestActivityMultipleDevicePR:
Class TestActivityMultipleDevicePRTwo:
Class TestActivityCenterContactRequestMultipleDevicePR:
Class TestCommunityMultipleDeviceMerged:
Expected to fail tests (1)Click to expandClass TestCommunityOneDeviceMerged:
Passed tests (15)Click to expandClass TestCommunityOneDeviceMerged:
Class TestDeepLinksOneDevice:
Class TestGroupChatMultipleDeviceMergedNewUI:
Class TestOneToOneChatMultipleSharedDevicesNewUiTwo:
Class TestActivityMultipleDevicePRTwo:
Class TestActivityCenterContactRequestMultipleDevicePR:
Class TestCommunityMultipleDeviceMerged:
|
3ccc1db
to
26a67ac
Compare
Hi @smohamedjavid ! ISSUE 1 All elements on the screen looks like inactive "Send assets" screen Steps: Go to Wallet -> Send Actual result: Expected result: Additional info: Android 13.0 The rebase took place today and after analysis of today's merges we didn't find the strong reason :( |
26a67ac
to
b0812cd
Compare
Hi @smohamedjavid ! |
Hi @mariia-skrypnyk! |
b0812cd
to
91af901
Compare
83% of end-end tests have passed
Failed tests (7)Click to expandClass TestCommunityMultipleDeviceMerged:
Class TestOneToOneChatMultipleSharedDevicesNewUiTwo:
Class TestOneToOneChatMultipleSharedDevicesNewUi:
Class TestCommunityMultipleDeviceMergedTwo:
Expected to fail tests (1)Click to expandClass TestCommunityOneDeviceMerged:
Passed tests (40)Click to expandClass TestCommunityMultipleDeviceMerged:
Class TestCommunityMultipleDeviceMergedTwo:
Class TestActivityCenterContactRequestMultipleDevicePR:
Class TestOneToOneChatMultipleSharedDevicesNewUi:
Class TestOneToOneChatMultipleSharedDevicesNewUiTwo:
Class TestActivityMultipleDevicePR:
Class TestActivityMultipleDevicePRTwo:
Class TestDeepLinksOneDevice:
Class TestCommunityOneDeviceMerged:
Class TestGroupChatMultipleDeviceMergedNewUI:
|
@smohamedjavid Thanks for your fix! I've checked clear input on long press and faded effect on Android. |
Signed-off-by: Mohamed Javid <19339952+smohamedjavid@users.noreply.github.com>
Signed-off-by: Mohamed Javid <19339952+smohamedjavid@users.noreply.github.com>
91af901
to
2328d15
Compare
fixes #18685
Summary
This PR allows clearing the amount input (in the send flow) by long-pressing the delete key.
Clear.input.mp4
Platforms
Steps to test
Send
status: ready