[통합로그] al_shelf_list_shown : shelf_location 로그수정
This commit is contained in:
@@ -67,6 +67,7 @@ import Showroom from "./Showroom/Showroom";
|
|||||||
import TodaysDeals from "./TodaysDeals/TodaysDeals";
|
import TodaysDeals from "./TodaysDeals/TodaysDeals";
|
||||||
import UpComing from "./UpComing/UpComing";
|
import UpComing from "./UpComing/UpComing";
|
||||||
import { setContainerLastFocusedElement } from "@enact/spotlight/src/container";
|
import { setContainerLastFocusedElement } from "@enact/spotlight/src/container";
|
||||||
|
import { sortedIndexOf } from "lodash";
|
||||||
|
|
||||||
const STRING_CONF = {
|
const STRING_CONF = {
|
||||||
CANCEL: "CANCEL",
|
CANCEL: "CANCEL",
|
||||||
@@ -317,36 +318,35 @@ const FeaturedBrandsPanel = ({ isOnTop, panelInfo, spotlightId }) => {
|
|||||||
) {
|
) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const foundElement = sortedBrandLayoutInfo.find(
|
||||||
|
(el) => el.shptmBrndOptTpCd === containerId
|
||||||
|
);
|
||||||
|
const actualShelfOrder = foundElement ? foundElement.expsOrd : null;
|
||||||
|
|
||||||
const selectedBrand = `${LOG_MENU.FEATURED_BRANDS}/${selectedPatncNm}`;
|
const selectedBrand = `${LOG_MENU.FEATURED_BRANDS}/${selectedPatncNm}`;
|
||||||
const currentShelf = `${getMenuByContainerId(containerId)}`;
|
const currentShelf = `${getMenuByContainerId(containerId)}`;
|
||||||
|
|
||||||
const menu =
|
const menu =
|
||||||
selectedBrand && currentShelf && `${selectedBrand} ${currentShelf}`;
|
selectedBrand && currentShelf && `${selectedBrand} ${currentShelf}`;
|
||||||
|
|
||||||
dispatch(sendLogGNB(menu));
|
|
||||||
|
|
||||||
// sortedBrandLayoutInfo.forEach((el) => {
|
|
||||||
// if (el.shptmBrndOptTpNm === currentShelf) {
|
|
||||||
// console.log("###el", el);
|
|
||||||
// }
|
|
||||||
// console.log("###shelfOrder", shelfOrder);
|
|
||||||
// });
|
|
||||||
dispatch(
|
dispatch(
|
||||||
sendLogTotalRecommend({
|
sendLogTotalRecommend({
|
||||||
contextName: LOG_CONTEXT_NAME.FEATURED_BRANDS,
|
contextName: LOG_CONTEXT_NAME.FEATURED_BRANDS,
|
||||||
messageId: LOG_MESSAGE_ID.SHELF,
|
messageId: LOG_MESSAGE_ID.SHELF,
|
||||||
partner: selectedPatncNm,
|
partner: selectedPatncNm,
|
||||||
shelfLocation: shelfOrder,
|
shelfLocation: actualShelfOrder,
|
||||||
shelfId: containerId,
|
shelfId: containerId,
|
||||||
shelfTitle: currentShelf,
|
shelfTitle: currentShelf,
|
||||||
})
|
})
|
||||||
);
|
);
|
||||||
|
dispatch(sendLogGNB(menu));
|
||||||
|
|
||||||
setIsLogGNBSent(true);
|
setIsLogGNBSent(true);
|
||||||
prevSelectedPatncNmRef.current = selectedPatncNm;
|
prevSelectedPatncNmRef.current = selectedPatncNm;
|
||||||
lastMenuRef.current = getMenuByContainerId(containerId);
|
lastMenuRef.current = getMenuByContainerId(containerId);
|
||||||
},
|
},
|
||||||
[selectedPatncNm, sortedBrandLayoutInfo, selectedPatncNm]
|
[selectedPatncNm, sortedBrandLayoutInfo]
|
||||||
);
|
);
|
||||||
|
|
||||||
const focusOnMount = useCallback((targetId) => {
|
const focusOnMount = useCallback((targetId) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user