Uploaded image for project: 'Moodle app'
  1. Moodle app
  2. MOBILE-2554

Show "All sections" by default in courses with few activities

    XMLWordPrintable

    Details

    • Testing Instructions:
      Hide
      1. Navigate to a course with more than 20 activities (dev test will do).
      2. Check the correct section is loaded.
      3. Navigate to all sections.
      4. Scroll down and check more activities are loaded when you scroll.
      5. When you scroll too quick, Load more button will be shown, you can click and let more activities be loaded.
      6. Now navigate to a course with no section marked. I.e. Moodle Features Demo.
      7. All section will be shown and partially loaded.
      Show
      Navigate to a course with more than 20 activities (dev test will do). Check the correct section is loaded. Navigate to all sections. Scroll down and check more activities are loaded when you scroll. When you scroll too quick, Load more button will be shown, you can click and let more activities be loaded. Now navigate to a course with no section marked. I.e. Moodle Features Demo. All section will be shown and partially loaded.
    • Affected Branches:
      MOODLE_35_STABLE
    • Fixed Branches:
      MOODLE_36_STABLE
    • Pull Master Branch:
    • Sprint:
      Moodle Mobile 3.6.0

      Description

      Right now when a user access to a course in the mobile app we check if there is an active section/topic, if there's one we display it. But if there isn't we display the "General/first section".

      It happens that for courses with few contents this looks very bad, for example, using an iPad or with the Desktop version, a student the first time he access the course he will see only the general section that usually has only a forum (so the 80% of the screen will be empty), and then he will have to do more clics (two more) to open the sections/topic selector and to choose a section.

      We are discussing this and we believe that we should improve it, there are two ways:
      1. Add a new option to course formats to be able to configure this at Moodle level
      2. Make the app to detect when it should display all the sections for small courses.
      3. Infinite scrolling

      1. is not desirable, Moodle has too many options already and also there were performance reasons why we decided to stop showing all sections (make the app super slow and it was a really bad user experience)

      3. Is very complex to achieve, this is one of the more complex pages and adding infinite scrolling would be very complex.

      2. This is my initial proposal form when a user access to a course:

      Check if there is an active section/topic ->
      If there's one, show it
      If not ->
      Check the course format options to see if the course is configured to show only one section at the same time
      If is configured in that way -> Show the general section
      If not -> Calculate the number of activities in the course
      If is a phone and there are less than X activities -> Show all
      If is a tablet/desktop and there are less than Y activities -> Show all
      If there are more than X or Y activities -> Show the general section

      Option 2 have some potential issues as pointed by Dani:

      • Course with hidden activities for students, the teacher will see them so the total number of activities to do the calculation will be different for students and teachers and this can lead to have a different default view for teachers / students
      • Conditional activities. If you unlock some activities, the next time you enter to the course the default view may change because know you have X+1 activities

        Attachments

          Activity

            People

            • Votes:
              1 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Fix Release Date:
                11/Jan/19

                Time Tracking

                Estimated:
                Original Estimate - 1 day
                1d
                Remaining:
                0m
                Logged:
                Time Not Required
                Not Specified