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

feat: add ident ring for login profile picture #15942

Merged
merged 1 commit into from
May 23, 2023

Conversation

yqrashawn
Copy link
Contributor

@yqrashawn yqrashawn commented May 18, 2023

partial fix for subissue 1 in #15788

Adds ident ring for user set profile picture in views before login
ident ring around initials is not supported yet. Will work on that next.

CleanShot 2023-05-18 at 16 37 12
CleanShot 2023-05-18 at 16 37 07

related status-go PR status-im/status-go#3500 status-im/status-go#3505
with these status-go changes

  1. media server gets started before login
  2. colorhash and colorid are always available in multiaccount db (db avaliable before login)

status: ready

@yqrashawn yqrashawn self-assigned this May 18, 2023
@status-im-auto
Copy link
Member

status-im-auto commented May 18, 2023

Jenkins Builds

Click to see older builds (28)
Commit #️⃣ Finished (UTC) Duration Platform Result
c65d2c8 #1 2023-05-18 09:01:54 ~5 min tests 📄log
✔️ c65d2c8 #1 2023-05-18 09:04:46 ~8 min ios 📱ipa 📲
✔️ c65d2c8 #1 2023-05-18 09:04:48 ~8 min android 🤖apk 📲
✔️ c65d2c8 #1 2023-05-18 09:04:48 ~8 min android-e2e 🤖apk 📲
✔️ d1b1a10 #2 2023-05-18 11:34:56 ~7 min tests 📄log
✔️ d1b1a10 #2 2023-05-18 11:35:54 ~8 min android-e2e 🤖apk 📲
✔️ d1b1a10 #2 2023-05-18 11:36:00 ~8 min ios 📱ipa 📲
✔️ d1b1a10 #2 2023-05-18 11:36:31 ~8 min android 🤖apk 📲
✔️ 74fc042 #3 2023-05-18 13:01:12 ~5 min android 🤖apk 📲
74fc042 #3 2023-05-18 13:01:19 ~5 min tests 📄log
✔️ 74fc042 #3 2023-05-18 13:02:17 ~6 min android-e2e 🤖apk 📲
✔️ 74fc042 #3 2023-05-18 13:02:24 ~6 min ios 📱ipa 📲
3251c2b #5 2023-05-18 13:12:19 ~3 min tests 📄log
✔️ 3251c2b #5 2023-05-18 13:13:58 ~5 min android-e2e 🤖apk 📲
✔️ 3251c2b #5 2023-05-18 13:16:36 ~8 min android 🤖apk 📲
✔️ 3251c2b #5 2023-05-18 13:17:52 ~9 min ios 📱ipa 📲
a4660e4 #6 2023-05-19 00:46:27 ~3 min tests 📄log
✔️ a4660e4 #6 2023-05-19 00:48:39 ~5 min android 🤖apk 📲
✔️ a4660e4 #6 2023-05-19 00:51:14 ~8 min ios 📱ipa 📲
✔️ a4660e4 #6 2023-05-19 00:52:40 ~9 min android-e2e 🤖apk 📲
✔️ a48419a #7 2023-05-19 01:11:29 ~5 min android-e2e 🤖apk 📲
✔️ a48419a #7 2023-05-19 01:11:30 ~5 min android 🤖apk 📲
✔️ a48419a #7 2023-05-19 01:11:56 ~6 min tests 📄log
✔️ a48419a #7 2023-05-19 01:11:57 ~6 min ios 📱ipa 📲
✔️ 7582397 #8 2023-05-19 07:21:06 ~5 min tests 📄log
✔️ 7582397 #8 2023-05-19 07:22:11 ~7 min android 🤖apk 📲
✔️ 7582397 #8 2023-05-19 07:22:11 ~7 min android-e2e 🤖apk 📲
✔️ 7582397 #8 2023-05-19 07:22:14 ~7 min ios 📱ipa 📲
Commit #️⃣ Finished (UTC) Duration Platform Result
✔️ bfd002c #9 2023-05-22 02:27:23 ~5 min tests 📄log
✔️ bfd002c #9 2023-05-22 02:28:26 ~6 min android-e2e 🤖apk 📲
✔️ bfd002c #9 2023-05-22 02:28:29 ~6 min android 🤖apk 📲
✔️ bfd002c #9 2023-05-22 02:29:51 ~8 min ios 📱ipa 📲
✔️ 6ae4722 #10 2023-05-23 05:29:39 ~5 min android 🤖apk 📲
✔️ 6ae4722 #10 2023-05-23 05:31:02 ~6 min ios 📱ipa 📲
✔️ 6ae4722 #10 2023-05-23 05:31:35 ~7 min android-e2e 🤖apk 📲
✔️ 6ae4722 #10 2023-05-23 05:31:48 ~7 min tests 📄log

@yqrashawn yqrashawn force-pushed the identring-for-login-profile-pic branch 4 times, most recently from 6d4649f to 3251c2b Compare May 18, 2023 13:08
@yqrashawn yqrashawn force-pushed the identring-for-login-profile-pic branch 2 times, most recently from a4660e4 to a48419a Compare May 19, 2023 01:05
@yqrashawn yqrashawn marked this pull request as ready for review May 19, 2023 01:42
@@ -26,7 +26,7 @@
4))

(defn get-account-image-uri
[port public-key image-name key-uid theme]
[{:keys [port public-key image-name key-uid theme ring?]}]
Copy link
Contributor Author

Choose a reason for hiding this comment

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

the ring? here will be used later to disable ident ring for user with ens name

Comment on lines +58 to +61
(let [image-name (-> multiaccounts
(get-in [target-key-uid :images])
first
:type)]
Copy link
Contributor Author

Choose a reason for hiding this comment

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

image name stored in status-go is the :type of images, "large", "thumbnail"

@status-im-auto
Copy link
Member

80% of end-end tests have passed

Total executed tests: 30
Failed tests: 6
Passed tests: 24
Not executed tests: 2
IDs of not executed tests: 702846,702742 
IDs of failed tests: 702732,702844,703133,702807,702808,702838 

Not executed tests (2)

Click to expand
  • Rerun not executed tests
  • Failed tests (6)

    Click to expand
  • Rerun failed tests

  • Class TestGroupChatMultipleDeviceMergedNewUI:

    1. test_group_chat_pin_messages, id: 702732
    Test setup failed: critical/chats/test_group_chat.py:148: in prepare_devices
        self.drivers, self.loop = create_shared_drivers(3)
     cannot unpack non-iterable NoneType object
    



    2. test_group_chat_join_send_text_messages_push, id: 702807

    Test setup failed: critical/chats/test_group_chat.py:148: in prepare_devices
        self.drivers, self.loop = create_shared_drivers(3)
     cannot unpack non-iterable NoneType object
    



    3. test_group_chat_offline_pn, id: 702808

    Test setup failed: critical/chats/test_group_chat.py:148: in prepare_devices
        self.drivers, self.loop = create_shared_drivers(3)
     cannot unpack non-iterable NoneType object
    



    Class TestCommunityOneDeviceMerged:

    1. test_restore_multiaccount_with_waku_backup_remove_switch, id: 703133

    Test setup failed: critical/test_public_chat_browsing.py:307: in prepare_devices
        self.drivers, self.loop = create_shared_drivers(1)
     cannot unpack non-iterable NoneType object
    



    Class TestCommunityMultipleDeviceMerged:

    1. test_community_links_with_previews_github_youtube_twitter_gif_send_enable, id: 702844

    Device 2: Tap on found: SendMessageButton
    Device 2: Find Button by xpath: //*[@text="Don't ask me again"]

    critical/test_public_chat_browsing.py:604: in test_community_links_with_previews_github_youtube_twitter_gif_send_enable
        self.channel_2.element_by_translation_id("dont-ask").click()
    ../views/base_element.py:91: in click
        self.find_element().click()
    ../views/base_element.py:80: in find_element
        raise NoSuchElementException(
     Device 2: Button by xpath: `//*[@text="Don't ask me again"]` is not found on the screen
    



    Device sessions

    2. test_community_message_send_check_timestamps_sender_username, id: 702838

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

    critical/test_public_chat_browsing.py:456: in test_community_message_send_check_timestamps_sender_username
        channel.verify_message_is_under_today_text(message, self.errors)
    ../views/chat_view.py:935: in verify_message_is_under_today_text
        message_element.wait_for_visibility_of_element()
    ../views/base_element.py:135: in wait_for_visibility_of_element
        raise TimeoutException(
     Device 2: ChatElementByText by xpath:`//*[starts-with(@text,'hello')]/ancestor::android.view.ViewGroup[@content-desc='chat-item']` is not found on the screen after wait_for_visibility_of_element 
    

    [[blocked by 14797]]

    Device sessions

    Passed tests (24)

    Click to expand

    Class TestActivityMultipleDevicePR:

    1. test_activity_center_reply_read_unread_delete_filter_swipe, id: 702947
    Device sessions

    2. test_activity_center_admin_notification_accept_swipe, id: 702958
    Device sessions

    3. test_navigation_jump_to, id: 702936
    Device sessions

    4. test_activity_center_mentions, id: 702957
    Device sessions

    Class TestOneToOneChatMultipleSharedDevicesNewUi:

    1. test_1_1_chat_text_message_delete_push_disappear, id: 702733
    Device sessions

    2. test_1_1_chat_edit_message, id: 702855
    Device sessions

    3. test_1_1_chat_non_latin_messages_stack_update_profile_photo, id: 702745
    Device sessions

    4. test_1_1_chat_message_reaction, id: 702730
    Device sessions

    5. test_1_1_chat_emoji_send_reply_and_open_link, id: 702782
    Device sessions

    6. test_1_1_chat_is_shown_message_sent_delivered_from_offline, id: 702783
    Device sessions

    7. test_1_1_chat_pin_messages, id: 702731
    Device sessions

    8. test_1_1_chat_push_emoji, id: 702813
    Device sessions

    9. test_1_1_chat_delete_via_long_press_relogin, id: 702784
    Device sessions

    Class TestActivityCenterContactRequestMultipleDevicePR:

    1. test_activity_center_contact_request_decline, id: 702850
    Device sessions

    2. test_activity_center_contact_request_accept_swipe_mark_all_as_read, id: 702851
    Device sessions

    Class TestCommunityMultipleDeviceMerged:

    1. test_community_emoji_send_copy_paste_reply, id: 702840
    Device sessions

    2. test_1_1_chat_image_send_reply, id: 702859
    Device sessions

    3. test_community_mentions_push_notification, id: 702786
    Device sessions

    4. test_community_contact_block_unblock_offline, id: 702894
    Device sessions

    5. test_community_leave, id: 702845
    Device sessions

    6. test_community_unread_messages_badge, id: 702841
    Device sessions

    7. test_community_message_delete, id: 702839
    Device sessions

    8. test_community_mark_all_messages_as_read, id: 703086
    Device sessions

    9. test_community_message_edit, id: 702843
    Device sessions

    @yqrashawn yqrashawn force-pushed the identring-for-login-profile-pic branch from a48419a to 7582397 Compare May 19, 2023 07:14
    @pavloburykh pavloburykh self-assigned this May 19, 2023
    @status-im-auto
    Copy link
    Member

    94% of end-end tests have passed

    Total executed tests: 32
    Failed tests: 2
    Passed tests: 30
    Not executed tests: 1
    
    IDs of not executed tests: 703194 
    
    IDs of failed tests: 702844,702838 
    

    Not executed tests (1)

    Click to expand
  • Rerun not executed tests
  • Failed tests (2)

    Click to expand
  • Rerun failed tests

  • Class TestCommunityMultipleDeviceMerged:

    1. test_community_links_with_previews_github_youtube_twitter_gif_send_enable, id: 702844

    Device 2: Tap on found: SendMessageButton
    Device 2: Find `Button` by `xpath`: `//*[@text="Don't ask me again"]`

    critical/test_public_chat_browsing.py:604: in test_community_links_with_previews_github_youtube_twitter_gif_send_enable
        self.channel_2.element_by_translation_id("dont-ask").click()
    ../views/base_element.py:91: in click
        self.find_element().click()
    ../views/base_element.py:80: in find_element
        raise NoSuchElementException(
     Device 2: Button by xpath: `//*[@text="Don't ask me again"]` is not found on the screen
    



    Device sessions

    2. test_community_message_send_check_timestamps_sender_username, id: 702838

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

    critical/test_public_chat_browsing.py:456: in test_community_message_send_check_timestamps_sender_username
        channel.verify_message_is_under_today_text(message, self.errors)
    ../views/chat_view.py:935: in verify_message_is_under_today_text
        message_element.wait_for_visibility_of_element()
    ../views/base_element.py:135: in wait_for_visibility_of_element
        raise TimeoutException(
     Device 2: ChatElementByText by xpath:`//*[starts-with(@text,'hello')]/ancestor::android.view.ViewGroup[@content-desc='chat-item']` is not found on the screen after wait_for_visibility_of_element 
    

    [[blocked by 14797]]

    Device sessions

    Passed tests (30)

    Click to expand

    Class TestActivityMultipleDevicePR:

    1. test_activity_center_reply_read_unread_delete_filter_swipe, id: 702947
    Device sessions

    2. test_activity_center_admin_notification_accept_swipe, id: 702958
    Device sessions

    3. test_navigation_jump_to, id: 702936
    Device sessions

    4. test_activity_center_mentions, id: 702957
    Device sessions

    Class TestGroupChatMultipleDeviceMergedNewUI:

    1. test_group_chat_pin_messages, id: 702732
    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

    Class TestActivityCenterContactRequestMultipleDevicePR:

    1. test_activity_center_contact_request_decline, id: 702850
    Device sessions

    2. test_activity_center_contact_request_accept_swipe_mark_all_as_read, id: 702851
    Device sessions

    Class TestOneToOneChatMultipleSharedDevicesNewUi:

    1. test_1_1_chat_text_message_delete_push_disappear, id: 702733
    Device sessions

    2. test_1_1_chat_edit_message, id: 702855
    Device sessions

    3. test_1_1_chat_non_latin_messages_stack_update_profile_photo, id: 702745
    Device sessions

    4. test_1_1_chat_message_reaction, id: 702730
    Device sessions

    5. test_1_1_chat_emoji_send_reply_and_open_link, id: 702782
    Device sessions

    6. test_1_1_chat_is_shown_message_sent_delivered_from_offline, id: 702783
    Device sessions

    7. test_1_1_chat_pin_messages, id: 702731
    Device sessions

    8. test_1_1_chat_push_emoji, id: 702813
    Device sessions

    9. test_1_1_chat_delete_via_long_press_relogin, id: 702784
    Device sessions

    Class TestCommunityOneDeviceMerged:

    1. test_community_navigate_to_channel_when_relaunch, id: 702846
    Device sessions

    2. test_restore_multiaccount_with_waku_backup_remove_switch, id: 703133
    Device sessions

    3. test_community_copy_and_paste_message_in_chat_input, id: 702742
    Device sessions

    Class TestCommunityMultipleDeviceMerged:

    1. test_community_emoji_send_copy_paste_reply, id: 702840
    Device sessions

    2. test_1_1_chat_image_send_reply, id: 702859
    Device sessions

    3. test_community_mentions_push_notification, id: 702786
    Device sessions

    4. test_community_contact_block_unblock_offline, id: 702894
    Device sessions

    5. test_community_leave, id: 702845
    Device sessions

    6. test_community_unread_messages_badge, id: 702841
    Device sessions

    7. test_community_message_delete, id: 702839
    Device sessions

    8. test_community_mark_all_messages_as_read, id: 703086
    Device sessions

    9. test_community_message_edit, id: 702843
    Device sessions

    @pavloburykh
    Copy link
    Contributor

    Hey @yqrashawn ! Thanx for the PR. We are waiting for the review. After approval we will be able to take it into testing.

    @status-im-auto
    Copy link
    Member

    94% of end-end tests have passed

    Total executed tests: 32
    Failed tests: 2
    Passed tests: 30
    Not executed tests: 1
    
    IDs of not executed tests: 703194 
    
    IDs of failed tests: 702838,702844 
    

    Not executed tests (1)

    Click to expand
  • Rerun not executed tests
  • Failed tests (2)

    Click to expand
  • Rerun failed tests

  • Class TestCommunityMultipleDeviceMerged:

    1. test_community_message_send_check_timestamps_sender_username, id: 702838

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

    critical/test_public_chat_browsing.py:456: in test_community_message_send_check_timestamps_sender_username
        channel.verify_message_is_under_today_text(message, self.errors)
    ../views/chat_view.py:935: in verify_message_is_under_today_text
        message_element.wait_for_visibility_of_element()
    ../views/base_element.py:135: in wait_for_visibility_of_element
        raise TimeoutException(
     Device 2: ChatElementByText by xpath:`//*[starts-with(@text,'hello')]/ancestor::android.view.ViewGroup[@content-desc='chat-item']` is not found on the screen after wait_for_visibility_of_element 
    

    [[blocked by 14797]]

    Device sessions

    2. test_community_links_with_previews_github_youtube_twitter_gif_send_enable, id: 702844

    Device 2: Tap on found: SendMessageButton
    Device 2: Find Button by xpath: //*[@text="Don't ask me again"]

    critical/test_public_chat_browsing.py:604: in test_community_links_with_previews_github_youtube_twitter_gif_send_enable
        self.channel_2.element_by_translation_id("dont-ask").click()
    ../views/base_element.py:91: in click
        self.find_element().click()
    ../views/base_element.py:80: in find_element
        raise NoSuchElementException(
     Device 2: Button by xpath: `//*[@text="Don't ask me again"]` is not found on the screen
    



    Device sessions

    Passed tests (30)

    Click to expand

    Class TestGroupChatMultipleDeviceMergedNewUI:

    1. test_group_chat_pin_messages, id: 702732
    Device sessions

    2. test_group_chat_offline_pn, id: 702808
    Device sessions

    3. test_group_chat_join_send_text_messages_push, id: 702807
    Device sessions

    Class TestActivityMultipleDevicePR:

    1. test_activity_center_admin_notification_accept_swipe, id: 702958
    Device sessions

    2. test_activity_center_mentions, id: 702957
    Device sessions

    3. test_navigation_jump_to, id: 702936
    Device sessions

    4. test_activity_center_reply_read_unread_delete_filter_swipe, id: 702947
    Device sessions

    Class TestOneToOneChatMultipleSharedDevicesNewUi:

    1. test_1_1_chat_delete_via_long_press_relogin, id: 702784
    Device sessions

    2. test_1_1_chat_push_emoji, id: 702813
    Device sessions

    3. test_1_1_chat_pin_messages, id: 702731
    Device sessions

    4. test_1_1_chat_is_shown_message_sent_delivered_from_offline, id: 702783
    Device sessions

    5. test_1_1_chat_non_latin_messages_stack_update_profile_photo, id: 702745
    Device sessions

    6. test_1_1_chat_emoji_send_reply_and_open_link, id: 702782
    Device sessions

    7. test_1_1_chat_message_reaction, id: 702730
    Device sessions

    8. test_1_1_chat_text_message_delete_push_disappear, id: 702733
    Device sessions

    9. test_1_1_chat_edit_message, id: 702855
    Device sessions

    Class TestCommunityMultipleDeviceMerged:

    1. test_community_mark_all_messages_as_read, id: 703086
    Device sessions

    2. test_community_mentions_push_notification, id: 702786
    Device sessions

    3. test_community_emoji_send_copy_paste_reply, id: 702840
    Device sessions

    4. test_community_contact_block_unblock_offline, id: 702894
    Device sessions

    5. test_community_leave, id: 702845
    Device sessions

    6. test_community_message_edit, id: 702843
    Device sessions

    7. test_community_message_delete, id: 702839
    Device sessions

    8. test_1_1_chat_image_send_reply, id: 702859
    Device sessions

    9. test_community_unread_messages_badge, id: 702841
    Device sessions

    Class TestCommunityOneDeviceMerged:

    1. test_restore_multiaccount_with_waku_backup_remove_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

    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

    @pavloburykh
    Copy link
    Contributor

    @yqrashawn thank you for the PR.

    Just to make sure: empty profile image is not in scope of current PR, correct?

    photo_2023-05-22 15 26 12

    @pavloburykh
    Copy link
    Contributor

    Just to make sure: empty profile image is not in scope of current PR, correct?

    If it is not - then this PR is ready to be merged.

    If it is in scope - then we need to add ident ring for empty login profile picture.

    Signed-off-by: yqrashawn <namy.19@gmail.com>
    @yqrashawn yqrashawn force-pushed the identring-for-login-profile-pic branch from bfd002c to 6ae4722 Compare May 23, 2023 05:23
    @yqrashawn
    Copy link
    Contributor Author

    @pavloburykh it's not in the scope of this PR.
    Avatar with no custom pic requires generating images with initials from the status-go side, still WIP status-im/status-go#3513

    @yqrashawn yqrashawn merged commit 2191f68 into develop May 23, 2023
    @yqrashawn yqrashawn deleted the identring-for-login-profile-pic branch May 23, 2023 06:10
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
    Projects
    No open projects
    Archived in project
    Development

    Successfully merging this pull request may close these issues.

    4 participants