-
Notifications
You must be signed in to change notification settings - Fork 987
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
Dismiss keyboard when opening mute chat drawer #18486
Conversation
Jenkins BuildsClick to see older builds (36)
|
@@ -161,6 +161,7 @@ | |||
:color cover-bg-color | |||
:icon (if muted? :i/muted :i/activity-center) | |||
:on-press (fn [] | |||
(rf/dispatch [:dismiss-keyboard]) |
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.
Hi @ibrkhalil, Thank you very much for finding and fixing this issue.
Please can we add this :dismiss-keyboard
to :show-bottom-sheet
event itself?
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.
Thanks Parvesh
That's an excellent point, As the bottom sheet and the keyboard won't look nice together in any case.
src/status_im/navigation/events.cljs
Outdated
@@ -119,6 +119,7 @@ | |||
{:events [:show-bottom-sheet]} | |||
[{:keys [db]} content] | |||
(let [{:keys [sheets hide?]} (:bottom-sheet db)] | |||
(rf/dispatch [:dismiss-keyboard]) | |||
(rf/merge {:db (update-in db [:bottom-sheet :sheets] #(conj % content))} |
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.
Please add dispatch
according to guideline
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.
Ok
src/status_im/navigation/events.cljs
Outdated
@@ -119,7 +119,8 @@ | |||
{:events [:show-bottom-sheet]} | |||
[{:keys [db]} content] | |||
(let [{:keys [sheets hide?]} (:bottom-sheet db)] | |||
(rf/merge {:db (update-in db [:bottom-sheet :sheets] #(conj % content))} | |||
(rf/merge {:db (update-in db [:bottom-sheet :sheets] #(conj % content)) | |||
:dispatch [:dismiss-keyboard]} |
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.
Will it always be the case that we'll want to hide the keyboard when showing the bottom sheet? My assumption is (also) yes, but wondering if there's places that would need the keyboard & bottom sheet together i.e. bottom sheet with an input.
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 think the behavior there should be to focus on the input of the bottom sheet once it's open
We're dismissing the keyboard that was there before rendering the bottom sheet.
81% of end-end tests have passed
Failed tests (7)Click to expandClass TestGroupChatMultipleDeviceMergedNewUI:
Class TestOneToOneChatMultipleSharedDevicesNewUiTwo:
Class TestActivityCenterContactRequestMultipleDevicePR:
Class TestDeepLinksOneDevice:
Expected to fail tests (2)Click to expandClass TestCommunityOneDeviceMerged:
Class TestCommunityMultipleDeviceMergedTwo:
Passed tests (39)Click to expandClass TestCommunityMultipleDeviceMergedTwo:
Class TestCommunityOneDeviceMerged:
Class TestOneToOneChatMultipleSharedDevicesNewUi:
Class TestActivityMultipleDevicePR:
Class TestCommunityMultipleDeviceMerged:
Class TestActivityMultipleDevicePRTwo:
Class TestOneToOneChatMultipleSharedDevicesNewUiTwo:
Class TestGroupChatMultipleDeviceMergedNewUI:
Class TestActivityCenterContactRequestMultipleDevicePR:
|
Hi @ibrkhalil ! Can you please rebase your PR? |
Hi @ibrkhalil! I see such behaviour on Android and iOS and I assume it is an issue you was working on and it still present in this PR. Android: user can open mute chat drawer but keyboard is still opened (I assume it should be closed and then mute chat drawer opens) video_2024-02-02_14-49-47.mp4iOS: mute chat drawer is still overlapped by the keyboard IMG_6604.MP4Please check it on your side and let me know! |
85% of end-end tests have passed
Failed tests (6)Click to expandClass TestOneToOneChatMultipleSharedDevicesNewUi:
Class TestCommunityMultipleDeviceMerged:
Class TestCommunityMultipleDeviceMergedTwo:
Expected to fail tests (1)Click to expandClass TestCommunityOneDeviceMerged:
Passed tests (41)Click to expandClass TestDeepLinksOneDevice:
Class TestActivityCenterContactRequestMultipleDevicePR:
Class TestCommunityMultipleDeviceMerged:
Class TestCommunityOneDeviceMerged:
Class TestActivityMultipleDevicePRTwo:
Class TestCommunityMultipleDeviceMergedTwo:
Class TestGroupChatMultipleDeviceMergedNewUI:
Class TestOneToOneChatMultipleSharedDevicesNewUiTwo:
Class TestOneToOneChatMultipleSharedDevicesNewUi:
Class TestActivityMultipleDevicePR:
|
Hi @ibrkhalil ! Thanks for your fix. |
fixes #18485
Summary
Dismisses the keyboard when mute chat drawer is opening.
status: ready