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

In tables and reports, when there is no entry, give out the "Nothing to display" string as notification instead of header

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Minor Minor
    • 4.4
    • 4.1.6, 4.2.3, 4.3
    • Themes
    • MOODLE_401_STABLE, MOODLE_402_STABLE, MOODLE_403_STABLE
    • MOODLE_404_STABLE
    • MDL-80082-main
    • Hide

      Testing scenario 1. Course

      1. Create a course and enrol a teacher.
      2. As teacher, in a course with no enrolled students, create a workshop and set the phase to "Closed".
      3. Access the workshop and under the title "Workshop grades report" verify that the "Nothing to display" notification is shown as notification in a blue banner without closing cross icon.
      4. Enrol one student to the course.
      5. Go to the "Participants" page and set the filter to a condition no line is shown.
      6. Verify that the "Nothing to display" notification is shown as notification in a blue banner without closing cross icon and not as title.
      7. Create a quiz and add at least a question.
      8. Before any attempt is made by a student, call the quiz overview report under "Results" → "Grades".
      9. Verify that the "Nothing to display" notification is shown as notification in a blue banner without closing cross icon and not as title.
      10. Call the quiz responses report under "Results" → "Responses".
      11. Verify that the "Nothing to display" notification is shown as notification in a blue banner without closing cross icon and not as title.
      12. Create a feedback and add a question to it.
      13. Display the feedback activity and go to "Results".
      14. Verify that the "Nothing to display" notification is shown as notification in a blue banner without closing cross icon.
      15. Set a course completion condition.
      16. Access Reports → Course completion.
      17. Change the firstname/lastname filter so that it does not match any participant.
      18. Verify that the "Nothing to display" notification is shown as notification in a blue banner without closing cross icon.
      19. Insert, at least, one activity with completion conditions.
      20. Access Reports → Activity completion.
      21. Change the firstname/lastname filter so that it does not match any participant.
      22. Verify that the "Nothing to display" notification is shown as notification in a blue banner without closing cross icon.
      23. Hide all sections and make sure all activities are in hidden sections (for the General section you can use access restrictions).
      24. Run cron.
      25. Access Participants, click on a user's name to access the profile and click Reports → Outline report.
      26. Verify that the "Nothing to display" notification is shown as notification in a blue banner without closing cross icon.
      27. In a course with an empty announcements forum, go to 'Reports' to get to the Forum summary report (More -> Reports).
      28. Verify that the "Nothing to display" notification is shown as notification in a blue banner without closing cross icon.

       

      Testing scenario 2. Site administration

      1. From Site administration, access the Define Roles screen and click the "Add a new role" button.
      2. Ignore the defaults screen and click the blue Continue button.
      3. Give your role a name, for example Learning plan viewer.
      4. Tick 'User' as the context type where the role may be assigned.
      5. Scroll down and set the capability "moodle/competency:planview" to Allow.
      6. Save the new role by clicking the "Create this role" button.
      7. From Site administration, access the Cohorts screen and create a cohort with and add a student to it.
      8. Go to Site administration → Users → Permissions → Assign user roles to cohort (that's admin/tool/cohortroles/index.php)
      9. Verify that the "Nothing to display" notification is shown as notification in a blue banner without closing cross icon and not as title.
      Show
      Testing scenario 1. Course Create a course and enrol a teacher. As teacher, in a course with no enrolled students, create a workshop and set the phase to "Closed". Access the workshop and under the title "Workshop grades report" verify that the "Nothing to display" notification is shown as notification in a blue banner without closing cross icon. Enrol one student to the course. Go to the "Participants" page and set the filter to a condition no line is shown. Verify that the "Nothing to display" notification is shown as notification in a blue banner without closing cross icon and not as title. Create a quiz and add at least a question. Before any attempt is made by a student, call the quiz overview report under "Results" → "Grades". Verify that the "Nothing to display" notification is shown as notification in a blue banner without closing cross icon and not as title. Call the quiz responses report under "Results" → "Responses". Verify that the "Nothing to display" notification is shown as notification in a blue banner without closing cross icon and not as title. Create a feedback and add a question to it. Display the feedback activity and go to "Results". Verify that the "Nothing to display" notification is shown as notification in a blue banner without closing cross icon. Set a course completion condition. Access Reports → Course completion. Change the firstname/lastname filter so that it does not match any participant. Verify that the "Nothing to display" notification is shown as notification in a blue banner without closing cross icon. Insert, at least, one activity with completion conditions. Access Reports → Activity completion. Change the firstname/lastname filter so that it does not match any participant. Verify that the "Nothing to display" notification is shown as notification in a blue banner without closing cross icon. Hide all sections and make sure all activities are in hidden sections (for the General section you can use access restrictions). Run cron. Access Participants, click on a user's name to access the profile and click Reports → Outline report. Verify that the "Nothing to display" notification is shown as notification in a blue banner without closing cross icon. In a course with an empty announcements forum, go to 'Reports' to get to the Forum summary report (More -> Reports). Verify that the "Nothing to display" notification is shown as notification in a blue banner without closing cross icon.   Testing scenario 2. Site administration From Site administration, access the Define Roles screen and click the "Add a new role" button. Ignore the defaults screen and click the blue Continue button. Give your role a name, for example Learning plan viewer. Tick 'User' as the context type where the role may be assigned. Scroll down and set the capability "moodle/competency:planview" to Allow. Save the new role by clicking the "Create this role" button. From Site administration, access the Cohorts screen and create a cohort with and add a student to it. Go to Site administration → Users → Permissions → Assign user roles to cohort (that's admin/tool/cohortroles/index.php) Verify that the "Nothing to display" notification is shown as notification in a blue banner without closing cross icon and not as title.

      I was looking at quiz reports and spotted that the "Nothing to display" was output in some reports as notification and in others as h2.
      The h2 thing is surely legacy and I'm pretty sure that is bad for accessibility, too.
      So I'd recommend to change that to notification as well for visual consistency.

       

      UX Proposal

            lucaboesch Luca Bösch
            lucaboesch Luca Bösch
            Carlos Escobedo Carlos Escobedo
            Sara Arjona (@sarjona) Sara Arjona (@sarjona)
            Ron Carl Alfon Yu Ron Carl Alfon Yu
            Votes:
            1 Vote for this issue
            Watchers:
            11 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 3 hours, 18 minutes
                3h 18m

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