-
Notifications
You must be signed in to change notification settings - Fork 85
Quiz attempt review enhancements #2566
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Changes from all commits
Commits
Show all changes
20 commits
Select commit
Hold shift + click to select a range
e3d3cb7
Add progressStrokeColor support to statics component and fix calendar…
b-l-i-n-d ccb43cc
Add secondary icon color tokens for success and warning
b-l-i-n-d 23d4d08
Add quiz attempts list functionality and update quiz attempt templates
b-l-i-n-d 8fcc658
fix: Use current color instead of hard coded colors
b-l-i-n-d 8c45201
fix: Use icon color tokens
b-l-i-n-d c0abf9b
feat: Add transition to nav
b-l-i-n-d af0c68b
fix(quiz): add is_attempt_answer_skipped() and fix docblock
b-l-i-n-d c8b65dc
feat(quiz): refactor review_quiz_answer to handle skipped questions
b-l-i-n-d 1015d7f
refactor(quiz): use status_badges array for multiple badges
b-l-i-n-d 41ab92e
fix(quiz): correct status fallback values
b-l-i-n-d 2a97e85
feat(quiz): add question_id data attribute for manual review
b-l-i-n-d 1e3c07d
fix(quiz): show skipped questions in attempt details
b-l-i-n-d ebfcf38
fix(preview): disable pointer cursor for non-interactive question opt…
b-l-i-n-d c34ceb6
fix: Remove default padding in FormSelectUser
b-l-i-n-d 677e606
Merge branch '4.0.0-dev' into v4-blind
b-l-i-n-d bedcac2
Merge branch '4.0.0-dev' into v4-blind
b-l-i-n-d b5474f8
fix: Resolve id duplication on getOrder return value
b-l-i-n-d 627647e
Merge branch '4.0.0-dev' into v4-blind
b-l-i-n-d b594309
fix: Text color in attempt list
b-l-i-n-d cf76cab
feat: Use Progress component for quiz attempt
b-l-i-n-d File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
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
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
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
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
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
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -23,6 +23,7 @@ | |
|
|
||
| &-icon { | ||
| position: relative; | ||
| color: $tutor-icon-idle; | ||
| top: 38px; | ||
| } | ||
| } | ||
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
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
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
Oops, something went wrong.
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There is already a method for fetching attempt:
tutor_utils()->get_attempt( $attempt_id )There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We still need
get_attempt_answer_by_attempt_and_question()because creating a placeholder row is only correct when no answer row already exists for the sameattempt_id + question_id. In the skipped legacy case there is noattempt_answer_id, so the review flow first has to look up byattempt_idandquestion_id: if a row exists we should update it, and if not we create the missing row and then apply the review. Without that lookup the fallback becomes a blind insert, which can create duplicate attempt-answer rows for questions that already have a saved record.