UX: Add spinner and prevent empty AIText submissions#26
Open
leverforce wants to merge 2 commits intomarcusgreen:mainfrom
Open
UX: Add spinner and prevent empty AIText submissions#26leverforce wants to merge 2 commits intomarcusgreen:mainfrom
leverforce wants to merge 2 commits intomarcusgreen:mainfrom
Conversation
Clean up the test_build_full_ai_prompt unit test
- Added a spinner UI to provide feedback during AI evaluation - Prevented empty submissions via JS validation - Added language strings for alerts and messages
Owner
|
This looks very interesting. Would you go to http://mavg.vs.mythic-beasts.com/mdl50/course/view.php?id=28 And edit a question (e.g. past tense). Scroll down to response tester and experiment. This is based on this branch which I finished working on last night Please email me at marcusavgreen at gmail.com, I would be very interested to find out more about you. |
Owner
|
Three days later and I have only just understood what this is about :( |
c2c3b33 to
c3e6471
Compare
986f8fd to
a3dc841
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR introduces the following improvements to the AIText Moodle question type:
✅ Spinner UI + Feedback
✅ Client-Side Empty Submission Prevention
✅ Language Support
qtype_aitext.php:aitextprocessing: "AI is evaluating your answer..."emptyresponsealert: "Please enter a response before checking."Files Affected
renderer.phpamd/src/spinner.jsamd/build/spinner.min.js,.maplang/en/qtype_aitext.phpTested in Moodle 4.5 with local_ai_manager backend.
Great Plugin. Happy to contribute, Thanks!