Repository navigation
Redesign Avenger dashboard - #2437
Conversation
Pull Request Test Coverage Report for Build 4673565577Warning: This coverage report may be inaccurate.This pull request's base commit is no longer the HEAD commit of its target branch. This means it includes changes from outside the original pull request, including, potentially, unrelated coverage changes.
Details
💛 - Coveralls |
RichDom2185
left a comment
There was a problem hiding this comment.
Thanks for the hard work! I really like the abstractions and the organization of your code, and of course, the UI looks amazing 🎉🎊! There's just a few minor comments as below.
Well done and keep up the great work :)
Co-authored-by: Richard Dominick <34370238+RichDom2185@users.noreply.github.com>
Here are the changes to the csv columns. Before: "Assessment Name","Student Name","Group","Status","Grading","Question Count","Questions Graded","Initial Grade","Grade Adjustment","Current Grade","Max Grade","Initial XP","XP Adjustment","Current XP (excl. bonus)","Max XP","Bonus XP"
"Mission 1","Dee Sign","1F","submitted","grading","6","2","","","","","0","-2","-2","400","12"
"Mission 0","May Trix","1F","submitted","none","6","0","","","","","996","4","1000","1000","12"
"Mission 0 ","Al Gorithm","1D","submitted","graded","6","6","","","","","69","0","69","100","10"After: "Assessment Name","Student Name","Group","Status","Grading","Question Count","Questions Graded","Initial XP","XP Adjustment","Current XP (excl. bonus)","Max XP","Bonus XP"
"Mission 1","Dee Sign","1F","submitted","grading","6","2","0","-2","-2","400","12"
"Mission 0","May Trix","1F","submitted","none","6","0","996","4","1000","1000","12"
"Mission 0 ","Al Gorithm","1D","submitted","graded","6","6","69","0","69","100","10" |
I vaguely remember that we need to distinguish between "initial grade" and "adjusted grade" so that we don't lose the result of autograding. Could you check that @zhyuhan ? |
martin-henz
left a comment
There was a problem hiding this comment.
I vaguely remember that we need to distinguish between "initial grade" and "adjusted grade" so that we don't lose the result of autograding. Could you check that @zhyuhan ?
@martin-henz @shenyih0ng Looks like |
OK, got it. |
* feat: redesign submissions table with basic column filtering * feat: make new submission action buttons functional * feat: improving submissions table filtering * feat: add submissions table filter state to Redux store * fix: use React Router's `Link` instead of `a` tag * feat: add grading summary to show progress * refactor: make `loadContentDispatch` optional * feat: use new grading dashboard * feat: move `Export to CSV` button * fix: sort imports * fix: skip missing assessments instead of throwing an error * refactor: add helper to get badge color * refactor: use nullish coallescing Co-authored-by: Richard Dominick <34370238+RichDom2185@users.noreply.github.com> * refactor: remove unnecessary check for Paths * refactor: reorganize components and logic for badges * fix: wrap csv fields in quotes * fix: wraps column headers in quotes too --------- Co-authored-by: Richard Dominick <34370238+RichDom2185@users.noreply.github.com>
Description
This is a major redesign of the dashboard at
/gradingto improve performance and speedup the workflow of Avengers. This is down by migrating the existing submissions table from AG Grid to the headless TanStack Table and components from Tremor.The demo video recorded for the final Show-and-Tell can be found here.
Changes
The changes in this PR include:
pages/academy/grading/Grading.tsxto a functional componentexportCSVfunction (previously part of AG Grid API)initialGrade,gradeAdjustment,currentGrade, maxGrade`) are removed, is this okay @martin-henz?Future improvements
There are still a few existing issues that can be improved:
submittedand the grading status stays asgraded, while the XP adjustments get reverted. There should be a better way to tell whether a submission has been unsubmitted or not.ag-grid-communityandag-grid-react, which have a combined bundle size of 33MB.