통합 로그 피드백 수정
This commit is contained in:
@@ -72,12 +72,13 @@ const TabItemBase = ({
|
|||||||
if (spotlightId) {
|
if (spotlightId) {
|
||||||
setLastFocusId(spotlightId);
|
setLastFocusId(spotlightId);
|
||||||
}
|
}
|
||||||
if(target){
|
if (target) {
|
||||||
dispatch(
|
dispatch(
|
||||||
sendLogTotalRecommend({
|
sendLogTotalRecommend({
|
||||||
contextName: LOG_CONTEXT_NAME.GNB,
|
contextName: LOG_CONTEXT_NAME.GNB,
|
||||||
messageId: LOG_MESSAGE_ID.GNB,
|
messageId: LOG_MESSAGE_ID.GNB,
|
||||||
buttonTitle: title,
|
buttonTitle: title,
|
||||||
|
buttonId: `GNB_CLICK_${title.toUpperCase().replace(" ", "_")}`,
|
||||||
})
|
})
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -44,7 +44,7 @@ const TabItemBase = ({
|
|||||||
const _onClick = useCallback(
|
const _onClick = useCallback(
|
||||||
(ev) => {
|
(ev) => {
|
||||||
const subtitle = title.split("-")[0];
|
const subtitle = title.split("-")[0];
|
||||||
|
const buttonTitle = patncNm ? patncNm : subtitle;
|
||||||
clearPressedJob.current.start(() => {
|
clearPressedJob.current.start(() => {
|
||||||
if (itemId) {
|
if (itemId) {
|
||||||
setSelectedSubItemId(itemId);
|
setSelectedSubItemId(itemId);
|
||||||
@@ -62,7 +62,8 @@ const TabItemBase = ({
|
|||||||
sendLogTotalRecommend({
|
sendLogTotalRecommend({
|
||||||
contextName: LOG_CONTEXT_NAME.GNB,
|
contextName: LOG_CONTEXT_NAME.GNB,
|
||||||
messageId: LOG_MESSAGE_ID.GNB,
|
messageId: LOG_MESSAGE_ID.GNB,
|
||||||
buttonTitle: patncNm ? patncNm : subtitle,
|
buttonTitle: buttonTitle,
|
||||||
|
buttonId: `GNB_CLICK_${buttonTitle.toUpperCase().replace(" ", "_")}`,
|
||||||
})
|
})
|
||||||
);
|
);
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -1536,7 +1536,6 @@ const PlayerPanel = ({
|
|||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
return playListInfo && playListInfo[selectedIndex]?.showUrl;
|
return playListInfo && playListInfo[selectedIndex]?.showUrl;
|
||||||
}, [playListInfo, selectedIndex, broadcast]);
|
}, [playListInfo, selectedIndex, broadcast]);
|
||||||
|
|
||||||
@@ -2045,8 +2044,8 @@ const PlayerPanel = ({
|
|||||||
showType: isShowType,
|
showType: isShowType,
|
||||||
player: isPlayer,
|
player: isPlayer,
|
||||||
category: showDetailInfo[0].showCatNm,
|
category: showDetailInfo[0].showCatNm,
|
||||||
contentId: showDetailInfo[0].showId,
|
showId: showDetailInfo[0].showId,
|
||||||
contentTitle: showDetailInfo[0].showNm,
|
showTitle: showDetailInfo[0].showNm,
|
||||||
partner: showDetailInfo[0].patncNm,
|
partner: showDetailInfo[0].patncNm,
|
||||||
contextName: Config.LOG_CONTEXT_NAME.SHOW,
|
contextName: Config.LOG_CONTEXT_NAME.SHOW,
|
||||||
messageId: Config.LOG_MESSAGE_ID.SHOWVIEW,
|
messageId: Config.LOG_MESSAGE_ID.SHOWVIEW,
|
||||||
@@ -2058,7 +2057,7 @@ const PlayerPanel = ({
|
|||||||
showType: isShowType,
|
showType: isShowType,
|
||||||
player: isPlayer,
|
player: isPlayer,
|
||||||
category: currentItem.catNm,
|
category: currentItem.catNm,
|
||||||
contentId: currentItem.showId,
|
showId: currentItem.showId,
|
||||||
contentTitle: currentItem.showNm,
|
contentTitle: currentItem.showNm,
|
||||||
partner: currentItem.patncNm,
|
partner: currentItem.patncNm,
|
||||||
contextName: Config.LOG_CONTEXT_NAME.SHOW,
|
contextName: Config.LOG_CONTEXT_NAME.SHOW,
|
||||||
@@ -2089,7 +2088,7 @@ const PlayerPanel = ({
|
|||||||
dispatch(sendLogTotalRecommend(params));
|
dispatch(sendLogTotalRecommend(params));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}, [isVODPaused, createLogParams]);
|
}, [isVODPaused, createLogParams, showDetailInfo]);
|
||||||
|
|
||||||
// 컴포넌트 언마운트 시에만 로그를 보냄
|
// 컴포넌트 언마운트 시에만 로그를 보냄
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
@@ -2099,7 +2098,7 @@ const PlayerPanel = ({
|
|||||||
dispatch(sendLogTotalRecommend(params));
|
dispatch(sendLogTotalRecommend(params));
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
}, [createLogParams, dispatch]);
|
}, [createLogParams, dispatch, showDetailInfo]);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<TPanel
|
<TPanel
|
||||||
|
|||||||
Reference in New Issue
Block a user