Skip to content

Commit 6389773

Browse files
committed
Merge remote-tracking branch 'origin/dev' into feature/map-centers-ui-adjustments
2 parents c3b1df0 + 752c375 commit 6389773

File tree

16 files changed

+189
-132
lines changed

16 files changed

+189
-132
lines changed

messages/en-GB.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,6 @@
7171
"SELLER_DETAILS_LABEL": "Seller Details",
7272
"SELLER_ADDRESS_POSITION_LABEL": "Seller Address or Position",
7373
"LEAVE_A_REVIEW_MESSAGE": "Leave a Review",
74-
"FACE_SELECTION_REVIEW_MESSAGE": "Select the face which shows how you feel about the above seller",
7574
"ADDITIONAL_COMMENTS_PLACEHOLDER": "Enter additional comments here",
7675
"FEEDBACK_PHOTO_UPLOAD_LABEL": "Feedback photo upload",
7776
"REVIEWS_SUMMARY_LABEL": "Reviews Summary",

messages/es.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,6 @@
7171
"SELLER_DETAILS_LABEL": "Detalles del Vendedor",
7272
"SELLER_ADDRESS_POSITION_LABEL": "Dirección o Posición del Vendedor",
7373
"LEAVE_A_REVIEW_MESSAGE": "Dejar una Reseña",
74-
"FACE_SELECTION_REVIEW_MESSAGE": "Selecciona la cara que muestra cómo te sientes sobre el vendedor anterior",
7574
"ADDITIONAL_COMMENTS_PLACEHOLDER": "Introduce comentarios adicionales aquí",
7675
"FEEDBACK_PHOTO_UPLOAD_LABEL": "Subir foto de retroalimentación",
7776
"REVIEWS_SUMMARY_LABEL": "Resumen de Reseñas",

messages/ewe-BJ.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,6 @@
7171
"SELLER_DETAILS_LABEL": "Nàƒé Wòkpɔ̃nɔ ƒé Nunya",
7272
"SELLER_ADDRESS_POSITION_LABEL": "Nàƒé Wòkpɔ̃nɔ ƒé Adrεs kple Nudɔla",
7373
"LEAVE_A_REVIEW_MESSAGE": "Nà tsɔ asi kple wɔ gɔmesese",
74-
"FACE_SELECTION_REVIEW_MESSAGE": "Dzi le vavaŋuto ɖe ŋutɔ le wo ɖe wo dzidzakpɔtɔviwo dziwo",
7574
"ADDITIONAL_COMMENTS_PLACEHOLDER": "Xɔ le vavaŋuto ŋutɔ kple kple",
7675
"FEEDBACK_PHOTO_UPLOAD_LABEL": "Photo na vovɔ",
7776
"REVIEWS_SUMMARY_LABEL": "Sɔlɔɖe ɖe do",

messages/hau-NG.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,6 @@
7171
"SELLER_DETAILS_LABEL": "Bayanin Mai Sayarwa",
7272
"SELLER_ADDRESS_POSITION_LABEL": "Adireshin Ko Matsayin Mai Sayarwa",
7373
"LEAVE_A_REVIEW_MESSAGE": "Bar Saƙon Bita",
74-
"FACE_SELECTION_REVIEW_MESSAGE": "Zaɓi fuskar da ke nuna yadda kuke ji game da mai siyarwa da ke sama",
7574
"ADDITIONAL_COMMENTS_PLACEHOLDER": "Shigar da karin sharhi a nan",
7675
"FEEDBACK_PHOTO_UPLOAD_LABEL": "Loda Hoto Martani",
7776
"REVIEWS_SUMMARY_LABEL": "Takaitaccen Bayanin Sake Dubawa",

messages/ko.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,6 @@
7171
"SELLER_DETAILS_LABEL": "판매자 세부 정보",
7272
"SELLER_ADDRESS_POSITION_LABEL": "판매자 주소 또는 위치",
7373
"LEAVE_A_REVIEW_MESSAGE": "리뷰 남기기",
74-
"FACE_SELECTION_REVIEW_MESSAGE": "위 판매자에 대한 느낌을 나타내는 얼굴을 선택하세요",
7574
"ADDITIONAL_COMMENTS_PLACEHOLDER": "추가 의견을 입력하세요",
7675
"FEEDBACK_PHOTO_UPLOAD_LABEL": "피드백 사진 업로드",
7776
"REVIEWS_SUMMARY_LABEL": "리뷰 요약",

package-lock.json

Lines changed: 8 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
"leaflet-geosearch": "^3.11.1",
3535
"loglevel": "^1.9.1",
3636
"next": "^14.2.4",
37-
"next-intl": "^3.19.1",
37+
"next-intl": "^3.21.1",
3838
"next-logger": "^4.0.0",
3939
"next-themes": "^0.3.0",
4040
"ngx-logger": "^5.0.12",

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -401,7 +401,7 @@ const SellerRegistrationForm = () => {
401401
})}
402402
</p>
403403
{ !isSaveEnabled ? (
404-
<Link href={dbSeller ? `/seller/reviews/${dbSeller.seller_id}` : '#'}>
404+
<Link href={dbSeller ? `/seller/reviews/${dbSeller.seller_id}?user_name=${currentUser?.pi_username}` : '#'}>
405405
<OutlineBtn
406406
disabled={!currentUser}
407407
label={t('SHARED.CHECK_REVIEWS')}
@@ -410,7 +410,7 @@ const SellerRegistrationForm = () => {
410410
<OutlineBtn
411411
disabled={!currentUser}
412412
label={t('SHARED.CHECK_REVIEWS')}
413-
onClick={()=>handleNavigation(dbSeller ? `/seller/reviews/${dbSeller.seller_id}` : '#')}
413+
onClick={()=>handleNavigation(dbSeller ? `/seller/reviews/${dbSeller.seller_id}?user_name=${currentUser?.pi_username}` : '#')}
414414
/> )
415415
}
416416
</div>

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

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ function SellerReviews({
3939
searchParams: any;
4040
}) {
4141
const t = useTranslations();
42-
const userName = searchParams.seller_name;
42+
const userName = searchParams.user_name;
4343
const userId = params.id;
4444

4545
const [giverReviews, setGiverReviews] = useState<ReviewInt[] | null>(null);
@@ -157,18 +157,19 @@ function SellerReviews({
157157

158158
{/* Search area */}
159159
<div className='flex gap-3 items-center justify-items-center py-3'>
160-
<span>{t('SHARED.PIONEER_LABEL')}</span>
160+
<span>{t('SHARED.PIONEER_LABEL')}</span>
161161
<FormControl className="flex-grow mr-2">
162162
<TextField
163163
id="search-input"
164164
type="text"
165165
variant="outlined"
166166
color="success"
167167
className="bg-none hover:bg-gray-100 w-full rounded-lg"
168-
label={t('SHARED.SEARCH_REVIEWS')}
168+
placeholder={userName}
169169
value={searchBarValue}
170170
onChange={handleSearchBarChange}
171171
ref={inputRef}
172+
autoCorrect="off"
172173
/>
173174
</FormControl>
174175
<button

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

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ export default function ReplyToReviewPage({ params, searchParams }: ReplyToRevie
5252
const [loading, setLoading] = useState<boolean>(true);
5353
const [error, setError] = useState<string | null>(null);
5454
const [direction, setDirection] = useState('');
55-
55+
const [reload, setReload] = useState<boolean>(false);
5656
const { currentUser, autoLoginUser } = useContext(AppContext);
5757

5858
const processReviews = (data: IReviewOutput[]): ReviewInt[] => {
@@ -86,6 +86,7 @@ export default function ReplyToReviewPage({ params, searchParams }: ReplyToRevie
8686
setLoading(true);
8787
try {
8888
logger.info(`Fetching review data for review ID: ${reviewId}`);
89+
setReload(false)
8990
const data = await fetchSingleReview(reviewId);
9091

9192
if (data.review) {
@@ -107,7 +108,7 @@ export default function ReplyToReviewPage({ params, searchParams }: ReplyToRevie
107108
};
108109

109110
getReviewData();
110-
}, [reviewId, currentUser, reviews.length]);
111+
}, [reviewId, currentUser, reload]);
111112

112113
// Scroll functions
113114
const prevSlide = () => {
@@ -213,6 +214,7 @@ export default function ReplyToReviewPage({ params, searchParams }: ReplyToRevie
213214
setIsSaveEnabled={setIsSaveEnabled}
214215
replyToReviewId={reviews[currentIndex]?.reviewId}
215216
currentUser={currentUser}
217+
setReload={setReload}
216218
/>
217219
</div>
218220
)}

0 commit comments

Comments
 (0)