cfdp / opeka

Counseling chat service, built for providing anonymous help to young people at risk
https://curachat.com
GNU General Public License v3.0
10 stars 6 forks source link

Add "user is writing" notification #57

Closed cfdp closed 7 years ago

cfdp commented 7 years ago

At the moment there is no indication of users preparing a message in the chat. This means that users often "talk at each other".

We want to add the possibility of getting notified via a small message in the chat window, right above the input text field.

It would say, for example:

Sara is writing...

or in a group chat with several people writing at the same time:

Sara, Ole, Søren are writing...

The purpose of this feature is to support the turn-taking rhythm of a good conversation.

The display of the notifications should be managed on two levels (suggestion - ideas welcome!):

  1. Site-wide via standard Drupal permissions: A new permission should be defined "Manage the "User is writing" notification".

Feature should be on by default for the counselors and coordinator roles, but off for anonymous users.

  1. On a per-chat basis, in the UI: A checkbox should be added next to the "Press ENTER to send" checkbox, see attached img. Feature should be turned on by default for counselors and coordinators.

user_is_writing

cfdp commented 7 years ago

Added in #64 and refined in 8ef8590