88 Commits

Author SHA1 Message Date
Ferran Recio
c7a2e19ee0 MDL-73683 core_courseformat: fix state hasavailability
The course index lock icon depends on the state hasrestrictions
attributes on both section and course module. The lock icon
should be consistent with the content availability information
and it was not. With this patch the hasrestrictions attribute
uses a similar logic than the course content.
2022-02-15 13:15:09 +01:00
Shamim Rezaie
78b7fbb390 Merge branch 'MDL-73538-master' of https://github.com/ferranrecio/moodle 2022-02-03 15:24:04 +11:00
Ferran Recio
7c249a7d84 MDL-73538 core_courseformat: fix course index manual completion
The current manual completion button triggers an event to alert the page
of any completion change. This event is capture in the course page by
the core_courseformat/local/content module but it was ignored when this
happens in an activity page. Now the activity header has its own
component to capture this event and support possible future reactive
actions.
2022-02-02 11:54:12 +01:00
Amaia Anabitarte
2cd5c61049 MDL-73310 course: Add course index to all non-site course pages 2022-02-02 09:22:42 +01:00
Ferran Recio
81b0bbe8cb MDL-73340 behat: add mobile and table size 2022-01-14 18:49:06 +01:00
Ferran Recio
72321cff3f MDL-73340 theme_boost: course index opened by default 2022-01-14 18:49:06 +01:00
Ferran Recio
7a16356b05 MDL-73336 core_courseformat: fix tree accessbility issues
The course index uses collapsible to simulate a tree. To ensure the
resulting HTML follows the WCAG tree implementation, the tree widget
cannot be a nav element but a div one.
2022-01-11 16:15:57 +01:00
Ferran Recio
ea01266118 MDL-73336 theme_boost: fix drawer tooltips 2022-01-11 16:15:57 +01:00
Ferran Recio
43499d332c MDL-72898 core_courseformat: hidden activity link 2021-12-28 12:50:23 +01:00
Jun Pataleta
80c17cd2a0 Merge branch 'MDL-72701-master' of https://github.com/andrewnicols/moodle 2021-12-23 12:10:46 +08:00
Andrew Nicols
bb9741d472 MDL-72701 unit tests: Fix broken @covers annotations 2021-12-21 09:24:00 +08:00
Eloy Lafuente (stronk7)
e4a2d9c1d4 MDL-73348 phpunit: normalize all privacy provider tests
As far as now all them have correct privacy level2 namespace:
- Move them to "privacy" subdir.
- Rename the files to "provider_test.php", this includes old
  privacy_test.php and privacy_provider_test.php files
- Rename the testcase to provider_test too (to match file name)

Also, change some relative paths and comments to point to new
locations.
2021-12-17 14:21:02 +01:00
Eloy Lafuente (stronk7)
876d387e8f Merge branch 'MDL-72919-master' of https://github.com/aanabit/moodle 2021-12-01 19:06:40 +01:00
Mathew May
b983003e2e MDL-70197 navigation: Remove old navigation elements and migrate behat 2021-11-29 15:47:42 +08:00
Amaia Anabitarte
6e089b2602 MDL-72919 core_course: Improve add weeks styling 2021-11-24 12:10:13 +01:00
Bas Brands
aff86afaff MDL-72250 core_course: behat fix for targeting close button 2021-11-17 14:39:11 +02:00
Andrew Nicols
9b32fb1b5e Merge branch 'MDL-72569-master' of https://github.com/ferranrecio/moodle 2021-11-03 14:47:51 +08:00
Ferran Recio
461226ed27 MDL-72569 core_courseformat: aria-tree to move tool 2021-11-02 16:00:12 +01:00
Andrew Nicols
2c32a5f8d8 Merge branch 'MDL-72660-master' of git://github.com/ferranrecio/moodle 2021-11-01 06:50:51 +08:00
Ferran Recio
41487c38ed MDL-72660 core_courseformat: course index completion icons 2021-10-29 11:49:45 +02:00
Ferran Recio
3d2a6eacae MDL-71779 core_courseformat: reactive add and delete sections 2021-10-28 16:41:17 +02:00
Ferran Recio
59128bb411 MDL-72263 courseformat: adding core/tree to course index 2021-10-27 10:54:56 +02:00
Sara Arjona
a4d472cce6 Merge branch 'MDL-72567-master' of git://github.com/lucaboesch/moodle 2021-10-21 16:38:24 +02:00
Luca Bösch
7e047dcf99 MDL-72567 courseformat: Have course index support activity name filters 2021-10-21 10:14:35 +02:00
Ilya Tregubov
0350d42610 MDL-71211 core_course: Keep the status of course index. 2021-10-19 13:17:25 +02:00
Andrew Nicols
b7687bfef8 Merge branch 'MDL-72463-master' of git://github.com/ferranrecio/moodle 2021-10-05 23:20:41 +02:00
Andrew Nicols
8b7fb0f7ab Merge branch 'MDL-71795-master' of git://github.com/ferranrecio/moodle 2021-10-05 23:18:46 +02:00
Ferran Recio
7ad939c592 MDL-71795 courseformat: course index in activity page 2021-10-01 09:03:56 +02:00
Ferran Recio
96c6dc53cd MDL-72463 courseformat: course index highlight section badge 2021-09-29 11:32:03 +02:00
Ferran Recio
05b6f68f65 MDL-71828 courseformat: course index section link toggler 2021-09-22 20:10:04 +02:00
Amaia Anabitarte
c5578db866 MDL-72310 core_course: Expand course index sections by default 2021-09-03 12:25:33 +02:00
Eloy Lafuente (stronk7)
a65c0bbc0a MDL-71847 course: small tests fixes.
1) Namespace must match the one being covered.
2) the @covers annotation was wrong, missing class name(s). At the
   end I've used the coversDefaultClass annotation that allows to
   specify a whole namespace, useful in this case to get the 3
   existing (course, section, cm) classes covered.
2021-08-23 20:14:51 +02:00
Eloy Lafuente (stronk7)
101355638b Merge branch 'MDL-71847-master' of git://github.com/ilyatregubov/moodle 2021-08-23 18:48:25 +02:00
Ferran Recio
0b18d478a2 MDL-71209 courseformat: disable course index in mod 2021-08-23 12:49:22 +02:00
Ferran Recio
ef745009ed MDL-71209 courseformat: add state suport to legacy action
Adapt the current course editing libraries to modify also
the course state data. This way, any UI component that
watches the course structure can react to the changes.
2021-08-20 16:49:06 +02:00
Ferran Recio
830c3eb907 MDL-71209 courseformat: add course index modules
The course index is the first UI component that implements the new
drawers and the reactive components. The course index uses the course
state to present the current course structure and changes whenever
that structure change.
2021-08-20 16:49:06 +02:00
Ilya Tregubov
7226a0fe5f MDL-71847 course: Cover state classes with direct unit tests. 2021-07-09 13:43:17 +02:00
Ferran Recio
21d93554d4 MDL-71863 courseformat: create courseformat subsystem 2021-06-28 13:50:18 +02:00