Add popover for grades in auto-grade assignments #6677
Merged
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.
Add a new component that is displayed when hovering over the grade chip, which displays what were the annotation and reply requirements, and what were met.
grade-popover-one-2024-09-12_10.51.17.mp4
grade-popover-two-2024-09-12_10.49.55.mp4
TODO
I considered using an actual popover, but it's not fully supported by all browsers yet, and requires extra positioning logic.
We could implement a popover component in frontend-shared and use it here, but I'll probably delay that.
EDIT: For now I did the following:
role="tooltip"
to the popover itself.role="button"
andtabIndex={0}
, and ensure the popover is toggled on focus in/out.EDIT: It is not centered in the designs, only slightly to the left, so I just did that.
Testing steps