From 1be99fa195a696d0c52ced75c968c9ac5824095e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Isaac=20David=20S=C3=A1nchez=20S=C3=A1nchez?= <158796340+IsaacDev2024@users.noreply.github.com> Date: Fri, 16 Jan 2026 23:11:08 -0500 Subject: [PATCH 01/24] Refactor render_results to simplify logic and add results cards --- block_learning_style.php | 136 +++++++++++++++++++-------------------- 1 file changed, 66 insertions(+), 70 deletions(-) diff --git a/block_learning_style.php b/block_learning_style.php index 0beae206df5..1d17d864124 100644 --- a/block_learning_style.php +++ b/block_learning_style.php @@ -173,83 +173,77 @@ private function get_student_content() { * Render results and chart */ private function render_results($entry) { - global $OUTPUT; - $final_style = []; - $sliders_data = []; - - $izq_title = get_string('active_recommendations', 'block_learning_style'); - $der_title = get_string('reflexive_recommendations', 'block_learning_style'); - - // Si Activo es mayor, el resultado es negativo y la barra se va a la izquierda. - $diff_active = $entry->ap_reflexivo - $entry->ap_active; - $final_style[abs($diff_active) . "ar"] = $this->my_slider($diff_active, get_string("active", 'block_learning_style'), get_string("reflexive", 'block_learning_style'),$izq_title,$der_title); - - $izq_title = get_string('sensorial_recommendations', 'block_learning_style'); - $der_title = get_string('intuitive_recommendations', 'block_learning_style'); - - // Intuitivo (der) - Sensorial (izq) - $diff_sensorial = $entry->ap_intuitivo - $entry->ap_sensorial; - $final_style[abs($diff_sensorial) . "si"] = $this->my_slider($diff_sensorial, get_string("sensorial", 'block_learning_style'), get_string("intuitive", 'block_learning_style'),$izq_title,$der_title); - - $izq_title = get_string('visual_recommendations', 'block_learning_style'); - $der_title = get_string('verbal_recommendations', 'block_learning_style'); - - // Verbal (der) - Visual (izq) - $diff_visual = $entry->ap_verbal - $entry->ap_visual; - $final_style[abs($diff_visual) . "vv"] = $this->my_slider($diff_visual, get_string("visual", 'block_learning_style'), get_string("verbal", 'block_learning_style'),$izq_title,$der_title); + global $COURSE, $OUTPUT; - $izq_title = get_string('sequential_recommendations', 'block_learning_style'); - $der_title = get_string('global_recommendations', 'block_learning_style'); - - // Global (der) - Secuencial (izq) - $diff_secuencial = $entry->ap_global - $entry->ap_secuencial; - $final_style[abs($diff_secuencial) . "sg"] = $this->my_slider($diff_secuencial, get_string("sequential", 'block_learning_style'), get_string("global", 'block_learning_style'),$izq_title,$der_title); - krsort($final_style); + $results_cards = []; - foreach ($final_style as $html) { - $sliders_data[] = ['html' => $html]; + // Definition of dimensions and icons + // Processing: Active vs Reflexive + if ($entry->ap_active >= $entry->ap_reflexivo) { + $results_cards[] = [ + 'dimension' => get_string('processing_dimension', 'block_learning_style'), + 'style' => get_string('active', 'block_learning_style'), + 'icon' => 'fa-bolt' + ]; + } else { + $results_cards[] = [ + 'dimension' => get_string('processing_dimension', 'block_learning_style'), + 'style' => get_string('reflexive', 'block_learning_style'), + 'icon' => 'fa-lightbulb-o' + ]; } - // Inicializar popovers de forma segura - $this->page->requires->js_call_amd('block_learning_style/popoverinit', 'init'); - - $json_style = [ - "act" => intval($entry->ap_active), - "ref" => intval($entry->ap_reflexivo), - "sen" => intval($entry->ap_sensorial), - "int" => intval($entry->ap_intuitivo), - "vis" => intval($entry->ap_visual), - "vrb" => intval($entry->ap_verbal), - "seq" => intval($entry->ap_secuencial), - "glo" => intval($entry->ap_global) - ]; - - $chart_labels = [ - get_string('chart_visual', 'block_learning_style'), - get_string('chart_sensorial', 'block_learning_style'), - get_string('chart_active', 'block_learning_style'), - get_string('chart_global', 'block_learning_style'), - get_string('chart_verbal', 'block_learning_style'), - get_string('chart_intuitive', 'block_learning_style'), - get_string('chart_reflexive', 'block_learning_style'), - get_string('chart_sequential', 'block_learning_style') - ]; - - $dataset_label = get_string('learning_style_label', 'block_learning_style'); + // Perception: Sensorial vs Intuitive + if ($entry->ap_sensorial >= $entry->ap_intuitivo) { + $results_cards[] = [ + 'dimension' => get_string('perception_dimension', 'block_learning_style'), + 'style' => get_string('sensorial', 'block_learning_style'), + 'icon' => 'fa-wrench' + ]; + } else { + $results_cards[] = [ + 'dimension' => get_string('perception_dimension', 'block_learning_style'), + 'style' => get_string('intuitive', 'block_learning_style'), + 'icon' => 'fa-puzzle-piece' + ]; + } - $params = [ - 'canvasId' => 'radarstyle', - 'data' => $json_style, - 'labels' => $chart_labels, - 'datasetLabel' => $dataset_label - ]; + // Understanding: Sequential vs Global + if ($entry->ap_secuencial >= $entry->ap_global) { + $results_cards[] = [ + 'dimension' => get_string('understanding_dimension', 'block_learning_style'), + 'style' => get_string('sequential', 'block_learning_style'), + 'icon' => 'fa-list-ol' + ]; + } else { + $results_cards[] = [ + 'dimension' => get_string('understanding_dimension', 'block_learning_style'), + 'style' => get_string('global', 'block_learning_style'), + 'icon' => 'fa-globe' + ]; + } - $this->page->requires->js_call_amd('block_learning_style/radar_handler', 'init', [$params]); + // Input: Visual vs Verbal + if ($entry->ap_visual >= $entry->ap_verbal) { + $results_cards[] = [ + 'dimension' => get_string('input_dimension', 'block_learning_style'), + 'style' => get_string('visual', 'block_learning_style'), + 'icon' => 'fa-eye' + ]; + } else { + $results_cards[] = [ + 'dimension' => get_string('input_dimension', 'block_learning_style'), + 'style' => get_string('verbal', 'block_learning_style'), + 'icon' => 'fa-comments-o' + ]; + } $template_data = [ 'icon' => $this->get_learning_style_icon('4em', 'display: block;', false), - 'sliders' => $sliders_data, - 'instanceid' => $this->instance->id + 'results_cards' => $results_cards, + 'summary_url' => (new moodle_url('/blocks/learning_style/view_individual.php', ['courseid' => $COURSE->id, 'userid' => $entry->user]))->out(false), + 'instanceid' => $this->instance->id, + 'showdescriptions' => !empty($this->config->showdescriptions) ]; return $OUTPUT->render_from_template('block_learning_style/results', $template_data); @@ -353,7 +347,8 @@ private function get_test_invitation() { $template_data = [ 'icon' => $this->get_learning_style_icon('4em', '', true), - 'url' => (new moodle_url('/blocks/learning_style/view.php', array('cid' => $COURSE->id)))->out() + 'url' => (new moodle_url('/blocks/learning_style/view.php', array('cid' => $COURSE->id)))->out(), + 'showdescriptions' => !empty($this->config->showdescriptions) ]; return $OUTPUT->render_from_template('block_learning_style/test_invitation', $template_data); @@ -399,7 +394,8 @@ private function get_continue_test_card($answered_count) { 'url' => $url->out(false), 'button_text' => $button_text, 'button_icon' => $button_icon, - 'button_class' => $button_class + 'button_class' => $button_class, + 'showdescriptions' => !empty($this->config->showdescriptions) ]; return $OUTPUT->render_from_template('block_learning_style/continue_test', $template_data); From bc1aa4f01aa4da9bbdad7c060fa3985897a35c88 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Isaac=20David=20S=C3=A1nchez=20S=C3=A1nchez?= <158796340+IsaacDev2024@users.noreply.github.com> Date: Fri, 16 Jan 2026 23:13:37 -0500 Subject: [PATCH 02/24] Add edit form for learning style block settings Implemented a form for editing learning style block settings, including a toggle for showing descriptions. --- edit_form.php | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 edit_form.php diff --git a/edit_form.php b/edit_form.php new file mode 100644 index 00000000000..e710b1a290d --- /dev/null +++ b/edit_form.php @@ -0,0 +1,13 @@ +addElement('header', 'config_header', get_string('blocksettings', 'block')); + + // Checkbox/Select for showing descriptions. Default is No (0). + $mform->addElement('selectyesno', 'config_showdescriptions', get_string('config_showdescriptions', 'block_learning_style')); + $mform->setDefault('config_showdescriptions', 0); + $mform->setType('config_showdescriptions', PARAM_BOOL); + $mform->addHelpButton('config_showdescriptions', 'config_showdescriptions', 'block_learning_style'); + } +} From 502f772d889206fa07df531caa4e93867fc715c9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Isaac=20David=20S=C3=A1nchez=20S=C3=A1nchez?= <158796340+IsaacDev2024@users.noreply.github.com> Date: Fri, 16 Jan 2026 23:15:52 -0500 Subject: [PATCH 03/24] Reduce auto-save delay from 2s to 400ms --- amd/src/view_handler.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/amd/src/view_handler.js b/amd/src/view_handler.js index 51ddfdb1a0b..76d756951de 100644 --- a/amd/src/view_handler.js +++ b/amd/src/view_handler.js @@ -55,8 +55,8 @@ define(['jquery', 'core/ajax'], function($, Ajax) { clearTimeout(autoSaveTimer); } - // Auto-save after 2 seconds of inactivity - autoSaveTimer = setTimeout(autoSaveProgress, 2000); + // Auto-save after 400ms of inactivity + autoSaveTimer = setTimeout(autoSaveProgress, 400); }); // Handle form submission for navigation From 12236ff14de3fa57fe872a237f05b3760949400b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Isaac=20David=20S=C3=A1nchez=20S=C3=A1nchez?= <158796340+IsaacDev2024@users.noreply.github.com> Date: Fri, 16 Jan 2026 23:16:54 -0500 Subject: [PATCH 04/24] Modify timeout and error highlight styles in view_handler Updated the timeout duration for change event handling and adjusted the error highlight styling. --- amd/build/view_handler.min.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/amd/build/view_handler.min.js b/amd/build/view_handler.min.js index f02b6ea84f7..160575c03d2 100644 --- a/amd/build/view_handler.min.js +++ b/amd/build/view_handler.min.js @@ -1 +1 @@ -define(["jquery","core/ajax"],(function(o,e){"use strict";return{init:function(e){var t=null,r=!1,n=e.formUrl;function i(){if(!r){r=!0;var o=new FormData(document.getElementById("learningStyleForm"));o.set("action","autosave"),fetch(n,{method:"POST",body:o}).then((function(o){return o.json()})).then((function(o){r=!1})).catch((function(o){r=!1}))}}o(".select-q").on("change",(function(){var e=o(this).closest(".learning_style_item");e.hasClass("question-error-highlight")&&(e.css({border:"","background-color":"","border-radius":"",padding:"","margin-bottom":"","box-shadow":""}),e.removeClass("question-error-highlight")),t&&clearTimeout(t),t=setTimeout(i,2e3)})),o("#learningStyleForm").on("submit",(function(e){var t=e.originalEvent.submitter,r=t?t.value:"next";if("previous"===r)return!0;if("next"!==r&&"finish"!==r)return!0;var n=o(".select-q"),i=!0,s=null;return n.each((function(){if(""===o(this).val()){i=!1;var e=o(this).closest(".learning_style_item");e.length&&(e.css({border:"3px solid #d32f2f","background-color":"#ffebee","border-radius":"10px",padding:"24px 28px","margin-bottom":"1.5rem","box-shadow":"0 4px 8px rgba(211, 47, 47, 0.3)"}),e.addClass("question-error-highlight"),s||(s=e))}})),i?void 0:(e.preventDefault(),s&&s[0].scrollIntoView({behavior:"smooth",block:"center"}),!1)})),e.shouldAutoScroll&&setTimeout((function(){var e=!1;o(".select-q").each((function(){if(!e&&""===o(this).val()){var t=o(this).closest(".learning_style_item");t.length&&(t.css({border:"3px solid #28a745","background-color":"#d4edda","border-radius":"10px",padding:"24px 28px","margin-bottom":"1.5rem","box-shadow":"0 4px 8px rgba(40, 167, 69, 0.3)",transition:"all 0.3s ease"}),t[0].scrollIntoView({behavior:"smooth",block:"center"}),setTimeout((function(){t.css({border:"","background-color":"","border-radius":"",padding:"","margin-bottom":"","box-shadow":""})}),5e3)),e=!0}}))}),300),e.scrollToFinish&&setTimeout((function(){var e=o("#submitBtn");e.length&&(e[0].scrollIntoView({behavior:"smooth",block:"center"}),e.css({"box-shadow":"0 0 20px rgba(40, 167, 69, 0.8)",transition:"all 0.3s ease"}),setTimeout((function(){e.css("box-shadow","")}),5e3))}),300)}}})); +define(["jquery","core/ajax"],(function(o,e){"use strict";return{init:function(e){var t=null,r=!1,n=e.formUrl;function i(){if(!r){r=!0;var o=new FormData(document.getElementById("learningStyleForm"));o.set("action","autosave"),fetch(n,{method:"POST",body:o}).then((function(o){return o.json()})).then((function(o){r=!1})).catch((function(o){r=!1}))}}o(".select-q").on("change",(function(){var e=o(this).closest(".learning_style_item");e.hasClass("question-error-highlight")&&(e.css({border:"","background-color":"","border-radius":"",padding:"","margin-bottom":"","box-shadow":""}),e.removeClass("question-error-highlight")),t&&clearTimeout(t),t=setTimeout(i,400)})),o("#learningStyleForm").on("submit",(function(e){var t=e.originalEvent.submitter,r=t?t.value:"next";if("previous"===r)return!0;if("next"!==r&&"finish"!==r)return!0;var n=o(".select-q"),i=!0,s=null;return n.each((function(){if(""===o(this).val()){i=!1;var e=o(this).closest(".learning_style_item");e.length&&(e.css({border:"3px solid #d32f2f","background-color":"#ffebee","border-radius":"10px",padding:"24px 28px","margin-bottom":"1.5rem","box-shadow":"0 4px 8px rgba(211, 47, 47, 0.3)"}),e.addClass("question-error-highlight"),s||(s=e))}})),i?void 0:(e.preventDefault(),s&&s[0].scrollIntoView({behavior:"smooth",block:"center"}),!1)})),e.shouldAutoScroll&&setTimeout((function(){var e=!1;o(".select-q").each((function(){if(!e&&""===o(this).val()){var t=o(this).closest(".learning_style_item");t.length&&(t.css({border:"3px solid #28a745","background-color":"#d4edda","border-radius":"10px",padding:"24px 28px","margin-bottom":"1.5rem","box-shadow":"0 4px 8px rgba(40, 167, 69, 0.3)",transition:"all 0.3s ease"}),t[0].scrollIntoView({behavior:"smooth",block:"center"}),setTimeout((function(){t.css({border:"","background-color":"","border-radius":"",padding:"","margin-bottom":"","box-shadow":""})}),5e3)),e=!0}}))}),300),e.scrollToFinish&&setTimeout((function(){var e=o("#submitBtn");e.length&&(e[0].scrollIntoView({behavior:"smooth",block:"center"}),e.css({"box-shadow":"0 0 20px rgba(40, 167, 69, 0.8)",transition:"all 0.3s ease"}),setTimeout((function(){e.css("box-shadow","")}),5e3))}),300)}}})); From 4c64d43a67dd599299dae5a2187e9fe80f461909 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Isaac=20David=20S=C3=A1nchez=20S=C3=A1nchez?= <158796340+IsaacDev2024@users.noreply.github.com> Date: Fri, 16 Jan 2026 23:18:26 -0500 Subject: [PATCH 05/24] Refactor strings for Learning Styles Exploration Updated various strings to reflect the change from 'Learning Style' to 'Learning Styles Exploration', ensuring consistency across the administration panel and user interface. --- lang/en/block_learning_style.php | 70 ++++++++++++++++++-------------- 1 file changed, 39 insertions(+), 31 deletions(-) diff --git a/lang/en/block_learning_style.php b/lang/en/block_learning_style.php index 6d8aab537c1..dd3be8d7859 100644 --- a/lang/en/block_learning_style.php +++ b/lang/en/block_learning_style.php @@ -1,16 +1,16 @@ Lorem ipsum dolor.
'; $string['accept_code_honor_text'] = "Accept"; -$string['redirect_accept_success'] = "Congratulations, you can now view your results in the course sidebar."; -$string['redirect_accept_exist'] = "You have already completed the assessment, redirecting to the course"; +$string['redirect_accept_success'] = "Congratulations, you can now view your results here."; +$string['redirect_accept_exist'] = "You have already completed the exploration, redirecting to the results."; $string['accept_message'] = "Accepted"; $string['required_message'] = "Please accept to continue"; -$string['learning_style_actived'] = "Learning Style assessment enabled"; -$string['learning_style_configempty'] = "Assessment enabled but needs configuration. Please configure this block"; +$string['learning_style_actived'] = "Learning Styles Exploration enabled"; +$string['learning_style_configempty'] = "Exploration enabled but needs configuration. Please configure this block"; $string['submit_text'] = "Continue and go to the course"; $string['active'] = "Active"; @@ -18,6 +18,10 @@ $string['sensorial'] = "Sensorial"; $string['intuitive'] = "Intuitive"; $string['visual'] = "Visual"; + +$string['config_showdescriptions'] = 'Show descriptions'; +$string['config_showdescriptions_help'] = 'Show or hide the description banners in the block.'; + $string['verbal'] = "Verbal"; $string['sequential'] = "Sequential"; $string['global'] = "Global"; @@ -28,7 +32,7 @@ $string['download_results'] = 'Download Results'; $string['select_option'] = 'Select an option'; $string['progress_saved'] = 'Progress saved successfully'; -$string['all_questions_required'] = 'All questions must be answered before finishing the test'; +$string['all_questions_required'] = 'All questions must be answered before finishing the exploration.'; // Dashboard tooltips and labels $string['dashboard_surveyed'] = 'Surveyed'; @@ -222,7 +226,7 @@ $string["learning_style:q44_b"] = "think of possible consequences or applications of the solution in a wide range of areas."; // Administrative section strings -$string['admin_title'] = 'Learning Style Administration'; +$string['admin_title'] = 'Learning Styles Exploration Administration'; $string['admin_access_denied'] = 'Access denied. Only teachers and administrators can view this page.'; $string['admin_statistics'] = 'General Statistics'; $string['total_participants'] = 'Total Participants'; @@ -235,7 +239,7 @@ $string['learning_style_deleted'] = 'Participation has been successfully deleted.'; $string['no_participants'] = 'No results available yet'; $string['no_data_available'] = 'No Data Available'; -$string['no_participants_message'] = 'No students have started the test yet.'; +$string['no_participants_message'] = 'No students have started the exploration yet.'; $string['back_to_course'] = 'Back to Course'; $string['back_to_admin'] = 'Back to Admin Panel'; $string['teachers_redirect_message'] = 'Teachers are redirected to the admin panel.'; @@ -261,7 +265,7 @@ $string['profile_global'] = 'Global'; // Individual results page -$string['individual_results_title'] = 'Individual Learning Styles Results'; +$string['individual_results_title'] = 'Individual Learning Styles Exploration Results'; $string['learning_style_results_for'] = 'Learning Styles Results for'; $string['completed_on'] = 'Completed on'; $string['processing_dimension'] = 'Processing Dimension'; @@ -298,26 +302,24 @@ $string['view_admin_results'] = 'Go to Administration Panel'; // Test invitation -$string['test_title'] = 'Learning Styles Test'; $string['discover_your_style'] = 'Discover your learning styles'; $string['what_is_felder'] = 'What is the Felder-Soloman Model?'; $string['test_description'] = 'This model breaks down how your mind prefers to receive and process information for learning. It analyzes four cognitive dimensions to provide you with personalized study strategies that transform your way of learning, making the process more efficient and less exhausting.'; $string['feature_44_questions'] = '44 quick questions'; $string['feature_4_dimensions'] = '4 learning dimensions'; $string['feature_instant_results'] = 'Instant results with recommendations'; -$string['start_test'] = 'Start Test'; -$string['test_not_configured'] = 'Test is not configured. Please contact your instructor.'; -$string['test_completed'] = 'Test Completed'; -$string['your_learning_style'] = 'Your Learning Style'; +$string['start_test'] = 'Start Exploration'; +$string['test_not_configured'] = 'Exploration is not configured. Please contact your instructor.'; +$string['test_completed'] = 'Learning Styles Exploration Completed'; +$string['your_results_here'] = 'See your results here'; // Test page content -$string['test_page_title'] = 'Learning Styles Test'; -$string['test_intro_p1'] = 'This test is based on the Felder-Soloman Model, a tool that identifies your preferences in how you process and organize information for learning.'; +$string['test_intro_p1'] = 'This exploration is based on the Felder-Soloman Model, a tool that identifies your preferences in how you process and organize information for learning.'; $string['test_intro_p2'] = 'Knowing your learning styles will allow you to:'; $string['test_benefit_1'] = '• Identify the most effective study strategies for you'; $string['test_benefit_2'] = '• Better understand how you process information'; $string['test_benefit_3'] = '• Make the most of the resources available in the course'; -$string['test_intro_p3'] = 'The test consists of quick questions that evaluate 4 dimensions: Active/Reflective, Sensory/Intuitive, Visual/Verbal, and Sequential/Global. There are no right or wrong answers, just choose the option that best describes you.'; +$string['test_intro_p3'] = 'The exploration consists of quick questions that evaluate 4 dimensions: Active/Reflective, Sensory/Intuitive, Visual/Verbal, and Sequential/Global. There are no right or wrong answers, just choose the option that best describes you.'; $string['test_lets_begin'] = 'Let\'s begin!'; $string['test_note'] = 'Note:'; $string['test_all_required'] = 'All questions are required'; @@ -328,24 +330,24 @@ // Continue test strings $string['your_progress'] = 'Your progress'; $string['completed'] = 'completed'; -$string['continue_test'] = 'Continue Test'; +$string['continue_test'] = 'Continue Exploration'; // Dashboard strings $string['dominant_style'] = 'Dominant style'; $string['least_dominant_style'] = 'Least dominant style'; $string['teacher_recommendation'] = 'Teacher recommendations:'; -$string['no_completed_tests'] = 'No completed tests'; -$string['no_data_message'] = 'Charts and statistics will be displayed when students complete the learning styles test.'; +$string['no_completed_tests'] = 'No completed explorations'; +$string['no_data_message'] = 'Charts and statistics will be displayed when students complete the learning styles exploration.'; $string['chart_title'] = 'Learning styles distribution'; $string['na_label'] = 'N/A'; -$string['no_completed_tests_title'] = 'No completed tests'; -$string['no_completed_tests_message'] = 'Charts and statistics will be shown once students complete the learning styles test.'; +$string['no_completed_tests_title'] = 'No completed explorations'; +$string['no_completed_tests_message'] = 'Charts and statistics will be shown once students complete the learning styles exploration.'; // View individual strings -$string['test_in_progress'] = 'Test in progress'; +$string['test_in_progress'] = 'Exploration in progress'; $string['has_answered'] = 'has answered'; $string['of_44_questions'] = 'of 44 questions.'; -$string['results_available_when_complete'] = 'Full results will be available when {$a} finishes the test.'; +$string['results_available_when_complete'] = 'Full results will be available when {$a} finishes the exploration.'; // Admin view strings $string['in_progress'] = 'In progress'; @@ -377,15 +379,15 @@ $string['chart_distribution_title'] = 'Learning styles distribution'; // Test in progress and remind strings -$string['test_in_progress_message'] = '{$a} has started the test but has not completed it yet.'; -$string['remind_submit_test'] = 'Remind the student to click the "Finish Test" button to view the results.'; +$string['test_in_progress_message'] = '{$a} has started the exploration but has not completed it yet.'; +$string['remind_submit_test'] = 'Remind the student to click the "Finish Exploration" button to view the results.'; $string['questions'] = 'questions'; $string['all_answered_title'] = 'All Questions Answered!'; -$string['all_answered_message'] = 'You have answered all 44 questions. Don\'t forget to click "Finish Test" to submit your answers and see your learning style results!'; +$string['all_answered_message'] = 'You have answered all 44 questions. Don\'t forget to click "Finish Exploration" to submit your answers and see your learning style results!'; // Admin view strings (NEW - matching personality_test structure) $string['total_students'] = 'Total Students'; -$string['completed_tests'] = 'Completed Tests'; +$string['completed_tests'] = 'Completed Explorations'; $string['in_progress_tests'] = 'In Progress'; $string['completion_rate'] = 'Completion Rate'; $string['general_statistics'] = 'General Statistics'; @@ -425,7 +427,7 @@ // Navigation buttons for pagination $string['btn_previous'] = 'Previous'; $string['btn_next'] = 'Next'; -$string['btn_finish'] = 'Finish Test'; +$string['btn_finish'] = 'Finish Exploration'; $string['complete_previous_pages'] = 'Please complete previous pages before proceeding'; $string['questions_answered'] = '{$a->answered} of {$a->total} questions answered'; $string['option_a'] = 'A'; @@ -435,7 +437,7 @@ $string['learning_dimensions'] = 'Learning Dimensions'; // Alert messages for completed but not submitted test -$string['finish_test'] = 'Finish Test'; +$string['finish_test'] = 'Finish Exploration'; // Admin view UI $string['most_common_types'] = 'Most Common Learning Styles'; @@ -450,4 +452,10 @@ $string['result_act_ref'] = 'Result Act/Ref'; $string['result_sen_int'] = 'Result Sen/Int'; $string['result_vis_vrb'] = 'Result Vis/Vrb'; + +$string['scores'] = 'Dimension Scores'; +$string['radar_chart_title'] = 'Learning Profile Radar Chart'; +$string['see_full_results'] = 'See Detailed Results'; +$string['characteristics'] = 'Characteristics'; +$string['recommendations'] = 'Recommendations'; $string['result_seq_glo'] = 'Result Seq/Glo'; From c923fad1323614ecc1afb0ba90dccac7aa094ae4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Isaac=20David=20S=C3=A1nchez=20S=C3=A1nchez?= <158796340+IsaacDev2024@users.noreply.github.com> Date: Fri, 16 Jan 2026 23:18:45 -0500 Subject: [PATCH 06/24] Revise Spanish strings for Learning Style Exploration Updated various strings for the Learning Style Exploration plugin to enhance clarity and consistency in Spanish. --- lang/es/block_learning_style.php | 66 ++++++++++++++++++-------------- 1 file changed, 37 insertions(+), 29 deletions(-) diff --git a/lang/es/block_learning_style.php b/lang/es/block_learning_style.php index 399e79c4f66..e63bdf950b8 100644 --- a/lang/es/block_learning_style.php +++ b/lang/es/block_learning_style.php @@ -1,12 +1,12 @@ Lorem dictumst.'; $string['accept_code_honor_text'] = "Acepto"; -$string['redirect_accept_success'] = "Enhorabuena, ahora puedes ver tus resultados en la barra lateral del curso."; -$string['redirect_accept_exist'] = "Ya has completado la evaluación, te redirigimos al curso"; +$string['redirect_accept_success'] = "Enhorabuena, ahora puedes ver tus resultados aquí."; +$string['redirect_accept_exist'] = "Ya has completado la evaluación, te redirigimos a los resultados."; $string['accept_message'] = "Estilo de aprendizaje detectado"; $string['required_message'] = "Por favor, realiza la evaluación de estilos de aprendizaje para continuar"; $string['learning_style_actived'] = "Evaluación de estilos de aprendizaje activada"; @@ -18,6 +18,10 @@ $string['sensorial'] = "Sensorial"; $string['intuitive'] = "Intuitivo"; $string['visual'] = "Visual"; + +$string['config_showdescriptions'] = 'Mostrar descripciones'; +$string['config_showdescriptions_help'] = 'Muestra u oculta los banners de descripción en el bloque.'; + $string['verbal'] = "Verbal"; $string['sequential'] = "Secuencial"; $string['global'] = "Global"; @@ -28,7 +32,7 @@ $string['download_results'] = 'Descargar Resultados'; $string['select_option'] = 'Seleccione una opción'; $string['progress_saved'] = 'Progreso guardado exitosamente'; -$string['all_questions_required'] = 'Todas las preguntas deben ser respondidas antes de finalizar el test'; +$string['all_questions_required'] = 'Todas las preguntas deben ser respondidas antes de finalizar la exploración.'; // Dashboard tooltips and labels $string['dashboard_surveyed'] = 'Encuestados'; @@ -235,7 +239,7 @@ $string['learning_style_deleted'] = 'Participación eliminada exitosamente.'; $string['no_participants'] = 'Aún no hay resultados disponibles'; $string['no_data_available'] = 'No hay datos disponibles'; -$string['no_participants_message'] = 'Ningún estudiante ha comenzado el test aún.'; +$string['no_participants_message'] = 'Ningún estudiante ha comenzado la exploración aún.'; $string['back_to_course'] = 'Volver al Curso'; $string['back_to_admin'] = 'Volver al Panel de Administración'; $string['teachers_redirect_message'] = 'Los profesores son redirigidos al panel de administración.'; @@ -261,7 +265,7 @@ $string['profile_global'] = 'Global'; // Página de resultados individuales -$string['individual_results_title'] = 'Resultados Individuales de Estilos de Aprendizaje'; +$string['individual_results_title'] = 'Resultados Individuales de la Exploración de Estilos de Aprendizaje'; $string['learning_style_results_for'] = 'Resultados de Estilos de Aprendizaje para'; $string['completed_on'] = 'Completado el'; $string['processing_dimension'] = 'Dimensión de Procesamiento'; @@ -298,26 +302,24 @@ $string['view_admin_results'] = 'Ir al Panel de Administración'; // Invitación al test -$string['test_title'] = 'Test de Estilos de Aprendizaje'; $string['discover_your_style'] = 'Descubre tus estilos de aprendizaje'; $string['what_is_felder'] = '¿Qué es el Modelo Felder-Soloman?'; $string['test_description'] = 'Este modelo desglosa cómo tu mente prefiere recibir y procesar información. Analiza cuatro dimensiones cognitivas para ofrecerte estrategias de estudio personalizadas que transforman tu manera de aprender, haciendo el proceso más eficiente y menos agotador.'; $string['feature_44_questions'] = '44 preguntas rápidas'; $string['feature_4_dimensions'] = '4 dimensiones de aprendizaje'; $string['feature_instant_results'] = 'Resultados instantáneos con recomendaciones'; -$string['start_test'] = 'Iniciar Test'; -$string['test_not_configured'] = 'El test no está configurado. Por favor contacta a tu instructor.'; -$string['test_completed'] = 'Test Completado'; -$string['your_learning_style'] = 'Tus Estilos de Aprendizaje'; +$string['start_test'] = 'Iniciar Exploración'; +$string['test_not_configured'] = 'La exploración no está configurada. Por favor contacta a tu instructor.'; +$string['test_completed'] = 'Exploración de Estilos de Aprendizaje Completada'; +$string['your_results_here'] = 'Mira tus resultados aquí'; // Contenido de la página del test -$string['test_page_title'] = 'Test de Estilos de Aprendizaje'; -$string['test_intro_p1'] = 'Este test está basado en el Modelo de Felder-Soloman, una herramienta que identifica tus preferencias en la forma de procesar y organizar la información para aprender.'; +$string['test_intro_p1'] = 'Esta exploración está basada en el Modelo de Felder-Soloman, una herramienta que identifica tus preferencias en la forma de procesar y organizar la información para aprender.'; $string['test_intro_p2'] = 'Conocer tus estilos de aprendizaje te permitirá:'; $string['test_benefit_1'] = '• Identificar las estrategias de estudio más efectivas para ti'; $string['test_benefit_2'] = '• Comprender mejor cómo procesas la información'; $string['test_benefit_3'] = '• Aprovechar al máximo los recursos disponibles en el curso'; -$string['test_intro_p3'] = 'El test consta de preguntas rápidas que evalúan 4 dimensiones: Activo/Reflexivo, Sensorial/Intuitivo, Visual/Verbal y Secuencial/Global. No hay respuestas correctas o incorrectas, solo elige la opción que mejor te describa.'; +$string['test_intro_p3'] = 'La exploración consta de preguntas rápidas que evalúan 4 dimensiones: Activo/Reflexivo, Sensorial/Intuitivo, Visual/Verbal y Secuencial/Global. No hay respuestas correctas o incorrectas, solo elige la opción que mejor te describa.'; $string['test_lets_begin'] = '¡Comencemos!'; $string['test_note'] = 'Nota:'; $string['test_all_required'] = 'Todas las preguntas son obligatorias'; @@ -328,24 +330,24 @@ // Continue test strings $string['your_progress'] = 'Tu progreso'; $string['completed'] = 'completado'; -$string['continue_test'] = 'Continuar Test'; +$string['continue_test'] = 'Continuar Exploración'; // Dashboard strings $string['dominant_style'] = 'Estilo dominante'; $string['least_dominant_style'] = 'Estilo menos dominante'; $string['teacher_recommendation'] = 'Se le recomienda al docente:'; -$string['no_completed_tests'] = 'No hay tests completados'; -$string['no_data_message'] = 'Los gráficos y estadísticas se mostrarán cuando los estudiantes completen el test de estilos de aprendizaje.'; +$string['no_completed_tests'] = 'No hay exploraciones completadas'; +$string['no_data_message'] = 'Los gráficos y estadísticas se mostrarán cuando los estudiantes completen la exploración de estilos de aprendizaje.'; $string['chart_title'] = 'Distribución de estilos de aprendizaje'; $string['na_label'] = 'N/A'; -$string['no_completed_tests_title'] = 'No hay tests completados'; -$string['no_completed_tests_message'] = 'Los gráficos y estadísticas se mostrarán una vez que los estudiantes completen el test de estilos de aprendizaje.'; +$string['no_completed_tests_title'] = 'No hay exploraciones completadas'; +$string['no_completed_tests_message'] = 'Los gráficos y estadísticas se mostrarán una vez que los estudiantes completen la exploración de estilos de aprendizaje.'; // View individual strings -$string['test_in_progress'] = 'Test en progreso'; +$string['test_in_progress'] = 'Exploración en progreso'; $string['has_answered'] = 'ha respondido'; $string['of_44_questions'] = 'de 44 preguntas.'; -$string['results_available_when_complete'] = 'Los resultados completos estarán disponibles cuando {$a} termine el test.'; +$string['results_available_when_complete'] = 'Los resultados completos estarán disponibles cuando {$a} termine la exploración.'; // Admin view strings $string['in_progress'] = 'En progreso'; @@ -377,15 +379,15 @@ $string['chart_distribution_title'] = 'Distribución de estilos de aprendizaje'; // Test in progress and remind strings -$string['test_in_progress_message'] = '{$a} ha comenzado el test pero aún no lo ha completado.'; -$string['remind_submit_test'] = 'Recuérdale al estudiante que haga clic en el botón "Finalizar Test" para ver los resultados.'; +$string['test_in_progress_message'] = '{$a} ha comenzado la exploración pero aún no la ha completado.'; +$string['remind_submit_test'] = 'Recuérdale al estudiante que haga clic en el botón "Finalizar Exploración" para ver los resultados.'; $string['questions'] = 'preguntas'; $string['all_answered_title'] = '¡Todas las preguntas respondidas!'; -$string['all_answered_message'] = 'Has respondido las 44 preguntas. ¡No olvides hacer clic en "Finalizar Test" para enviar tus respuestas y ver tus resultados de estilo de aprendizaje!'; +$string['all_answered_message'] = 'Has respondido las 44 preguntas. ¡No olvides hacer clic en "Finalizar Exploración" para enviar tus respuestas y ver tus resultados de estilo de aprendizaje!'; // Admin view strings (NEW - matching personality_test structure) $string['total_students'] = 'Total de Estudiantes'; -$string['completed_tests'] = 'Test Completados'; +$string['completed_tests'] = 'Exploraciones Completadas'; $string['in_progress_tests'] = 'En Progreso'; $string['completion_rate'] = 'Tasa de Finalización'; $string['general_statistics'] = 'Estadísticas Generales'; @@ -425,8 +427,8 @@ // Navigation buttons for pagination $string['btn_previous'] = 'Anterior'; $string['btn_next'] = 'Siguiente'; -$string['btn_finish'] = 'Finalizar Test'; -$string['complete_previous_pages'] = 'Por favor, completa las páginas anteriores antes de finalizar el test.'; +$string['btn_finish'] = 'Finalizar Exploración'; +$string['complete_previous_pages'] = 'Por favor, completa las páginas anteriores antes de finalizar la exploración.'; $string['questions_answered'] = '{$a->answered} de {$a->total} preguntas respondidas'; $string['option_a'] = 'A'; $string['option_b'] = 'B'; @@ -435,7 +437,7 @@ $string['learning_dimensions'] = 'Dimensiones de Aprendizaje'; // Alert messages for completed but not submitted test -$string['finish_test'] = 'Finalizar Test'; +$string['finish_test'] = 'Finalizar Exploración'; // Admin view UI $string['most_common_types'] = 'Estilos de Aprendizaje más comunes'; @@ -450,4 +452,10 @@ $string['result_act_ref'] = 'Resultado Act/Ref'; $string['result_sen_int'] = 'Resultado Sen/Int'; $string['result_vis_vrb'] = 'Resultado Vis/Vrb'; + +$string['scores'] = 'Puntajes de Dimensión'; +$string['radar_chart_title'] = 'Gráfico Radar del Perfil de Aprendizaje'; +$string['see_full_results'] = 'Ver Resultados Detallados'; +$string['characteristics'] = 'Características'; +$string['recommendations'] = 'Recomendaciones'; $string['result_seq_glo'] = 'Resultado Seq/Glo'; From 5c45d96a2ce15a29c4f79240d93adacb53ebc677 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Isaac=20David=20S=C3=A1nchez=20S=C3=A1nchez?= <158796340+IsaacDev2024@users.noreply.github.com> Date: Fri, 16 Jan 2026 23:19:10 -0500 Subject: [PATCH 07/24] Update test title and description in Mustache template --- templates/continue_test.mustache | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/templates/continue_test.mustache b/templates/continue_test.mustache index 188915c16e7..b546e003749 100644 --- a/templates/continue_test.mustache +++ b/templates/continue_test.mustache @@ -3,16 +3,18 @@{{#str}} felder_soloman_intro, block_learning_style {{/str}}
- -{{text}}
+
-
+
-
+
-
+
-
+
-
+
+
+
-
+
-
+
-
-
-
+
@@ -102,7 +102,7 @@ Al finalizar, el estudiante recibe un resumen el bloque principal de sus estilos El profesor cuenta con una vista ejecutiva desde el bloque, donde puede monitorizar métricas clave y gráficos de tendencia de forma inmediata, además de acceder a funciones avanzadas de exportación y administración.
-
+
-
+