-
Notifications
You must be signed in to change notification settings - Fork 220
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
[Manage Submissions] Score popup modal styling + fixes #1952
base: feature/new-manage-submissions
Are you sure you want to change the base?
[Manage Submissions] Score popup modal styling + fixes #1952
Conversation
${problem.name} | ||
<br> | ||
<i> ${max_score} ${autograded} </i> | ||
const autograded = data.autograded ? " (Autograded)" : ""; |
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 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.
Note that autograded
is set via autograded = @assessment.has_autograder?
, so it's not a good way to check if a problem is autograded
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.
Don't think it makes sense for it to be a column variable and am not sure about the usefulness of (Autograded). Will remove
@@ -44,14 +44,20 @@ $(document).ready(function () { | |||
|
|||
// Fetch data and render it in the modal | |||
get_score_details(course_user_datum_id).then((data) => { | |||
const sorting_icons = |
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 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.
True, but I personally think we should remove the link to Datatables stylesheet and use the styling/logic Lynn implemented because:
- The default Datatables styling results in the icon appearing on all columns and sorting a column like "Actions" is weird. Disabling the icons is not straightforward: https://datatables.net/forums/discussion/41214/how-to-leave-column-sorting-enabled-but-remove-the-sorting-icons
- The icons that Lynn added looks better IMO and changing the original icons to use the materialize icons would require the same amount of code.
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.
Generally looks good, but left some comments
Summary
Summary generated by Reviewpad on 20 Sep 23 17:22 UTC
This pull request includes three patches:
Description
Adds further styling and bug fixes to the score popup modal, mainly those noted from this comment.
Motivation and Context
Part of the Manage Submissions UI overhaul.
How Has This Been Tested?
Style-related issues
Old:
New:
The score under each problem has been fixed (no longer bold, still italicized) to follow the Figma prototype
Disabled the table rows changing color (to blue) on mouseover, for both the manage submissions main table and the table in the score popup
Changed the background color for problem columns to follow the Figma prototype
Old:
New:
Old:
New:
Bug Fixes
Old:
(for incorrect file upload)
(for excused students)
New:
grader_id
per problem, butgrader_id
is indata.scores
while problems + scores came fromdata.submissions
, so I useddata.autograded
to keep it simple...Old:
New:
Types of changes
Checklist:
overcommit --install && overcommit --sign
to use pre-commit hook for linting