coursemology2 icon indicating copy to clipboard operation
coursemology2 copied to clipboard

Show Answer Details in Assessment Statistics Page (Part 1: Last Graded Answer (MCQ, MRQ, Text Response, File Upload))

Open bivanalhar opened this issue 1 year ago • 0 comments

Background

This is the continuation of the previous PR https://github.com/Coursemology/coursemology2/pull/7077 and https://github.com/Coursemology/coursemology2/pull/7084 that adds feature allowing teacher to see the details of the answer when clicking on the grade box in the Assessment Statistics Page

This PR is related with the issue https://github.com/Coursemology/coursemology2/issues/4567

Feature Details

The display of the answer is as follows: Screenshot 2024-08-01 at 5 09 38 PM

How to navigate:

  • In either Marks per Question Table or Attempt Count Table (available inside the Assessment Statistics Page), you might click on any grade/attempt-count box.
  • The answer details pop-up box will be shown immediately after.

Some consideration in the feature implementation:

  • Question is included in the Details as a reference for the teacher to make them easier to look into the question details while looking at the Answer.
  • Since our focus here is the details inside the answer, we made Question to be collapsible, with not expanded as the default.
  • We define the new component instead of redirecting the user to the Submission Page so that user can stay on the statistics page while examining the Answer

TO-DO Lists

  • [x] Define component for Forum Post Response and Programming Answer (higher priority) (https://github.com/Coursemology/coursemology2/pull/7131)
  • [x] Get all past answers (other attempts made by students other than the last graded one) and display the most recent 10 answers into the Answer Details component (https://github.com/Coursemology/coursemology2/pull/7135)
  • [x] Define new page consisting of all the past answers list (possibly creating new API for this as well) (https://github.com/Coursemology/coursemology2/pull/7135)

Future Improvement

  • Define component for Voice Response and Scribing (at this point, not urgent to do)

Additional Notes

The codecov here noted some of the changes in BE not covered in the tests in RSpec. However, this will be later covered in the PR https://github.com/Coursemology/coursemology2/pull/7135

bivanalhar avatar Feb 19 '24 23:02 bivanalhar