From 8360acb59442573839b963a8419746aac73ab480 Mon Sep 17 00:00:00 2001 From: optrader Date: Fri, 31 Oct 2025 13:51:43 +0900 Subject: [PATCH] [251031] fix: UserReviewList Filtering MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ๐Ÿ• ์ปค๋ฐ‹ ์‹œ๊ฐ„: 2025. 10. 31. 13:51:42 ๐Ÿ“Š ๋ณ€๊ฒฝ ํ†ต๊ณ„: โ€ข ์ด ํŒŒ์ผ: 1๊ฐœ โ€ข ์ถ”๊ฐ€: +8์ค„ โ€ข ์‚ญ์ œ: -8์ค„ ๐Ÿ“ ์ˆ˜์ •๋œ ํŒŒ์ผ: ~ com.twin.app.shoptime/src/actions/productActions.js ๐Ÿ”ง ์ฃผ์š” ๋ณ€๊ฒฝ ๋‚ด์šฉ: โ€ข ํ•ต์‹ฌ ๋น„์ฆˆ๋‹ˆ์Šค ๋กœ์ง ๊ฐœ์„  โ€ข ์ฝ”๋“œ ์ •๋ฆฌ ๋ฐ ์ตœ์ ํ™” --- .../src/actions/productActions.js | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/com.twin.app.shoptime/src/actions/productActions.js b/com.twin.app.shoptime/src/actions/productActions.js index 4c911800..e0f77cf3 100644 --- a/com.twin.app.shoptime/src/actions/productActions.js +++ b/com.twin.app.shoptime/src/actions/productActions.js @@ -320,7 +320,7 @@ const fetchAllReviewsWithSequentialPaging = async (dispatch, getState, requestPa pageSize = 100, // ์ตœ๋Œ€๊ฐ’์œผ๋กœ ์„ค์ •ํ•˜์—ฌ ํŽ˜์ด์ง• ํšŸ์ˆ˜ ์ตœ์†Œํ™” } = requestParams; - console.log('[UserReviewPanel] ๐Ÿš€ ์ˆœ์ฐจ ํŽ˜์ด์ง• ์‹œ์ž‘:', { + console.log('[UserReviewList] ๐Ÿš€ ์ˆœ์ฐจ ํŽ˜์ด์ง• ์‹œ์ž‘:', { prdtId, patnrId, filterTpCd, @@ -348,7 +348,7 @@ const fetchAllReviewsWithSequentialPaging = async (dispatch, getState, requestPa // filterTpCd๊ฐ€ 'ALL'์ด ์•„๋‹ˆ๋ฉด filterTpVal ์ถ”๊ฐ€ if (filterTpCd !== 'ALL') { if (!filterTpVal) { - console.warn('[UserReviewPanel] โš ๏ธ filterTpCd๊ฐ€ ALL์ด ์•„๋‹ˆ๋ฉด filterTpVal์€ ํ•„์ˆ˜์ž…๋‹ˆ๋‹ค'); + console.warn('[UserReviewList] โš ๏ธ filterTpCd๊ฐ€ ALL์ด ์•„๋‹ˆ๋ฉด filterTpVal์€ ํ•„์ˆ˜์ž…๋‹ˆ๋‹ค'); } params.filterTpVal = filterTpVal; } @@ -360,7 +360,7 @@ const fetchAllReviewsWithSequentialPaging = async (dispatch, getState, requestPa TAxios(dispatch, getState, 'get', URLS.GET_USER_REVIEW_LIST, params, {}, onSuccess, onFail); }); - console.log(`[UserReviewPanel] ๐Ÿ“„ ํŽ˜์ด์ง€ ${pageNo} ์‘๋‹ต:`, { + console.log(`[UserReviewList] ๐Ÿ“„ ํŽ˜์ด์ง€ ${pageNo} ์‘๋‹ต:`, { pageNo, reviewListLength: response.data?.data?.reviewDetail?.reviewList?.length || 0, totRvwCnt: response.data?.data?.reviewDetail?.totRvwCnt, @@ -371,7 +371,7 @@ const fetchAllReviewsWithSequentialPaging = async (dispatch, getState, requestPa const reviewData = extractReviewListApiData(response.data); if (!reviewData || !reviewData.reviewList) { - console.warn('[UserReviewPanel] โš ๏ธ ๋ฆฌ๋ทฐ ๋ฐ์ดํ„ฐ ์ถ”์ถœ ์‹คํŒจ, ํŽ˜์ด์ง• ์ข…๋ฃŒ'); + console.warn('[UserReviewList] โš ๏ธ ๋ฆฌ๋ทฐ ๋ฐ์ดํ„ฐ ์ถ”์ถœ ์‹คํŒจ, ํŽ˜์ด์ง• ์ข…๋ฃŒ'); break; } @@ -383,7 +383,7 @@ const fetchAllReviewsWithSequentialPaging = async (dispatch, getState, requestPa // 5. ํ˜„์žฌ ํŽ˜์ด์ง€์˜ ๋ฆฌ๋ทฐ๋“ค์„ ์ „์ฒด ๋ฆฌ์ŠคํŠธ์— ์ถ”๊ฐ€ allReviews = allReviews.concat(reviewData.reviewList); - console.log(`[UserReviewPanel] โœ… ํŽ˜์ด์ง€ ${pageNo} ์ˆ˜์ง‘ ์™„๋ฃŒ:`, { + console.log(`[UserReviewList] โœ… ํŽ˜์ด์ง€ ${pageNo} ์ˆ˜์ง‘ ์™„๋ฃŒ:`, { pageNo, currentPageCount: reviewData.reviewList.length, totalCollected: allReviews.length, @@ -398,7 +398,7 @@ const fetchAllReviewsWithSequentialPaging = async (dispatch, getState, requestPa if (receivedCount < pageSize || allReviews.length >= totalReviews) { hasMore = false; - console.log('[UserReviewPanel] ๐Ÿ“Š ํŽ˜์ด์ง• ์ข…๋ฃŒ:', { + console.log('[UserReviewList] ๐Ÿ“Š ํŽ˜์ด์ง• ์ข…๋ฃŒ:', { reason: receivedCount < pageSize ? '๋ฐ›์€ ๊ฐœ์ˆ˜ < pageSize' : '์ˆ˜์ง‘๋œ ๊ฐœ์ˆ˜ >= ์ด ๊ฐœ์ˆ˜', receivedCount, pageSize, @@ -411,7 +411,7 @@ const fetchAllReviewsWithSequentialPaging = async (dispatch, getState, requestPa } // 7. ๋ชจ๋“  ๋ฆฌ๋ทฐ ์ˆ˜์ง‘ ์™„๋ฃŒ, Redux์— ๋””์ŠคํŒจ์น˜ - console.log('[UserReviewPanel] ๐ŸŽ‰ ๋ชจ๋“  ๋ฆฌ๋ทฐ ์ˆ˜์ง‘ ์™„๋ฃŒ:', { + console.log('[UserReviewList] ๐ŸŽ‰ ๋ชจ๋“  ๋ฆฌ๋ทฐ ์ˆ˜์ง‘ ์™„๋ฃŒ:', { totalCollected: allReviews.length, totRvwCnt: currentReviewDetail?.totRvwCnt, pages: pageNo - 1 @@ -433,7 +433,7 @@ const fetchAllReviewsWithSequentialPaging = async (dispatch, getState, requestPa payload: finalPayload }; - console.log('[UserReviewPanel] ๐Ÿ“ฆ Redux ๋””์ŠคํŒจ์น˜:', { + console.log('[UserReviewList] ๐Ÿ“ฆ Redux ๋””์ŠคํŒจ์น˜:', { actionType, totalReviews: allReviews.length, totRvwCnt: currentReviewDetail?.totRvwCnt,