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

Add course kebab menu with 'Collapse all' and 'Expand all' options to course index

XMLWordPrintable

    • MOODLE_400_STABLE
    • MOODLE_403_STABLE
    • MDL-71212-collapse-expand-all-sections-in-course-index-drawer
    • Hide

      1. Visit a course page.
      2. Open the left-hand drawer to show the course index. All sections in the course index drawer should be open.
      3. In the opened left-hand drawer, click the "Course Index" button.
      4. In the opened "Course Index" multi-select button, click on "Collapse all"
      5. Observe that all sections in the course index drawer have been collapsed.
      6. In the opened left-hand drawer, click the "Course Index" button.
      7. In the opened "Course Index" multi-select button, click on "Expand all"
      8. Observe that all sections in the course index drawer have been expanded again.

      Show
      1. Visit a course page. 2. Open the left-hand drawer to show the course index. All sections in the course index drawer should be open. 3. In the opened left-hand drawer, click the "Course Index" button. 4. In the opened "Course Index" multi-select button, click on "Collapse all" 5. Observe that all sections in the course index drawer have been collapsed. 6. In the opened left-hand drawer, click the "Course Index" button. 7. In the opened "Course Index" multi-select button, click on "Expand all" 8. Observe that all sections in the course index drawer have been expanded again.

      As a user
      I want to be able to collapse and expand all sections together
      so I can see and hide the whole course, its resources and activities easily

       

      Beside the course title in the course index there is a kebab menu with the options listed below:

      • Collapse all: To collapse all sections from the course index in just one action.
      • Expand all: To expand all sections from the course index in just one action.

       

      (forget about 'Bulk edit' and 'Show labels' options for now)

       

      Design

      https://www.figma.com/file/OfCvqK069Oz6Fvqq2xcZWI/Create-a-course?node-id=1419%3A5795

       

      Prototype:

       

       

      Acceptance criteria:

      1. There is a new kebab menu beside the course title in the course index.
      2. Users could collapse all section in the course index together in one action using 'Collapse all'
      3. Users could expand all section in the course index together in one action using 'Expand all'
      4. Expanding and collapsing actions are available both via mouse and keyboard.
      5. When the section is collapsed, no activity will be shown.
      6. When the section is expanded, all activities except those with no title into the section will be shown.
      7. Collapsing and expanding sections won't affect section status in the course main content.

        1. Captura de pantalla 2023-06-15 a las 15.08.24.png
          104 kB
          Sabina Abellan
        2. image-2023-06-15-09-15-08-633.png
          20 kB
          Stefan Topfstedt
        3. MDL_71212_proposed_solution_screenshot1.png
          35 kB
          Stefan Topfstedt
        4. MDL_71212_proposed_solution_screenshot2.png
          23 kB
          Stefan Topfstedt
        5. MDL-71212.png
          531 kB
          Ron Carl Alfon Yu
        6. MDL-71212-course-index-drawer-controls.patch
          25 kB
          Stefan Topfstedt
        7. screenshot-1.png
          148 kB
          marc decerle
        8. screenshot-2.png
          234 kB
          marc decerle

            stopfstedt Stefan Topfstedt
            amaia Amaia Anabitarte
            Laurent David Laurent David
            Ilya Tregubov Ilya Tregubov
            Ron Carl Alfon Yu Ron Carl Alfon Yu
            Votes:
            25 Vote for this issue
            Watchers:
            39 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - 0 minutes
                0m
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 1 hour, 22 minutes
                1h 22m

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