Skip to content

Commit 980d24b

Browse files
committed
Addtl. adjustments based on sandbox testing image upload feature.
1 parent 5801350 commit 980d24b

File tree

12 files changed

+46
-17
lines changed

12 files changed

+46
-17
lines changed

messages/en-GB.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,10 @@
9090
"REPLY_TO_REVIEW_MESSAGE": "Leave your reply to the above review",
9191
"FACE_SELECTION_REVIEW_MESSAGE": "Select the face which shows how you feel about the above review",
9292
"ADDITIONAL_COMMENTS_PLACEHOLDER": "Enter additional comments here",
93-
"FEEDBACK_PHOTO_UPLOAD_LABEL": "Feedback photo upload"
93+
"FEEDBACK_PHOTO_UPLOAD_LABEL": "Feedback photo upload",
94+
"VALIDATION": {
95+
"SELF_REVIEW_PROHIBITED": "Self-review is prohibited"
96+
}
9497
}
9598
},
9699
"POPUP": {

messages/en.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,10 @@
9090
"REPLY_TO_REVIEW_MESSAGE": "Leave your reply to the above review",
9191
"FACE_SELECTION_REVIEW_MESSAGE": "Select the face which shows how you feel about the above review",
9292
"ADDITIONAL_COMMENTS_PLACEHOLDER": "Enter additional comments here",
93-
"FEEDBACK_PHOTO_UPLOAD_LABEL": "Feedback photo upload"
93+
"FEEDBACK_PHOTO_UPLOAD_LABEL": "Feedback photo upload",
94+
"VALIDATION": {
95+
"SELF_REVIEW_PROHIBITED": "Self-review is prohibited"
96+
}
9497
}
9598
},
9699
"POPUP": {

messages/es.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,10 @@
9090
"REPLY_TO_REVIEW_MESSAGE": "Deja tu respuesta a la reseña anterior",
9191
"FACE_SELECTION_REVIEW_MESSAGE": "Selecciona la cara que muestra cómo te sientes sobre la reseña anterior",
9292
"ADDITIONAL_COMMENTS_PLACEHOLDER": "Introduce comentarios adicionales aquí",
93-
"FEEDBACK_PHOTO_UPLOAD_LABEL": "Subir foto de retroalimentación"
93+
"FEEDBACK_PHOTO_UPLOAD_LABEL": "Subir foto de retroalimentación",
94+
"VALIDATION": {
95+
"SELF_REVIEW_PROHIBITED": "La autoevaluación está prohibida"
96+
}
9497
}
9598
},
9699
"POPUP": {

messages/ewe-BJ.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,10 @@
9090
"REPLY_TO_REVIEW_MESSAGE": "Xɔ le ŋutɔ sia sɔlɔɖe ɖe doaɖe lɔme",
9191
"FACE_SELECTION_REVIEW_MESSAGE": "Dzi le vavaŋuto ɖe ŋutɔ le wo ɖe sɔlɔɖe ɖe lɔme dziwo",
9292
"ADDITIONAL_COMMENTS_PLACEHOLDER": "Xɔ le vavaŋuto ŋutɔ kple kple",
93-
"FEEDBACK_PHOTO_UPLOAD_LABEL": "Photo na vovɔ"
93+
"FEEDBACK_PHOTO_UPLOAD_LABEL": "Photo na vovɔ",
94+
"VALIDATION": {
95+
"SELF_REVIEW_PROHIBITED": "Wòdzɔ wò nɔnɔ kple wòkplɔ míaɖu o"
96+
}
9497
}
9598
},
9699
"POPUP": {

messages/hau-NG.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,10 @@
9090
"REPLY_TO_REVIEW_MESSAGE": "Bar amsar ku ga bita ta sama",
9191
"FACE_SELECTION_REVIEW_MESSAGE": "Zaɓi fuskar da ke nuna yadda kuke ji game da mai siyarwa da ke sama",
9292
"ADDITIONAL_COMMENTS_PLACEHOLDER": "Shigar da karin sharhi a nan",
93-
"FEEDBACK_PHOTO_UPLOAD_LABEL": "Loda Hoto Martani"
93+
"FEEDBACK_PHOTO_UPLOAD_LABEL": "Loda Hoto Martani",
94+
"VALIDATION": {
95+
"SELF_REVIEW_PROHIBITED": "Binciken kai an hana"
96+
}
9497
}
9598
},
9699
"POPUP": {

messages/ko.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,10 @@
9090
"REPLY_TO_REVIEW_MESSAGE": "위 리뷰에 대한 답장을 남기세요",
9191
"FACE_SELECTION_REVIEW_MESSAGE": "위 리뷰에 대한 느낌을 나타내는 얼굴을 선택하세요",
9292
"ADDITIONAL_COMMENTS_PLACEHOLDER": "추가 의견을 입력하세요",
93-
"FEEDBACK_PHOTO_UPLOAD_LABEL": "피드백 사진 업로드"
93+
"FEEDBACK_PHOTO_UPLOAD_LABEL": "피드백 사진 업로드",
94+
"VALIDATION": {
95+
"SELF_REVIEW_PROHIBITED": "자기 평가는 금지되어 있습니다"
96+
}
9497
}
9598
},
9699
"POPUP": {

src/app/[locale]/seller/registration/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ const SellerRegistrationForm = () => {
225225
formDataToSend.append('image', '');
226226
}
227227

228-
logger.info('Registration form data:', JSON.stringify({ formDataToSend }));
228+
logger.info('Registration form data:', Object.fromEntries(formDataToSend.entries()));
229229

230230
try {
231231
const data = await registerSeller(formDataToSend);

src/app/[locale]/seller/reviews/[id]/page.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -128,9 +128,9 @@ function SellerReviews({
128128
<Image
129129
src={item.image}
130130
alt="emoji image"
131-
layout="fill"
132-
objectFit="cover"
133-
sizes="(max-width: 768px) 100vw, 64px"
131+
fill
132+
sizes="(max-width: 768px) 100vw, (max-width: 1200px) 50vw, 33vw"
133+
style={{ objectFit: 'contain', maxHeight: '200px', maxWidth: '100%' }}
134134
/>
135135
</div>
136136
<div className="flex gap-3 text-[#828282]">

src/app/[locale]/seller/sale-items/[id]/page.tsx

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -113,10 +113,13 @@ export default function BuyFromSellerForm({ params }: { params: { id: string } }
113113
{/* Seller Profile */}
114114
<div className="flex gap-4 align-center mb-6 relative">
115115
<div className="rounded-[50%] w-[65px] h-[65px] relative">
116-
<Image alt="seller logo"
117-
src={sellerShopInfo.image && sellerShopInfo.image.trim() !== "" ? sellerShopInfo.image : process.env.NEXT_PUBLIC_IMAGE_PLACEHOLDER_URL || '/images/shared/upload.png'}
118-
fill={true}
116+
<Image
119117
className="rounded-[50%]"
118+
src={sellerShopInfo.image && sellerShopInfo.image.trim() !== "" ? sellerShopInfo.image : process.env.NEXT_PUBLIC_IMAGE_PLACEHOLDER_URL || '/images/shared/upload.png'}
119+
alt="seller logo"
120+
fill
121+
sizes="(max-width: 768px) 100vw, (max-width: 1200px) 50vw, 33vw"
122+
style={{ objectFit: 'cover', maxHeight: '200px', maxWidth: '100%' }}
120123
/>
121124
</div>
122125
<div className="my-auto">

src/components/shared/Review/emojipicker.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,10 @@ export default function EmojiPicker(props: any) {
9393
const handleSave = async () => {
9494
try {
9595
if (props.currentUser) {
96+
if (props.currentUser.pi_uid === props.sellerId) {
97+
logger.warn(`Attempted self review by user ${props.currentUser.pi_uid}`);
98+
toast.error(t('SCREEN.REPLY_TO_REVIEW.VALIDATION.SELF_REVIEW_PROHIBITED'));
99+
}
96100
if (reviewEmoji === null) {
97101
logger.warn('Attempted to save review without selecting an emoji.');
98102
return window.alert(t('SHARED.REACTION_RATING.VALIDATION.SELECT_EMOJI_EXPRESSION'));

0 commit comments

Comments
 (0)