Develop free-text plugin with feedback

Created on 27 February 2025, about 2 months ago

Problem/Motivation

Add all needed features to an interactive feedback version of the single- and multi-select activity-answer plugins.

Remaining tasks

  1. Store and display feedback for phrase matches that the course creator will input, to search for in the text submitted by the student.
  2. Create feedback container in which to aggregate and display feedback to the student.
  3. Add correct/wrong style classes to each feedback item.
  4. Add 'Check Answer' button and disable Submit button until answer checked.
  5. Allow answer to be changed and re-checked with updated feedback.
  6. When questions are revisited, do not show feedback until the answer is checked again.
📌 Task
Status

Active

Version

1.0

Component

Activities and answers

Created by

🇨🇦Canada ob3ron Canada

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

  • Issue created by @ob3ron
  • Merge request !69Free Text Feedback plugin → (Merged) created by Unnamed author
  • 🇨🇦Canada ob3ron Canada

    WIP plugin, still has issues with answer form submit. Does not save data and goes to previous question instead of next.

  • Pipeline finished with Success
    about 2 months ago
    Total: 288s
    #445246
  • Pipeline finished with Success
    about 1 month ago
    Total: 488s
    #446147
  • 🇨🇦Canada ob3ron Canada

    Ready to review and merge if no changes needed.

  • 🇵🇱Poland Graber

    Just one thing before this can be merged: please use global namespace indicator before every global function call: \ array_key_exists (....
    In general this has a lot of potential for improvements, for example:

    • Provide a field with number of phrases required to score max (currently only answer with all phrases allows to score max).
    • Provide phrase variants so any of the variants will count as a phrase found (phrases setting textarea: each row is a phrase and variants separated by a pipe).
    • Allow 1 or 2 letter difference when searching with feedback like "phrase found but you have a typo".

    Let's leave all those things as follow-ups though, fix the global namespace prefix and merge for now.

  • Pipeline finished with Success
    about 1 month ago
    Total: 484s
    #449215
  • 🇨🇦Canada ob3ron Canada

    I've added global namespace indicators before every global function call -- I think I got 'em all!

    field with number of phrases required to score max

    I'm not sure if I understand the usefulness of this, to my mind a teacher would only add the match-phrases that they wanted to see in the student answer, so if they get all of them they get 100% score. But maybe you're seeing a use case that I'm missing where this would be needed?

    phrase variants so any of the variants will count as a phrase found (phrases setting textarea: each row is a phrase and variants separated by a pipe)

    Excellent idea! Already included in the plugin from the beginning. 😁

    Allow 1 or 2 letter difference when searching with feedback like "phrase found but you have a typo"

    I would LOVE to add this feature, but couldn't find a way to do it that isn't super resource-intensive. Can you suggest a method?

  • Pipeline finished with Skipped
    about 1 month ago
    #450133
  • 🇵🇱Poland Graber

    Looks good! as for incomplete string matching - this probably needs a dedicated method that'd iterate over the string checking character by character, if we have a match we check the next character etc. It's not going to be very heavy, just writing it may be challenging. One day maybe.

  • Automatically closed - issue fixed for 2 weeks with no activity.

Production build 0.71.5 2024