diff --git a/CHANGELOG.md b/CHANGELOG.md index 6a3aa3a50..05761d99a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,15 @@ This project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html). +## [v3.6.1] - 2020-04-28 +### Added +- Links to review tasks on Browse Challenge and Browse Project pages + +### Fixed +- User metrics failing to load +- Remove limit when fetching lists of challenges and projects for review + + ## [v3.6.0] - 2020-04-23 ### Added - Cooperative challenges diff --git a/package.json b/package.json index 9b57a6da4..6e2adf2be 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "maproulette3", - "version": "3.6.0", + "version": "3.6.1", "private": true, "dependencies": { "@mapbox/geo-viewport": "^0.4.0", diff --git a/src/components/ChallengeDetail/ChallengeDetail.js b/src/components/ChallengeDetail/ChallengeDetail.js index f5486ec9d..96ee5726d 100644 --- a/src/components/ChallengeDetail/ChallengeDetail.js +++ b/src/components/ChallengeDetail/ChallengeDetail.js @@ -1,6 +1,7 @@ import React, { Component } from 'react' import { Link } from 'react-router-dom' import { FormattedMessage, FormattedRelative, injectIntl } from 'react-intl' +import classNames from 'classnames' import _isObject from 'lodash/isObject' import _get from 'lodash/get' import _findIndex from 'lodash/findIndex' @@ -225,7 +226,19 @@ export class ChallengeDetail extends Component { {unsaveControl} )} - {manageControl &&
  • {manageControl}
  • } +
  • + {_get(this.props.user, 'settings.isReviewer') && + + + + } + {manageControl} +
  • diff --git a/src/components/ChallengeDetail/Messages.js b/src/components/ChallengeDetail/Messages.js index cd84d732f..e7b49830b 100644 --- a/src/components/ChallengeDetail/Messages.js +++ b/src/components/ChallengeDetail/Messages.js @@ -54,4 +54,9 @@ export default defineMessages({ defaultMessage: "View Leaderboard", }, + viewReviews: { + id: "ChallengeDetails.fields.viewReviews.label", + defaultMessage: "Review", + }, + }) diff --git a/src/components/ProjectDetail/Messages.js b/src/components/ProjectDetail/Messages.js index 75bad114b..137effaa6 100644 --- a/src/components/ProjectDetail/Messages.js +++ b/src/components/ProjectDetail/Messages.js @@ -55,4 +55,9 @@ export default defineMessages({ id: "ProjectDetails.fields.viewLeaderboard.label", defaultMessage: "View Leaderboard", }, + + viewReviews: { + id: "ProjectDetails.fields.viewReviews.label", + defaultMessage: "Review", + }, }) diff --git a/src/components/ProjectDetail/ProjectDetail.js b/src/components/ProjectDetail/ProjectDetail.js index bd801bca4..558e0af84 100644 --- a/src/components/ProjectDetail/ProjectDetail.js +++ b/src/components/ProjectDetail/ProjectDetail.js @@ -1,5 +1,6 @@ import React, { Component } from 'react' import { Link } from 'react-router-dom' +import classNames from 'classnames' import { FormattedMessage, FormattedRelative, injectIntl } from 'react-intl' import _isObject from 'lodash/isObject' import _get from 'lodash/get' @@ -124,8 +125,20 @@ export class ProjectDetail extends Component { -