codeforpdx / PASS

PASS project - with HMIS module integration
MIT License
26 stars 25 forks source link

Feature: Utilize Message Read Status for Message Icon Badge #427

Closed leekahung closed 9 months ago

leekahung commented 10 months ago

Utilize Message Read Status for Message Icon Badge


Feature Description:

With the read status now implemented, we could now utilize the read status from Messages for something like an icon badge to indicate there are unread messages.


Use Case:

See above.


Proposed Solution:

Given that read status would be utilizing the value true (or 1) for read, we could have a badge appear when number of message !== total sum of read status true as one potential solution.

Another solution to this would be to utilize the false state (or 0) and have the badge appear as long as there's a read status that's false from the list of messages. We could use utility functions like .every() or .some() for this purpose depending on the type of logic the developer wish to employ.


Additional Context:

Please provide any other information that might be helpful.

leekahung commented 9 months ago

New feature has been merged into Development. Resolving issue #427 as completed. Reference to #454 for bug related to PR #437.