From c5f1fb46ebc48dd723b9c08bf345ebcf4d24c004 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jarda=20Kot=C4=9B=C5=A1ovec?= Date: Tue, 25 Feb 2025 15:58:11 +0100 Subject: [PATCH] pkp/pkp-lib#10674 Add scenarios when the review assignment is declined and moved to copyediting&production stage (covered in pkp/pkp-lib#10970) --- src/composables/useSubmission.js | 7 ++- src/pages/dashboard/DashboardPage.stories.js | 7 ++- .../DashboardCellReviewAssignmentActions.vue | 16 +++++ .../useDashboardConfigEditorialActivity.js | 60 ++++++++++++++----- .../mocks/reviewAssignmentScenariosMock.js | 15 +++++ 5 files changed, 86 insertions(+), 19 deletions(-) diff --git a/src/composables/useSubmission.js b/src/composables/useSubmission.js index 5c4ad9d3f..404c45c51 100644 --- a/src/composables/useSubmission.js +++ b/src/composables/useSubmission.js @@ -66,12 +66,13 @@ const InProgressReviewAssignmentStatuses = [ pkp.const.REVIEW_ASSIGNMENT_STATUS_ACCEPTED, pkp.const.REVIEW_ASSIGNMENT_STATUS_REVIEW_OVERDUE, ]; -const CompletedReviewAssignmentStatuses = [ + +// Submitted reviews +export const CompletedReviewAssignmentStatuses = [ pkp.const.REVIEW_ASSIGNMENT_STATUS_RECEIVED, pkp.const.REVIEW_ASSIGNMENT_STATUS_COMPLETE, pkp.const.REVIEW_ASSIGNMENT_STATUS_THANKED, - pkp.const.REVIEW_ASSIGNMENT_STATUS_CANCELLED, - pkp.const.REVIEW_ASSIGNMENT_STATUS_REQUEST_RESEND, + pkp.const.REVIEW_ASSIGNMENT_STATUS_VIEWED, ]; const IgnoredReviewAssignmentStatuses = [ diff --git a/src/pages/dashboard/DashboardPage.stories.js b/src/pages/dashboard/DashboardPage.stories.js index f323e18a5..343848ed1 100644 --- a/src/pages/dashboard/DashboardPage.stories.js +++ b/src/pages/dashboard/DashboardPage.stories.js @@ -243,8 +243,11 @@ export const ReviewAssignmentStatusesReviewer = {
  • 8.REVIEW_ASSIGNMENT_STATUS_THANKED - reviewer has been thanked
  • 9.REVIEW_ASSIGNMENT_STATUS_REQUEST_RESEND - request resent to reviewer after they declined
  • 10.REVIEW_ASSIGNMENT_STATUS_VIEWED -editor viewed the review, but not confirm
  • -
  • 11.REVIEW_ASSIGNMENT_STATUS_CANCELLED - reviewer cancelled review request // should not be displayed
  • - +
  • 11.REVIEW_ASSIGNMENT_STATUS_ACCEPTED + copy/prod stage - submission moved to the copyediting/production stage, considered as incomplete
  • +
  • 12.REVIEW_ASSIGNMENT_STATUS_DECLINED + copy/prod stage - submission moved to the copyediting/production stage, still indicate declined
  • +
  • 13.REVIEW_ASSIGNMENT_STATUS_CANCELLED - reviewer cancelled review request / should not be displayed
  • + + `, }), diff --git a/src/pages/dashboard/components/DashboardTable/DashboardCellReviewAssignmentActions.vue b/src/pages/dashboard/components/DashboardTable/DashboardCellReviewAssignmentActions.vue index f9eb80999..6f4e02ff9 100644 --- a/src/pages/dashboard/components/DashboardTable/DashboardCellReviewAssignmentActions.vue +++ b/src/pages/dashboard/components/DashboardTable/DashboardCellReviewAssignmentActions.vue @@ -1,6 +1,7 @@