codeforpdx / PASS

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

Enhancement: Unread/Read status of messages #399

Closed leekahung closed 1 year ago

leekahung commented 1 year ago

Describe the Current Behavior/Feature:

With the message system in place, we don't have a system set for if a message was read or unread. By including a status for read in the message object we could keep track on read/unread messages using that. This feature would really just be needed for the inbox and nothing else.


Proposed Behavior/Feature:

By including a read status property for the message object, we could the value toggled from false to true after viewing the message for the first time by clicking on for a preview of the message.


Rationale:

As stated in the description for this feature, by including a read status as part of the message object, PASS could keep track of read/unread messages of the user.


Proposed Implementation (if applicable):

We could include this read status as part of the message object. This status could be toggled from false to true after viewing the message for the first time by clicking on for a preview of the message.

To make this backwards compatible with older message that doesn't have the read status, we could simply have them behave as if they're unread and add the unread status to the old message.

leekahung commented 1 year ago

Issue resolved in recent merge to Development in PR #400.