Bug 40367

Summary: Improve display of messages on patron account
Product: Koha Reporter: Emily Lamancusa (emlam) <emily.lamancusa>
Component: PatronsAssignee: Emily Lamancusa (emlam) <emily.lamancusa>
Status: Passed QA --- QA Contact: Laura Escamilla <Laura.escamilla>
Severity: enhancement    
Priority: P5 - low CC: dcook, gmcharlt, kyle, Laura.escamilla
Version: Main   
Hardware: All   
OS: All   
GIT URL: Change sponsored?: ---
Patch complexity: String patch Documentation contact:
Documentation submission: Text to go in the release notes:
This adjusts the way patron messages are displayed on a patron account, grouping messages together and labeling them based on whether they are internal staff notes or OPAC messages.
Version(s) released in:
Circulation function:
Attachments: Bug 40367: Improve display of messages on patron account
Bug 40367: Improve display of messages on patron account
Bug 40367: Improve display of messages on patron account

Description Emily Lamancusa (emlam) 2025-07-14 18:47:03 UTC
It would be nice if messages on a patron account were labeled to show whether the message is an OPAC note or an internal staff message. They have different formatting (internal staff messages are red and bold while OPAC messages are not), but it's not obvious that the different formatting indicates different types of messages, or which is which. Staff may want to know which messages are visible to the patron and which aren't, so it would be nice if it was easier to tell at a glance.
Comment 1 David Cook 2025-07-14 23:14:54 UTC
Sounds reasonable to me
Comment 2 Emily Lamancusa (emlam) 2025-07-16 14:25:35 UTC
Created attachment 184153 [details] [review]
Bug 40367: Improve display of messages on patron account

When displaying messages on a patron account, group the messages by
type and label which are OPAC messages and which are internal staff
messages.

To test:
1. Find a patron and add several messages to their account, alternating
   between internal staff messages and OPAC messages
--> Note that the messages display in the order that they are added and
    not explicitly labeled
2. Apply patch and refresh page
--> Confirm that all staff messages display first and all OPAC messages
    display underneath
--> Confirm that messages are now labeled "Staff note" or "OPAC"
3. Play around on the patron account and confirm that the message
   display is consistent after taking different actions:
   - On the Details page
   - On the Check out page
   - After adding a new staff message
   - After adding a new OPAC message
Comment 3 David Nind 2025-07-18 23:29:43 UTC
Created attachment 184419 [details] [review]
Bug 40367: Improve display of messages on patron account

When displaying messages on a patron account, group the messages by
type and label which are OPAC messages and which are internal staff
messages.

To test:
1. Find a patron and add several messages to their account, alternating
   between internal staff messages and OPAC messages
--> Note that the messages display in the order that they are added and
    not explicitly labeled
2. Apply patch and refresh page
--> Confirm that all staff messages display first and all OPAC messages
    display underneath
--> Confirm that messages are now labeled "Staff note" or "OPAC"
3. Play around on the patron account and confirm that the message
   display is consistent after taking different actions:
   - On the Details page
   - On the Check out page
   - After adding a new staff message
   - After adding a new OPAC message

Signed-off-by: David Nind <david@davidnind.com>
Comment 4 Laura Escamilla 2025-07-25 20:52:49 UTC
Created attachment 184673 [details] [review]
Bug 40367: Improve display of messages on patron account

QA tool is happy and this enhancement is very nice! Thanks for your work on this, Emily!

When displaying messages on a patron account, group the messages by
type and label which are OPAC messages and which are internal staff
messages.

To test:
1. Find a patron and add several messages to their account, alternating
   between internal staff messages and OPAC messages
--> Note that the messages display in the order that they are added and
    not explicitly labeled
2. Apply patch and refresh page
--> Confirm that all staff messages display first and all OPAC messages
    display underneath
--> Confirm that messages are now labeled "Staff note" or "OPAC"
3. Play around on the patron account and confirm that the message
   display is consistent after taking different actions:
   - On the Details page
   - On the Check out page
   - After adding a new staff message
   - After adding a new OPAC message

Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Laura_Escamilla <laura.escamilla@bywatersolutions.com>