-
Improvement
-
Resolution: Fixed
-
Minor
-
4.0
-
MOODLE_400_STABLE
-
MOODLE_400_STABLE
-
MDL-72819-master -
-
Moppies Kanban
In the current version, the course state uses the following variables to indicate the section collapsed/expanded values:
- bool contentexpanded: indicate the section is expanded in the course content
- bool isactive: indicate the section is expanded in the course index
Those variables are used in the mustache files to decide if the section is expanded or collapsed.
However, when a section is collapsed or expanded, the course preferences saved are:
- bool contentcollapsed: if the section is collapsed in the content
- bool indexcollapsed: if the section is collapsed in the course index
This way of saving the preference is convenient because sections are expanded by default and the result JSON is smaller.
The main problem is that the code for converting preferences to state can be confusing because they are antagonistic. Apart, "isactive" does not help to understand that affects only the course index (in the beginning only the course index was expandable). The code should be refactored to unify criteria:
- State and mustache files should work with "contentcollapsed" and "indexcollapsed" instead of "contentexpanded" and "isactive".
- Section preferences should not be modified as they are optimal this way and the names are clearer.
- blocks
-
MDL-72911 Course format API deprecation messages incorrect
- Closed
-
MDL-72898 Change the hidden activity links behaviour in the course index
- Closed
- Discovered while testing
-
MDL-71211 Keep the status of the course index collapsed and expanded sections per user and course
- Closed
- is blocked by
-
MDL-72660 Add activity completion indicators to the course index
- Closed
-
MDL-72456 Update Course Index to match the UX team figma designs
- Closed
-
MDL-71691 Create a new activity UI component
- Closed
-
MDL-71779 Make 'Add a new topic/week' option client side on Topics and Weekly formats
- Closed
-
MDL-72263 Improve course index accessibility following ARIA tree pattern guidelines
- Closed
-
MDL-72569 Improve "move to" tool accessibility following ARIA tree pattern guidelines
- Closed
-
MDL-72725 Add legacy indentation for third course format plugins
- Closed