Skip to content

Commit cf4253c

Browse files
committed
pkp/pkp-lib#9453 Better data for review history mocks
1 parent 960323b commit cf4253c

File tree

3 files changed

+143
-21
lines changed

3 files changed

+143
-21
lines changed

src/pages/reviewerSubmission/ReviewerSubmissionPage.stories.js

+21-1
Original file line numberDiff line numberDiff line change
@@ -55,12 +55,32 @@ export default {
5555

5656
export const Base = {};
5757

58-
export const OpenModal = {
58+
export const OpenModalAccepted = {
59+
play: async ({canvasElement}) => {
60+
// Assigns canvas to the component root element
61+
const canvas = within(canvasElement);
62+
const user = userEvent.setup();
63+
64+
await user.click(canvas.getByText('Read Round 1 Review'));
65+
},
66+
decorators: [
67+
() => ({
68+
template: '<div style="height: 700px"><story/></div>',
69+
}),
70+
],
71+
};
72+
73+
export const OpenModalDeclined = {
5974
play: async ({canvasElement}) => {
6075
// Assigns canvas to the component root element
6176
const canvas = within(canvasElement);
6277
const user = userEvent.setup();
6378

6479
await user.click(canvas.getByText('Read Round 2 Review'));
6580
},
81+
decorators: [
82+
() => ({
83+
template: '<div style="height: 700px"><story/></div>',
84+
}),
85+
],
6686
};

src/pages/reviewerSubmission/mocks/review1.js

+91-8
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,26 @@
11
export default {
2-
publicationTitle:
3-
'Influence of long-term nutrition with different dietary fats on fatty acid composition of heavy pigs backfat',
4-
publicationType: 'Articles',
5-
publicationAbstract:
6-
'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.',
7-
publicationKeywords: 'cattle, food security',
2+
publicationTitle: {
3+
en: 'Influence of long-term nutrition with different dietary fats on fatty acid composition of heavy pigs backfat',
4+
fr_CA: 'Influence d\'une alimentation à long terme avec différentes graisses alimentaires sur la composition en acides gras du lard des porcs lourds',
5+
},
6+
publicationType: {
7+
en: 'Articles',
8+
fr_CA: 'Articles',
9+
},
10+
publicationAbstract: {
11+
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.',
12+
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.',
13+
},
14+
publicationKeywords: {
15+
en: [
16+
'cattle',
17+
'food security',
18+
],
19+
fr_CA: [
20+
'bétail',
21+
'sécurité alimentaire',
22+
],
23+
},
824
declineEmail: null,
925
reviewAssignment: {
1026
_href:
@@ -43,7 +59,9 @@ export default {
4359
comments: [
4460
'<p>This is my <strong>feedback</strong> for author and editor.</p>',
4561
],
46-
privateComments: ['<p>This is my <strong>feedback</strong> for editor.</p>'],
62+
privateComments: [
63+
'<p>This is my <strong>feedback</strong> for editor.</p>',
64+
],
4765
attachments: [
4866
{
4967
_href:
@@ -107,5 +125,70 @@ export default {
107125
viewable: null,
108126
},
109127
],
110-
files: [],
128+
files: [
129+
{
130+
_href:
131+
'http://localhost:7002/index.php/publicknowledge/api/v1/submissions/16/files/41',
132+
assocId: 1,
133+
assocType: 521,
134+
caption: null,
135+
copyrightOwner: null,
136+
createdAt: '2024-02-07 14:19:31',
137+
creator: {
138+
en: '',
139+
fr_CA: '',
140+
},
141+
credit: null,
142+
dateCreated: null,
143+
dependentFiles: [],
144+
description: {
145+
en: '',
146+
fr_CA: '',
147+
},
148+
documentType: 'pdf',
149+
fileId: 37,
150+
fileStage: 10,
151+
genreId: 1,
152+
genreIsDependent: false,
153+
genreIsSupplementary: false,
154+
genreName: {
155+
en: 'Article Text',
156+
fr_CA: "Texte de l'article",
157+
},
158+
id: 41,
159+
language: null,
160+
locale: 'en',
161+
mimetype: 'application/pdf',
162+
name: {
163+
en: 'article.pdf',
164+
fr_CA: '',
165+
},
166+
path: 'journals/1/articles/16/653fbb73c2ac5.pdf',
167+
publisher: {
168+
en: '',
169+
fr_CA: '',
170+
},
171+
revisions: [],
172+
source: {
173+
en: '',
174+
fr_CA: '',
175+
},
176+
sourceSubmissionFileId: null,
177+
sponsor: {
178+
en: '',
179+
fr_CA: '',
180+
},
181+
subject: {
182+
en: '',
183+
fr_CA: '',
184+
},
185+
submissionId: 16,
186+
terms: null,
187+
updatedAt: '2024-02-07 14:20:23',
188+
uploaderUserId: 1,
189+
uploaderUserName: 'admin',
190+
url: 'http://localhost:7002/index.php/publicknowledge/$$$call$$$/api/file/file-api/download-file?submissionFileId=41&submissionId=16&stageId=1',
191+
viewable: null,
192+
},
193+
],
111194
};
+31-12
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,30 @@
11
export default {
2-
publicationTitle:
3-
'Influence of long-term nutrition with different dietary fats on fatty acid composition of heavy pigs backfat',
4-
publicationType: 'Articles',
5-
publicationAbstract:
6-
'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.',
7-
publicationKeywords: 'cattle, food security',
8-
declineEmail: null,
2+
publicationTitle: {
3+
en: 'Influence of long-term nutrition with different dietary fats on fatty acid composition of heavy pigs backfat',
4+
fr_CA: 'Influence d\'une alimentation à long terme avec différentes graisses alimentaires sur la composition en acides gras du lard des porcs lourds',
5+
},
6+
publicationType: {
7+
en: 'Articles',
8+
fr_CA: 'Articles',
9+
},
10+
publicationAbstract: {
11+
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.',
12+
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.',
13+
},
14+
publicationKeywords: {
15+
en: [
16+
'cattle',
17+
'food security',
18+
],
19+
fr_CA: [
20+
'bétail',
21+
'sécurité alimentaire',
22+
],
23+
},
24+
declineEmail: {
25+
subject: '<p>This is the <strong>subject</strong> of my email</p>',
26+
body: '<p>Editors:<br><br>I am afraid that at this time I am unable to review the submission, "<strong>Influence of long-term nutrition with different dietary fats on fatty acid composition of heavy pigs backfat</strong>" for Le partage. Thank you for thinking of me, and another time feel free to call on me.<br><br>Paul</p>',
27+
},
928
reviewAssignment: {
1029
_href:
1130
'http://localhost:7002/index.php/_/api/v1/_submissions/reviewAssignments/30',
@@ -15,14 +34,14 @@ export default {
1534
considered: null,
1635
dateAcknowledged: null,
1736
dateAssigned: '2024-02-08 12:47:38',
18-
dateCompleted: '2024-02-08 12:51:12',
37+
dateCompleted: null,
1938
dateConfirmed: '2024-02-08 12:48:22',
2039
dateDue: '2024-03-07 00:00:00',
2140
dateNotified: '2024-02-08 12:47:40',
2241
dateRated: null,
2342
dateReminded: null,
2443
dateResponseDue: '2024-03-07 00:00:00',
25-
declined: false,
44+
declined: true,
2645
id: 30,
2746
lastModified: '2024-02-08 12:51:12',
2847
quality: null,
@@ -39,9 +58,9 @@ export default {
3958
step: 4,
4059
submissionId: 16,
4160
},
42-
recommendation: 'Accept Submission',
43-
comments: ['<p>For author and editor 2</p>'],
44-
privateComments: ['<p>For editor 2</p>'],
61+
recommendation: null,
62+
comments: [],
63+
privateComments: [],
4564
attachments: [],
4665
files: [],
4766
};

0 commit comments

Comments
 (0)