Skip to content

Add XP for grading overview #321

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

Merged
merged 9 commits into from
Aug 28, 2018
Merged

Add XP for grading overview #321

merged 9 commits into from
Aug 28, 2018

Conversation

remo5000
Copy link
Contributor

Features

  • Prop name changes
  • XP is viewable
  • Default sort order of assessmentId, then submissionId (both descending)
  • Change in "Edit comments" text

Issues fixed:

@coveralls
Copy link

coveralls commented Aug 23, 2018

Pull Request Test Coverage Report for Build 725

  • 1 of 4 (25.0%) changed or added relevant lines in 1 file are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage decreased (-0.001%) to 26.19%

Changes Missing Coverage Covered Lines Changed/Added Lines %
src/components/academy/grading/index.tsx 1 4 25.0%
Totals Coverage Status
Change from base Build 722: -0.001%
Covered Lines: 886
Relevant Lines: 2892

💛 - Coveralls

Copy link
Contributor

@rrtheonlyone rrtheonlyone left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changes look good especially the sorting functionality!

I have built on this and did a PR #332

@remo5000 remo5000 force-pushed the xp-grading-overview branch from c343ca5 to dfa889f Compare August 25, 2018 09:35
@remo5000 remo5000 changed the base branch from master to xp August 25, 2018 09:35
@remo5000 remo5000 added blocked Something else needs pass review first blocking Finishing this opens up other stuff labels Aug 25, 2018
* Improved Table UI and made functionality more intuitive

* Improved UI for grading table and made functionality more intutive

* Added comments and ran yarn format

* Ran Yarn format to fix all linting issues

* Formating Change and Fixing Conflicts

* Upgraded yarn version on TRAVIS

* Attempt to remove cache yarn

* Clean up formatting (again)

* Fix rebase error

* Used blueprintJS for Color instead of hex code

* Modified constant to original value

* Reenabled sorting for columns && refactored history to show popup over the grade/exp itself

* Update formatting - prettify

* Fix bug in filter

* Fix CSV export - show all required details

* update formatting

* Centralise and vertically align content in grading table

* Fixed formatting for scss file

* Fix bug in grade display

* Centralised filter input
@remo5000 remo5000 removed the blocked Something else needs pass review first label Aug 28, 2018
@remo5000 remo5000 merged commit 10c7506 into xp Aug 28, 2018
remo5000 added a commit that referenced this pull request Sep 1, 2018
* Add XP to profile (duplicate) (#323)

* Add maxGrade and xp to state

* Pass props to Profile from State

* Remove IS_XP_IMPLEMENTED

* Unhide betcha

* Use xp and maxgrade for Profile

* Update tests and format

* Xp assessment (#320)

* Update IAssessmentOverview

Sticking to how the backend specifies the props, since it's already
camel case

* Remove maxGrade transform (IAssessmentOverview)

* Use maxGrade in assesment cards

* Update mock assessment data

* Add grade and xp into assessment overview

* Hide grade and xp for unopened assessments

* Show open date for unopened assessments

* Format and update tests

* Add XP for grading overview (#321)

* Update backend parsing

Fix lint error

* Modify grading shape

* Use new properties for grading overview table

* Update mock grading api

* Update table field

* Update text for editing grading

* Sort data by assessmentId, then submissionId

* Format file

* Improve UI/Functionality of Grading Table (#332)

* Improved Table UI and made functionality more intuitive

* Improved UI for grading table and made functionality more intutive

* Added comments and ran yarn format

* Ran Yarn format to fix all linting issues

* Formating Change and Fixing Conflicts

* Upgraded yarn version on TRAVIS

* Attempt to remove cache yarn

* Clean up formatting (again)

* Fix rebase error

* Used blueprintJS for Color instead of hex code

* Modified constant to original value

* Reenabled sorting for columns && refactored history to show popup over the grade/exp itself

* Update formatting - prettify

* Fix bug in filter

* Fix CSV export - show all required details

* update formatting

* Centralise and vertically align content in grading table

* Fixed formatting for scss file

* Fix bug in grade display

* Centralised filter input

* Add XP adjustment input to Grading Workspace (#335)

* Add parsing for new grading schema

* Add xp props to GradingQuestion

* Fix props in GradingWorkspace

* Update mock data

* Update mock data props

* Add props to saga

* Fix rebase errors

* Reorder props in type

* Add xp adjustment to action

* Rename dispatch function arguments

* Modify adjustment-related props

* Add xp OwnProps

Renamed a few usage of the props as well

* Add xp to validation and submit dispatch call

* Rename more props usage

* Duplicate some columns for XP

Most importantly, the numeric input

* Remove comment

* Pass in xp props to GradingEditor

* Add Final XP column

* Add xp and grade adjustment to mock backend

* Remove old TODO comment

* Use correct arguments for backend grading submit

* Use correct arguments for postGrading

* Format files

* Fix runtime errors

- input error when min === max
- error message
- hasUnsavedChanges returning true because of xp checking against grade

* Format file

* Revert travis to master's version

* Show programming solution (#336)

* Add additional types for solution prop

* Udpate mock data

* Use markdown to show solution

* Pass solution to GradingEditor

* Use code tag for solution instead

* Add parsing of solution in saga

* Add failsafes for solution value

and the maxGrade value as well. This is something that only happens in
staging, but could very well happen in prod as well.

* Use pre for solution

And fix a bug with xpAdjustment

* Add word wrapping to solution

* Fix wrapping for pre tag

It was not speicific to the pre tag

* Format files
@rrtheonlyone rrtheonlyone deleted the xp-grading-overview branch September 12, 2018 01:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
blocking Finishing this opens up other stuff
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants