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

[iOS] Wrong bottom sheet opacity on onboarding and in the activity center #19319

Merged
merged 6 commits into from
Apr 9, 2024

Conversation

alwx
Copy link
Contributor

@alwx alwx commented Mar 18, 2024

Fixes #18924

Screenshot:
Screenshot 2024-03-18 at 21 06 58

Platforms

  • Android
  • iOS

status: ready

@alwx alwx requested review from flexsurfer and J-Son89 March 18, 2024 20:08
@alwx alwx self-assigned this Mar 18, 2024
@status-im-auto
Copy link
Member

status-im-auto commented Mar 18, 2024

Jenkins Builds

Click to see older builds (22)
Commit #️⃣ Finished (UTC) Duration Platform Result
✔️ 7148124 #1 2024-03-18 20:15:31 ~7 min android-e2e 🤖apk 📲
✔️ 7148124 #1 2024-03-18 20:15:37 ~7 min android 🤖apk 📲
✔️ 7148124 #1 2024-03-18 20:17:38 ~9 min ios 📱ipa 📲
✔️ 3767a3e #2 2024-03-20 10:40:08 ~5 min tests 📄log
✔️ 3767a3e #2 2024-03-20 10:41:26 ~6 min android-e2e 🤖apk 📲
✔️ 3767a3e #2 2024-03-20 10:41:32 ~7 min android 🤖apk 📲
✔️ 3767a3e #2 2024-03-20 10:43:43 ~9 min ios 📱ipa 📲
✔️ 2fc3c95 #3 2024-03-20 14:00:27 ~6 min tests 📄log
✔️ 2fc3c95 #3 2024-03-20 14:01:34 ~7 min android-e2e 🤖apk 📲
✔️ 2fc3c95 #3 2024-03-20 14:02:01 ~7 min android 🤖apk 📲
✔️ 2fc3c95 #3 2024-03-20 14:04:06 ~9 min ios 📱ipa 📲
✔️ 3c22f3a #4 2024-03-28 10:36:22 ~5 min tests 📄log
✔️ 3c22f3a #4 2024-03-28 10:39:43 ~8 min android-e2e 🤖apk 📲
✔️ 3c22f3a #4 2024-03-28 10:39:46 ~8 min android 🤖apk 📲
✔️ 3c22f3a #4 2024-03-28 10:43:25 ~12 min ios 📱ipa 📲
✔️ d91d6c2 #5 2024-04-08 11:29:20 ~4 min tests 📄log
✔️ d91d6c2 #5 2024-04-08 11:31:56 ~7 min android 🤖apk 📲
✔️ d91d6c2 #5 2024-04-08 11:32:19 ~7 min android-e2e 🤖apk 📲
✔️ d91d6c2 #5 2024-04-08 11:37:35 ~12 min ios 📱ipa 📲
✔️ 17188ce #6 2024-04-08 12:26:16 ~7 min android 🤖apk 📲
✔️ 17188ce #6 2024-04-08 12:26:28 ~7 min android-e2e 🤖apk 📲
✔️ 17188ce #6 2024-04-08 12:27:58 ~8 min ios 📱ipa 📲
Commit #️⃣ Finished (UTC) Duration Platform Result
✔️ ecbe63c #7 2024-04-08 12:55:54 ~7 min android-e2e 🤖apk 📲
✔️ ecbe63c #7 2024-04-08 12:56:32 ~8 min android 🤖apk 📲
✔️ ecbe63c #7 2024-04-08 13:05:14 ~16 min ios 📱ipa 📲
✔️ c91a086 #8 2024-04-09 06:17:48 ~4 min tests 📄log
✔️ c91a086 #8 2024-04-09 06:19:19 ~5 min android 🤖apk 📲
✔️ c91a086 #8 2024-04-09 06:20:19 ~6 min android-e2e 🤖apk 📲
✔️ c91a086 #8 2024-04-09 06:21:54 ~8 min ios 📱ipa 📲

@@ -119,7 +119,7 @@
[blur/ios-view
{:style style/shell-bg
:blur-radius (or blur-radius 20)
:blur-type :transparent
:blur-type :dark
Copy link
Member

Choose a reason for hiding this comment

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

dunno how it's related, because it's only for shell? true ? but in the description not shell screens. cc @Parveshdhull

Copy link
Member

Choose a reason for hiding this comment

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

hi @flexsurfer, for onboarding screen we are passing :shell? true

Copy link
Member

Choose a reason for hiding this comment

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

@alwx I am not sure if using :blur-type as :dark is right solution.

:dark, :light also creates dark overlay, and if you check screenshot added in description. It is blackish and don't match figma.

Copy link
Member

Choose a reason for hiding this comment

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

PR Figma

Copy link
Member

Choose a reason for hiding this comment

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

Fixing blur will be a little hard.

Quick fix

  • As a background, we are passing colors/white-opa-5, try using colors/white-opa-10 etc. to check if it matches the design
  • Also you can play around with blur radius/amount

Another fix (probably not priority)

For exactly matching figma design, we will need to find exact combination of blur params and background color. Values which are used in figma can't be used directly, as :transparent applies some staturation.

More research: #14903
Related Discussion: Kureev/react-native-blur#513

We fixed blur issue for bottom tabs, as you can check in #14903 (comment), but it took lots of time.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@Parveshdhull I played with values, nothing else gets even close to the designs except changing the blur amount. Changing background color makes it lighter or darker but doesn't change the blur itself. But you're right about the overlay the :dark value creates, it also seems to be a bad option.

I ended up updating the :blur-amount to 32 to get this:
Screenshot 2024-03-20 at 11 26 18

It's still slightly bluish than the design but it's gonna be hard to eliminate the blue tone simply because the button itself is blue and it's getting blurred instead of disappearing. But at least the amount of blur seems to suit better and look closer to the expected result.

Screenshot 2024-03-20 at 11 26 22

Copy link
Member

@Parveshdhull Parveshdhull Mar 20, 2024

Choose a reason for hiding this comment

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

It's still slightly bluish than the design but it's gonna be hard to eliminate the blue tone simply because the button itself is blue and it's getting blurred instead of disappearing.

It should not disappear. I think it is a design bug, I checked figma file and it don't have continue button in background.

  • Little curious, why screenshot you shared don't have border-radius as screenshots in issue have. (unrelated)
  • Please use another on-boarding screen or activity center for finding right value. It seems this screen is not right in figma itself.

Copy link
Member

Choose a reason for hiding this comment

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

Please use another on-boarding screen or activity center for finding right value. It seems this screen is not right in figma itself.

If you think, the same value also works best for other screen, then I guess we can keep this fix for now. Thank you for fixing it.

@flexsurfer
Copy link
Member

changed back to manual qa till waiting response from @alwx

@alwx
Copy link
Contributor Author

alwx commented Mar 20, 2024

@Parveshdhull @flexsurfer to be honest, I don't think that blur-related issues need to be addressed somewhat separately — we know that the blur almost never looks like the designs and it's more of an issue with the component itself. My proposal would be to update the blur amount as part of this issue and create another umbrella issue for all blur-related things.

Copy link
Member

@Parveshdhull Parveshdhull left a comment

Choose a reason for hiding this comment

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

Thank you for fixing it. Please make sure this :blur-amount is working also for other screens mentioned in issue. (As onboarding screen is not good for comparing due to design bug)

@status-im-auto
Copy link
Member

94% of end-end tests have passed

Total executed tests: 48
Failed tests: 2
Expected to fail tests: 1
Passed tests: 45
IDs of failed tests: 702894,702850 
IDs of expected to fail tests: 703503 

Failed tests (2)

Click to expand
  • Rerun failed tests

  • Class TestCommunityMultipleDeviceMerged:

    1. test_community_contact_block_unblock_offline, id: 702894

    Device 2: `Text` is `Delivered`
    Device 1: Looking for a message by text: Hurray! unblocked

    critical/chats/test_public_chat_browsing.py:740: in test_community_contact_block_unblock_offline
        self.errors.verify_no_errors()
    base_test_case.py:191: in verify_no_errors
        pytest.fail('\n '.join([self.errors.pop(0) for _ in range(len(self.errors))]))
     1-1 chat from blocked user is not removed and messages home is not empty!
    



    Device sessions

    Class TestActivityCenterContactRequestMultipleDevicePR:

    1. test_activity_center_contact_request_decline, id: 702850

    Device 2: Find Button by accessibility id: close-activity-center
    Device 2: Tap on found: Button

    activity_center/test_activity_center.py:94: in test_activity_center_contact_request_decline
        self.errors.verify_no_errors()
    base_test_case.py:191: in verify_no_errors
        pytest.fail('\n '.join([self.errors.pop(0) for _ in range(len(self.errors))]))
     Pending contact request is not shown on unread notification element on Activity center!
    



    Device sessions

    Expected to fail tests (1)

    Click to expand

    Class TestCommunityOneDeviceMerged:

    1. test_community_discovery, id: 703503

    Test is not run, e2e blocker  
    

    [[reason: [NOTRUN] Curated communities not loading, https://github.com//issues/17852]]

    Passed tests (45)

    Click to expand

    Class TestActivityCenterContactRequestMultipleDevicePR:

    1. test_add_contact_field_validation, id: 702777
    Device sessions

    2. test_activity_center_contact_request_accept_swipe_mark_all_as_read, id: 702851
    Device sessions

    Class TestGroupChatMultipleDeviceMergedNewUI:

    1. test_group_chat_pin_messages, id: 702732
    Device sessions

    2. test_group_chat_mute_chat, id: 703495
    Device sessions

    3. test_group_chat_send_image_save_and_share, id: 703297
    Device sessions

    4. test_group_chat_reactions, id: 703202
    Device sessions

    5. test_group_chat_join_send_text_messages_push, id: 702807
    Device sessions

    6. test_group_chat_offline_pn, id: 702808
    Device sessions

    Class TestCommunityMultipleDeviceMergedTwo:

    1. test_community_markdown_support, id: 702809
    Device sessions

    2. test_community_hashtag_links_to_community_channels, id: 702948
    Device sessions

    3. test_community_mentions_push_notification, id: 702786
    Device sessions

    4. test_community_leave, id: 702845
    Device sessions

    5. test_community_join_when_node_owner_offline, id: 703629
    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_undo_delete_message, id: 702869
    Device sessions

    4. test_community_navigate_to_channel_when_relaunch, id: 702846
    Device sessions

    5. test_community_mute_community_and_channel, id: 703382
    Device sessions

    Class TestDeepLinksOneDevice:

    1. test_links_open_universal_links_from_chat, id: 704613
    Device sessions

    2. test_links_deep_links, id: 702775
    Device sessions

    Class TestActivityMultipleDevicePRTwo:

    1. test_activity_center_mentions, id: 702957
    Device sessions

    2. test_activity_center_admin_notification_accept_swipe, id: 702958
    Device sessions

    Class TestOneToOneChatMultipleSharedDevicesNewUiTwo:

    1. test_1_1_chat_delete_via_long_press_relogin, id: 702784
    Device sessions

    2. test_1_1_chat_is_shown_message_sent_delivered_from_offline, id: 702783
    Device sessions

    3. test_1_1_chat_mute_chat, id: 703496
    Device sessions

    Class TestActivityMultipleDevicePR:

    1. test_navigation_jump_to, id: 702936
    Device sessions

    2. test_activity_center_reply_read_unread_delete_filter_swipe, id: 702947
    Device sessions

    Class TestCommunityMultipleDeviceMerged:

    1. test_community_several_images_send_reply, id: 703194
    Device sessions

    2. test_community_one_image_send_reply, id: 702859
    Device sessions

    3. test_community_emoji_send_copy_paste_reply, id: 702840
    Device sessions

    4. test_community_mark_all_messages_as_read, id: 703086
    Device sessions

    5. test_community_edit_delete_message_when_offline, id: 704615
    Device sessions

    6. test_community_message_delete, id: 702839
    Device sessions

    7. test_community_message_send_check_timestamps_sender_username, id: 702838
    Device sessions

    8. test_community_links_with_previews_github_youtube_twitter_gif_send_enable, id: 702844
    Device sessions

    9. test_community_message_edit, id: 702843
    Device sessions

    10. test_community_unread_messages_badge, id: 702841
    Device sessions

    Class TestOneToOneChatMultipleSharedDevicesNewUi:

    1. test_1_1_chat_emoji_send_reply_and_open_link, id: 702782
    Device sessions

    2. test_1_1_chat_text_message_delete_push_disappear, id: 702733
    Device sessions

    3. test_1_1_chat_push_emoji, id: 702813
    Device sessions

    4. test_1_1_chat_non_latin_messages_stack_update_profile_photo, id: 702745
    Device sessions

    5. test_1_1_chat_edit_message, id: 702855
    Device sessions

    6. test_1_1_chat_send_image_save_and_share, id: 703391
    Device sessions

    7. test_1_1_chat_pin_messages, id: 702731
    Device sessions

    8. test_1_1_chat_message_reaction, id: 702730
    Device sessions

    @pavloburykh
    Copy link
    Contributor

    @alwx e2e are fine here. If PR does not require manual qa then it is ready for design review. cc @Francesca-G

    @Francesca-G
    Copy link

    If PR does not require manual qa then it is ready for design review. cc @Francesca-G

    @pavloburykh I was trying to install the PR but this is where the QR code brings me

    Screenshot 2024-03-28 alle 10 38 55

    could you please check if it's a problem on my side? Thank you 🙏

    @pavloburykh
    Copy link
    Contributor

    could you please check if it's a problem on my side? Thank you 🙏

    Hey @Francesca-G! IOS build was outdated. I rebased and updated the builds. Here is the latest IOS build https://i.diawi.com/cNyXgg

    Copy link

    @Francesca-G Francesca-G left a comment

    Choose a reason for hiding this comment

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

    looks good ✨

    @churik
    Copy link
    Member

    churik commented Apr 8, 2024

    @alwx can you please merge it?

    @alwx alwx merged commit edd1d06 into develop Apr 9, 2024
    6 checks passed
    @alwx alwx deleted the bugfix/18924 branch April 9, 2024 06:36
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
    Projects
    Archived in project
    Archived in project
    Development

    Successfully merging this pull request may close these issues.

    [iOS] Wrong bottom sheet opacity on onboarding and in the activity center
    8 participants