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

block_myoverview: Improve pagination widget

XMLWordPrintable

    • MOODLE_36_STABLE, MOODLE_38_STABLE
    • MOODLE_38_STABLE
    • MDL-64860-38_block_myoverview_improve_pagination
    • Hide

      Setup

      1. Create a user s1
      2. Enrol s1 in 13 courses exactly

      Test instructions 

      1. Login as s1
      2. Navigate to Dashboard and view the 'Course overview' section
      3. Click on the bottom left pagination dropdown beside the 'Show' label
      4. Check two options are visible: '12' and 'All'
      5. Check that only 12 courses are displayed on the page if '12' is selected from dropdown and that all 13 are displayed if 'All' selected
      6. Reload the page, the 'All' selection should persist between reloads
      7. Logout
      8. Login as admin
      9. Unenrol the user from a course (so they have 12 exactly)
      10. Logout
      11. Login as s1
      12. Navigate back to Dashboard and view the 'Course overview' section
      13. Check the 'Show' pagination dropdown now is gone as there is only one possible pagination choice
      Show
      Setup Create a user s1 Enrol s1 in 13 courses exactly Test instructions  Login as s1 Navigate to Dashboard and view the 'Course overview' section Click on the bottom left pagination dropdown beside the 'Show' label Check two options are visible: '12' and 'All' Check that only 12 courses are displayed on the page if '12' is selected from dropdown and that all 13 are displayed if 'All' selected Reload the page, the 'All' selection should persist between reloads Logout Login as admin Unenrol the user from a course (so they have 12 exactly) Logout Login as s1 Navigate back to Dashboard and view the 'Course overview' section Check the 'Show' pagination dropdown now is gone as there is only one possible pagination choice

      block_myoverview has widgets to control the page size (12, 24 and 48) and widgets to switch to the next and previous page which is fine for users with a normal amount of courses.

      For users with a huge number of courses, this produces obstacles as
      1. there aren't real big page sizes and no "All" option in the page size widget and
      2. there aren't buttons to jump more than one page.
      Please imagine a user who has piled up 200 courses. With a page size of 48, he will have to change the page 5 times to get to the last course if he really need to access this course.

      Additionally, for users with really few courses (below 12), the page size widget is controlled anyway which is useless.

      Thus, I would propose to

      • Add 96 as page size option
      • Add "All" as page size option (well knowing that this will increase load time)
      • Show the page size widget only if the user really has more than 12 courses
      • Show only the page size options which apply to a user's course list (i.e. a user with 14 course will only see the 12 and 24 option)

        1. MDL-64860.jpg
          MDL-64860.jpg
          51 kB
        2. Screenshot_1.png
          Screenshot_1.png
          233 kB
        3. Screenshot_2.png
          Screenshot_2.png
          77 kB

            tom_d Tom Dickman
            abias Alexander Bias
            Matt Porritt Matt Porritt
            Sara Arjona (@sarjona) Sara Arjona (@sarjona)
            Janelle Barcega Janelle Barcega
            Votes:
            1 Vote for this issue
            Watchers:
            11 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - 0 minutes
                0m
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 6 hours, 10 minutes
                6h 10m

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