-
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
Implement navigation to profiles and chats from contact requests inside Activity Center #19902
Conversation
@seanstrom Thank you for creating issue #19649, I have implemented navigation as per requirements mentioned in issue. I have two questions
|
Jenkins BuildsClick to see older builds (19)
|
@status-im/mobile-qa Please let me know if you have any opinion on this |
:full-name (profile.utils/displayed-name profile) | ||
:profile-picture (profile.utils/photo profile)}])) | ||
[rn/view | ||
{:on-start-should-set-responder |
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.
could you pls elaboeate on how on-start-should-set-responder works here? thanks
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 @flexsurfer, Thank you very much for reviewing PR.
We have the whole activity log as pressable for accepted requests, but when context-tag is pressed we only want that to call an on-press event and avoid propagation to parent pressable.
I picked this solution from the stackoverflow answer, apparently adding onStartShouldSetResponder
and returning true is enough for our situation to make it work.
Thanks for the questions 🙏
Side note:
|
ad074b9
to
d2b3e41
Compare
Thank you @seanstrom for quick response
Please can you elaborate. We do have a on-press handler for accepted contact requests that navigates to chat screen. Do you mean we add this on-press entry for all activity logs? |
d2b3e41
to
3a71932
Compare
confirmed with the design team, Lets always navigate to contact profile for consistency. |
@flexsurfer @seanstrom Thank you for reviewing PR, Please let me know if anything else needs to be addressed. |
3a71932
to
2f7a95d
Compare
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.
Great stuff, thank you for doing this 🙌
Just tested it on my side too with no issues ✅
54% of end-end tests have passed
Failed tests (23)Click to expandClass TestCommunityMultipleDeviceMerged:
Class TestDeepLinksOneDevice:
Class TestOneToOneChatMultipleSharedDevicesNewUi:
Class TestWalletOneDevice:
Class TestGroupChatMultipleDeviceMergedNewUI:
Class TestWalletMultipleDevice:
Expected to fail tests (1)Click to expandClass TestCommunityOneDeviceMerged:
Passed tests (28)Click to expandClass TestCommunityMultipleDeviceMerged:
Class TestCommunityOneDeviceMerged:
Class TestActivityMultipleDevicePRTwo:
Class TestActivityMultipleDevicePR:
Class TestOneToOneChatMultipleSharedDevicesNewUiTwo:
Class TestCommunityMultipleDeviceMergedTwo:
Class TestActivityCenterContactRequestMultipleDevicePR:
|
hi @Parveshdhull could you please resolve existing conflicts? Thanx |
Hi @Parveshdhull, I have a question. Should the 'contact icon' be interactive? Currently, tapping the 'contact icon' for accepted contacts navigates to a 1-1 chat, while it does not navigate anywhere if tapped for pending or declined contact requests. |
2f7a95d
to
c06249d
Compare
Thank you very much @VolodLytvynenko for picking the PR for testing
done
I am not sure. We probably should discuss this with the design team. But to me, these icons don't look like pressable buttons. They just look like simple indicators to highlight notification types (contact request-related notifications).
When we have accepted contact requests we are making the whole activity log pressable (which includes the contact icon). I am not sure why this was implemented this way and if this is what we wanted. Sorry probably the issue title is a little misleading, but I think for the scope of this issue/PR we can only focus on navigation from the activity center using contact tags. For other components, we currently don't have guidelines and expected behavior. |
85% of end-end tests have passed
Failed tests (6)Click to expandClass TestWalletOneDevice:
Class TestWalletMultipleDevice:
Class TestDeepLinksOneDevice:
Class TestGroupChatMultipleDeviceMergedNewUI:
Expected to fail tests (2)Click to expandClass TestCommunityOneDeviceMerged:
Class TestGroupChatMultipleDeviceMergedNewUI:
Passed tests (44)Click to expandClass TestActivityCenterContactRequestMultipleDevicePR:
Class TestCommunityMultipleDeviceMergedTwo:
Class TestCommunityMultipleDeviceMerged:
Class TestWalletOneDevice:
Class TestCommunityOneDeviceMerged:
Class TestOneToOneChatMultipleSharedDevicesNewUiTwo:
Class TestActivityMultipleDevicePRTwo:
Class TestOneToOneChatMultipleSharedDevicesNewUi:
Class TestGroupChatMultipleDeviceMergedNewUI:
Class TestActivityMultipleDevicePR:
|
Hi @Parveshdhull thank you for PR and for clarification. No issues from my side. PR is ready to be merged |
c06249d
to
e21e9d0
Compare
…de Activity Center
e21e9d0
to
9f16898
Compare
fixes #19649
Testing Note:
Please test navigation behavior as per requirements mentioned in #19649
status: ready