Commit d2b322a
Implement isGradingPublished (plus related features) (#2856)
* Dummy publish grading function
* skeleton redux loop for publishGrading, update GradingOverview
* New column filter for isPublished (WIP)
* Implement anticipated backend format and route implementations for publish and unpublish buttons
* Remove misleading devnote and simplify message contents
* fix: Change gradingOverviews to use backend response
* Readjust publish button from HTML icon button to Blueprintjs text button
* Publish and unpublish buttons set up
* set up frontend-only type submissionProgress derived from backend status and isPublished
* Implement derived submissionProgress frontend field from status and isGradingPublished from backend
* Improve type safety in Grading page
* Implement business logic to disable unsubmission if published or not submitted
* Use notPublished param in backend
* minor type safety change
* Update new actions post-merge conflicts
* Update tests
* Update jsdocs and field names from ungraded to unpublished
* adjust field names in test from unpublishedFilter to publishedFilter
* Updated showGrading to be based on published status
* Update getAssessmentOverviews to compute submission progress
* Fix tests
* Scaffold function for comprehensive progress status (WIP)
* Update RequestsSaga.ts
* fix crash
* Introduce soon-to-be comprehensive field into table
* Shift conversion functions into utils
* Update business logic using comprehensive state
* Introduce progress status to assessment overviews
* clean up display of progressStatus
* remove derived submissionProgress field, add in status field from backend
* remove direct gradingStatus use in grading page
* remove gradingStatus from assessments
* Remove more references to gradingStatus
* Replace references to gradingStatus with progress
* there is a lot of reference to gradingStatus.
* Replace gradingStatus with progress in testing
* Fully remove gradingStatus and replace with progress
* Fix accidental import
* Update to use new backend parameter names in backend
* Remove isPublished field entirely from grading overviews to avoid confusion with publishing within assessment overviews
* Update tests
* Dummy publish all button in ground control
* redux loop for publishall and unpublishall (part 1)
* Remove re-autograde for published or non-submitted assessments
* Add publishAll button
* Replace deprecated ag-grid functions with current versions
* Implement unpublish all button
* Add unique key, avoid specialkey flag from react
* Fix button layout
* Fix button format
* increase width for accessibility
* autoPublish settings inserted into admin panel configs
* cleanup of isAutoPublished field within assessment configs
* update tests for assessmentConfiguration
* remove un-needed import
* remove debug-only submissionStatus in grading submissions table
* Revert accidental removal of XP field
* bp5-minimal tag to clean up bulk publishing buttons - thanks gabriel :)
* Fix errors post-merge
* Fix lint error
* feat: Implement published and unpublished notifications and remove deprecated ones
* chore: Remove commented code
* Fix compile error
* Remove unnecessary typecast
* Remove unnecessary typecast
* Remove unused import
* update notification types to reflect backend
* change notification types to reflect backend changes
* remove git stash artifacts
* remove git stash artefacts
* add tooltips, update assessment fields
* remove development artifacts
* remove TODO comment as issue has been raised
* Update GradingUtils.ts jsdocs
* linting
* readjust progress statuses and conversion functions
* update colours and logos
* expose backend isGradingPublished field and update tests
* update assessment cards to show purely based on isGradingPublished status without further check for graded
* remove hardcoded assessment status
* linting
* revert yarn lock change
* Update yarn.lock
* update mocks and tests
* remove un-needed import
* linting
* Use enum values instead of strings for color keys
* Use prop over BP CSS API
* remove un-needed field calculation, fix typos
* update student username to show nusnet id instead of duplicating student name (thanks gabriel :D)
---------
Co-authored-by: GabrielCWT <77312579+GabrielCWT@users.noreply.github.com>
Co-authored-by: Richard Dominick <34370238+RichDom2185@users.noreply.github.com>1 parent 4556d3f commit d2b322a
File tree
37 files changed
+769
-287
lines changed- src
- commons
- XMLParser
- achievement/utils
- application
- actions
- __tests__
- reducers/__tests__
- types
- assessmentWorkspace/__tests__
- assessment
- __tests__
- editingWorkspaceSideContent
- mocks
- notificationBadge
- __tests__
- profile
- __tests__
- sagas
- __tests__
- features
- grading
- groundControl
- pages/academy
- adminPanel/subcomponents/assessmentConfigPanel
- grading
- subcomponents
- groundControl
- subcomponents
37 files changed
+769
-287
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
13 | 12 | | |
14 | 13 | | |
15 | 14 | | |
| |||
72 | 71 | | |
73 | 72 | | |
74 | 73 | | |
| 74 | + | |
75 | 75 | | |
76 | 76 | | |
77 | 77 | | |
| |||
84 | 84 | | |
85 | 85 | | |
86 | 86 | | |
| 87 | + | |
87 | 88 | | |
88 | | - | |
89 | 89 | | |
90 | 90 | | |
91 | 91 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
9 | 13 | | |
10 | 14 | | |
11 | 15 | | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | | - | |
| 16 | + | |
| 17 | + | |
17 | 18 | | |
18 | 19 | | |
19 | 20 | | |
| |||
34 | 35 | | |
35 | 36 | | |
36 | 37 | | |
37 | | - | |
| 38 | + | |
| 39 | + | |
38 | 40 | | |
39 | 41 | | |
40 | 42 | | |
| |||
53 | 55 | | |
54 | 56 | | |
55 | 57 | | |
56 | | - | |
| 58 | + | |
57 | 59 | | |
58 | 60 | | |
59 | 61 | | |
| |||
69 | 71 | | |
70 | 72 | | |
71 | 73 | | |
72 | | - | |
| 74 | + | |
73 | 75 | | |
74 | 76 | | |
75 | 77 | | |
76 | 78 | | |
77 | 79 | | |
78 | 80 | | |
79 | | - | |
| 81 | + | |
80 | 82 | | |
81 | 83 | | |
82 | 84 | | |
| |||
98 | 100 | | |
99 | 101 | | |
100 | 102 | | |
101 | | - | |
| 103 | + | |
102 | 104 | | |
103 | 105 | | |
104 | 106 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| |||
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
| 57 | + | |
57 | 58 | | |
58 | 59 | | |
59 | 60 | | |
| |||
74 | 75 | | |
75 | 76 | | |
76 | 77 | | |
| 78 | + | |
77 | 79 | | |
78 | 80 | | |
79 | 81 | | |
| |||
134 | 136 | | |
135 | 137 | | |
136 | 138 | | |
137 | | - | |
| 139 | + | |
138 | 140 | | |
139 | 141 | | |
140 | 142 | | |
| |||
144 | 146 | | |
145 | 147 | | |
146 | 148 | | |
147 | | - | |
| 149 | + | |
148 | 150 | | |
149 | 151 | | |
150 | | - | |
| 152 | + | |
151 | 153 | | |
152 | 154 | | |
153 | 155 | | |
| |||
326 | 328 | | |
327 | 329 | | |
328 | 330 | | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
329 | 343 | | |
330 | 344 | | |
331 | 345 | | |
| |||
Lines changed: 40 additions & 12 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
11 | 17 | | |
12 | 18 | | |
13 | 19 | | |
| |||
172 | 178 | | |
173 | 179 | | |
174 | 180 | | |
175 | | - | |
| 181 | + | |
176 | 182 | | |
177 | 183 | | |
178 | 184 | | |
| |||
181 | 187 | | |
182 | 188 | | |
183 | 189 | | |
184 | | - | |
| 190 | + | |
185 | 191 | | |
186 | 192 | | |
187 | | - | |
| 193 | + | |
188 | 194 | | |
189 | 195 | | |
190 | 196 | | |
191 | 197 | | |
192 | | - | |
| 198 | + | |
193 | 199 | | |
194 | 200 | | |
195 | 201 | | |
| |||
328 | 334 | | |
329 | 335 | | |
330 | 336 | | |
331 | | - | |
| 337 | + | |
332 | 338 | | |
333 | 339 | | |
334 | 340 | | |
335 | 341 | | |
| 342 | + | |
336 | 343 | | |
337 | 344 | | |
338 | 345 | | |
| |||
343 | 350 | | |
344 | 351 | | |
345 | 352 | | |
| 353 | + | |
346 | 354 | | |
347 | 355 | | |
348 | 356 | | |
| |||
353 | 361 | | |
354 | 362 | | |
355 | 363 | | |
| 364 | + | |
356 | 365 | | |
357 | 366 | | |
358 | 367 | | |
| |||
533 | 542 | | |
534 | 543 | | |
535 | 544 | | |
| 545 | + | |
536 | 546 | | |
537 | 547 | | |
538 | 548 | | |
| |||
541 | 551 | | |
542 | 552 | | |
543 | 553 | | |
544 | | - | |
| 554 | + | |
545 | 555 | | |
546 | 556 | | |
547 | | - | |
| 557 | + | |
548 | 558 | | |
549 | 559 | | |
550 | 560 | | |
| |||
595 | 605 | | |
596 | 606 | | |
597 | 607 | | |
598 | | - | |
| 608 | + | |
| 609 | + | |
599 | 610 | | |
600 | | - | |
| 611 | + | |
601 | 612 | | |
602 | 613 | | |
603 | 614 | | |
| |||
772 | 783 | | |
773 | 784 | | |
774 | 785 | | |
| 786 | + | |
775 | 787 | | |
776 | 788 | | |
777 | 789 | | |
| |||
782 | 794 | | |
783 | 795 | | |
784 | 796 | | |
| 797 | + | |
785 | 798 | | |
786 | 799 | | |
787 | 800 | | |
| |||
791 | 804 | | |
792 | 805 | | |
793 | 806 | | |
794 | | - | |
| 807 | + | |
| 808 | + | |
795 | 809 | | |
796 | 810 | | |
797 | 811 | | |
| |||
802 | 816 | | |
803 | 817 | | |
804 | 818 | | |
| 819 | + | |
805 | 820 | | |
806 | 821 | | |
807 | 822 | | |
| |||
810 | 825 | | |
811 | 826 | | |
812 | 827 | | |
| 828 | + | |
| 829 | + | |
| 830 | + | |
| 831 | + | |
| 832 | + | |
| 833 | + | |
| 834 | + | |
| 835 | + | |
| 836 | + | |
| 837 | + | |
| 838 | + | |
813 | 839 | | |
814 | 840 | | |
| 841 | + | |
815 | 842 | | |
816 | 843 | | |
817 | 844 | | |
| |||
831 | 858 | | |
832 | 859 | | |
833 | 860 | | |
| 861 | + | |
834 | 862 | | |
835 | 863 | | |
836 | 864 | | |
| |||
0 commit comments