Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-64058

Update UI to show unread conversation counts

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • 3.6
    • 3.6
    • Messages
    • MOODLE_36_STABLE
    • MOODLE_36_STABLE
    • MDL-64058-master
    • Hide

      Unread counts

      1. Log in as admin and create a course with 4 students and 2 groups - place all 4 students in each group.
      2. Enable group messaging on both groups via the group edit page.
      3. Now, log in as student 1
      4. Search for student 2 and send them 2 messages
      5. Send 2 messages in each group conversation
      6. Now, log out and log in as student 2
      7. Open the messaging pane
      8. Verify that you see an unread count of '2' (in blue, on the right side of the pane) for the 'Group Messages' accordion section.
      9. Expand group messages (if not already expanded) and verify the unread counts for the conversations is 2 and 2. This confirms the section count is just the total number of conversations having unread messages, not a count of the messages themselves.
      10. Verify that you see an unread count of '1' (in blue, on the right side of the pane) for the 'Messages' accordion section.
      11. Expand messages (if not already expanded) and verify the unread counts for the single conversation is 2. This confirms the section count is just the total number of conversations having unread messages, not a count of the messages themselves.
      12. Click to view the individual conversation with student 1.
      13. From the ellipsis menu (...) select 'Add to favourites'
      14. Go back to the main conversations view and verify the unread count for messages (again, in blue on the right) is now gone.
      15. Log out and log back in again as student 1
      16. Again, open the messging pane and send 2 messages to student 2
      17. Log out and log back in again as student 2
      18. Open the messaging pane and Verify the unread count for the 'Favourites' section is '1' (in blue, on the right)
      19. Expand favourites (if not already expanded) and verify the unread count for the conversation itself is '2'. This confirms the section count is just the total number of conversations having unread messages, not a count of the messages themselves.

      Expansion priority

      1. Log in as admin and create a course with 4 students and 1 groups - place all 4 students in the group.
      2. Enable group messaging on both groups via the group edit page.
      3. Now, log in as student 1 and open the messaging pane
      4. Search for student 2 and send them a message
      5. On the conversation view, click the ellipsis menu (...) and select 'Add to favourites'
      6. Log out
      7. Log in as student 2
      8. Open the messaging pane
      9. Search for Student 1 and send them a message
      10. From the main conversation view, click the group conversation
      11. Send a message to the group conversation
      12. Log out
      13. Log in as Student 3
      14. Open the messaging pane
      15. Search for Student 1 and send them a message
      16. Log out
      17. Log in as Student 1
      18. Open the messaging pane
      19. Verify the 'Favourites' section is expanded by default and has an unread message count in blue.
      20. Click the favourite conversation
      21. Refresh the page and open the messaging pane again
      22. Verify the 'Group messages' section is expanded by default and has an unread message count in blue.
      23. Click the group conversation conversation
      24. Refresh the page and open the messaging pane again
      25. Verify the 'Messages' section is expanded by default and has an unread message count in blue.
      Show
      Unread counts Log in as admin and create a course with 4 students and 2 groups - place all 4 students in each group. Enable group messaging on both groups via the group edit page. Now, log in as student 1 Search for student 2 and send them 2 messages Send 2 messages in each group conversation Now, log out and log in as student 2 Open the messaging pane Verify that you see an unread count of '2' (in blue, on the right side of the pane) for the 'Group Messages' accordion section. Expand group messages (if not already expanded) and verify the unread counts for the conversations is 2 and 2. This confirms the section count is just the total number of conversations having unread messages, not a count of the messages themselves. Verify that you see an unread count of '1' (in blue, on the right side of the pane) for the 'Messages' accordion section. Expand messages (if not already expanded) and verify the unread counts for the single conversation is 2. This confirms the section count is just the total number of conversations having unread messages, not a count of the messages themselves. Click to view the individual conversation with student 1. From the ellipsis menu (...) select 'Add to favourites' Go back to the main conversations view and verify the unread count for messages (again, in blue on the right) is now gone. Log out and log back in again as student 1 Again, open the messging pane and send 2 messages to student 2 Log out and log back in again as student 2 Open the messaging pane and Verify the unread count for the 'Favourites' section is '1' (in blue, on the right) Expand favourites (if not already expanded) and verify the unread count for the conversation itself is '2'. This confirms the section count is just the total number of conversations having unread messages, not a count of the messages themselves. Expansion priority Log in as admin and create a course with 4 students and 1 groups - place all 4 students in the group. Enable group messaging on both groups via the group edit page. Now, log in as student 1 and open the messaging pane Search for student 2 and send them a message On the conversation view, click the ellipsis menu (...) and select 'Add to favourites' Log out Log in as student 2 Open the messaging pane Search for Student 1 and send them a message From the main conversation view, click the group conversation Send a message to the group conversation Log out Log in as Student 3 Open the messaging pane Search for Student 1 and send them a message Log out Log in as Student 1 Open the messaging pane Verify the 'Favourites' section is expanded by default and has an unread message count in blue. Click the favourite conversation Refresh the page and open the messaging pane again Verify the 'Group messages' section is expanded by default and has an unread message count in blue. Click the group conversation conversation Refresh the page and open the messaging pane again Verify the 'Messages' section is expanded by default and has an unread message count in blue.

      Jake is adding a function to count the unread conversations in MDL-63913 so we need to add that to the message UI to show those counts

        1. MDL-64058.PNG
          MDL-64058.PNG
          75 kB
        2. step28.mp4
          540 kB

            jaked Jake Dallimore
            ryanwyllie Ryan Wyllie
            Ryan Wyllie Ryan Wyllie
            Andrew Lyons Andrew Lyons
            Anna Carissa Sadia Anna Carissa Sadia
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - 0 minutes
                0m
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 2 hours, 30 minutes
                2h 30m

                  Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.