Commit Graph

217 Commits

Author SHA1 Message Date
Jun Pataleta 1be54667d6 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:12:18 +08:00
meirzamoodle 42b0a371bf 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 10:02:53 +07:00
Huong Nguyen b311baf0bd Merge branch 'MDL-83381-405' of https://github.com/davewoloszyn/moodle into MOODLE_405_STABLE 2024-10-14 11:08:59 +07:00
David Woloszyn 7beb6d7e82 MDL-83381 AI: Fix OpenAI provider config 2024-10-10 11:53:55 +11:00
Jun Pataleta 803c3d8977 MDL-83374 upgrade: add the 4.5.0 separation line to all upgrade scripts 2024-10-07 09:34:51 +07: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
raortegar 94a373f79b MDL-83074 AI: Placement Text Editor - White icon on button 2024-09-11 10:33:12 +02:00
Huong Nguyen f4860573fa MDL-82627 AI: Placement Text Editor - Improvement
- Quiz is setting the text editor id in this format: `#q2:1_answer`.
   This will break the querySelector(). We need to update the code to
   escape those colons.
 - Generate AI image requires users to have the capability to upload files.
   A new extra condition is added to verify this one.
2024-09-11 11:25:17 +07:00
Huong Nguyen 7809ad9d96 MDL-82627 AI: Rename TinyMCE placement to a more generic name
To make the plugin name a bit more generic, we renamed as below
 - Shortname: `aiplacement_tinymce` -> `aiplacement_editor`
 - Fullname: `TinyMCE Editor Placement` -> HTML Text Editor Placement
2024-09-11 11:25:17 +07:00
Huong Nguyen 3300712cda MDL-82627 AI: Extra PHPUnit tests for OpenAI provider 2024-09-11 11:25:17 +07:00
Andrew Nicols acc1f4136b MDL-82627 AI: Placement Text Editor - Code cleanup
Co-authored-by: Huong Nguyen <huongnv13@gmail.com>
2024-09-11 11:25:16 +07:00
Huong Nguyen 253253eede MDL-82627 AI: Code cleanup
Co-authored-by: Meirza <meirza.arson@moodle.com>
2024-09-11 11:25:16 +07:00
Matt Porritt 7c622cde3f MDL-82627 AI: Placement Text Editor - Image & Text
Initial AI placement plugin for the TinyMCE editor.
It includes a TinyMCE plugin and the AI placement plugin.
It supports both text and image generation.

Originally implemented in MDL-80891

Co-authored-by: Huong Nguyen <huongnv13@gmail.com>
2024-09-11 11:25:14 +07:00
Paul Holden f803f62853 MDL-82718 tiny_media: fix error string loading for invalid image. 2024-08-27 09:21:32 +01:00
Huong Nguyen e6ea778c03 NOBUG: Fixed SVG browser compatibility 2024-08-16 08:37:01 +07:00
Huong Nguyen 31e1fa1f1b Merge branch 'MDL-82211-main' of https://github.com/sarjona/moodle 2024-08-13 15:37:02 +07:00
Sara Arjona d597e00506 MDL-82211 atto: Update SVG icons 2024-08-13 07:22:42 +02:00
Mikel Martín f179890ad5 MDL-75671 theme_boost: Refactor text direction classes for BS5
- Add SCSS code for text direction utility classes to the Boostrap 5 bridge SCSS file
- Replace all occurrences in the codebase (text-left > text-start, text-sm-right > text-sm-end, ...)
2024-08-09 07:40:17 +02:00
Mikel Martín 0a03018116 MDL-75671 theme_boost: Refactor spacing classes for BS5
- Add SCSS code for spacing utility classes to the Boostrap 5 bridge SCSS file
- Replace all occurrences in the codebase (pr-1 > pe-1, ml-auto > ms-auto, ml-sm-3 > ms-sm-3, ...)
2024-08-09 07:40:17 +02:00
David Mudrák 7af4e8816f MDL-82599 lang: Use the fixed strings in tests, too 2024-08-02 14:57:43 +02:00
Helen Foster c5b3abf9f5 MDL-82599 lang: Import fixed English strings (en_fix) 2024-08-02 14:57:43 +02:00
Paul Holden 554ca6cc50 MDL-82596 behat: switch manual private files upload to generator. 2024-07-28 19:06:13 +01:00
Paul Holden 83db25c330 MDL-82527 h5p: improve editor Behat scenarios for embedding content.
* Move the shared drag fixture out of the Atto plugin;
* Switch to using faster generators for populating private files;
* Clarify required fields for private files generator
2024-07-18 09:15:51 +01:00
Ilya Tregubov 8dc76d79e5 Merge branch 'main_MDL-82141' of https://github.com/mattporritt/moodle 2024-07-02 13:19:55 +08:00
tai.letan 0208b9cae2 MDL-81111 tiny_recordrtc: add 'Pause' button for recording A/V 2024-06-21 09:22:17 +07:00
Matt Porritt c6e0b0f346 MDL-82141 Administration: Use toggle for Plugin Management Table
Replace the "eye" icon for enabling and disabling plugins in tables
that use the Plugin Management Table (plugin_management_table) class
with the Font Awesome "toggle" icon.
2024-06-21 12:18:55 +10:00
Jun Pataleta e5be35a15b Merge branch 'MDL-82246-main' of https://github.com/andrewnicols/moodle 2024-06-20 11:41:54 +08:00
Andrew Nicols 5f512be7b9 MDL-82246 tiny_recordrtc: Correct string name for insecure alert title 2024-06-20 10:57:31 +08:00
Sara Arjona 438ecde725 Merge branch 'MDL-82181' of https://github.com/paulholden/moodle 2024-06-19 15:42:22 +02:00
Andrew Nicols 40938bd83b Merge branch 'MDL-81739-main' of https://github.com/davewoloszyn/moodle 2024-06-18 22:33:14 +08:00
Paul Holden ed25832cc7 MDL-82181 tiny_media: correctly determine whether to show dropzone. 2024-06-12 14:16:00 +01:00
David Woloszyn bf02176281 MDL-81739 tiny_noautolink: Remove URL checking when preventing auto-link 2024-06-06 15:07:06 +10:00
Jun Pataleta e5d52aa315 Merge branch 'MDL-81982-main' of https://github.com/junpataleta/moodle 2024-06-05 10:30:44 +08:00
David Mudrák a8cdd0d7a4 MDL-81982 lang: Fix strings order
Fixes the strings order in files where CI has detected the wrong order
of modified strings.
2024-06-05 10:25:29 +08:00
David Mudrák 6a95cab8a3 MDL-81982 lang: Use fixed strings in tests, too 2024-06-05 10:25:29 +08:00
Helen Foster 7b8da78e01 MDL-81982 lang: Import fixed English strings (en_fix) 2024-06-05 10:25:28 +08:00