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

Create New "Recently Accessed Courses" Block

    XMLWordPrintable

    Details

    • Testing Instructions:
      Hide

      Upgrade

      You need a Moodle site with a version that does not include the Recently Accessed Courses block.

      1. Upgrade the Moodle Site following Upgrading documentation
      2. Log in
      3. Go to the dashboard
      4. Confirm you see the Recently Accessed Courses block in the dashboard

      New installation

      Install Moodle from scratch, following Installation quick guide documentation

      1. Log in as admin
      2. Confirm you see "No recent courses" in the Recently Accessed Courses block
      3. Create a new user s1
      4. Log in as s1
      5. Confirm you see "No recent courses" in the Recently Accessed Courses block

      Boost and Clean themes

      Please test the following tests on both the Boost and Clean themes.
      Please also test these on each of the supported browsers.

      Setup

      Users and enrolments

      1. Log in as admin
      2. Create 5 courses, c1, c2, c3, c4, and c5
      3. Create 2 users, s1 and s2
        1. Enrol s1 as a student in all 5 courses
        2. Enrol s2 as a student in c3 and c5

      Course c1: allow guest access

      1. With the Boost theme, from the navigation drawer on the left, click 'Participants', and then from the gear menu on the right, click 'Enrolment method> Guest access'. With other themes, click Administration > Course administration > Users > Enrolment methods and then Guest access
      2. Enable guest access by clicking on the "eye" icon or by choosing it in the 'Add method' drop-down menu

      Tests

      1. Log in as s1
      2. Confirm you see "No recent courses" in the Recently Accessed Courses block
      3. Go to courses c1, c2, c3, c4 and c5. Don't need to do anything inside the courses
      4. Navigate to the dashboard
      5. On the Course overview block, "Star" c1 and c2.
      6. Confirm that c1 and c2 get starred as well on the Recently accessed courses block.
      7. Confirm you see all courses in the Recently Accessed Courses block or that the number of courses shown fits the Recently Accessed Courses block
      8. Resize your browser
      9. Confirm the number of courses shown differs according to the browser size
      10. Confirm the cards keep looking like cards, are never weirdly thin or long. If the block's width gets too narrow to fit all the courses, a horizontal scrollbar will be displayed. (Note: On mobile browsers, this won't work and will need to be fixed on a separate issue)
      11. Confirm the first course in the block is the last course you accessed
      12. Log in as s2
      13. Confirm you see "No recent courses" in the Recently Accessed Courses block
      14. Go to courses c1 and c3. Although the user is not enrolled in course c1, this course allows guest access
      15. Confirm you see courses c1 and c3 in the Recently Accessed Courses block or that the number of courses shown fits the Recently Accessed Courses block
      16. Confirm you can't see courses c2, c4 or c5

      RTL

      1. Install an RTL language pack (e.g. Hebrew).
      2. Go to the Dashboard and check the Recently accessed courses.
      3. Confirm that the courses are arranged with the most recently accessed course on the right and the least recently accessed course on the left.
      4. Confirm that the course names are right-aligned.
      Show
      Upgrade You need a Moodle site with a version that does not include the Recently Accessed Courses block. Upgrade the Moodle Site following Upgrading documentation Log in Go to the dashboard Confirm you see the Recently Accessed Courses block in the dashboard New installation Install Moodle from scratch, following Installation quick guide documentation Log in as admin Confirm you see "No recent courses" in the Recently Accessed Courses block Create a new user s1 Log in as s1 Confirm you see "No recent courses" in the Recently Accessed Courses block Boost and Clean themes Please test the following tests on both the Boost and Clean themes. Please also test these on each of the supported browsers . Setup Users and enrolments Log in as admin Create 5 courses, c1, c2, c3, c4, and c5 Create 2 users, s1 and s2 Enrol s1 as a student in all 5 courses Enrol s2 as a student in c3 and c5 Course c1: allow guest access With the Boost theme, from the navigation drawer on the left, click 'Participants', and then from the gear menu on the right, click 'Enrolment method> Guest access'. With other themes, click Administration > Course administration > Users > Enrolment methods and then Guest access Enable guest access by clicking on the "eye" icon or by choosing it in the 'Add method' drop-down menu Tests Log in as s1 Confirm you see "No recent courses" in the Recently Accessed Courses block Go to courses c1, c2, c3, c4 and c5. Don't need to do anything inside the courses Navigate to the dashboard On the Course overview block, "Star" c1 and c2. Confirm that c1 and c2 get starred as well on the Recently accessed courses block. Confirm you see all courses in the Recently Accessed Courses block or that the number of courses shown fits the Recently Accessed Courses block Resize your browser Confirm the number of courses shown differs according to the browser size Confirm the cards keep looking like cards, are never weirdly thin or long. If the block's width gets too narrow to fit all the courses, a horizontal scrollbar will be displayed. (Note: On mobile browsers, this won't work and will need to be fixed on a separate issue) Confirm the first course in the block is the last course you accessed Log in as s2 Confirm you see "No recent courses" in the Recently Accessed Courses block Go to courses c1 and c3. Although the user is not enrolled in course c1, this course allows guest access Confirm you see courses c1 and c3 in the Recently Accessed Courses block or that the number of courses shown fits the Recently Accessed Courses block Confirm you can't see courses c2, c4 or c5 RTL Install an RTL language pack (e.g. Hebrew). Go to the Dashboard and check the Recently accessed courses. Confirm that the courses are arranged with the most recently accessed course on the right and the least recently accessed course on the left. Confirm that the course names are right-aligned.
    • Affected Branches:
      MOODLE_36_STABLE
    • Fixed Branches:
      MOODLE_36_STABLE
    • Pull from Repository:
    • Pull Master Branch:
      MDL-63062-master-renamed

      Description

      Create a new block for showing the logged in user a list of up to 10 of their most recently accessed courses. A course can be considered accessed if the user views the course or any of the contents within the course.

      • The block should display a single row of courses, up to a maximum of 10 courses.
      • The block should display as many courses as can fit (up to 10) in the available space of the block. The number of visible courses should increase with larger screen sizes and decrease with smaller screen sizes.
      • If the user has not yet accessed any courses then the block should direct them to the courses.
      • The courses should be represented as "cards" which show the course image and the course title beneath it.
      • Clicking anywhere on the course card should navigate the user to the course page to view that course.

      Here is a mockup of what the recent courses block might look like:

      Further context for the mockup can be found here:
      https://projects.invisionapp.com/share/WBNCX0AM3AP#/screens

        Attachments

        1. recent_courses_mockup_1.png
          recent_courses_mockup_1.png
          25 kB
        2. tablet-size.png
          tablet-size.png
          49 kB
        3. mobile-size.png
          mobile-size.png
          21 kB
        4. sideClean.png
          sideClean.png
          191 kB
        5. sideBoost.png
          sideBoost.png
          174 kB
        6. recentcourses-with-scrollbar.png
          recentcourses-with-scrollbar.png
          57 kB
        7. IMG_6047.PNG
          IMG_6047.PNG
          303 kB
        8. MDL-63062_boost.PNG
          MDL-63062_boost.PNG
          172 kB
        9. MDL-63062_clean.PNG
          MDL-63062_clean.PNG
          204 kB
        10. recently accessed courses and items privacy.png
          recently accessed courses and items privacy.png
          33 kB

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                17 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  3/Dec/18

                  Time Tracking

                  Estimated:
                  Original Estimate - 0 minutes
                  0m
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 4 hours
                  4h