From 2c9c505b32945bb2575472c06875f3de4f2332fd Mon Sep 17 00:00:00 2001 From: Michael Roytman Date: Wed, 31 Jul 2019 10:20:29 -0400 Subject: [PATCH] pull out bulk management tools to main tab and remove redundant functionality across tabs --- package-lock.json | 4 +- src/components/Gradebook/index.jsx | 165 +++++++++---------------- src/containers/GradebookPage/index.jsx | 1 + src/data/reducers/grades.js | 4 +- 4 files changed, 62 insertions(+), 112 deletions(-) diff --git a/package-lock.json b/package-lock.json index 10f15ce..d8bef4d 100755 --- a/package-lock.json +++ b/package-lock.json @@ -4509,7 +4509,7 @@ }, "axios": { "version": "0.18.0", - "resolved": "http://registry.npmjs.org/axios/-/axios-0.18.0.tgz", + "resolved": "https://registry.npmjs.org/axios/-/axios-0.18.0.tgz", "integrity": "sha1-MtU+SFHv3AoRmTts0AB4nXDAUQI=", "requires": { "follow-redirects": "^1.3.0", @@ -15044,7 +15044,7 @@ "dependencies": { "query-string": { "version": "2.4.2", - "resolved": "https://registry.npmjs.org/query-string/-/query-string-2.4.2.tgz", + "resolved": "http://registry.npmjs.org/query-string/-/query-string-2.4.2.tgz", "integrity": "sha1-fbBmZCCAS6qSrp8miWKFWnYUPfs=", "requires": { "strict-uri-encode": "^1.0.0" diff --git a/src/components/Gradebook/index.jsx b/src/components/Gradebook/index.jsx index e0526d8..05ccf1c 100644 --- a/src/components/Gradebook/index.jsx +++ b/src/components/Gradebook/index.jsx @@ -357,64 +357,41 @@ export default class Gradebook extends React.Component {

Gradebook

{this.props.courseId}

{this.props.areGradesFrozen && -
- The grades for this course are now frozen. Editing of grades is no longer allowed. -
+
+ The grades for this course are now frozen. Editing of grades is no longer allowed. +
} {(this.props.canUserViewGradebook === false) && -
- You are not authorized to view the gradebook for this course. -
+
+ You are not authorized to view the gradebook for this course. +
}
+

Step 1: Filter the Grade Report

{this.props.showSpinner &&
} -
-
- Score View: - - - - - - -
+ {this.props.assignmentTypes.length > 0 && -
- - Assignment Types: - - -
+
+ + Assignment Types: + + +
}
@@ -471,12 +448,32 @@ export default class Gradebook extends React.Component { onClose={() => this.props.closeBanner()} open={this.props.showSuccess} /> -
- Showing - {this.props.filteredUsersCount} - of - {this.props.totalUsersCount} - total learners +

Step 2: View or Modify Individual Grades

+
+ {this.props.totalUsersCount ? +
+ Showing + {this.props.filteredUsersCount} + of + {this.props.totalUsersCount} + total learners +
: + null + } + {this.props.showDownloadButtons && , + pending: , + }} + disabledStates={['pending']} + />}
{this.props.showBulkManagement && (
-

Step 1: Filter the Grade Report

- {this.props.assignmentTypes.length > 0 && -
- - Assignment Types: - - -
- } -
- - Student Groups: - - - -
-

Step 2: Download the gradebook to edit grades locally

+

Use this feature by downloading a CSV for bulk management, + overriding grades locally, and coming back here to upload. +

- - , - pending: , - }} - disabledStates={['pending']} - /> -

Step 3: Upload CSV to Process Grades in Bulk