From fe684d60a80a8192ae8e8b3c77f4f8060db4d04d Mon Sep 17 00:00:00 2001 From: Nicolas Boulay Date: Wed, 17 Jan 2024 16:45:05 -0500 Subject: [PATCH] pkp/pkp-lib#9453 Add sections to the round history modal pkp/pkp-lib#9453 Connect the new API for the round history pkp/pkp-lib#9453 Use the localized recommandation value pkp/pkp-lib#9453 Show review comments as HTML pkp/pkp-lib#9453 Refactor the round history UI to follow the proper design pkp/pkp-lib#9453 Fix the download URL for file component pkp/pkp-lib#9453 Adding ReviewerSubmissionPage to storybook pkp/pkp-lib#9453 Use tailwind instead of panels and localize data from the api pkp/pkp-lib#9453 Fix for chromatic pkp/pkp-lib#9453 Better data for review history mocks pkp/pkp-lib#9453 Fix typo pkp/pkp-lib#9453 Adjust the viewport height for storybook pkp/pkp-lib#9453 Minor UI ajustements asked by Devika --- public/globals.js | 40 +++- src/components/File/File.vue | 3 +- .../listingFiles/ListingFilesListPanel.vue | 6 + .../ReviewerSubmissionPage.mdx | 13 ++ .../ReviewerSubmissionPage.stories.js | 86 ++++++++ .../ReviewerSubmissionPage.vue | 30 ++- .../reviewerSubmission/RoundHistoryModal.vue | 133 ++++++++++-- src/pages/reviewerSubmission/mocks/review1.js | 194 ++++++++++++++++++ src/pages/reviewerSubmission/mocks/review2.js | 66 ++++++ .../reviewerSubmissionPageStore.js | 4 +- .../roundHistoryModalStore.js | 14 +- 11 files changed, 551 insertions(+), 38 deletions(-) create mode 100644 src/pages/reviewerSubmission/ReviewerSubmissionPage.mdx create mode 100644 src/pages/reviewerSubmission/ReviewerSubmissionPage.stories.js create mode 100644 src/pages/reviewerSubmission/mocks/review1.js create mode 100644 src/pages/reviewerSubmission/mocks/review2.js diff --git a/public/globals.js b/public/globals.js index 4d8e0c5b7..e6bc0f77b 100644 --- a/public/globals.js +++ b/public/globals.js @@ -28,7 +28,6 @@ window.pkp = { apiBaseUrl: 'https://mock/index.php/publicknowledge/api/v1/', pageBaseUrl: 'https://mock/index.php/publicknowledge/', }, - /** * Dummy constants required by components */ @@ -262,6 +261,7 @@ window.pkp = { 'manager.dois.update.partialFailure': 'Some DOI(s) could not be updated', 'manager.dois.update.success': 'DOI(s) successfully updated', 'navigation.backTo': '\u27f5 Back to {$page}', + 'navigation.submissions': 'Submissions', 'publication.jats.autoCreatedMessage': 'This JATS file is generated automatically by the submission metadata', 'publication.jats.confirmDeleteFileButton': 'Delete JATS File', @@ -273,12 +273,38 @@ window.pkp = { 'publication.status.published': 'Published', 'publication.status.unpublished': 'Unpublished', 'publication.version': 'Version {$version}', - 'reviewer.article.decision.accept': 'Accept Submission', - 'reviewer.article.decision.decline': 'Decline Submission', - 'reviewer.article.decision.pendingRevisions': 'Revisions Required', - 'reviewer.article.decision.resubmitElsewhere': 'Resubmit Elsewhere', - 'reviewer.article.decision.resubmitHere': 'Resubmit for Review', - 'reviewer.article.decision.seeComments': 'See Comments', + 'reviewer.article.recommendation': 'Recommendation', + 'reviewer.submission.acceptedOn': 'Review Accepted On', + 'reviewer.submission.responseDueDate': 'Response Due Date', + 'reviewer.submission.reviewDueDate': 'Review Due Date', + 'reviewer.submission.reviewRequestDate': "Editor's Request", + 'reviewer.submission.reviewRound.attachments': 'Attachments', + 'reviewer.submission.reviewRound.attachments.description': + 'These are files that you attached along with your review', + 'reviewer.submission.reviewRound.comments': 'Reviewer Comments', + 'reviewer.submission.reviewRound.comments.authorAndEditor': + 'For editors and authors', + 'reviewer.submission.reviewRound.comments.editorOnly': 'For editors only', + 'reviewer.submission.reviewRound.comments.prefix': 'Comment {$index}: ', + 'reviewer.submission.reviewRound.emailLog': 'Decline reason sent by email', + 'reviewer.submission.reviewRound.emailLog.defaultMessage': + 'No reason given to the decline of the review invitation.', + 'reviewer.submission.reviewRound.files': 'Files For Review', + 'reviewer.submission.reviewRound.files.description': + 'These files were sent to you for review', + 'reviewer.submission.reviewRound.general': 'General Information', + 'reviewer.submission.reviewRound.info': 'Previous Reviews', + 'reviewer.submission.reviewRound.info.modal.title': + 'Round {$round} Review submitted by you for', + 'reviewer.submission.reviewRound.info.read': 'Read Round {$round} Review', + 'reviewer.submission.reviewRound.info.submittedOn': + 'Round {$round} Review Submitted on {$submittedOn}', + 'reviewer.submission.reviewRound.metadata': 'Article Metadata', + 'reviewer.submission.reviewRound.metadata.abstract': 'Abstract', + 'reviewer.submission.reviewRound.metadata.keywords': 'Keywords', + 'reviewer.submission.reviewRound.metadata.type': 'Type', + 'reviewer.submission.reviewRound.reviewDeclineDate': 'Declined Date', + 'reviewer.submission.submittedOn': 'Review Submitted On', 'stats.countWithYearlyAverage': '{$count} ({$average}/year)', 'stats.descriptionForStat': 'Description for {$stat}', 'submission.list.assignEditor': 'Assign Editor', diff --git a/src/components/File/File.vue b/src/components/File/File.vue index e44e4ba6e..caffda5c3 100644 --- a/src/components/File/File.vue +++ b/src/components/File/File.vue @@ -5,7 +5,7 @@ {{ fileId }} - {{ name }} + {{ name }} @@ -35,7 +35,6 @@ export default { type: String, required: true, }, - /** Optional. If the file should be be url to download file */ url: { type: String, diff --git a/src/components/ListPanel/listingFiles/ListingFilesListPanel.vue b/src/components/ListPanel/listingFiles/ListingFilesListPanel.vue index 2affc4fb6..0a4e25d4c 100644 --- a/src/components/ListPanel/listingFiles/ListingFilesListPanel.vue +++ b/src/components/ListPanel/listingFiles/ListingFilesListPanel.vue @@ -1,5 +1,11 @@