Skip to content
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

[#21571] ask user to update their profile #21862

Open
wants to merge 21 commits into
base: develop
Choose a base branch
from

Conversation

ulisesmac
Copy link
Contributor

@ulisesmac ulisesmac commented Dec 20, 2024

fixes #21571

Summary

This PRs adds a modal and a screen to ask users to update their profile.

Here are three videos showing the implementation, just as small demos:

https://github.com/user-attachments/assets/4d2e289f-79a4-41cc-b386-83d970de4d5c, https://github.com/user-attachments/assets/d59858d4-ca8f-4291-8597-0a0f8088a07d, https://github.com/user-attachments/assets/0fe3cf34-2cee-4138-9fa7-cf7b68ea1cea

Extra fixes

  1. Our color picker component didn't show the proper styles when an item was selected on Android, now it's been fixed:
Screencast.From.2024-12-20.17-19-24.mp4
  1. Our bottom actions component wasn't able to show the button sizes evenly, with the new modal I added an extra key to pass styles to allow it:

image

(Skip and Edit Profile buttons have the same size, the previous implementation would show Skip shorter)

Review notes

I recovered the implementation we had for the previous onboarding and used it for the new "edit profile" screen, however, multiple fixes and extra validations had to be made. The code wasn't updated to use hooks, but it pass stable callbacks in the reagent way.

A further improvement to this screen and the color picker can be done, for example:

  • By using reanimated for the floating button above the keyboard
  • Giving the color picker a better UX when it's scrolled.

But we need to evaluate if we want to spend resources on it, since this screen is only showed once.

Testing notes

Please mainly test the Continue button works as expected (is disabled or enabled) when a valid state is reached.

Platforms

  • Android
  • iOS

status: ready

@ulisesmac ulisesmac marked this pull request as draft December 20, 2024 23:34
@status-im-auto
Copy link
Member

status-im-auto commented Dec 20, 2024

Jenkins Builds

Click to see older builds (35)
Commit #️⃣ Finished (UTC) Duration Platform Result
8c8c04f #1 2024-12-20 23:37:29 ~3 min tests 📄log
✔️ 8c8c04f #1 2024-12-20 23:41:16 ~6 min android-e2e 🤖apk 📲
✔️ 8c8c04f #1 2024-12-20 23:41:44 ~7 min ios 📱ipa 📲
✔️ 8c8c04f #1 2024-12-20 23:41:57 ~7 min android 🤖apk 📲
ca4b9dc #2 2024-12-20 23:46:40 ~3 min tests 📄log
✔️ ca4b9dc #2 2024-12-20 23:50:16 ~6 min android-e2e 🤖apk 📲
✔️ ca4b9dc #2 2024-12-20 23:50:17 ~6 min ios 📱ipa 📲
020e622 #3 2024-12-20 23:54:06 ~3 min tests 📄log
✔️ 020e622 #3 2024-12-20 23:57:40 ~6 min ios 📱ipa 📲
✔️ 020e622 #3 2024-12-20 23:58:11 ~7 min android 🤖apk 📲
✔️ 020e622 #3 2024-12-20 23:58:39 ~7 min android-e2e 🤖apk 📲
1dea905 #4 2025-01-10 02:57:53 ~4 min tests 📄log
✔️ 1dea905 #4 2025-01-10 03:01:38 ~7 min ios 📱ipa 📲
✔️ 1dea905 #4 2025-01-10 03:01:51 ~8 min android 🤖apk 📲
✔️ 1dea905 #4 2025-01-10 03:02:04 ~8 min android-e2e 🤖apk 📲
6f487d0 #6 2025-01-10 03:20:01 ~3 min tests 📄log
✔️ 6f487d0 #6 2025-01-10 03:24:28 ~7 min ios 📱ipa 📲
✔️ 6f487d0 #6 2025-01-10 03:33:22 ~16 min android-e2e 🤖apk 📲
✔️ 6f487d0 #6 2025-01-10 03:33:53 ~17 min android 🤖apk 📲
bff82e2 #8 2025-01-10 04:17:47 ~2 min tests 📄log
✔️ bff82e2 #8 2025-01-10 04:22:36 ~7 min ios 📱ipa 📲
✔️ bff82e2 #8 2025-01-10 04:23:07 ~8 min android-e2e 🤖apk 📲
✔️ bff82e2 #8 2025-01-10 04:23:34 ~8 min android 🤖apk 📲
b36ecfe #9 2025-01-11 03:47:17 ~2 min tests 📄log
✔️ b36ecfe #9 2025-01-11 03:50:58 ~6 min ios 📱ipa 📲
✔️ b36ecfe #9 2025-01-11 03:51:12 ~6 min android-e2e 🤖apk 📲
✔️ b36ecfe #9 2025-01-11 03:52:15 ~7 min android 🤖apk 📲
3f77430 #10 2025-01-11 04:28:18 ~2 min tests 📄log
✔️ 3f77430 #10 2025-01-11 04:31:59 ~6 min android-e2e 🤖apk 📲
✔️ 3f77430 #10 2025-01-11 04:32:06 ~6 min ios 📱ipa 📲
✔️ 3f77430 #10 2025-01-11 04:32:55 ~7 min android 🤖apk 📲
✔️ a2ed30e #11 2025-01-11 04:51:42 ~4 min tests 📄log
✔️ a2ed30e #11 2025-01-11 04:54:05 ~6 min ios 📱ipa 📲
✔️ a2ed30e #11 2025-01-11 04:54:26 ~6 min android-e2e 🤖apk 📲
✔️ a2ed30e #11 2025-01-11 04:54:33 ~6 min android 🤖apk 📲
Commit #️⃣ Finished (UTC) Duration Platform Result
e3c8123 #14 2025-01-21 23:04:01 ~24 sec ios 📄log
✔️ e3c8123 #14 2025-01-21 23:07:59 ~4 min tests 📄log
✔️ e3c8123 #14 2025-01-21 23:10:10 ~6 min android-e2e 🤖apk 📲
✔️ e3c8123 #14 2025-01-21 23:11:37 ~8 min android 🤖apk 📲
✔️ cf5b9fc #15 2025-01-24 23:55:35 ~4 min tests 📄log
✔️ cf5b9fc #15 2025-01-24 23:58:20 ~7 min android-e2e 🤖apk 📲
✔️ cf5b9fc #15 2025-01-24 23:58:39 ~7 min android 🤖apk 📲
✔️ cf5b9fc #15 2025-01-25 00:02:56 ~11 min ios 📱ipa 📲

@ulisesmac ulisesmac force-pushed the 21571-ask-user-to-update-their-profile branch 3 times, most recently from bff82e2 to b36ecfe Compare January 11, 2025 03:44
@ulisesmac ulisesmac marked this pull request as ready for review January 11, 2025 04:25
@ulisesmac
Copy link
Contributor Author

@ilmotta @flexsurfer @seanstrom @mohsen-ghafouri the PR is ready, it'd be great to have your reviews!

@ulisesmac ulisesmac changed the title 21571 ask user to update their profile [#21571] ask user to update their profile Jan 13, 2025
Copy link
Member

@seanstrom seanstrom left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks pretty good, nice stuff 🙌

I left a few comments about some potential refactors, let me know what you think 🙏

@@ -13,45 +13,51 @@
(update db :profile/profile dissoc :images))}))

(rf/reg-event-fx :profile/edit-profile-picture-success
(fn [_ [images]]
(let [has-picture? (rf/sub [:profile/has-picture])]
(fn [{db :db} [show-toast? images]]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe this first argument should also be a map?

I ask because it might read better to use a map instead of boolean, for example when we test the code:

[:profile/delete-profile-picture-success true]

would become

[:profile/delete-profile-picture-success {:show-toast? true}]

which I think is more descriptive of what's being enabled. thoughts?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I agree with you @seanstrom I updated them now.

I passed single arguments because these events were only used once and internally as follow-up events.

Sometimes I'm a bit concerned about creating a new CLJS map and then destructuring it in another function when the API is not widely usedm I know it improves the reading but I think it's not that hard to understand. Usually for functions/events rarely used and with few args (e.g. 3) sometimes I prefer this approach.

Comment on lines +6 to +18
(def continue-button
{:width "100%"
:margin-left :auto
:margin-top (if platform/android? :auto 0)
:margin-right :auto})

(def button-container
{:width "100%"
:padding-left 20
:padding-right 20
:padding-top 12
:align-self :flex-end
:height 64})
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not certain but I think we tend to avoid using "100%" (or percentages in general) for things like width or height. Is it possible we can achieve something similar by using flexbox via flex-direction: row or similar?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I agree, I don't exactly know why this has been written like this, but I think we may revisit this implementation, as said in the description I cleaned a bit the namespace, extended the implementation but didn't try to rework it.

BTW, @ilmotta if this floating button were used in other places, IMO it's worth rewriting it in reanimated, to make it look more soft and responsive. We could address it along with the switch from ratoms -> use-state. I believe it's a low prio.

Comment on lines +22 to +23
(def scroll-view-height (reagent/atom 0))
(def content-container-height (reagent/atom 0))
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we reset these values to zero when we unmount the component?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's probably too much to ask for the namespace to be rewritten to hooks since it's a large one, but that would be the best since that's the direction we are going.

Copy link
Contributor Author

@ulisesmac ulisesmac Jan 21, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think I prepared the component to be rewritten easier than before.

I didn't want to touch the implementation too much because these global ratoms are needed to control the floating button, that implementation was very buggy for a long period of time and in develop, AFAIK, it was stable. IMO that refactor should be done in a separate PR.

Copy link
Contributor

@ilmotta ilmotta left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice to see this feature! Thanks for fixing other things along the way.

Since the feature is reaching full completion, a design review can be a good idea too.

(conj [:dispatch [:profile/delete-picture {:show-toast? false}]])

:always
(conj [:dispatch-n [[:navigate-back] on-success]]))}))
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:dispatch-n was made redundant by :fx. You can use:

(cond-> []
  :always
  (conj [:dispatch [:event-a]]
        [:dispatch [:event-b]]))
;; => [[:dispatch [:event-a]]
;;     [:dispatch [:event-b]]]

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for noticing!
Fixed!

Comment on lines +22 to +23
(def scroll-view-height (reagent/atom 0))
(def content-container-height (reagent/atom 0))
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's probably too much to ask for the namespace to be rewritten to hooks since it's a large one, but that would be the best since that's the direction we are going.

Copy link
Contributor

@mohsen-ghafouri mohsen-ghafouri left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👌

@ulisesmac ulisesmac force-pushed the 21571-ask-user-to-update-their-profile branch from 1ed9e31 to e3c8123 Compare January 21, 2025 23:03
@status-im-auto
Copy link
Member

100% of end-end tests have passed

Total executed tests: 8
Failed tests: 0
Expected to fail tests: 0
Passed tests: 8

Passed tests (8)

Click to expand

Class TestWalletOneDevice:

1. test_wallet_add_remove_regular_account, id: 727231
2. test_wallet_balance_mainnet, id: 740490

Class TestOneToOneChatMultipleSharedDevicesNewUi:

1. test_1_1_chat_non_latin_messages_stack_update_profile_photo, id: 702745
Device sessions

Class TestCommunityMultipleDeviceMerged:

1. test_community_message_edit, id: 702843
Device sessions

Class TestCommunityOneDeviceMerged:

1. test_restore_multiaccount_with_waku_backup_remove_profile_switch, id: 703133
Device sessions

2. test_community_copy_and_paste_message_in_chat_input, id: 702742
Device sessions

Class TestWalletMultipleDevice:

1. test_wallet_send_asset_from_drawer, id: 727230
2. test_wallet_send_eth, id: 727229

@VolodLytvynenko VolodLytvynenko self-assigned this Jan 22, 2025
@status-im-auto
Copy link
Member

89% of end-end tests have passed

Total executed tests: 56
Failed tests: 5
Expected to fail tests: 1
Passed tests: 50
IDs of failed tests: 702786,703496,702838,702783,702784 
IDs of expected to fail tests: 702844 

Failed tests (5)

Click to expand
  • Rerun failed tests

  • Class TestOneToOneChatMultipleSharedDevicesNewUiTwo:

    1. test_1_1_chat_mute_chat, id: 703496
    Test setup failed: critical/chats/test_1_1_public_chats.py:562: in prepare_devices
        self.home_2.handle_contact_request(self.username_1)
    ../views/home_view.py:388: in handle_contact_request
        chat_element.accept_contact_request()
    ../views/home_view.py:167: in accept_contact_request
        self.handle_cr("accept-contact-request")
    ../views/home_view.py:164: in handle_cr
        ).wait_for_rendering_ended_and_click()
    ../views/base_element.py:154: in wait_for_rendering_ended_and_click
        self.wait_for_visibility_of_element(20)
    ../views/base_element.py:138: in wait_for_visibility_of_element
        raise TimeoutException(
     Device 2: Button by xpath:`//*[contains(@text, 'shw6GMWYkgTUFM3kCRoc')]/ancestor::*[@content-desc='activity']/*[@content-desc="accept-contact-request"]` is not found on the screen after wait_for_visibility_of_element
    



    2. test_1_1_chat_is_shown_message_sent_delivered_from_offline, id: 702783

    Device 2: Tap on found: Button
    Device 2: Attempt 0 is successful clicking close-activity-center

    Test setup failed: critical/chats/test_1_1_public_chats.py:562: in prepare_devices
        self.home_2.handle_contact_request(self.username_1)
    ../views/home_view.py:388: in handle_contact_request
        chat_element.accept_contact_request()
    ../views/home_view.py:167: in accept_contact_request
        self.handle_cr("accept-contact-request")
    ../views/home_view.py:164: in handle_cr
        ).wait_for_rendering_ended_and_click()
    ../views/base_element.py:154: in wait_for_rendering_ended_and_click
        self.wait_for_visibility_of_element(20)
    ../views/base_element.py:138: in wait_for_visibility_of_element
        raise TimeoutException(
     Device 2: Button by xpath:`//*[contains(@text, 'shw6GMWYkgTUFM3kCRoc')]/ancestor::*[@content-desc='activity']/*[@content-desc="accept-contact-request"]` is not found on the screen after wait_for_visibility_of_element
    



    Device sessions

    3. test_1_1_chat_delete_via_long_press_relogin, id: 702784

    Test setup failed: critical/chats/test_1_1_public_chats.py:562: in prepare_devices
        self.home_2.handle_contact_request(self.username_1)
    ../views/home_view.py:388: in handle_contact_request
        chat_element.accept_contact_request()
    ../views/home_view.py:167: in accept_contact_request
        self.handle_cr("accept-contact-request")
    ../views/home_view.py:164: in handle_cr
        ).wait_for_rendering_ended_and_click()
    ../views/base_element.py:154: in wait_for_rendering_ended_and_click
        self.wait_for_visibility_of_element(20)
    ../views/base_element.py:138: in wait_for_visibility_of_element
        raise TimeoutException(
     Device 2: Button by xpath:`//*[contains(@text, 'shw6GMWYkgTUFM3kCRoc')]/ancestor::*[@content-desc='activity']/*[@content-desc="accept-contact-request"]` is not found on the screen after wait_for_visibility_of_element
    



    Class TestCommunityMultipleDeviceMergedTwo:

    1. test_community_mentions_push_notification, id: 702786

    Device 2: Getting PN by 'shoh7bqpFgXQqbgEuRJd'
    Device 2: Looking for a message by text: shoh7bqpFgXQqbgEuRJd

    critical/chats/test_public_chat_browsing.py:966: in test_community_mentions_push_notification
        self.errors.verify_no_errors()
    base_test_case.py:176: in verify_no_errors
        pytest.fail('\n '.join([self.errors.pop(0) for _ in range(len(self.errors))]))
     Can not edit a message with a mention
    E    Message reaction is not shown for the sender
    



    Device sessions

    Class TestCommunityMultipleDeviceMerged:

    1. test_community_message_send_check_timestamps_sender_username, id: 702838

    Device 2: Verifying that 'new message' is under today
    Device 2: Looking for a message by text: new message

    critical/chats/test_public_chat_browsing.py:359: in test_community_message_send_check_timestamps_sender_username
        self.channel_2.verify_message_is_under_today_text(new_message, self.errors, 60)
    ../views/chat_view.py:618: in verify_message_is_under_today_text
        message_element.wait_for_visibility_of_element(timeout)
    ../views/base_element.py:138: in wait_for_visibility_of_element
        raise TimeoutException(
     Device 2: ChatElementByText by xpath:`//*[starts-with(@text,'new message')]/ancestor::android.view.ViewGroup[@content-desc='chat-item']` is not found on the screen after wait_for_visibility_of_element
    



    Device sessions

    Expected to fail tests (1)

    Click to expand

    Class TestCommunityMultipleDeviceMerged:

    1. test_community_links_with_previews_github_youtube_twitter_gif_send_enable, id: 702844

    Device 2: Find EmojisNumber by xpath: //*[starts-with(@text,'https://m.youtube.com/watch?v=Je7yErjEVt4')]/ancestor::android.view.ViewGroup[@content-desc='chat-item']/../..//*[@content-desc='emoji-reaction-4']/android.widget.TextView[2]
    Device 2: Element EmojisNumber text is equal to 1

    critical/chats/test_public_chat_browsing.py:650: in test_community_links_with_previews_github_youtube_twitter_gif_send_enable
        self.errors.verify_no_errors()
    base_test_case.py:176: in verify_no_errors
        pytest.fail('\n '.join([self.errors.pop(0) for _ in range(len(self.errors))]))
     No preview image is shown for https://github.com/status-im/status-mobile/pull/11707
    E    No preview is loaded for url https://youtu.be/Je7yErjEVt4
    E    No preview is loaded for url https://www.youtube.com/watch?v=XN-SVmuJH2g&list=PLbrz7IuP1hrgNtYe9g6YHwHO6F3OqNMao
    E    No preview is loaded for url https://m.youtube.com/watch?v=Je7yErjEVt4 
    

    [[Youtube links preview is not loaded on LambdaTest emulators, needs investigation]]

    Device sessions

    Passed tests (50)

    Click to expand

    Class TestWalletMultipleDevice:

    1. test_wallet_send_asset_from_drawer, id: 727230
    2. test_wallet_send_eth, id: 727229

    Class TestCommunityOneDeviceMerged:

    1. test_restore_multiaccount_with_waku_backup_remove_profile_switch, id: 703133
    Device sessions

    2. test_community_copy_and_paste_message_in_chat_input, id: 702742
    Device sessions

    3. test_community_navigate_to_channel_when_relaunch, id: 702846
    Device sessions

    4. test_community_undo_delete_message, id: 702869
    Device sessions

    5. test_community_mute_community_and_channel, id: 703382
    Device sessions

    6. test_community_discovery, id: 703503
    Device sessions

    Class TestWalletOneDevice:

    1. test_wallet_add_remove_regular_account, id: 727231
    2. test_wallet_balance_mainnet, id: 740490

    Class TestOneToOneChatMultipleSharedDevicesNewUi:

    1. test_1_1_chat_edit_message, id: 702855
    Device sessions

    2. test_1_1_chat_message_reaction, id: 702730
    Device sessions

    3. test_1_1_chat_non_latin_messages_stack_update_profile_photo, id: 702745
    Device sessions

    4. test_1_1_chat_pin_messages, id: 702731
    Device sessions

    5. test_1_1_chat_text_message_delete_push_disappear, id: 702733
    Device sessions

    6. test_1_1_chat_push_emoji, id: 702813
    Device sessions

    7. test_1_1_chat_emoji_send_reply_and_open_link, id: 702782
    Device sessions

    8. test_1_1_chat_send_image_save_and_share, id: 703391
    Device sessions

    Class TestCommunityMultipleDeviceMergedTwo:

    1. test_community_leave, id: 702845
    Device sessions

    2. test_community_markdown_support, id: 702809
    Device sessions

    3. test_community_hashtag_links_to_community_channels, id: 702948
    Device sessions

    4. test_community_join_when_node_owner_offline, id: 703629
    Device sessions

    Class TestActivityCenterContactRequestMultipleDevicePR:

    1. test_activity_center_contact_request_accept_swipe_mark_all_as_read, id: 702851
    Device sessions

    2. test_activity_center_contact_request_decline, id: 702850
    Device sessions

    3. test_add_contact_field_validation, id: 702777
    Device sessions

    Class TestCommunityMultipleDeviceMerged:

    1. test_community_emoji_send_copy_paste_reply, id: 702840
    Device sessions

    2. test_community_contact_block_unblock_offline, id: 702894
    Device sessions

    3. test_community_mark_all_messages_as_read, id: 703086
    Device sessions

    4. test_community_unread_messages_badge, id: 702841
    Device sessions

    5. test_community_message_delete, id: 702839
    Device sessions

    6. test_community_edit_delete_message_when_offline, id: 704615
    Device sessions

    7. test_community_one_image_send_reply, id: 702859
    Device sessions

    8. test_community_message_edit, id: 702843
    Device sessions

    9. test_community_several_images_send_reply, id: 703194
    Device sessions

    Class TestActivityMultipleDevicePR:

    1. test_activity_center_reply_read_unread_delete_filter_swipe, id: 702947
    Device sessions

    Class TestDeepLinksOneDevice:

    1. test_links_open_universal_links_from_chat, id: 704613
    Device sessions

    2. test_links_deep_links_profile, id: 702775
    Device sessions

    3. test_deep_links_communities, id: 739307
    Device sessions

    Class TestActivityMultipleDevicePRTwo:

    1. test_activity_center_admin_notification_accept_swipe, id: 702958
    Device sessions

    2. test_activity_center_mentions, id: 702957
    Device sessions

    Class TestFallbackMultipleDevice:

    1. test_fallback_add_key_pair, id: 741054
    2. test_fallback_sync_with_error, id: 740220
    3. test_fallback_with_correct_seed_phrase, id: 740221
    4. test_fallback_validate_seed_phrase, id: 740222

    Class TestGroupChatMultipleDeviceMergedNewUI:

    1. test_group_chat_reactions, id: 703202
    Device sessions

    2. test_group_chat_join_send_text_messages_push, id: 702807
    Device sessions

    3. test_group_chat_offline_pn, id: 702808
    Device sessions

    4. test_group_chat_pin_messages, id: 702732
    Device sessions

    5. test_group_chat_send_image_save_and_share, id: 703297
    Device sessions

    6. test_group_chat_mute_chat, id: 703495
    Device sessions

    @status-im-auto
    Copy link
    Member

    100% of end-end tests have passed

    Total executed tests: 5
    Failed tests: 0
    Expected to fail tests: 0
    Passed tests: 5
    

    Passed tests (5)

    Click to expand

    Class TestCommunityMultipleDeviceMergedTwo:

    1. test_community_mentions_push_notification, id: 702786
    Device sessions

    Class TestOneToOneChatMultipleSharedDevicesNewUiTwo:

    1. test_1_1_chat_mute_chat, id: 703496
    Device sessions

    2. test_1_1_chat_is_shown_message_sent_delivered_from_offline, id: 702783
    Device sessions

    3. test_1_1_chat_delete_via_long_press_relogin, id: 702784
    Device sessions

    Class TestCommunityMultipleDeviceMerged:

    1. test_community_message_send_check_timestamps_sender_username, id: 702838
    Device sessions

    @VolodLytvynenko
    Copy link
    Contributor

    VolodLytvynenko commented Jan 22, 2025

    hi @ulisesmac thank you for PR. Question/Potential issue: should the 'introduce yourself' drawer be shown in case if user has edited his "display name" once via profile? Currently, it is shown

    Steps to reproduce:

    1. Create a new user.
    2. Navigate to Profile -> Edit Display Name.
    3. Tap the [+] button or [Send Contact Request].

    Actual result:

    The 'Introduce Yourself' drawer appears, prompting the user to edit their profile again when the Edit button is tapped.

    edit.mp4

    @status-im-auto
    Copy link
    Member

    100% of end-end tests have passed

    Total executed tests: 5
    Failed tests: 0
    Expected to fail tests: 0
    Passed tests: 5
    

    Passed tests (5)

    Click to expand

    Class TestOneToOneChatMultipleSharedDevicesNewUiTwo:

    1. test_1_1_chat_mute_chat, id: 703496
    Device sessions

    2. test_1_1_chat_is_shown_message_sent_delivered_from_offline, id: 702783
    Device sessions

    3. test_1_1_chat_delete_via_long_press_relogin, id: 702784
    Device sessions

    Class TestCommunityMultipleDeviceMerged:

    1. test_community_message_send_check_timestamps_sender_username, id: 702838
    Device sessions

    Class TestCommunityMultipleDeviceMergedTwo:

    1. test_community_mentions_push_notification, id: 702786
    Device sessions

    @VolodLytvynenko
    Copy link
    Contributor

    @ulisesmac this is the only issue I found. If this is identified as an issue and needs to be addressed, please let me know, and I’ll recheck the PR. Otherwise, the PR can be merged

    @ulisesmac ulisesmac force-pushed the 21571-ask-user-to-update-their-profile branch from e3c8123 to cf5b9fc Compare January 24, 2025 23:50
    @ulisesmac
    Copy link
    Contributor Author

    @VolodLytvynenko The fix has been applied. Could please you re-test it again?

    Thank you!

    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
    Projects
    Status: MERGE
    Development

    Successfully merging this pull request may close these issues.

    Onboarding / Profile - Proactively ask user to update profile
    6 participants