[251216] fix: Panel logs update - 1

🕐 커밋 시간: 2025. 12. 16. 12:39:11

📊 변경 통계:
  • 총 파일: 3개
  • 추가: +20줄
  • 삭제: -8줄

📝 수정된 파일:
  ~ com.twin.app.shoptime/src/middleware/panelHistoryMiddleware.js
  ~ com.twin.app.shoptime/src/views/DetailPanel/DetailPanel.jsx
  ~ com.twin.app.shoptime/src/views/PlayerPanel/PlayerPanel.jsx

🔧 주요 변경 내용:
  • 핵심 비즈니스 로직 개선
This commit is contained in:
2025-12-16 12:39:12 +09:00
parent 99ea3e6595
commit 55af96bd00
3 changed files with 20 additions and 8 deletions

View File

@@ -431,6 +431,7 @@ const PlayerPanel = ({ isTabActivated, panelInfo, isOnTop, spotlightId, ...props
};
}
console.log('[PANEL] PlayerPanel updatePanel - detailPanelClosed reset');
dispatch(
updatePanel({
name: panel_names.PLAYER_PANEL,
@@ -647,6 +648,7 @@ const PlayerPanel = ({ isTabActivated, panelInfo, isOnTop, spotlightId, ...props
useEffect(() => {
if (currentLiveShowInfo && Object.keys(currentLiveShowInfo).length > 0) {
if (currentLiveShowInfo.showId !== panelInfo?.showId) {
console.log('[PANEL] PlayerPanel updatePanel - LIVE showId update');
dispatch(
updatePanel({
name: panel_names.PLAYER_PANEL,
@@ -1146,6 +1148,7 @@ const PlayerPanel = ({ isTabActivated, panelInfo, isOnTop, spotlightId, ...props
videoPlayer.current?.hideControls();
setSelectedIndex(backupInitialIndex);
if (panelInfo.shptmBanrTpNm === 'MEDIA') {
console.log('[PANEL] PlayerPanel updatePanel - DETAIL_PANEL launchedFromPlayer false');
dispatch(
updatePanel({
name: panel_names.DETAIL_PANEL,
@@ -1858,6 +1861,7 @@ const PlayerPanel = ({ isTabActivated, panelInfo, isOnTop, spotlightId, ...props
window.requestAnimationFrame(() => {
window.requestAnimationFrame(() => {
dlog('[PlayerPanel] Condition 2.5: Removing skipFlag after DOM render');
console.log('[PANEL] PlayerPanel updatePanel - skipModalStyleRecalculation remove');
dispatch(
updatePanel({
name: panel_names.PLAYER_PANEL,
@@ -1898,6 +1902,7 @@ const PlayerPanel = ({ isTabActivated, panelInfo, isOnTop, spotlightId, ...props
scale = width / window.innerWidth;
setModalScale(scale);
}
console.log('[PANEL] PlayerPanel updatePanel - modalStyle and scale update');
dispatch(
updatePanel({
name: panel_names.PLAYER_PANEL,
@@ -2223,6 +2228,7 @@ const PlayerPanel = ({ isTabActivated, panelInfo, isOnTop, spotlightId, ...props
);
Spotlight.focus('playVideoShopNowBox');
} else {
console.log('[PANEL] PlayerPanel updatePanel - handleIndicatorDownClick');
dispatch(
updatePanel({
name: panel_names.PLAYER_PANEL,
@@ -2270,6 +2276,7 @@ const PlayerPanel = ({ isTabActivated, panelInfo, isOnTop, spotlightId, ...props
);
Spotlight.focus('playVideoShopNowBox');
} else {
console.log('[PANEL] PlayerPanel updatePanel - handleIndicatorUpClick');
dispatch(
updatePanel({
name: panel_names.PLAYER_PANEL,
@@ -2389,6 +2396,7 @@ const PlayerPanel = ({ isTabActivated, panelInfo, isOnTop, spotlightId, ...props
const onEnded = useCallback(
(e) => {
if (panelInfoRef.current.shptmBanrTpNm === 'MEDIA') {
console.log('[PANEL] PlayerPanel updatePanel - DETAIL_PANEL video ended');
dispatch(
updatePanel({
name: panel_names.DETAIL_PANEL,