[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:
@@ -81,7 +81,7 @@ export const panelHistoryMiddleware = (store) => (next) => (action) => {
|
||||
const isGNB = isGNBCall();
|
||||
const isOnTop = calculateIsOnTop(panelName); // 🎯 isOnTop 계산
|
||||
if (DEBUG_MODE)
|
||||
console.log('[PANEL] PUSH_PANEL:', {
|
||||
console.log(`[PANEL] PUSH_PANEL: ${panelName}`, {
|
||||
panelName,
|
||||
panelInfo,
|
||||
isGNB,
|
||||
@@ -126,7 +126,7 @@ export const panelHistoryMiddleware = (store) => (next) => (action) => {
|
||||
if (panels.length > 0) {
|
||||
const topPanel = panels[panels.length - 1];
|
||||
if (DEBUG_MODE) {
|
||||
console.log('[PANEL-TRACE] POP_PANEL middleware stack', {
|
||||
console.log(`[PANEL-TRACE] POP_PANEL middleware stack: ${topPanel?.name}`, {
|
||||
stack: panels.map((p) => p.name),
|
||||
topPanel: topPanel?.name,
|
||||
payload: action.payload,
|
||||
@@ -137,7 +137,7 @@ export const panelHistoryMiddleware = (store) => (next) => (action) => {
|
||||
const isGNB = isGNBCall();
|
||||
const isOnTop = calculateIsOnTop(topPanel.name); // 🎯 isOnTop 계산
|
||||
if (DEBUG_MODE)
|
||||
console.log('[PANEL] POP_PANEL:', {
|
||||
console.log(`[PANEL] POP_PANEL: ${topPanel.name}`, {
|
||||
panelName: topPanel.name,
|
||||
panelInfo: topPanel.panelInfo || {},
|
||||
isGNB,
|
||||
@@ -185,7 +185,7 @@ export const panelHistoryMiddleware = (store) => (next) => (action) => {
|
||||
const isGNB = isGNBCall();
|
||||
const isOnTop = calculateIsOnTop(panelName); // 🎯 isOnTop 계산
|
||||
if (DEBUG_MODE)
|
||||
console.log('[PANEL] UPDATE_PANEL:', {
|
||||
console.log(`[PANEL] UPDATE_PANEL: ${panelName}`, {
|
||||
panelName,
|
||||
panelInfo,
|
||||
isGNB,
|
||||
@@ -226,11 +226,15 @@ export const panelHistoryMiddleware = (store) => (next) => (action) => {
|
||||
|
||||
// RESET_PANELS: GNB 네비게이션 또는 완전 초기화
|
||||
case types.RESET_PANELS: {
|
||||
if (DEBUG_MODE)
|
||||
console.log('[PANEL] RESET_PANELS:', {
|
||||
if (DEBUG_MODE) {
|
||||
const resetPanelNameForLog = (action.payload && action.payload.length > 0)
|
||||
? action.payload[0].name
|
||||
: 'homepanel';
|
||||
console.log(`[PANEL] RESET_PANELS: ${resetPanelNameForLog}`, {
|
||||
payload: action.payload,
|
||||
timestamp: new Date().toISOString(),
|
||||
});
|
||||
}
|
||||
if (DEBUG_MODE)
|
||||
console.log('[PANEL_HISTORY] Before RESET_PANELS:', store.getState().panelHistory);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user