status-mobile/test/appium/views
Icaro Motta e8556a9abf
Show AC unread indicator with counter and seen state color (#15304)
- Display Activity Center unread badge with the unread counter.
- Use the new seen state stored in `status-go` to change the color of the
  notification.
- Performance: split the `top-nav` component into left and right section
  components and render the unread indicator in a separate component to not
  trigger the re-render of the entire `top-nav` (as was before).
  
Fixes https://github.com/status-im/status-mobile/issues/14851

Demo: https://user-images.githubusercontent.com/46027/224299978-770dd5f1-302b-4375-af2b-3cd181ffdc9d.webm

Notes
=====

- Fix/improve: `quo/counter` displayed `NaN` to the user if the input value was
  an empty string.
- In Figma, there's a border around the unread indicator. I didn't implement
  this because the ideal solution IMO involves changing the `quo/counter`
  component a little bit because the width of the component varies according to
  the content displayed (1, 9, 99, 100, etc) and I wanted to the right thing in
  a separate PR.

Design notes
============

There's an ongoing conversation with the Design team to decide what to do with
the gray indicator on top of the bell icon, since there's little contrast when
it's is in the `seen` state.

Platforms
=========

- Android
- iOS

Steps to test
=============

- Open Status
- Receive one or more notifications in the Home screen and check the unread
  indicator is blue and has a counter.
- Open the AC and close it, notice the unread indicator is now in the `seen`
  state. You can close the app and re-open and the state is persisted.
- Mark notifications as read/unread at will, check the unread counter is
  correct.
2023-03-15 12:41:34 -03:00
..
dbs e2e: dbs, improvements 2022-10-04 17:46:18 +02:00
elements_templates e2e: nightly fixes 2022-12-21 19:17:14 +02:00
web_views e2e: dbs, improvements 2022-10-04 17:46:18 +02:00
__init__.py e2e-tests, android: added infrastructure for running e2e tests, added test send/receive in chat, added request password tests, updated gitignore to exclude python related files. 2017-08-28 15:27:02 +02:00
add_custom_token_view.py e2e: global refactoring 2021-01-25 18:44:24 +01:00
base_element.py e2e: AC actions 2023-03-13 14:29:26 +01:00
base_view.py e2e: AC actions 2023-03-13 14:29:26 +01:00
chat_view.py e2e: AC actions 2023-03-13 14:29:26 +01:00
dapps_view.py e2e: ENS purchase in dapp 2022-06-22 16:27:46 +02:00
home_view.py Show AC unread indicator with counter and seen state color (#15304) 2023-03-15 12:41:34 -03:00
keycard_view.py e2e: fixes 2022-01-14 17:55:39 +01:00
profile_view.py e2e: block user test 2023-03-08 12:21:10 +01:00
send_transaction_view.py e2e: xfail mark 2022-06-14 17:03:36 +02:00
sign_in_view.py New intro screen (#15127) 2023-03-06 06:42:30 -08:00
transactions_view.py e2e refactoring: group and public chat 2022-01-27 21:58:28 +01:00
wallet_view.py e2e: dbs, improvements 2022-10-04 17:46:18 +02:00