TIP-Global-Health / eheza-app

Apache License 2.0
3 stars 1 forks source link

RM - Entry Flow [6h] #601

Closed jeanette-pelizzon closed 1 year ago

jeanette-pelizzon commented 1 year ago

Issue

Please watch this overview video to understand how the pop-ups for unread messages appears in the flow of the app.

The unread message pop-up will appear when a user logs in to the app OR when a user has finished an encounter and navigates back to the homescreen.

This will only happen if they have unread messages. If the unread messages are at ZERO then NO pop-up will appear.

To Do:

anvmn commented 1 year ago

@jeanette-pelizzon

OR when a user has finished an encounter and navigates back to the homescreen.

This definition is somwhat problematic, because:

  1. There are group sessions, where concept of encounter does not really exist, as session is multiple encounters and also got 2 view modes.
  2. As we go on and add new types of encounters, this development will need to be extender to support the new type, which is prompt to errors.

Maybe we can make the notification on Login, and then with periods of one hour?

jeanette-pelizzon commented 1 year ago

@anvmn I am okay with making it at hour long intervals - but it should never interrupt an encounter. The pop-up should only appear if they are on the "home screen" or whatever we want to call it. We don't want these messages to pop-up during an encounter because it will interrupt their workflow and cause more stress (which the opposite of the goal of the program).

anvmn commented 1 year ago

@jeanette-pelizzon

That's fine, we develop popup so it's only shown on Main menu screen. Nowhere else.

LudmilaGoichman commented 1 year ago

@anvmn @adamhstewart

Questions/Found Issues:

  1. I created a new nurse and CHW. When they logged into the app for the first time, the first message displayed was "drink water" and then "unread messages". Is it correct?
Nurse CHW
the first message image image
the second message image image
  1. The "unread messages" pop-up was closed by clicking the "ignore" button, but the same pop-up appeared after 5/10 minutes (for nurse and CHW. should be 1 hour, right?). The third popup did not appear after 5/10 minutes - it was after 1h

  2. The "unread messages" pop-up was closed by clicking the "ignore" button, but the same pop-up appeared after each refreshing the browser window. Is it okay?

Checked and Approved:

  1. the "unread messages" pop-up can be closed by clicking the "ignore" button
  2. the Wellbeing module opens when clicking the "read" button in the "unread messages" pop up
image
  1. The third "unread messages" pop-up appeared after one hour (approximately. I didn't notice exactly because I checked other issues)
image image