Show Answer Details in Assessment Statistics Page (Part 3: Past Answers View) #7135
+995
−123
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.
Background
This is the continuation of the previous PR #7131 that completes the whole component of this Teacher Statistics by having past attempts also displayed in the answer box, should the user navigate to see the answer box from Attempt Count table in Assessment Statistics.
Other than that, the Comment component is also added on all the Answer Box, to give user the holistic view on the answer and how the interaction between graders and students occur regarding that mentioned answer.
This PR is related with the issue #4567
Features Added
When navigating to Answer box from Attempt Count Table, user will see the following:
The slider represents the timeline of the student's attempt. For the answer box, we limit the number of past answers that can be viewed up to 10, and there shall be a link provided on the bottom of this Answer Box to allow user to see all the past answers, which will be provided on the new Page..
Other than that, on top of both the answer box and also past answers view, we also have the link that provides user access to the Submission Edit Page. If the page is tabbed, user will be directed to the exact question it appears, otherwise user will just be directed to its Submission Page (the whole questions in one page)