From db7bc4b2edc962e15cbb68dede1984b86ac1aeec Mon Sep 17 00:00:00 2001 From: optrader Date: Wed, 10 Dec 2025 12:28:03 +0900 Subject: [PATCH] =?UTF-8?q?[251210]=20feat:=20brandBestSelleInfo=20?= =?UTF-8?q?=EC=B2=98=EB=A6=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 🕐 커밋 시간: 2025. 12. 10. 12:28:02 📊 변경 통계: • 총 파일: 3개 • 추가: +17줄 • 삭제: -2줄 📝 수정된 파일: ~ com.twin.app.shoptime/src/actions/brandActions.js ~ com.twin.app.shoptime/src/views/FeaturedBrandsPanel/FeaturedBestSeller/FeaturedBestSeller.jsx ~ com.twin.app.shoptime/src/views/FeaturedBrandsPanel/FeaturedBrandsPanel.jsx 🔧 주요 변경 내용: • 핵심 비즈니스 로직 개선 --- com.twin.app.shoptime/src/actions/brandActions.js | 5 ++++- .../FeaturedBestSeller/FeaturedBestSeller.jsx | 9 ++++++++- .../views/FeaturedBrandsPanel/FeaturedBrandsPanel.jsx | 5 +++++ 3 files changed, 17 insertions(+), 2 deletions(-) diff --git a/com.twin.app.shoptime/src/actions/brandActions.js b/com.twin.app.shoptime/src/actions/brandActions.js index bd1c7f02..b2202331 100644 --- a/com.twin.app.shoptime/src/actions/brandActions.js +++ b/com.twin.app.shoptime/src/actions/brandActions.js @@ -344,7 +344,10 @@ export const getBrandBestSeller = (props) => (dispatch, getState) => { dispatch(changeAppStatus({ showLoadingPanel: { show: true, type: 'wait' } })); const onSuccess = (response) => { - console.log("[getBrandBestSeller] onSuccess - patnrId:", patnrId, "data:", response.data.data); + console.log("[getBrandBestSeller] onSuccess - patnrId:", patnrId); + console.log("[getBrandBestSeller] Full response:", response.data.data); + console.log("[getBrandBestSeller] brandBestSellerInfo:", response.data.data.brandBestSellerInfo); + console.log("[getBrandBestSeller] brandBestSellerTitle in response:", response.data.data.brandBestSellerTitle); dispatch({ type: types.GET_BRAND_BEST_SELLER, diff --git a/com.twin.app.shoptime/src/views/FeaturedBrandsPanel/FeaturedBestSeller/FeaturedBestSeller.jsx b/com.twin.app.shoptime/src/views/FeaturedBrandsPanel/FeaturedBestSeller/FeaturedBestSeller.jsx index 0eb19682..5136aa46 100644 --- a/com.twin.app.shoptime/src/views/FeaturedBrandsPanel/FeaturedBestSeller/FeaturedBestSeller.jsx +++ b/com.twin.app.shoptime/src/views/FeaturedBrandsPanel/FeaturedBestSeller/FeaturedBestSeller.jsx @@ -19,6 +19,7 @@ const Container = SpotlightContainerDecorator( const FeaturedBestSeller = ({ brandBestSellerInfo, + brandBestSellerTitle, handleItemFocus, order, shelfOrder, @@ -28,6 +29,12 @@ const FeaturedBestSeller = ({ }) => { const [firstChk, setFirstChk] = useState(0); + // brandBestSellerTitle 우선 사용, 없으면 shelfTitle, 없으면 기본값 + const displayTitle = brandBestSellerTitle || shelfTitle || $L(STRING_CONF.BEST_SELLER); + + console.log("[FeaturedBestSeller] brandBestSellerTitle:", brandBestSellerTitle); + console.log("[FeaturedBestSeller] displayTitle:", displayTitle); + const _handleItemFocus = useCallback(() => { if (handleItemFocus) handleItemFocus(spotlightId, shelfOrder); @@ -65,7 +72,7 @@ const FeaturedBestSeller = ({ spotlightId={spotlightId} > diff --git a/com.twin.app.shoptime/src/views/FeaturedBrandsPanel/FeaturedBrandsPanel.jsx b/com.twin.app.shoptime/src/views/FeaturedBrandsPanel/FeaturedBrandsPanel.jsx index fa3744c1..2253b57d 100644 --- a/com.twin.app.shoptime/src/views/FeaturedBrandsPanel/FeaturedBrandsPanel.jsx +++ b/com.twin.app.shoptime/src/views/FeaturedBrandsPanel/FeaturedBrandsPanel.jsx @@ -237,6 +237,9 @@ const FeaturedBrandsPanel = ({ isOnTop, panelInfo, spotlightId }) => { const brandBestSellerInfo = useSelector( (state) => state.brand.brandBestSellerData.data.brandBestSellerInfo ); + const brandBestSellerTitle = useSelector( + (state) => state.brand.brandBestSellerData.data.brandBestSellerTitle + ); const brandRecommendedShowCategoryInfo = useSelector( (state) => state.brand.brandRecommendedShowInfoData.data @@ -513,6 +516,7 @@ const FeaturedBrandsPanel = ({ isOnTop, panelInfo, spotlightId }) => { {console.log("[FeaturedBrandsPanel] Rendering FeaturedBestSeller for patnrId:", selectedPatnrId)} { ); }, [ brandBestSellerInfo, + brandBestSellerTitle, brandCategoryInfo, brandCategoryProductInfo, brandChanInfo,