# @edx/frontend-app-gradebook

> edx editable gradebook-ui to manipulate grade overrides on subsections

Latest version **1.4.31** (published 2021-08-04) · AGPL-3.0 license · 0 weekly downloads

## Install

```sh
npm install @edx/frontend-app-gradebook
pnpm add @edx/frontend-app-gradebook
yarn add @edx/frontend-app-gradebook
bun add @edx/frontend-app-gradebook
```

## Health

**Score 25/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 1.4.31 |
| Published | 2021-08-04 |
| First published | 2019-10-16 |
| Weekly downloads | 0 |
| License | AGPL-3.0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 35 |
| Unpacked size | 8.1 MB |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 0 |
| Author | edX |
| Maintainers | adusenbery-edx, edx-old-org, michaelroytman, alasdairswan, robrap, fysheets, edx-semantic-release, schenedx, feanil, nasthagiri, derf_edx |

## Links

- npm: https://www.npmjs.com/package/@edx/frontend-app-gradebook
- Repository: https://github.com/edx/frontend-app-gradebook
- Homepage: https://github.com/edx/frontend-app-gradebook#readme
- Issues: https://github.com/edx/frontend-app-gradebook/issues
- npm.io page: https://npm.io/package/@edx/frontend-app-gradebook

## Dependencies (35)

- [util](https://npm.io/package/util.md) ^0.12.3
- [react](https://npm.io/package/react.md) 16.13.1
- [redux](https://npm.io/package/redux.md) 4.0.5
- [enzyme](https://npm.io/package/enzyme.md) ^3.10.0
- [core-js](https://npm.io/package/core-js.md) 3.6.5
- [history](https://npm.io/package/history.md) 4.10.1
- [node-sass](https://npm.io/package/node-sass.md) ^4.14.1
- [react-dom](https://npm.io/package/react-dom.md) 16.13.1
- [@edx/brand](https://npm.io/package/@edx/brand.md) npm:@edx/brand-edx.org@^1.3.2
- [classnames](https://npm.io/package/classnames.md) ^2.2.6
- [prop-types](https://npm.io/package/prop-types.md) 15.7.2
- [react-intl](https://npm.io/package/react-intl.md) ^2.9.0
- [react-redux](https://npm.io/package/react-redux.md) ^5.1.1
- [redux-thunk](https://npm.io/package/redux-thunk.md) 2.3.0
- [@edx/paragon](https://npm.io/package/@edx/paragon.md) 14.16.4
- [font-awesome](https://npm.io/package/font-awesome.md) 4.7.0
- [query-string](https://npm.io/package/query-string.md) 6.13.0
- [react-router](https://npm.io/package/react-router.md) 5.2.0
- [redux-beacon](https://npm.io/package/redux-beacon.md) ^2.1.0
- [redux-logger](https://npm.io/package/redux-logger.md) 3.0.6
- [whatwg-fetch](https://npm.io/package/whatwg-fetch.md) ^2.0.4
- [enzyme-to-json](https://npm.io/package/enzyme-to-json.md) ^3.6.2
- [email-prop-type](https://npm.io/package/email-prop-type.md) ^1.1.7
- [@reduxjs/toolkit](https://npm.io/package/@reduxjs/toolkit.md) ^1.5.1
- [react-router-dom](https://npm.io/package/react-router-dom.md) 5.2.0
- [react-router-redux](https://npm.io/package/react-router-redux.md) ^5.0.0-alpha.9
- [regenerator-runtime](https://npm.io/package/regenerator-runtime.md) ^0.13.7
- [@redux-beacon/segment](https://npm.io/package/@redux-beacon/segment.md) ^1.0.0
- [@edx/frontend-platform](https://npm.io/package/@edx/frontend-platform.md) 1.9.5
- [redux-devtools-extension](https://npm.io/package/redux-devtools-extension.md) 2.13.8
- [@edx/frontend-component-footer](https://npm.io/package/@edx/frontend-component-footer.md) 10.1.1
- [@fortawesome/react-fontawesome](https://npm.io/package/@fortawesome/react-fontawesome.md) ^0.1.5
- [@fortawesome/fontawesome-svg-core](https://npm.io/package/@fortawesome/fontawesome-svg-core.md) ^1.2.25
- [@fortawesome/free-solid-svg-icons](https://npm.io/package/@fortawesome/free-solid-svg-icons.md) ^5.11.2
- [@fortawesome/free-brands-svg-icons](https://npm.io/package/@fortawesome/free-brands-svg-icons.md) ^5.11.2

## Recent versions

- 1.4.31 (latest) — 2021-08-04
- 1.4.15 — 2020-11-20
- 1.4.12 — 2019-10-16

## README

[![Build Status](https://api.travis-ci.com/edx/frontend-app-gradebook.svg?branch=master)](https://travis-ci.com/edx/frontend-app-gradebook) [![Coveralls](https://img.shields.io/coveralls/edx/frontend-app-gradebook.svg?branch=master)](https://coveralls.io/github/edx/frontend-app-gradebook)
[![npm_version](https://img.shields.io/npm/v/@edx/frontend-app-gradebook.svg)](@edx/frontend-app-gradebook)
[![npm_downloads](https://img.shields.io/npm/dt/@edx/frontend-app-gradebook.svg)](@edx/frontend-app-gradebook)
[![license](https://img.shields.io/npm/l/@edx/frontend-app-gradebook.svg)](@edx/frontend-app-gradebook)
[![semantic-release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg)](https://github.com/semantic-release/semantic-release)

# Gradebook

Gradebook allows course staff to view, filter, and override subsection grades for a course. Additionally for Masters courses, Gradebook enables bulk management of subsection grades.

Jump to:

- [Should I use Gradebook in my course?](#should-i-use-gradebook-in-my-course)
- [Quickstart](#quickstart)

For existing documentation see:

- Basic Usage: [Review Learner Grades (read-the-docs)](https://edx.readthedocs.io/projects/edx-partner-course-staff/en/latest/student_progress/course_grades.html#review-learner-grades-on-the-instructor-dashboard)
- Bulk Grade Management: [Override Learner Subsection Scores in Bulk (read-the-docs)](https://edx.readthedocs.io/projects/edx-partner-course-staff/en/latest/student_progress/course_grades.html#override-learner-subsection-scores-in-bulk)

## Should I use Gradebook in my course?

### What does this offer over the legacy gradebook?

![A screenshot of the grade listings](documentation/screenshots/grade-listings.png)

The micro-frontend offers a great deal more granularity when searching for problems, an easy interface for editing grades, an 
audit trail for seeing who edited what grade and what reason they gave (if any) for doing so.

![Screenshot of the grade editing interface](documentation/screenshots/grade-editing.png)

UsageProblems can be filtered by student as in the traditional gradebook, but can also be filtered by scores to see who
scored within a certain range, and by assignment types (note: Not problem types, but categories like ‘Exams’ or
‘Homework’).

![Screenshot of the filtering options](documentation/screenshots/grade-filtering.png)

### What does the legacy gradebook offer that this project does not?

This project does not (yet, at least) create any graphs, which the traditional gradebook does. It also does not give
quick links to the problems for the instructor to visit. It expects the instructor to be familiar with the problems they
are grading and which unit they refer to.

The gradebook is expected to be much more performant for larger numbers of students as well. The Instructor Dashboard
link for the legacy gradebook reports that "this feature is available only to courses with a small number of enrolled 
learners." However, this project comes with no such warning.

### Who should not change to this gradebook?

Groups whose instructors need not ever manually override grades do not need this project, but may not be any worse off
depending on their needs. Instructors that expect to review grades infrequently enough that not having a direct link
to the problem in question will have a worse UX than the legacy gradebook provides. Instructors that rely on the graphs
generated by the current gradebook might find the lack of autogenerated graphs to be frustrating.

## Quickstart

### Installation

To install gradebook into your project:
```
npm i --save @edx/frontend-app-gradebook
```

## Running the UI Standalone

To install the project please refer to the [`edX Developer Stack`](https://github.com/edx/devstack) instructions.

The web application runs on port **1994**, so when you go to `http://localhost:1994/course-v1:edX+DemoX+Demo_Course` you should see the UI (assuming you have such a Demo Course in your devstack).  Note that you always have to provide a course id to actually see a gradebook.

If you don't, you can see the log messages for the docker container by executing `make gradebook-logs` in the `devstack` directory.

Note that starting the container executes the `npm run start` script which will hot-reload JavaScript and Sass files changes, so you should (:crossed_fingers:) not need to do anything (other than wait) when making changes.

## Configuring for local use in edx-platform

Assuming you've got the UI running at `http://localhost:1994`, you can configure the LMS in edx-platform
to point to your local gradebook from the instructor dashboard by putting this setting in `lms/env/private.py`:
```
WRITABLE_GRADEBOOK_URL = 'http://localhost:1994'
```

There are also several edx-platform waffle and feature flags you'll have to enable from the Django admin:

1. Grades > Persistent grades enabled flag.  Add this flag if it doesn't exist,
check the ``enabled`` and ``enabled for all courses`` boxes.

2. Waffle > Switches.  Add the ``grades.assume_zero_grade_if_absent`` switch and make it active.

3. Waffle_utils > Waffle flag course overrides.  Activate waffle flags for courses where you want to enable Gradebook functionality:
    - Enable Gradebook by adding the ``grades.writable_gradebook`` add checking the ``enabled`` box.
    - Enable Bulk Grade Management by adding the ``grades.bulk_management`` flag and checking the ``enabled`` box.

    Alternatively, you could add these as regular waffle flags to enable the functionality for all courses.

**NOTE:** IF the above flags are not configured correctly, the gradebook may appear to work, but will return bogus
numbers for grades. If your gradebook isn't accepting your changes, or the changes aren't resulting in sane, 
recalculated grade values, verify you've set all flags correctly.

## Running tests

1. Assuming that you're operating in the context of the edX devstack,
run `gradebook-shell` from your devstack directory.  This will start a bash shell inside your
running gradebook container.
2. Run `make test` (which executes `npm run test`).  This will run all of the gradebook tests.

## Directory Structure

* `config`
  * Directory for [`webpack`](https://webpack.js.org/) configurations
* `public`
  * Entry point for the single-page application - `gradebook` has a single `index.html` file
* `src`
  * `components`
    * Directory for presentational `React` components
  * `containers`
    * Directory for container `React` components
  * `data`
    * `actions`
      * Directory for `Redux` action creators
    * `constants`
    * `reducers`
      * Directory for `Redux` reducers

## Authentication with backend API services

See the [`@edx/frontend-auth`](https://github.com/edx/frontend-auth) repo for information about securing routes in your application that require user authentication.

---
_Source: https://npm.io/package/@edx/frontend-app-gradebook · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
