Commit Graph

247 Commits

Author SHA1 Message Date
Mikel Martín 691e6c6042 MDL-75669 theme_boost: Refactor btn-block class removed in BS5 2025-02-14 10:58:36 +01:00
Mikel Martín 04975cd2b2 MDL-75669 theme_boost: Refactor custom form elements to BS5
- .custom-check is now .form-check.
- .custom-check.custom-switch is now .form-check.form-switch.
- .custom-select is now .form-select.
- .custom-file and .form-file have been replaced by custom styles on top of .form-control.
- .custom-range is now .form-range.
- Dropped .input-group-append and .input-group-prepend. You can now just add buttons
  and .input-group-text as direct children of the input groups.
2025-02-14 10:58:36 +01:00
Mikel Martín 5416483611 MDL-75669 theme_boost: Refactor BS5 data attributes
Data attributes for all Bootstrap5 JavaScript plugins are now namespaced
to help distinguish Bootstrap functionality from third parties and your own code.
For example, data-bs-toggle instead of data-toggle.
This commit refactor all old Bootstrap data-attributes to the new syntax.

Co-authored-by: Daniel Ziegenberg <daniel@ziegenberg.at>
2025-02-14 09:10:33 +01:00
Huong Nguyen c8f0232170 Merge branch 'MDL-83579' of https://github.com/paulholden/moodle 2025-02-13 11:11:19 +07:00
Jun Pataleta d1b6d2eaf8 Merge branch 'MDL-83809-main' of https://github.com/sammarshallou/moodle 2025-02-05 18:05:39 +01:00
sam marshall f1f8163b27 MDL-83809 Accessibility: Focus issues in modals
This change fixes 2 issues:

1 The focus lock for modals (e.g. within Tiny editor) did not
  correctly loop round from the end of the modal to the start.

2 After clicking 'Browse repositories' button in a Tiny editor
  modal, and closing the file picker, focus did not return to
  the button as expected.
2025-02-04 12:50:53 +00:00
Huong Nguyen e6b368e16b Merge branch 'MDL-84388-main' of https://github.com/lameze/moodle 2025-02-03 15:08:42 +07:00
Huong Nguyen 56a7e2077c Merge branch 'MDL-81478-main' of https://github.com/meirzamoodle/moodle 2025-02-03 09:32:02 +07:00
Huong Nguyen 4292f1a886 Merge branch 'MDL-83794-main' of https://github.com/andrewnicols/moodle 2025-02-03 09:20:15 +07:00
Sara Arjona b2ff1cb848 Merge branch 'MDL-84321-main-enfix' of https://github.com/mudrd8mz/moodle 2025-02-01 00:20:37 +08:00
Simey Lameze e6205ecf67 MDL-84388 behat: use the correct ai provider generator
Signed-off-by: Simey Lameze <simey@moodle.com>
2025-01-31 07:04:45 +08:00
Huong Nguyen b845804c37 Merge branch 'MDL-84095-main' of https://github.com/meirzamoodle/moodle 2025-01-30 10:50:44 +07:00
Andrew Nicols f67b2e8c6b MDL-83794 editor_tiny: Add support for MathML 2025-01-30 07:23:32 +08:00
David Mudrák 3f38b28079 MDL-84321 lang: Use the fixed strings in tests, too 2025-01-27 23:11:59 +01:00
Helen Foster cb4070a2b7 MDL-84321 lang: Import fixed English strings (en_fix) 2025-01-27 23:01:17 +01:00
Matt Porritt 368114c7cd MDL-82977 AI: Provider instances
Create provider instances for AI povider plugins.
Each provider plugin can now have multiple instances,
allowing for different configurations and models using
the same base provider.
2025-01-22 08:43:13 +11:00
Paul Holden ffcd39af1f MDL-83579 tiny_media: pass filepicker accepted types to dropzone. 2025-01-16 17:37:49 +00:00
meirzamoodle 31887ff87a MDL-84095 tiny_recordrtc: Shows error toast for failures 2025-01-09 15:14:26 +07:00
meirzamoodle 533feac594 MDL-81478 tiny_recordrtc: Add webm audio support as a fallback
Co-authored-by: Djarran Cotleanu <djarrancotleanu@catalyst-au.net>
2025-01-08 13:55:02 +07:00
Sara Arjona 314d41f427 MDL-83639 pix: Update custom icons
Sabina Abellán from the UX team has created the following custom icons:

- ai*:sparkles
- core:e/insert_col_after
- core:e/insert_col_before
- core:e/split_cells
- core:e/text_color
- core:i/bulk_edit
- core:i/export
- core:i/grade_partiallycorrect
- core:i/item
- core:t/completion_incomplete
- core:t/locktime
- mod_scorm:browsed
- tool_policy:level

In addition to updating these SVG files, the entries in the icon_map() have
been removed to ensure that the customized version is always used.
2024-12-20 07:40:23 +01:00
Jun Pataleta 1ff50ac088 NOBUG: Bump versions for main to the current date 2024-12-18 23:53:12 +08:00
Mikel Martín f9abc562f5 MDL-81825 theme_boost: Refactor .sr-only usages for BS5
- Add .visually-hidden to the Boostratp 5 bridge SCSS file
- Replace .sr-only occurrences with .visually-hidden
- Replace .dropzone-sr-only-focusable  with .dropzone-visually-hidden-focusable
  for consistency
2024-12-10 14:02:32 +01:00
Helen Foster 9f1293b10d MDL-83823 lang: Import fixed English strings (en_fix) 2024-12-02 21:25:01 +01:00
Huong Nguyen 7fd11604da Merge branch 'MDL-81821-main' of https://github.com/roland04/moodle 2024-11-28 13:23:54 +08:00
Jun Pataleta 03729748d1 MDL-83470 core: Remove upgrade steps from 4.1 2024-11-27 10:27:09 +08:00
Mikel Martín 636ab0fba9 MDL-81821 theme_boost: Refactor font utility classes for BS5 2024-11-26 15:17:30 +01:00
Paul Holden 2770dd65f1 Merge branch 'MDL-83570-main-fix' of https://github.com/junpataleta/moodle into main 2024-11-20 12:28:49 +00:00
Jun Pataleta 7f122657cf MDL-83570 tiny_recordrtc: Use the correct upgrade_plugin_savepoint()
And move the release upgrade line comment before the upgrade step.
2024-11-20 18:06:32 +08:00
meirzamoodle 392ed9c627 MDL-83570 tiny_recordrtc: Turn the audio bitrate input to Select field
The current code may have a bug. If users set the audio bit rate to
a non-supported value, such as 1000,
Firefox will display an error in the console,
while Chrome will create the recorded audio file successfully,
but it will have no sound. I tested this on Ubuntu 24.04.

The minimum bit rate threshold varies depending on the audio format.
During my tests with Firefox version 131.0.3, which uses
the audio/Ogg format, I found that the minimum supported value
is 24000. In Chrome 129.0.6668.70, which uses the audio/MP4 format,
the minimum supported value is 2400.

Due to these differences, I decided to change the input from
a text field to a select field, offering options that support both
Ogg and MP4 audio formats.

The database conversion for the old value has been provided in
the lib/db/upgrade.php. The script will find the closest match to
the current data and update it accordingly.
2024-11-20 09:59:14 +07:00
David Woloszyn c4ed556f0a MDL-83394 tiny_aiplacement: Use revised prompt for alt text 2024-11-06 14:23:34 +11:00
meirzamoodle 536d9ff4ee MDL-78453 tiny_aiplacement: Increase the image alt text max length 2024-11-04 22:41:40 +07:00
meirzamoodle 5e259cc587 MDL-78453 tiny_media: Increase the image alt text max length 2024-11-04 22:41:40 +07:00
Huong Nguyen 7014d61d93 Merge branch 'MDL-83381-main' of https://github.com/davewoloszyn/moodle 2024-10-14 11:08:25 +07:00
David Woloszyn eedb68462c MDL-83381 AI: Fix OpenAI provider config 2024-10-10 11:51:32 +11:00
Jun Pataleta c9356e039f MDL-83374 upgrade: add the 4.5.0 separation line to all upgrade scripts 2024-10-05 21:16:13 +08:00
Sara Arjona f4202b26cd Merge branch 'MDL-83312-main' of https://github.com/davewoloszyn/moodle 2024-10-03 10:24:58 +02:00
David Woloszyn 3b23f4db26 MDL-83312 AI: Check provider has minimal config 2024-10-03 10:25:23 +10:00
Jun Pataleta f24e0ecf53 MDL-83309 versions: Bump all versions and requires near release 2024-10-02 17:04:53 +08:00
Huong Nguyen 838a9abb73 Merge branch 'MDL-82900-main' of https://github.com/mickhawkins/moodle 2024-10-01 11:40:37 +07:00
Michael Hawkins e50249fbea MDL-82900 AI: Update language strings 2024-10-01 12:33:38 +08:00
Sara Arjona 0cde4a8842 Merge branch 'MDL-83276-main' of https://github.com/HuongNV13/moodle 2024-09-30 11:20:30 +02:00
Huong Nguyen c2dafca314 MDL-83276 AI: Extra checks for provider and placement actions 2024-09-27 15:48:42 +07:00
raortegar 9825a4129a MDL-83277 AI: Placement Text Editor - Remove browser console log 2024-09-27 09:55:11 +02:00
Jun Pataleta fa31b3f3cb Merge branch 'MDL-83092-main' of https://github.com/junpataleta/moodle 2024-09-20 10:30:33 +08:00
Matt Porritt cfe65f1772 MDL-83092 AI: Placement action needs to check status of provider action
When all providers for a certain action are disabled, or if providers
are enabled but all individual actions of a type are disabled, then
a warning is shown on the placement admin settings page for actions
that have no providers available.

Also the text editor placement will not show the option to generate
images or text if there are no actions available.
2024-09-20 10:26:49 +08:00
Jun Pataleta 3fc594f72b MDL-80890 tiny_aiplacement: Prefetch the correct lang string 2024-09-19 22:14:47 +08:00
Jun Pataleta 92e842dceb Merge branch 'MDL-80890-main' of https://github.com/HuongNV13/moodle 2024-09-19 10:33:13 +08:00
Huong Nguyen cb4e621ce9 MDL-80890 AI: Course Assistance Placement
Co-authored-by: Matt Porritt <pozze30@gmail.com>
2024-09-19 09:30:10 +07:00
Matt Porritt 030f5ffce7 MDL-83073 AI: Image generation - Small screen display issue
Improve the image generation model and medium and small
screen resolutions. Fixes an issue where elements overlap
and lower screen resolutions.
2024-09-18 13:14:31 +10:00
Sara Arjona 9ba7917c89 NOBUG: Fixed SVG browser compatibility 2024-09-13 13:21:49 +02:00