-
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 share button inside profile settings #19559
Implement share button inside profile settings #19559
Conversation
Jenkins BuildsClick to see older builds (47)
|
48cef09
to
06b8eee
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.
Added some self-review comments
069513b
to
bee9a8f
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.
Sorry for the hectic review
86144f4
to
355d795
Compare
1a4dbda
to
3d337b4
Compare
88% of end-end tests have passed
Failed tests (5)Click to expandClass TestGroupChatMultipleDeviceMergedNewUI:
Class TestOneToOneChatMultipleSharedDevicesNewUiTwo:
Class TestDeepLinksOneDevice:
Expected to fail tests (1)Click to expandClass TestCommunityOneDeviceMerged:
Passed tests (46)Click to expandClass TestGroupChatMultipleDeviceMergedNewUI:
Class TestOneToOneChatMultipleSharedDevicesNewUi:
Class TestWalletMultipleDevice:
Class TestActivityCenterContactRequestMultipleDevicePR:
Class TestCommunityMultipleDeviceMergedTwo:
Class TestCommunityMultipleDeviceMerged:
Class TestOneToOneChatMultipleSharedDevicesNewUiTwo:
Class TestWalletOneDevice:
Class TestActivityMultipleDevicePR:
Class TestCommunityOneDeviceMerged:
Class TestActivityMultipleDevicePRTwo:
|
3d337b4
to
c3d4c4c
Compare
40% of end-end tests have passed
Failed tests (3)Click to expandClass TestDeepLinksOneDevice:
Class TestOneToOneChatMultipleSharedDevicesNewUiTwo:
Passed tests (2)Click to expandClass TestGroupChatMultipleDeviceMergedNewUI:
|
Hi @seanstrom, here's an issue that I'm not sure is related to the scope of this PR. Please let me know if it will be addressed in the current PR, otherwise, can be fixed in a separate follow-up. PR_ISSUE 1: Wrong text is shown system device share drawer while sharing own profileSteps:
Actual result:'Connect with new share button' text is shown in the share device's system drawer Expected result:"My profile on Status" text is shown OS:
Devices:
|
@VolodLytvynenko I think we can fix that issue in a separate PR, thanks for finding it! 🙏 |
c3d4c4c
to
ef72d21
Compare
a4fab04
to
45d1e9e
Compare
45d1e9e
to
28bee80
Compare
* tweak: implement the share button inside the profile settings page * chore: define event and effect handler for opening share sheet * tidy: refactor share buttons to use open-share event * tidy: refactor open-share effect to use react-native-share bindings * tidy: remove unused code for old bindings to react share sheet * tidy: move effects.share/open definition to navigation effects * tweak: ensure navigation effects are loaded * tidy: use open-share dispatch in ui * tidy: use open-share dispatch instead of calling open function directly * tidy: refactor react-native.share/open to only receive options and return promise * tidy: refactor open-share effect to receive map of content and handlers * tidy: replace strings with keywords * tweak: always handle failure case when opening share-sheet * tweak: rename :content to :options * fix: conditionally call on-error * tweak: add extra information when logging error from attempting to share-sheet
fixes #19550
Summary
:open-share
event and:open-share-fx
effect for managing the opening of the react share-sheet.:open-share
event with re-frame dispatch.Platforms
Areas that maybe impacted
Functional
Steps to test
Here's a video demonstrating how to test each share button while logged in as a user who has already one contact.
Screen.Recording.2024-04-08.at.10.18.19.mov
Before and after screenshots comparison
Before
Here's a video of the existing behaviour for the share button inside the profile-settings screen.
Screen.Recording.2024-04-08.at.10.11.51.mov
After
Here's a video of the updated behaviour for the share button inside the profile-settings screen.
Screen.Recording.2024-04-08.at.10.11.12.mov
status: ready