From cf4253c36faf84bc1520fb0f86edbff692c75e7a Mon Sep 17 00:00:00 2001 From: Nicolas Boulay Date: Tue, 20 Feb 2024 11:23:48 -0500 Subject: [PATCH] pkp/pkp-lib#9453 Better data for review history mocks --- .../ReviewerSubmissionPage.stories.js | 22 ++++- src/pages/reviewerSubmission/mocks/review1.js | 99 +++++++++++++++++-- src/pages/reviewerSubmission/mocks/review2.js | 43 +++++--- 3 files changed, 143 insertions(+), 21 deletions(-) diff --git a/src/pages/reviewerSubmission/ReviewerSubmissionPage.stories.js b/src/pages/reviewerSubmission/ReviewerSubmissionPage.stories.js index 61b3e6457..d5704748a 100644 --- a/src/pages/reviewerSubmission/ReviewerSubmissionPage.stories.js +++ b/src/pages/reviewerSubmission/ReviewerSubmissionPage.stories.js @@ -55,7 +55,22 @@ export default { export const Base = {}; -export const OpenModal = { +export const OpenModalAccepted = { + play: async ({canvasElement}) => { + // Assigns canvas to the component root element + const canvas = within(canvasElement); + const user = userEvent.setup(); + + await user.click(canvas.getByText('Read Round 1 Review')); + }, + decorators: [ + () => ({ + template: '
', + }), + ], +}; + +export const OpenModalDeclined = { play: async ({canvasElement}) => { // Assigns canvas to the component root element const canvas = within(canvasElement); @@ -63,4 +78,9 @@ export const OpenModal = { await user.click(canvas.getByText('Read Round 2 Review')); }, + decorators: [ + () => ({ + template: '
', + }), + ], }; diff --git a/src/pages/reviewerSubmission/mocks/review1.js b/src/pages/reviewerSubmission/mocks/review1.js index 59cc37b93..3631b88a1 100644 --- a/src/pages/reviewerSubmission/mocks/review1.js +++ b/src/pages/reviewerSubmission/mocks/review1.js @@ -1,10 +1,26 @@ export default { - publicationTitle: - 'Influence of long-term nutrition with different dietary fats on fatty acid composition of heavy pigs backfat', - publicationType: 'Articles', - publicationAbstract: - 'Aim of this research is to provide a general situation of cattle slaughtered in Cameroon, as a representative example for the Central African Sub-region. The quality and safety of beef from the abattoir of Yaound\u00e9, the largest in Cameroon, were considered. From January 2009 to March 2012, the pre-slaughter conditions and characteristics of 1953 cattle carcasses were recorded, as well as the pH of m. longissimus thoracis 24 h after slaughter. From these carcasses, 60 were selected to represent the bulls slaughtered. The quality parameters and composition of m. longissimus thoracis were carried out. The origin of most of the cattle was the Guinea High Savannah (74.6%), and transhumance was the common production system (75.5%). Gudali (45.6%), White Fulani (33.3%) and Red Mbororo (20.3%) breeds were predominant. Carcass weight was affected by rearing system and cattle category, and it markedly varied during year. Considering meat quality, the fat content was low (1.2%) and similar between breeds, moreover Gudali showed the toughest meat. Of the cows slaughtered, 27% were pregnant and the most common abnormal conditions encountered were ectoparasites, fatigue, lameness, fungal-like skin lesions, enlarged lymph nodes, respiratory distress, nodular lesions. More than 20% of the carcasses had some organs condemned, mainly for liver flukes (5.17%), and 1.0% of them were completely condemned due to tuberculosis, that also affected 3.28% of lungs. These data could aid authorities draw up programmes with the aim to strengthen cattle production, improve beef supply, control and prevent the observed diseases, and promote the regional trade.', - publicationKeywords: 'cattle, food security', + publicationTitle: { + en: 'Influence of long-term nutrition with different dietary fats on fatty acid composition of heavy pigs backfat', + fr_CA: 'Influence d\'une alimentation à long terme avec différentes graisses alimentaires sur la composition en acides gras du lard des porcs lourds', + }, + publicationType: { + en: 'Articles', + fr_CA: 'Articles', + }, + publicationAbstract: { + en: 'Aim of this research is to provide a general situation of cattle slaughtered in Cameroon, as a representative example for the Central African Sub-region. The quality and safety of beef from the abattoir of Yaound\u00e9, the largest in Cameroon, were considered. From January 2009 to March 2012, the pre-slaughter conditions and characteristics of 1953 cattle carcasses were recorded, as well as the pH of m. longissimus thoracis 24 h after slaughter. From these carcasses, 60 were selected to represent the bulls slaughtered. The quality parameters and composition of m. longissimus thoracis were carried out. The origin of most of the cattle was the Guinea High Savannah (74.6%), and transhumance was the common production system (75.5%). Gudali (45.6%), White Fulani (33.3%) and Red Mbororo (20.3%) breeds were predominant. Carcass weight was affected by rearing system and cattle category, and it markedly varied during year. Considering meat quality, the fat content was low (1.2%) and similar between breeds, moreover Gudali showed the toughest meat. Of the cows slaughtered, 27% were pregnant and the most common abnormal conditions encountered were ectoparasites, fatigue, lameness, fungal-like skin lesions, enlarged lymph nodes, respiratory distress, nodular lesions. More than 20% of the carcasses had some organs condemned, mainly for liver flukes (5.17%), and 1.0% of them were completely condemned due to tuberculosis, that also affected 3.28% of lungs. These data could aid authorities draw up programmes with the aim to strengthen cattle production, improve beef supply, control and prevent the observed diseases, and promote the regional trade.', + fr_CA: 'Le but de cette recherche est de fournir une situation générale des bovins abattus au Cameroun, à titre d\'exemple représentatif de la sous-région de l\'Afrique Centrale. La qualité et la sécurité sanitaire de la viande bovine issue de l\'abattoir de Yaoundé9, le plus grand du Cameroun, ont été étudiées. De janvier 2009 à mars 2012, les conditions et caractéristiques avant l\'abattage de 1953 carcasses de bovins ont été enregistrées, ainsi que le pH de m. longissimus thoracis 24 h après l\'abattage. Parmi ces carcasses, 60 ont été sélectionnées pour représenter les taureaux abattus. Les paramètres de qualité et la composition de m. longissimus thoracis ont été réalisés. L\'origine de la plupart des bovins était la haute savane guinéenne (74,6%), et la transhumance était le système de production commun (75,5%). Les races Gudali (45,6%), Peuls Blancs (33,3%) et Mbororo Rouge (20,3%) étaient prédominantes. Le poids des carcasses était affecté par le système d\'élevage et la catégorie de bovins, et variait considérablement au cours de l\'année. Concernant la qualité de la viande, la teneur en graisse était faible (1,2%) et similaire entre les races, de plus Gudali présentait la viande la plus dure. Parmi les vaches abattues, 27 % étaient gestantes et les conditions anormales les plus fréquemment rencontrées étaient les ectoparasites, la fatigue, la boiterie, les lésions cutanées de type fongique, l\'hypertrophie des ganglions lymphatiques, la détresse respiratoire, les lésions nodulaires. Plus de 20% des carcasses présentaient certains organes condamnés, principalement pour des douves du foie (5,17%), et 1,0% d\'entre elles ont été complètement condamnées à cause de la tuberculose, qui a également touché 3,28% des poumons. Ces données pourraient aider les autorités à élaborer des programmes visant à renforcer la production bovine, à améliorer l\'approvisionnement en viande bovine, à contrôler et prévenir les maladies observées et à promouvoir le commerce régional.', + }, + publicationKeywords: { + en: [ + 'cattle', + 'food security', + ], + fr_CA: [ + 'bétail', + 'sécurité alimentaire', + ], + }, declineEmail: null, reviewAssignment: { _href: @@ -43,7 +59,9 @@ export default { comments: [ '

This is my feedback for author and editor.

', ], - privateComments: ['

This is my feedback for editor.

'], + privateComments: [ + '

This is my feedback for editor.

', + ], attachments: [ { _href: @@ -107,5 +125,70 @@ export default { viewable: null, }, ], - files: [], + files: [ + { + _href: + 'http://localhost:7002/index.php/publicknowledge/api/v1/submissions/16/files/41', + assocId: 1, + assocType: 521, + caption: null, + copyrightOwner: null, + createdAt: '2024-02-07 14:19:31', + creator: { + en: '', + fr_CA: '', + }, + credit: null, + dateCreated: null, + dependentFiles: [], + description: { + en: '', + fr_CA: '', + }, + documentType: 'pdf', + fileId: 37, + fileStage: 10, + genreId: 1, + genreIsDependent: false, + genreIsSupplementary: false, + genreName: { + en: 'Article Text', + fr_CA: "Texte de l'article", + }, + id: 41, + language: null, + locale: 'en', + mimetype: 'application/pdf', + name: { + en: 'article.pdf', + fr_CA: '', + }, + path: 'journals/1/articles/16/653fbb73c2ac5.pdf', + publisher: { + en: '', + fr_CA: '', + }, + revisions: [], + source: { + en: '', + fr_CA: '', + }, + sourceSubmissionFileId: null, + sponsor: { + en: '', + fr_CA: '', + }, + subject: { + en: '', + fr_CA: '', + }, + submissionId: 16, + terms: null, + updatedAt: '2024-02-07 14:20:23', + uploaderUserId: 1, + uploaderUserName: 'admin', + url: 'http://localhost:7002/index.php/publicknowledge/$$$call$$$/api/file/file-api/download-file?submissionFileId=41&submissionId=16&stageId=1', + viewable: null, + }, + ], }; diff --git a/src/pages/reviewerSubmission/mocks/review2.js b/src/pages/reviewerSubmission/mocks/review2.js index f46872064..ba2beb5dc 100644 --- a/src/pages/reviewerSubmission/mocks/review2.js +++ b/src/pages/reviewerSubmission/mocks/review2.js @@ -1,11 +1,30 @@ export default { - publicationTitle: - 'Influence of long-term nutrition with different dietary fats on fatty acid composition of heavy pigs backfat', - publicationType: 'Articles', - publicationAbstract: - 'Aim of this research is to provide a general situation of cattle slaughtered in Cameroon, as a representative example for the Central African Sub-region. The quality and safety of beef from the abattoir of Yaound\u00e9, the largest in Cameroon, were considered. From January 2009 to March 2012, the pre-slaughter conditions and characteristics of 1953 cattle carcasses were recorded, as well as the pH of m. longissimus thoracis 24 h after slaughter. From these carcasses, 60 were selected to represent the bulls slaughtered. The quality parameters and composition of m. longissimus thoracis were carried out. The origin of most of the cattle was the Guinea High Savannah (74.6%), and transhumance was the common production system (75.5%). Gudali (45.6%), White Fulani (33.3%) and Red Mbororo (20.3%) breeds were predominant. Carcass weight was affected by rearing system and cattle category, and it markedly varied during year. Considering meat quality, the fat content was low (1.2%) and similar between breeds, moreover Gudali showed the toughest meat. Of the cows slaughtered, 27% were pregnant and the most common abnormal conditions encountered were ectoparasites, fatigue, lameness, fungal-like skin lesions, enlarged lymph nodes, respiratory distress, nodular lesions. More than 20% of the carcasses had some organs condemned, mainly for liver flukes (5.17%), and 1.0% of them were completely condemned due to tuberculosis, that also affected 3.28% of lungs. These data could aid authorities draw up programmes with the aim to strengthen cattle production, improve beef supply, control and prevent the observed diseases, and promote the regional trade.', - publicationKeywords: 'cattle, food security', - declineEmail: null, + publicationTitle: { + en: 'Influence of long-term nutrition with different dietary fats on fatty acid composition of heavy pigs backfat', + fr_CA: 'Influence d\'une alimentation à long terme avec différentes graisses alimentaires sur la composition en acides gras du lard des porcs lourds', + }, + publicationType: { + en: 'Articles', + fr_CA: 'Articles', + }, + publicationAbstract: { + en: 'Aim of this research is to provide a general situation of cattle slaughtered in Cameroon, as a representative example for the Central African Sub-region. The quality and safety of beef from the abattoir of Yaound\u00e9, the largest in Cameroon, were considered. From January 2009 to March 2012, the pre-slaughter conditions and characteristics of 1953 cattle carcasses were recorded, as well as the pH of m. longissimus thoracis 24 h after slaughter. From these carcasses, 60 were selected to represent the bulls slaughtered. The quality parameters and composition of m. longissimus thoracis were carried out. The origin of most of the cattle was the Guinea High Savannah (74.6%), and transhumance was the common production system (75.5%). Gudali (45.6%), White Fulani (33.3%) and Red Mbororo (20.3%) breeds were predominant. Carcass weight was affected by rearing system and cattle category, and it markedly varied during year. Considering meat quality, the fat content was low (1.2%) and similar between breeds, moreover Gudali showed the toughest meat. Of the cows slaughtered, 27% were pregnant and the most common abnormal conditions encountered were ectoparasites, fatigue, lameness, fungal-like skin lesions, enlarged lymph nodes, respiratory distress, nodular lesions. More than 20% of the carcasses had some organs condemned, mainly for liver flukes (5.17%), and 1.0% of them were completely condemned due to tuberculosis, that also affected 3.28% of lungs. These data could aid authorities draw up programmes with the aim to strengthen cattle production, improve beef supply, control and prevent the observed diseases, and promote the regional trade.', + fr_CA: 'Le but de cette recherche est de fournir une situation générale des bovins abattus au Cameroun, à titre d\'exemple représentatif de la sous-région de l\'Afrique Centrale. La qualité et la sécurité sanitaire de la viande bovine issue de l\'abattoir de Yaoundé9, le plus grand du Cameroun, ont été étudiées. De janvier 2009 à mars 2012, les conditions et caractéristiques avant l\'abattage de 1953 carcasses de bovins ont été enregistrées, ainsi que le pH de m. longissimus thoracis 24 h après l\'abattage. Parmi ces carcasses, 60 ont été sélectionnées pour représenter les taureaux abattus. Les paramètres de qualité et la composition de m. longissimus thoracis ont été réalisés. L\'origine de la plupart des bovins était la haute savane guinéenne (74,6%), et la transhumance était le système de production commun (75,5%). Les races Gudali (45,6%), Peuls Blancs (33,3%) et Mbororo Rouge (20,3%) étaient prédominantes. Le poids des carcasses était affecté par le système d\'élevage et la catégorie de bovins, et variait considérablement au cours de l\'année. Concernant la qualité de la viande, la teneur en graisse était faible (1,2%) et similaire entre les races, de plus Gudali présentait la viande la plus dure. Parmi les vaches abattues, 27 % étaient gestantes et les conditions anormales les plus fréquemment rencontrées étaient les ectoparasites, la fatigue, la boiterie, les lésions cutanées de type fongique, l\'hypertrophie des ganglions lymphatiques, la détresse respiratoire, les lésions nodulaires. Plus de 20% des carcasses présentaient certains organes condamnés, principalement pour des douves du foie (5,17%), et 1,0% d\'entre elles ont été complètement condamnées à cause de la tuberculose, qui a également touché 3,28% des poumons. Ces données pourraient aider les autorités à élaborer des programmes visant à renforcer la production bovine, à améliorer l\'approvisionnement en viande bovine, à contrôler et prévenir les maladies observées et à promouvoir le commerce régional.', + }, + publicationKeywords: { + en: [ + 'cattle', + 'food security', + ], + fr_CA: [ + 'bétail', + 'sécurité alimentaire', + ], + }, + declineEmail: { + subject: '

This is the subject of my email

', + body: '

Editors:

I am afraid that at this time I am unable to review the submission, "Influence of long-term nutrition with different dietary fats on fatty acid composition of heavy pigs backfat" for Le partage. Thank you for thinking of me, and another time feel free to call on me.

Paul

', + }, reviewAssignment: { _href: 'http://localhost:7002/index.php/_/api/v1/_submissions/reviewAssignments/30', @@ -15,14 +34,14 @@ export default { considered: null, dateAcknowledged: null, dateAssigned: '2024-02-08 12:47:38', - dateCompleted: '2024-02-08 12:51:12', + dateCompleted: null, dateConfirmed: '2024-02-08 12:48:22', dateDue: '2024-03-07 00:00:00', dateNotified: '2024-02-08 12:47:40', dateRated: null, dateReminded: null, dateResponseDue: '2024-03-07 00:00:00', - declined: false, + declined: true, id: 30, lastModified: '2024-02-08 12:51:12', quality: null, @@ -39,9 +58,9 @@ export default { step: 4, submissionId: 16, }, - recommendation: 'Accept Submission', - comments: ['

For author and editor 2

'], - privateComments: ['

For editor 2

'], + recommendation: null, + comments: [], + privateComments: [], attachments: [], files: [], };