Skip to content

Add mention notifications to activity center & empty state#12227

Merged
briansztamfater merged 1 commit intodevelopfrom
feature/mention-activity-center
Jul 2, 2021
Merged

Add mention notifications to activity center & empty state#12227
briansztamfater merged 1 commit intodevelopfrom
feature/mention-activity-center

Conversation

@briansztamfater
Copy link
Contributor

@briansztamfater briansztamfater commented Jun 16, 2021

fixes #12064
fixes #12237
fixes #12238
fixes #12250

Summary

This PR adds mention notification to activity center. Based on designs, there are a couple of things that needs to be refactored to fully comply with the whole activity center feature expected UI/UX, and will be handled on a series of different PRs. Some things that still need to be worked are:

  • The Select feature is still always visible under the top bar
  • Notifications are always immediately marked as read when navigating to the activity center, and that may brake highlighting a new notification. The only way to view a notification in a highlighted background is to receiving a notification while already being in the activity center screen
  • Top bar still needs more work
  • Ellipsis on both sides are a bit tricky to implement, so didn't implement it on this PR

However, I took advantage and added a bit more to the scope for the sake of UI consistency:

  • Unify UI styling for different type of notifications
  • Group and sort notifications by date
  • Added an empty state to the activity center screen

Screenshots

Testing notes

  • Mentions only work for groups and communities for the time being

Platforms

  • Android
  • iOS
Functional
  • activity center

Steps to test

  • Open Status
  • Open a group or community chat
  • Send a message mentioning some user

status: ready

@briansztamfater briansztamfater self-assigned this Jun 16, 2021
@briansztamfater briansztamfater marked this pull request as draft June 16, 2021 12:44
@status-im-auto
Copy link
Member

status-im-auto commented Jun 16, 2021

Jenkins Builds

Click to see older builds (64)
Commit #️⃣ Finished (UTC) Duration Platform Result
d143705 #1 2021-06-16 12:46:50 ~2 min android-e2e 📄log
d143705 #1 2021-06-16 12:47:02 ~3 min android 📄log
d143705 #1 2021-06-16 12:47:36 ~3 min ios 📄log
06e2b27 #2 2021-06-17 04:09:42 ~3 min ios 📄log
06e2b27 #2 2021-06-17 04:10:45 ~4 min android 📄log
06e2b27 #2 2021-06-17 04:10:46 ~4 min android-e2e 📄log
fc8e1cc #3 2021-06-17 23:26:40 ~3 min ios 📄log
fc8e1cc #3 2021-06-17 23:27:11 ~3 min android-e2e 📄log
fc8e1cc #3 2021-06-17 23:27:12 ~3 min android 📄log
e85c8c7 #4 2021-06-18 19:43:53 ~2 min android 📄log
e85c8c7 #4 2021-06-18 19:44:28 ~3 min ios 📄log
e85c8c7 #4 2021-06-18 19:44:43 ~3 min android-e2e 📄log
fd85946 #5 2021-06-18 20:47:03 ~3 min android-e2e 📄log
fd85946 #5 2021-06-18 20:47:12 ~3 min android 📄log
fd85946 #5 2021-06-18 20:47:20 ~3 min ios 📄log
0f4db59 #6 2021-06-18 20:48:53 ~2 min android-e2e 📄log
0f4db59 #6 2021-06-18 20:49:05 ~2 min android 📄log
0f4db59 #6 2021-06-18 20:50:55 ~4 min ios 📄log
✔️ e95be46 #7 2021-06-18 21:05:22 ~15 min ios 📦ipa 📲
✔️ e95be46 #7 2021-06-18 21:07:44 ~17 min android-e2e 📦apk 📲
✔️ e95be46 #7 2021-06-18 21:07:57 ~18 min android 📦apk 📲
✔️ 72b1081 #8 2021-06-21 03:37:35 ~10 min android-e2e 📦apk 📲
✔️ 72b1081 #8 2021-06-21 03:40:14 ~13 min android 📦apk 📲
✔️ 72b1081 #8 2021-06-21 03:40:34 ~13 min ios 📦ipa 📲
✔️ a738eb6 #9 2021-06-21 04:14:04 ~17 min android-e2e 📦apk 📲
✔️ a738eb6 #9 2021-06-21 04:14:12 ~17 min android 📦apk 📲
✔️ a738eb6 #9 2021-06-21 04:17:10 ~20 min ios 📦ipa 📲
✔️ 8abd10c #10 2021-06-21 04:36:30 ~16 min android-e2e 📦apk 📲
✔️ 8abd10c #10 2021-06-21 04:36:40 ~16 min android 📦apk 📲
✔️ 8abd10c #10 2021-06-21 04:40:57 ~21 min ios 📦ipa 📲
✔️ 28995db #11 2021-06-21 04:43:45 ~11 min android-e2e 📦apk 📲
✔️ 28995db #11 2021-06-21 04:47:46 ~15 min android 📦apk 📲
✔️ 28995db #11 2021-06-21 04:50:41 ~18 min ios 📦ipa 📲
✔️ 5361399 #12 2021-06-21 05:17:37 ~15 min ios 📦ipa 📲
✔️ 5361399 #12 2021-06-21 05:20:42 ~19 min android 📦apk 📲
✔️ 5361399 #12 2021-06-21 05:20:54 ~19 min android-e2e 📦apk 📲
✔️ 98d2d11 #13 2021-06-22 13:47:14 ~12 min android-e2e 📦apk 📲
✔️ 98d2d11 #13 2021-06-22 13:54:10 ~19 min android 📦apk 📲
✔️ 98d2d11 #14 2021-06-22 14:28:51 ~11 min android 📦apk 📲
✔️ 98d2d11 #15 2021-06-22 15:42:40 ~21 min ios 📦ipa 📲
✔️ 694df53 #15 2021-06-23 14:43:27 ~11 min android 📦apk 📲
✔️ 694df53 #14 2021-06-23 14:47:20 ~15 min android-e2e 📦apk 📲
✔️ 694df53 #16 2021-06-23 14:48:49 ~17 min ios 📦ipa 📲
3811df5 #16 2021-06-25 03:19:06 ~58 sec android 📄log
3811df5 #15 2021-06-25 03:19:09 ~58 sec android-e2e 📄log
3811df5 #17 2021-06-25 03:19:09 ~58 sec ios 📄log
✔️ d911f06 #17 2021-06-25 03:38:55 ~18 min android 📦apk 📲
✔️ d911f06 #16 2021-06-25 03:38:55 ~18 min android-e2e 📦apk 📲
✔️ d911f06 #18 2021-06-25 03:43:42 ~23 min ios 📦ipa 📲
✔️ 0ddb7de #17 2021-06-25 03:41:18 ~17 min android-e2e 📦apk 📲
✔️ 0ddb7de #18 2021-06-25 03:41:24 ~17 min android 📦apk 📲
✔️ 0ddb7de #19 2021-06-25 03:43:42 ~20 min ios 📦ipa 📲
✔️ 3edec8c #20 2021-06-25 03:58:38 ~17 min ios 📦ipa 📲
✔️ 3edec8c #18 2021-06-25 03:59:35 ~18 min android-e2e 📦apk 📲
✔️ 3edec8c #19 2021-06-25 03:59:43 ~18 min android 📦apk 📲
✔️ eabb550 #20 2021-06-25 15:03:53 ~12 min android 📦apk 📲
✔️ eabb550 #19 2021-06-25 15:09:49 ~18 min android-e2e 📦apk 📲
✔️ eabb550 #21 2021-06-25 15:11:27 ~20 min ios 📦ipa 📲
✔️ 6e5cea2 #21 2021-06-25 15:10:10 ~11 min android 📦apk 📲
✔️ 6e5cea2 #20 2021-06-25 15:10:45 ~12 min android-e2e 📦apk 📲
✔️ 6e5cea2 #22 2021-06-25 15:11:57 ~13 min ios 📦ipa 📲
✔️ 4fd6f0b #22 2021-06-28 14:43:24 ~11 min android-e2e 📦apk 📲
✔️ 4fd6f0b #23 2021-06-28 14:46:48 ~14 min android 📦apk 📲
✔️ 4fd6f0b #24 2021-06-28 14:51:17 ~19 min ios 📦ipa 📲
Commit #️⃣ Finished (UTC) Duration Platform Result
✔️ 0420379 #23 2021-06-28 14:48:55 ~18 min ios 📦ipa 📲
✔️ 0420379 #21 2021-06-28 14:49:38 ~18 min android-e2e 📦apk 📲
✔️ 0420379 #22 2021-06-28 14:49:53 ~19 min android 📦apk 📲
✔️ 234d744 #25 2021-07-02 19:54:01 ~16 min ios 📦ipa 📲
✔️ 234d744 #23 2021-07-02 20:00:14 ~22 min android-e2e 📦apk 📲
✔️ 234d744 #24 2021-07-02 20:00:19 ~23 min android 📦apk 📲

@briansztamfater briansztamfater added this to the Release 1.15 milestone Jun 21, 2021
@briansztamfater briansztamfater force-pushed the feature/mention-activity-center branch from 72b1081 to a738eb6 Compare June 21, 2021 03:56
@briansztamfater briansztamfater changed the title [WIP] Add mention notifications to activity center Add mention notifications to activity center & empty state Jun 21, 2021
@briansztamfater briansztamfater marked this pull request as ready for review June 21, 2021 04:03
@briansztamfater briansztamfater force-pushed the feature/mention-activity-center branch 3 times, most recently from 28995db to 5361399 Compare June 21, 2021 05:01
@briansztamfater briansztamfater force-pushed the feature/mention-activity-center branch from 5361399 to 98d2d11 Compare June 22, 2021 13:34
@status-im-auto
Copy link
Member

87% of end-end tests have passed

Total executed tests: 70
Failed tests: 9
Passed tests: 61
IDs of failed tests: 6244,3998,5689,6645,6226,6279,5502,5419,6237 

Failed tests (9)

Click to expand
  • Rerun tests

  • 1. test_add_and_delete_watch_only_account_to_multiaccount_instance, id: 6244

    Device 1: *Getting ETH amount*
    Device 1: *Scrolling down to SilentButton*

    Device 1: SilentButton by xpath:* `//android.view.ViewGroup[@content-desc=':ETH-asset-value']//android.widget.TextView[1]` is not found on the screen

    Device sessions

    2. test_offline_add_new_group_chat_member, id: 3998

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

    Message with text 'message from new member' was not received Message with text 'message from old member' was not received

    Device sessions

    3. test_keycard_create_login_resotore_unlock_same_seed, id: 5689

    Device 1: Button element not found
    Device 1: *Find Button by accessibility id:* `new-chat-button`

    Device 1: Button by accessibility id: `new-chat-button` is not found on the screen; also Unexpected Alert is shown: 'java.lang.NullPointerException: Attempt to invoke virtual method 'boolean java.lang.Boolean.booleanValue()' on a null object reference'

    Device sessions

    4. test_restore_account_migrate_multiaccount_to_keycard, id: 6645

    Device 1: *Tap on found Button*
    Device 1: **Enter default pin 121212**

    Device 1: 'SilentButton' by xpath:'//*[@text='1']' not found on the screen

    Device sessions

    5. test_ens_mentions_pn_and_nickname_in_public_and_1_1_chats, id: 6226

    Device 1: Button element not found
    Device 1: *Find Button by xpath:* `//*[@text="Ok, got it"]`

    Device 1: Button by xpath: `//*[@text="Ok, got it"]` is not found on the screen

    Device sessions

    6. test_send_eth_to_ens_in_chat, id: 6279

    Expected amount of confirmations is 3, in fact 3
    Device 1: *Wait for text element TransactionStatus to be equal to Confirmed*

    Device 1: 'TransactionStatus' by xpath:'//*[starts-with(@text,'↑ Outgoing transaction')]/ancestor::android.view.ViewGroup[@content-desc='chat-item']/*[1]/*[1]/*[5]/android.widget.TextView' not found on the screen

    Device sessions

    7. test_can_add_existing_ens, id: 5502

    Device 1: *Find Button by xpath:* `(//android.widget.ImageView[@content-desc='icon'])[2]/../..`
    Device 1: *Find Button by xpath:* `//*[@text="Ok, got it"]`

    Device 1: Button by xpath: `//*[@text="Ok, got it"]` is not found on the screen

    Device sessions

    8. test_logcat_backup_recovery_phrase, id: 5419

    Device 1: *Tap on found SignInButton*
    Device 1: *Find Button by accessibility id:* `new-chat-button`

    Device 1: Button by accessibility id: `new-chat-button` is not found on the screen; also Unexpected Alert is shown: 'java.lang.NullPointerException: Attempt to invoke virtual method 'boolean java.lang.Boolean.booleanValue()' on a null object reference'

    Device sessions

    9. test_fetching_balance_after_offline, id: 6237

    Transaction #5, amount is 0.0022104125
    {'blockNumber': '10486658', 'timeStamp': '1624358569', 'hash': '0xce5d6ba644a02c0c8527f2344acaba161d80838c49b0975a4885f885dfb186c5', 'nonce': '2374', 'blockHash': '0x62f3e04735192d2b390f0e28a1156d7f5b069a86515cf87a52ef72004b008b64', 'from': '0xc8f8b3376814d0dfe61e4b9eaf7970697c24f6b2', 'contractAddress': '0xc55cf4b03948d7ebc8b9e8bad92643703811d162', 'to': '0xf184747445c3b85ceb147dfb136067cb93d95f1d', 'value': '2210412500000000', 'tokenName': 'Status Test Token', 'tokenSymbol': 'STT', 'tokenDecimal': '18', 'transactionIndex': '0', 'gas': '125182', 'gasPrice': '31000000000', 'gasUsed': '104319', 'cumulativeGasUsed': '104319', 'input': 'deprecated', 'confirmations': '1621'}

    Transaction with amount 0.002214489 is not found in list of token transactions, address is f184747445c3B85CEb147DfB136067CB93d95F1D during 300s

    Device sessions

    Passed tests (61)

    Click to expand

    1. test_image_in_one_to_one_send_save_reply_timeline, id: 6305
    Device sessions

    2. test_add_account_to_multiaccount_instance_generate_new, id: 6224
    Device sessions

    3. test_keycard_can_see_all_transactions_in_history, id: 6291
    Device sessions

    4. test_sign_message_and_2tx_in_batch_and_transactions_filters_from_daap, id: 5342
    Device sessions

    5. test_open_blocked_secure_not_secure_inlalid_offline_urls, id: 6210
    Device sessions

    6. test_open_public_chat_using_deep_link, id: 5396
    Device sessions

    7. test_send_non_english_message_to_newly_added_contact_on_different_networks, id: 5315
    Device sessions

    8. test_can_see_balance_and_all_transactions_history_on_cellular, id: 5314
    Device sessions

    9. test_insufficient_funds_wallet_positive_balance, id: 5412
    Device sessions

    10. test_delete_close_all_tabs, id: 5390
    Device sessions

    11. test_create_new_group_chat_messaging_pn_delivered, id: 3994
    Device sessions

    12. test_send_token_with_7_decimals, id: 5350
    Device sessions

    13. test_delete_chats_via_delete_button_rejoin, id: 5387
    Device sessions

    14. test_send_transaction_set_recipient_options, id: 6328
    Device sessions

    15. test_keycard_sign_message_and_transactions_from_daap, id: 6251
    Device sessions

    16. test_recover_account_from_new_user_seedphrase, id: 6296
    Device sessions

    17. test_keycard_can_recover_keycard_account_card_pairing, id: 5758
    Device sessions

    18. test_block_user_from_public_chat, id: 5786
    Device sessions

    19. test_send_audio_message_with_push_notification_check, id: 6316
    Device sessions

    20. test_redirect_to_public_chat_tapping_tag_message_fetch_more_history, id: 5675
    Device sessions

    21. test_keycard_send_eth_from_wallet_to_address, id: 6289
    Device sessions

    22. test_add_account_to_wallet_private_key_and_seed_phrase, id: 6272
    Device sessions

    23. test_back_forward_refresh_navigation_history_kept_after_relogin (TestRail link is not found)
    Device sessions

    24. test_offline_is_shown_messaging_1_1_chat_sent_delivered, id: 5310
    Device sessions

    25. test_pair_devices_sync_one_to_one_contacts_nicknames_public_chat, id: 5762
    Device sessions

    26. test_long_press_to_delete_chat, id: 5319
    Device sessions

    27. test_copy_and_paste_messages, id: 5317
    Device sessions

    28. test_open_transaction_on_etherscan_copy_tx_hash, id: 5384
    Device sessions

    29. test_unread_messages_counter_public_chat, id: 5360
    Device sessions

    30. test_user_can_see_all_own_assets_after_account_recovering, id: 5381
    Device sessions

    31. test_send_eth_from_wallet_to_address_incorrect_password, id: 5308
    Device sessions

    32. test_mobile_data_usage_complex_settings, id: 6228
    Device sessions

    33. test_start_chat_with_ens_mention_in_one_to_one, id: 5403
    Device sessions

    34. test_decline_transactions_in_1_1_chat_push_notification_changing_state, id: 6265
    Device sessions

    35. test_send_eth_in_1_1_chat_transaction_push, id: 6253
    Device sessions

    36. test_install_pack_and_send_sticker, id: 5782
    Device sessions

    37. test_switch_users_special_char_password_and_add_new_account_logcat, id: 5356
    Device sessions

    38. test_manage_assets, id: 5341
    Device sessions

    39. test_browser_managing_bookmarks, id: 6633
    Device sessions

    40. test_open_chat_by_pasting_chat_key_check_invalid_chat_key_cases, id: 5304
    Device sessions

    41. test_request_stt_from_daap, id: 5309
    Device sessions

    42. test_can_use_purchased_stickers_on_recovered_account, id: 5783
    Device sessions

    43. test_dapps_permissions, id: 5738
    Device sessions

    44. test_account_recovery_with_uppercase_whitespaces_seed_phrase_special_char_passw_logcat, id: 5394
    Device sessions

    45. test_share_copy_contact_code_and_wallet_address, id: 5323
    Device sessions

    46. test_wallet_set_up, id: 5335
    Device sessions

    47. test_send_transaction_with_custom_token, id: 6208
    Device sessions

    48. test_home_view, id: 5379
    Device sessions

    49. test_request_and_receive_stt_in_1_1_chat_offline, id: 6263
    Device sessions

    50. test_set_profile_picture, id: 6646
    Device sessions

    51. test_collectible_from_wallet, id: 5346
    Device sessions

    52. test_add_and_remove_mention_contact_with_nickname_from_public_chat, id: 5332
    Device sessions

    53. test_keycard_request_stt_from_daap, id: 6249
    Device sessions

    54. test_restore_account_from_mnemonic_to_keycard, id: 6240
    Device sessions

    55. test_pass_phrase_validation, id: 5363
    Device sessions

    56. test_keycard_send_eth_in_1_1_chat, id: 6293
    Device sessions

    57. test_send_and_open_links_with_previews, id: 5373
    Device sessions

    58. test_reactions_to_message_in_chats, id: 6315
    Device sessions

    59. test_push_notification_1_1_chat_no_pn_activity_center, id: 6283
    Device sessions

    60. test_public_chat_messaging_emojis_timestamps, id: 5313
    Device sessions

    61. test_keycard_fetching_balance_after_offline, id: 6290
    Device sessions

    @Serhy
    Copy link
    Contributor

    Serhy commented Jun 23, 2021

    @briansztamfater could you rebase against latest develop please?

    @briansztamfater briansztamfater force-pushed the feature/mention-activity-center branch from 98d2d11 to 694df53 Compare June 23, 2021 14:31
    @status-im-auto
    Copy link
    Member

    100% of end-end tests have passed

    Total executed tests: 70
    Failed tests: 0
    Passed tests: 70
    

    Passed tests (70)

    Click to expand

    1. test_send_token_with_7_decimals, id: 5350
    Device sessions

    2. test_keycard_send_eth_from_wallet_to_address, id: 6289
    Device sessions

    3. test_keycard_fetching_balance_after_offline, id: 6290
    Device sessions

    4. test_install_pack_and_send_sticker, id: 5782
    Device sessions

    5. test_send_audio_message_with_push_notification_check, id: 6316
    Device sessions

    6. test_open_chat_by_pasting_chat_key_check_invalid_chat_key_cases, id: 5304
    Device sessions

    7. test_long_press_to_delete_chat, id: 5319
    Device sessions

    8. test_restore_account_migrate_multiaccount_to_keycard, id: 6645
    Device sessions

    9. test_add_account_to_wallet_private_key_and_seed_phrase, id: 6272
    Device sessions

    10. test_push_notification_1_1_chat_no_pn_activity_center, id: 6283
    Device sessions

    11. test_send_and_open_links_with_previews, id: 5373
    Device sessions

    12. test_keycard_create_login_resotore_unlock_same_seed, id: 5689
    Device sessions

    13. test_manage_assets, id: 5341
    Device sessions

    14. test_open_public_chat_using_deep_link, id: 5396
    Device sessions

    15. test_public_chat_messaging_emojis_timestamps, id: 5313
    Device sessions

    16. test_send_transaction_set_recipient_options, id: 6328
    Device sessions

    17. test_unread_messages_counter_public_chat, id: 5360
    Device sessions

    18. test_logcat_backup_recovery_phrase, id: 5419
    Device sessions

    19. test_keycard_send_eth_in_1_1_chat, id: 6293
    Device sessions

    20. test_keycard_request_stt_from_daap, id: 6249
    Device sessions

    21. test_browser_managing_bookmarks, id: 6633
    Device sessions

    22. test_mobile_data_usage_complex_settings, id: 6228
    Device sessions

    23. test_open_blocked_secure_not_secure_inlalid_offline_urls, id: 6210
    Device sessions

    24. test_add_account_to_multiaccount_instance_generate_new, id: 6224
    Device sessions

    25. test_send_eth_to_ens_in_chat, id: 6279
    Device sessions

    26. test_send_eth_from_wallet_to_address_incorrect_password, id: 5308
    Device sessions

    27. test_ens_mentions_pn_and_nickname_in_public_and_1_1_chats, id: 6226
    Device sessions

    28. test_can_use_purchased_stickers_on_recovered_account, id: 5783
    Device sessions

    29. test_dapps_permissions, id: 5738
    Device sessions

    30. test_start_chat_with_ens_mention_in_one_to_one, id: 5403
    Device sessions

    31. test_send_non_english_message_to_newly_added_contact_on_different_networks, id: 5315
    Device sessions

    32. test_keycard_can_see_all_transactions_in_history, id: 6291
    Device sessions

    33. test_sign_message_and_2tx_in_batch_and_transactions_filters_from_daap, id: 5342
    Device sessions

    34. test_request_stt_from_daap, id: 5309
    Device sessions

    35. test_send_eth_in_1_1_chat_transaction_push, id: 6253
    Device sessions

    36. test_offline_is_shown_messaging_1_1_chat_sent_delivered, id: 5310
    Device sessions

    37. test_delete_close_all_tabs, id: 5390
    Device sessions

    38. test_redirect_to_public_chat_tapping_tag_message_fetch_more_history, id: 5675
    Device sessions

    39. test_request_and_receive_stt_in_1_1_chat_offline, id: 6263
    Device sessions

    40. test_block_user_from_public_chat, id: 5786
    Device sessions

    41. test_keycard_sign_message_and_transactions_from_daap, id: 6251
    Device sessions

    42. test_can_see_balance_and_all_transactions_history_on_cellular, id: 5314
    Device sessions

    43. test_image_in_one_to_one_send_save_reply_timeline, id: 6305
    Device sessions

    44. test_pair_devices_sync_one_to_one_contacts_nicknames_public_chat, id: 5762
    Device sessions

    45. test_back_forward_refresh_navigation_history_kept_after_relogin (TestRail link is not found)
    Device sessions

    46. test_home_view, id: 5379
    Device sessions

    47. test_create_new_group_chat_messaging_pn_delivered, id: 3994
    Device sessions

    48. test_reactions_to_message_in_chats, id: 6315
    Device sessions

    49. test_set_profile_picture, id: 6646
    Device sessions

    50. test_restore_account_from_mnemonic_to_keycard, id: 6240
    Device sessions

    51. test_share_copy_contact_code_and_wallet_address, id: 5323
    Device sessions

    52. test_delete_chats_via_delete_button_rejoin, id: 5387
    Device sessions

    53. test_can_add_existing_ens, id: 5502
    Device sessions

    54. test_send_transaction_with_custom_token, id: 6208
    Device sessions

    55. test_fetching_balance_after_offline, id: 6237
    Device sessions

    56. test_offline_add_new_group_chat_member, id: 3998
    Device sessions

    57. test_copy_and_paste_messages, id: 5317
    Device sessions

    58. test_add_and_delete_watch_only_account_to_multiaccount_instance, id: 6244
    Device sessions

    59. test_account_recovery_with_uppercase_whitespaces_seed_phrase_special_char_passw_logcat, id: 5394
    Device sessions

    60. test_pass_phrase_validation, id: 5363
    Device sessions

    61. test_insufficient_funds_wallet_positive_balance, id: 5412
    Device sessions

    62. test_open_transaction_on_etherscan_copy_tx_hash, id: 5384
    Device sessions

    63. test_wallet_set_up, id: 5335
    Device sessions

    64. test_keycard_can_recover_keycard_account_card_pairing, id: 5758
    Device sessions

    65. test_switch_users_special_char_password_and_add_new_account_logcat, id: 5356
    Device sessions

    66. test_add_and_remove_mention_contact_with_nickname_from_public_chat, id: 5332
    Device sessions

    67. test_collectible_from_wallet, id: 5346
    Device sessions

    68. test_decline_transactions_in_1_1_chat_push_notification_changing_state, id: 6265
    Device sessions

    69. test_recover_account_from_new_user_seedphrase, id: 6296
    Device sessions

    70. test_user_can_see_all_own_assets_after_account_recovering, id: 5381
    Device sessions

    @qoqobolo qoqobolo self-assigned this Jun 24, 2021
    @qoqobolo
    Copy link
    Contributor

    qoqobolo commented Jun 24, 2021

    @briansztamfater thanks for PR!

    ISSUE 1: Unread indicator for new mentions on the Activity center bell doesn't disappear if open chat with received mention from the Home screen

    Steps:
    UserA:

    • Create a group chat with UserB

    UserB:

    • Join the group
    • Navigate to the Home screen

    UserA:

    • Mention UserB

    UserB:

    • Open the chat with mention
    • Return to the Home screen
    • Check indicator on the bell

    Expected result: the new mention indicator disappears after opening a chat containing it, no matter what screen it was opened from
    Actual result: the new mention indicator disappears only after opening the activity center

    IMG_0735.mp4

    ISSUE 2: Notifications for mentions in the activity center are duplicated if they are received from different chats (it can be group and community, or two communities) while the User is in the activity center screen, and if the activity center already contains at least two notifications from one type of chat

    Steps:

    UserA:

    1. Create a group chat and community

    UserB:
    2. Join both
    3. Open Activity center

    UserA:
    4. Send two mentions of UserB to the community channel
    5. Send one mention of UserB to the group chat

    UserB:
    6. Check the number of notifications

    OS: iOS, Android

    On the video below only one mention in the community was received. The two top notifications from the group chat are duplicates.

    IMG_0733.mp4

    While attempting to open duplicated notification get error
    Screenshot 2021-06-24 at 17 25 20

    geth.log
    Status.log

    It seems like an edge case.
    But not sure if it can affect the notifications in the future if the issue with the highlighted notifications is fixed and the User can receive them not only while on the screen of the activity center?
    WDYT?

    ISSUE 3: Double @ in the mention notification received from an ENS user

    Screenshot 2021-06-24 at 15 27 35

    @briansztamfater
    Copy link
    Contributor Author

    @qoqobolo Thanks for pointing out these issues, all of them make sense to fix and working on them right now.

    @briansztamfater briansztamfater force-pushed the feature/mention-activity-center branch 2 times, most recently from d911f06 to 0ddb7de Compare June 25, 2021 03:23
    @briansztamfater
    Copy link
    Contributor Author

    @qoqobolo issues should be fixed. Let me know how it goes :)

    @qoqobolo
    Copy link
    Contributor

    qoqobolo commented Jun 25, 2021

    @briansztamfater thank you! Unfortunately, issue 1 and issue 3 are still reproducible :(

    Issue 1 is fixed only for group chats. Also, this issue is relevant for cases when a user receives a mention while in the chat view (both group chat and community).

    Issue 3
    Still reproducible.
    Probably, @ is also superfluous if the message was received from a user with a 3-random name.
    Screenshot 2021-06-25 at 12 53 47

    @briansztamfater
    Copy link
    Contributor Author

    @qoqobolo you are right, made new changes and hopefully they should be fixed now

    @briansztamfater briansztamfater force-pushed the feature/mention-activity-center branch from eabb550 to 6e5cea2 Compare June 25, 2021 14:58
    @qoqobolo
    Copy link
    Contributor

    @briansztamfater thanks, looks great now!

    Could you add accessibility-ids for these elements, please?

    Screenshot 2021-06-28 at 12 30 17

    After that, PR will be ready to merge.

    Tested:

    • Group and sort notifications by date in activity center
    • Empty state in activity center
    • Mentions in activity center (for communities and group chats)
    • Highlighted notifications
    • Mentions from different types of chats received at the same time
    • ENS
    • On mobile network; offline > online
    • Changes in a community or group chat (e.g. name of community/channel/group) are updated in labels in activity center
    • Notifications from contact/not contact/blocked/muted user
    • No notifications after leaving the community

    @briansztamfater briansztamfater force-pushed the feature/mention-activity-center branch from 0420379 to 4fd6f0b Compare June 28, 2021 14:31
    @briansztamfater
    Copy link
    Contributor Author

    @qoqobolo Thanks, added accessibility ids and rebased, let me know if you need anything else :)

    I need a code review approve in order to merge so maybe I'll request a quick re-test in case we need to change anything.

    Copy link
    Contributor

    @shivekkhurana shivekkhurana 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.

    parsed-text)]
    (:components result))))

    (defn message-content-text [{:keys [content content-type community-id]}]
    Copy link
    Contributor

    Choose a reason for hiding this comment

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

    just wondering if this duplicated from home screen? could we reuse functions from home ?

    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 styles and some minor logic is different, i.e. mention-element that always show an @, and if there's no message on the notification we show the text in gray

    @briansztamfater briansztamfater force-pushed the feature/mention-activity-center branch from 4fd6f0b to 234d744 Compare July 2, 2021 19:36
    Signed-off-by: Brian Sztamfater <brian@status.im>
    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

    6 participants