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

Toast notification design fixes #18468

Merged
merged 19 commits into from
Feb 9, 2024
Merged

Toast notification design fixes #18468

merged 19 commits into from
Feb 9, 2024

Conversation

alwx
Copy link
Contributor

@alwx alwx commented Jan 11, 2024

fixes #17540

Platforms

  • Android
  • iOS

Areas that maybe impacted

Functional
  • toasts

status: ready

@alwx alwx self-assigned this Jan 11, 2024
@alwx alwx marked this pull request as ready for review January 11, 2024 11:23
@status-im-auto
Copy link
Member

status-im-auto commented Jan 11, 2024

Jenkins Builds

Click to see older builds (56)
Commit #️⃣ Finished (UTC) Duration Platform Result
23c4436 #2 2024-01-11 11:26:07 ~2 min tests 📄log
✔️ 23c4436 #2 2024-01-11 11:29:35 ~5 min ios 📱ipa 📲
✔️ 23c4436 #2 2024-01-11 11:31:49 ~7 min android-e2e 🤖apk 📲
✔️ 23c4436 #2 2024-01-11 11:32:34 ~8 min android 🤖apk 📲
✔️ 45b2107 #3 2024-01-11 15:07:38 ~5 min ios 📱ipa 📲
✔️ 45b2107 #3 2024-01-11 15:08:30 ~6 min tests 📄log
✔️ 45b2107 #3 2024-01-11 15:10:15 ~8 min android 🤖apk 📲
✔️ 45b2107 #3 2024-01-11 15:10:35 ~8 min android-e2e 🤖apk 📲
2379694 #4 2024-01-12 17:05:06 ~1 min tests 📄log
✔️ 2379694 #4 2024-01-12 17:08:40 ~5 min ios 📱ipa 📲
✔️ 2379694 #4 2024-01-12 17:09:48 ~6 min android-e2e 🤖apk 📲
✔️ 2379694 #4 2024-01-12 17:10:10 ~6 min android 🤖apk 📲
✔️ 4860032 #5 2024-01-12 17:27:21 ~5 min tests 📄log
✔️ 4860032 #5 2024-01-12 17:27:34 ~5 min ios 📱ipa 📲
✔️ 4860032 #5 2024-01-12 17:28:48 ~6 min android-e2e 🤖apk 📲
✔️ 4860032 #5 2024-01-12 17:28:54 ~6 min android 🤖apk 📲
✔️ fc41e34 #6 2024-01-15 08:20:30 ~5 min tests 📄log
fc41e34 #6 2024-01-15 08:20:38 ~5 min ios 📄log
✔️ fc41e34 #6 2024-01-15 08:21:36 ~6 min android-e2e 🤖apk 📲
✔️ fc41e34 #6 2024-01-15 08:22:55 ~8 min android 🤖apk 📲
✔️ d90f021 #7 2024-01-16 08:54:59 ~5 min ios 📱ipa 📲
✔️ d90f021 #7 2024-01-16 08:55:08 ~5 min tests 📄log
✔️ d90f021 #7 2024-01-16 08:56:07 ~6 min android-e2e 🤖apk 📲
✔️ d90f021 #7 2024-01-16 08:57:20 ~7 min android 🤖apk 📲
✔️ 26bd64d #8 2024-01-19 09:25:02 ~5 min tests 📄log
✔️ 26bd64d #8 2024-01-19 09:26:05 ~6 min ios 📱ipa 📲
✔️ 26bd64d #8 2024-01-19 09:26:37 ~6 min android-e2e 🤖apk 📲
✔️ 26bd64d #8 2024-01-19 09:27:51 ~8 min android 🤖apk 📲
✔️ 11bfd45 #9 2024-01-22 08:39:03 ~5 min tests 📄log
✔️ 11bfd45 #9 2024-01-22 08:39:23 ~5 min ios 📱ipa 📲
✔️ 11bfd45 #9 2024-01-22 08:40:36 ~6 min android-e2e 🤖apk 📲
✔️ 11bfd45 #9 2024-01-22 08:41:35 ~7 min android 🤖apk 📲
✔️ ec2df3b #10 2024-01-29 08:43:23 ~5 min tests 📄log
✔️ ec2df3b #10 2024-01-29 08:43:32 ~5 min ios 📱ipa 📲
✔️ ec2df3b #10 2024-01-29 08:44:45 ~6 min android-e2e 🤖apk 📲
✔️ ec2df3b #10 2024-01-29 08:46:00 ~7 min android 🤖apk 📲
df8d090 #11 2024-01-30 12:07:33 ~1 min tests 📄log
✔️ df8d090 #11 2024-01-30 12:11:58 ~5 min ios 📱ipa 📲
✔️ df8d090 #11 2024-01-30 12:12:57 ~6 min android-e2e 🤖apk 📲
✔️ df8d090 #11 2024-01-30 12:13:09 ~6 min android 🤖apk 📲
✔️ 243db6d #13 2024-01-30 22:04:38 ~5 min tests 📄log
✔️ 243db6d #13 2024-01-30 22:05:13 ~5 min ios 📱ipa 📲
✔️ 243db6d #13 2024-01-30 22:06:51 ~7 min android-e2e 🤖apk 📲
✔️ 243db6d #13 2024-01-30 22:07:13 ~7 min android 🤖apk 📲
✔️ a511eef #14 2024-01-31 11:54:01 ~4 min tests 📄log
✔️ a511eef #14 2024-01-31 11:54:42 ~5 min ios 📱ipa 📲
✔️ a511eef #14 2024-01-31 11:55:58 ~6 min android-e2e 🤖apk 📲
✔️ a511eef #14 2024-01-31 11:56:02 ~6 min android 🤖apk 📲
✔️ ab4c56d #16 2024-02-05 16:39:50 ~5 min tests 📄log
✔️ ab4c56d #16 2024-02-05 16:40:00 ~5 min ios 📱ipa 📲
✔️ ab4c56d #17 2024-02-05 16:41:43 ~7 min android 🤖apk 📲
✔️ ab4c56d #17 2024-02-05 16:42:16 ~7 min android-e2e 🤖apk 📲
✔️ 9fe8645 #17 2024-02-07 22:00:52 ~5 min tests 📄log
✔️ 9fe8645 #18 2024-02-07 22:02:01 ~6 min android 🤖apk 📲
✔️ 9fe8645 #18 2024-02-07 22:02:11 ~6 min android-e2e 🤖apk 📲
✔️ 9fe8645 #17 2024-02-07 22:03:41 ~8 min ios 📱ipa 📲
Commit #️⃣ Finished (UTC) Duration Platform Result
b9c4841 #19 2024-02-08 10:49:52 ~31 sec android 📄log
✔️ b9c4841 #18 2024-02-08 10:54:26 ~5 min tests 📄log
✔️ b9c4841 #18 2024-02-08 10:55:42 ~6 min ios 📱ipa 📲
✔️ b9c4841 #19 2024-02-08 10:56:37 ~7 min android-e2e 🤖apk 📲
b9c4841 #20 2024-02-08 13:55:48 ~8 sec android 📄log
b9c4841 #21 2024-02-08 14:23:05 ~52 sec android 📄log
b9c4841 #22 2024-02-08 19:15:08 ~23 sec android 📄log
b9c4841 #23 2024-02-08 20:41:09 ~8.3 sec android 📄log
b9c4841 #24 2024-02-08 21:41:47 ~7.8 sec android 📄log
b9c4841 #25 2024-02-08 21:44:01 ~6.6 sec android 📄log
b9c4841 #26 2024-02-09 08:12:27 ~7.9 sec android 📄log
✔️ a0403ec #19 2024-02-09 08:26:50 ~5 min tests 📄log
✔️ a0403ec #27 2024-02-09 08:28:17 ~6 min android 🤖apk 📲
✔️ a0403ec #20 2024-02-09 08:29:13 ~7 min android-e2e 🤖apk 📲
✔️ a0403ec #19 2024-02-09 08:29:45 ~8 min ios 📱ipa 📲

Copy link
Member

@smohamedjavid smohamedjavid left a comment

Choose a reason for hiding this comment

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

Nice work!

Comment on lines +79 to +84
:positive (if (= theme :light)
:i/correct
:i/correct-dark)
:negative (if (= theme :light)
:i/incorrect
:i/incorrect-dark)
Copy link
Member

Choose a reason for hiding this comment

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

@alwx - The best way to handle colors in icons is using SVG.

(ns quo.components.icons.svg

This will help us reduce the clutter of images/icons needed for each theme.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Honestly, in the current form it just creates clutter somewhere else — namely in the namespace called quo.components.icons.svg. In addition, those icons are very hard to be replaced because instead of putting them in resources we're now writing Clojure code for them.
I would say I'm gonna skip it for now because it feels wrong to replace an imperfect solution with something that's also imperfect and ugly.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@status-im-auto
Copy link
Member

83% of end-end tests have passed

Total executed tests: 48
Failed tests: 6
Expected to fail tests: 2
Passed tests: 40
IDs of failed tests: 702809,702948,702786,702731,702845,703629 
IDs of expected to fail tests: 703503,702808 

Failed tests (6)

Click to expand
  • Rerun failed tests

  • Class TestOneToOneChatMultipleSharedDevicesNewUi:

    1. test_1_1_chat_pin_messages, id: 702731

    Device 1: Find `Text` by `xpath`: `//*[starts-with(@text,'Message 1')]/ancestor::android.view.ViewGroup[@content-desc='chat-item']//*[@content-desc='message-status']/android.widget.TextView`
    Device 1: `Text` is `Sent`

    critical/chats/test_1_1_public_chats.py:183: in test_1_1_chat_pin_messages
        self.chat_1.chat_element_by_text(self.message_1).wait_for_status_to_be("Delivered")
    ../views/chat_view.py:243: in wait_for_status_to_be
        raise TimeoutException("Message status was not changed to %s, it's %s" % (expected_status, current_status))
     Message status was not changed to Delivered, it's Sent
    



    Device sessions

    Class TestCommunityMultipleDeviceMergedTwo:

    1. test_community_markdown_support, id: 702809

    Test setup failed: critical/chats/test_public_chat_browsing.py:838: in prepare_devices
        self.community_2.join_community()
    ../views/chat_view.py:435: in join_community
        self.join_button.wait_and_click(120)
    ../views/base_element.py:96: in wait_and_click
        self.wait_for_visibility_of_element(sec)
    ../views/base_element.py:139: in wait_for_visibility_of_element
        raise TimeoutException(
     Device 2: Button by accessibility id:`show-request-to-join-screen-button` is not found on the screen after wait_for_visibility_of_element
    



    2. test_community_hashtag_links_to_community_channels, id: 702948

    Test setup failed: critical/chats/test_public_chat_browsing.py:838: in prepare_devices
        self.community_2.join_community()
    ../views/chat_view.py:435: in join_community
        self.join_button.wait_and_click(120)
    ../views/base_element.py:96: in wait_and_click
        self.wait_for_visibility_of_element(sec)
    ../views/base_element.py:139: in wait_for_visibility_of_element
        raise TimeoutException(
     Device 2: Button by accessibility id:`show-request-to-join-screen-button` is not found on the screen after wait_for_visibility_of_element
    



    3. test_community_mentions_push_notification, id: 702786

    Device 2: Find Text by xpath: //android.view.ViewGroup[@content-desc='chat-item']//android.widget.TextView[contains(@text,'https://status.app/c/')]
    Device 2: Wait for element Button for max 120s and click when it is available

    Test setup failed: critical/chats/test_public_chat_browsing.py:838: in prepare_devices
        self.community_2.join_community()
    ../views/chat_view.py:435: in join_community
        self.join_button.wait_and_click(120)
    ../views/base_element.py:96: in wait_and_click
        self.wait_for_visibility_of_element(sec)
    ../views/base_element.py:139: in wait_for_visibility_of_element
        raise TimeoutException(
     Device 2: Button by accessibility id:`show-request-to-join-screen-button` is not found on the screen after wait_for_visibility_of_element
    



    Device sessions

    4. test_community_leave, id: 702845

    Test setup failed: critical/chats/test_public_chat_browsing.py:838: in prepare_devices
        self.community_2.join_community()
    ../views/chat_view.py:435: in join_community
        self.join_button.wait_and_click(120)
    ../views/base_element.py:96: in wait_and_click
        self.wait_for_visibility_of_element(sec)
    ../views/base_element.py:139: in wait_for_visibility_of_element
        raise TimeoutException(
     Device 2: Button by accessibility id:`show-request-to-join-screen-button` is not found on the screen after wait_for_visibility_of_element
    



    5. test_community_join_when_node_owner_offline, id: 703629

    Test setup failed: critical/chats/test_public_chat_browsing.py:838: in prepare_devices
        self.community_2.join_community()
    ../views/chat_view.py:435: in join_community
        self.join_button.wait_and_click(120)
    ../views/base_element.py:96: in wait_and_click
        self.wait_for_visibility_of_element(sec)
    ../views/base_element.py:139: in wait_for_visibility_of_element
        raise TimeoutException(
     Device 2: Button by accessibility id:`show-request-to-join-screen-button` is not found on the screen after wait_for_visibility_of_element 
    

    [[Can't join a community if admin goes offline, https://github.com//issues/17678]]

    Expected to fail tests (2)

    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]]

    Class TestGroupChatMultipleDeviceMergedNewUI:

    1. test_group_chat_offline_pn, id: 702808

    Device 3: Looking for a message by text: message from old member
    Device 3: Looking for a message by text: message from new member

    critical/chats/test_group_chat.py:324: in test_group_chat_offline_pn
        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))]))
     Messages PN was not fetched from offline 
    

    [[Data delivery issue]]

    Device sessions

    Passed tests (40)

    Click to expand

    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_contact_block_unblock_offline, id: 702894
    Device sessions

    6. test_community_edit_delete_message_when_offline, id: 704615
    Device sessions

    7. test_community_message_delete, id: 702839
    Device sessions

    8. test_community_message_send_check_timestamps_sender_username, id: 702838
    Device sessions

    9. test_community_links_with_previews_github_youtube_twitter_gif_send_enable, id: 702844
    Device sessions

    10. test_community_message_edit, id: 702843
    Device sessions

    11. test_community_unread_messages_badge, id: 702841
    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

    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_message_reaction, id: 702730
    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 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

    3. test_activity_center_contact_request_decline, id: 702850
    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 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 TestActivityMultipleDevicePR:

    1. test_navigation_jump_to, id: 702936
    Device sessions

    2. test_activity_center_reply_read_unread_delete_filter_swipe, id: 702947
    Device sessions

    @mariia-skrypnyk mariia-skrypnyk self-assigned this Jan 15, 2024
    @mariia-skrypnyk
    Copy link

    Hi @alwx ! Thanks for your PR!

    Help me to clarify the point with platforms here:

    Platforms
    Android
    iOS
    macOS
    Linux
    Windows

    Is it a copypaste from the form or your PR really needs to be tested on every of them?
    Thanks!

    @alwx
    Copy link
    Contributor Author

    alwx commented Jan 19, 2024

    @mariia-skrypnyk sorry, no, fixed the description

    @alwx
    Copy link
    Contributor Author

    alwx commented Jan 22, 2024

    Any news regarding testing this one?

    @mariia-skrypnyk
    Copy link

    mariia-skrypnyk commented Jan 22, 2024

    Any news regarding testing this one?

    Hi @alwx !

    Thanks for updating description. I am starting to test ( I was on holidays 2 days and had no ability to start earlier).

    @mariia-skrypnyk
    Copy link

    mariia-skrypnyk commented Jan 31, 2024

    Hi @alwx !
    Thanks for your update!

    No iOS looks great as for me:
    Screenshot 2024-01-31 at 11 02 28
    Screenshot 2024-01-31 at 11 03 25

    But I do have question regarding Android: should it look the same there too? @Francesca-G help us please.
    Now we have this banner placement for Android:
    Screenshot 2024-01-31 at 11 03 07
    Screenshot 2024-01-31 at 11 02 45

    @alwx
    Copy link
    Contributor Author

    alwx commented Jan 31, 2024

    @mariia-skrypnyk that's probably incorrect but the problem is on Android it really might depend on a phone. I tested it on emulator + on Pixel 7a, the position was right but I will check again what can be done to make it look good on all the devices.

    @Francesca-G
    Copy link

    But I do have question regarding Android: should it look the same there too? @Francesca-G help us please. Now we have this banner placement for Android: Screenshot 2024-01-31 at 11 03 07 Screenshot 2024-01-31 at 11 02 45

    Same behavior should be applied on Android :)
    We have the same issue as iOS, the top margin doesn't match design as you can see:

    Screenshot 2024-01-31 alle 17 18 30

    @mariia-skrypnyk
    Copy link

    mariia-skrypnyk commented Feb 1, 2024

    @mariia-skrypnyk that's probably incorrect but the problem is on Android it really might depend on a phone. I tested it on emulator + on Pixel 7a, the position was right but I will check again what can be done to make it look good on all the devices.

    Thanks @alwx !

    @alwx
    Copy link
    Contributor Author

    alwx commented Feb 5, 2024

    @mariia-skrypnyk sorry for the delay. Could you please check it again?

    @mariia-skrypnyk
    Copy link

    mariia-skrypnyk commented Feb 6, 2024

    Hi @alwx !

    These places on Android look great as for me.
    Screenshot 2024-02-06 at 12 36 02
    Screenshot 2024-02-06 at 12 36 24

    But I am not sure this one is ok:
    Screenshot 2024-02-06 at 12 36 43

    @Francesca-G please, make a review of this one and let us know!

    @Francesca-G
    Copy link

    These places on Android look great as for me.

    Screenshot 2024-02-06 at 12 36 02

    Placement looks good here ⬆️

    Screenshot 2024-02-06 at 12 36 24

    Placement isn't correct in this case ⬆️
    The toast should cover the top nav buttons and not touch the avatar as per design:

    Screenshot 2024-02-06 alle 14 05 46

    But I am not sure this one is ok:

    Screenshot 2024-02-06 at 12 36 43

    ⬆️ Technically this isn't the correct placement but as mentioned before this only occurs when the photo drawer is open and the toast in that case is an exception. If the user happens to close the drawer by dragging it the toast will disappear right after, so it's not a problem :)

    @alwx
    Copy link
    Contributor Author

    alwx commented Feb 6, 2024

    @mariia-skrypnyk what would you say? Does it only happen when you close the drawer after you already saw the toast? In this case I also think it's pretty normal because the toast was already placed in the right position.

    @mariia-skrypnyk
    Copy link

    mariia-skrypnyk commented Feb 7, 2024

    🤖apk

    @mariia-skrypnyk what would you say? Does it only happen when you close the drawer after you already saw the toast? In this case I also think it's pretty normal because the toast was already placed in the right position.

    Hi @alwx !

    As @Francesca-G mentioned we have 2 issues.
    First one:

    Placement isn't correct in this case ⬆️
    The toast should cover the top nav buttons and not touch the avatar as per design:

    Screenshot 2024-02-06 at 12 36 24

    Second one:
    Screenshot 2024-02-06 at 12 36 43

    Yes, user can get this view when he quickly closes the drawer AND also when he taps "Confirm selection" the banner is visible for some time.
    Screenshot 2024-02-07 at 13 06 13

    I tried to compare contact request vs images selection and we see them placed on the different line at the bottom.
    I suppose it is the needed height for Android....?
    @Francesca-G what do you think? If it is a tinny problem just leave it as it is.
    Screenshot 2024-02-07 at 13 08 01

    @alwx
    Copy link
    Contributor Author

    alwx commented Feb 7, 2024

    @mariia-skrypnyk as far as I understand, it happens ONLY when you close the image selection, so the popup actually appears on image selection screen and then stays for a couple of seconds in this state once you leave the image selection, is that correct/

    @mariia-skrypnyk
    Copy link

    @mariia-skrypnyk as far as I understand, it happens ONLY when you close the image selection, so the popup actually appears on image selection screen and then stays for a couple of seconds in this state once you leave the image selection, is that correct/

    yes!

    @Francesca-G
    Copy link

    @mariia-skrypnyk as far as I understand, it happens ONLY when you close the image selection, so the popup actually appears on image selection screen and then stays for a couple of seconds in this state once you leave the image selection, is that correct/

    Yes, and we can consider this as expected behavior 👍

    About the screenshot posted by @mariia-skrypnyk we still have an unsolved issue:

    302975593-0904c6b9-c3f3-43f9-a976-482df0c0c415

    The toasts should always have the same top margin, they should be aligned no matter how many lines of text they have.
    Design example:

    image

    @alwx
    Copy link
    Contributor Author

    alwx commented Feb 7, 2024

    @mariia-skrypnyk I don't think it's feasible to even call it an issue, to be honest, because it seems to be a rare case.
    Our toasts currently don't support changing their positions dynamically after they are already placed — we can change that but it would require quite some work to be done with toasts, and it goes well beyond design work.

    In addition, @Francesca-G wrote this:
    ⬆️ Technically this isn't the correct placement but as mentioned before this only occurs when the photo drawer is open and the toast in that case is an exception. If the user happens to close the drawer by dragging it the toast will disappear right after, so it's not a problem :)

    @mariia-skrypnyk
    Copy link

    @mariia-skrypnyk I don't think it's feasible to even call it an issue, to be honest, because it seems to be a rare case. Our toasts currently don't support changing their positions dynamically after they are already placed — we can change that but it would require quite some work to be done with toasts, and it goes well beyond design work.

    In addition, @Francesca-G wrote this: ⬆️ Technically this isn't the correct placement but as mentioned before this only occurs when the photo drawer is open and the toast in that case is an exception. If the user happens to close the drawer by dragging it the toast will disappear right after, so it's not a problem :)

    I totally agree!

    @mariia-skrypnyk
    Copy link

    @mariia-skrypnyk as far as I understand, it happens ONLY when you close the image selection, so the popup actually appears on image selection screen and then stays for a couple of seconds in this state once you leave the image selection, is that correct/

    Yes, and we can consider this as expected behavior 👍

    About the screenshot posted by @mariia-skrypnyk we still have an unsolved issue:

    302975593-0904c6b9-c3f3-43f9-a976-482df0c0c415 >

    The toasts should always have the same top margin, they should be aligned no matter how many lines of text they have. Design example:

    image

    @alwx will you be able to fix this one?

    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.

    @alwx it looks good like this, thank you for your patience 🙏

    @alwx alwx merged commit e381998 into develop Feb 9, 2024
    6 checks passed
    @alwx alwx deleted the toast-fixes branch February 9, 2024 08:54
    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.

    feedback for toast notification in 1:1 chat
    6 participants