[통합로그API No.8] FeaturedBrands Series content 클릭 시 로그 정보 수집
This commit is contained in:
@@ -26,6 +26,7 @@ const Series = ({
|
|||||||
handleItemFocus,
|
handleItemFocus,
|
||||||
order,
|
order,
|
||||||
shelfOrder,
|
shelfOrder,
|
||||||
|
shelfTitle,
|
||||||
spotlightId,
|
spotlightId,
|
||||||
selectedPatncNm,
|
selectedPatncNm,
|
||||||
selectedPatnrId,
|
selectedPatnrId,
|
||||||
@@ -117,6 +118,9 @@ const Series = ({
|
|||||||
seriesImgUrl={seriesImgUrl}
|
seriesImgUrl={seriesImgUrl}
|
||||||
seriesNm={seriesNm}
|
seriesNm={seriesNm}
|
||||||
spotlightId={spotlightId}
|
spotlightId={spotlightId}
|
||||||
|
shelfOrder={shelfOrder}
|
||||||
|
shelfTitle={shelfTitle}
|
||||||
|
selectedPatncNm={selectedPatncNm}
|
||||||
/>
|
/>
|
||||||
)
|
)
|
||||||
)}
|
)}
|
||||||
|
|||||||
@@ -21,9 +21,12 @@ const SeriesContents = ({
|
|||||||
isCarousel = false,
|
isCarousel = false,
|
||||||
patnrId,
|
patnrId,
|
||||||
selectedPatnrId,
|
selectedPatnrId,
|
||||||
|
selectedPatnrNm,
|
||||||
selectedSeriesId,
|
selectedSeriesId,
|
||||||
seriesImgUrl,
|
seriesImgUrl,
|
||||||
seriesNm,
|
seriesNm,
|
||||||
|
shelfOrder,
|
||||||
|
shelfTitle,
|
||||||
spotlightId,
|
spotlightId,
|
||||||
}) => {
|
}) => {
|
||||||
const rankOrd = contentsIndex * 1 + 1;
|
const rankOrd = contentsIndex * 1 + 1;
|
||||||
@@ -64,9 +67,13 @@ const SeriesContents = ({
|
|||||||
contentsIndex={contentsIndex}
|
contentsIndex={contentsIndex}
|
||||||
handleFocus={handleFocus}
|
handleFocus={handleFocus}
|
||||||
patnrId={patnrId}
|
patnrId={patnrId}
|
||||||
|
selectedPatnrNm={selectedPatnrNm}
|
||||||
selectedSeriesId={selectedSeriesId}
|
selectedSeriesId={selectedSeriesId}
|
||||||
selectedPatnrId={selectedPatnrId}
|
selectedPatnrId={selectedPatnrId}
|
||||||
seriesNm={seriesNm}
|
seriesNm={seriesNm}
|
||||||
|
shelfOrder={shelfOrder}
|
||||||
|
shelfTitle={shelfTitle}
|
||||||
|
spotlightId={spotlightId}
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
) : (
|
) : (
|
||||||
@@ -77,6 +84,9 @@ const SeriesContents = ({
|
|||||||
seriesImgUrl={seriesImgUrl}
|
seriesImgUrl={seriesImgUrl}
|
||||||
seriesNm={seriesNm}
|
seriesNm={seriesNm}
|
||||||
spotlightId={spotlightId}
|
spotlightId={spotlightId}
|
||||||
|
shelfOrder={shelfOrder}
|
||||||
|
shelfTitle={shelfTitle}
|
||||||
|
selectedPatnrNm={selectedPatnrNm}
|
||||||
/>
|
/>
|
||||||
)}
|
)}
|
||||||
</Container>
|
</Container>
|
||||||
|
|||||||
@@ -6,7 +6,11 @@ import Spotlight from "@enact/spotlight";
|
|||||||
|
|
||||||
import { pushPanel, updatePanel } from "../../../../../actions/panelActions";
|
import { pushPanel, updatePanel } from "../../../../../actions/panelActions";
|
||||||
import TItemCard from "../../../../../components/TItemCard/TItemCard";
|
import TItemCard from "../../../../../components/TItemCard/TItemCard";
|
||||||
import { panel_names } from "../../../../../utils/Config";
|
import {
|
||||||
|
LOG_CONTEXT_NAME,
|
||||||
|
LOG_MESSAGE_ID,
|
||||||
|
panel_names,
|
||||||
|
} from "../../../../../utils/Config";
|
||||||
import SeriesImageCard from "../SeriesImageCard/SeriesImageCard";
|
import SeriesImageCard from "../SeriesImageCard/SeriesImageCard";
|
||||||
import css from "./SeriesProductGrid.module.less";
|
import css from "./SeriesProductGrid.module.less";
|
||||||
|
|
||||||
@@ -17,6 +21,9 @@ const SeriesProductGrid = ({
|
|||||||
seriesImgUrl,
|
seriesImgUrl,
|
||||||
seriesNm,
|
seriesNm,
|
||||||
spotlightId,
|
spotlightId,
|
||||||
|
shelfOrder,
|
||||||
|
shelfTitle,
|
||||||
|
selectedPatnrNm,
|
||||||
}) => {
|
}) => {
|
||||||
const dispatch = useDispatch();
|
const dispatch = useDispatch();
|
||||||
|
|
||||||
@@ -65,11 +72,29 @@ const SeriesProductGrid = ({
|
|||||||
</li>
|
</li>
|
||||||
{brandSeriesProductInfo.map(
|
{brandSeriesProductInfo.map(
|
||||||
(
|
(
|
||||||
{ offerInfo, prdtId, prdtImgUrl, prdtNm, priceInfo, soldoutFlag },
|
{
|
||||||
|
offerInfo,
|
||||||
|
prdtId,
|
||||||
|
prdtImgUrl,
|
||||||
|
prdtNm,
|
||||||
|
priceInfo,
|
||||||
|
soldoutFlag,
|
||||||
|
catNm,
|
||||||
|
brndNm,
|
||||||
|
},
|
||||||
itemIndex
|
itemIndex
|
||||||
) => (
|
) => (
|
||||||
<li key={`${spotlightId}-${itemIndex}`}>
|
<li key={`${spotlightId}-${itemIndex}`}>
|
||||||
<TItemCard
|
<TItemCard
|
||||||
|
contextName={LOG_CONTEXT_NAME.FEATURED_BRANDS}
|
||||||
|
messageId={LOG_MESSAGE_ID.SHELF_CLICK}
|
||||||
|
shelfLocation={shelfOrder}
|
||||||
|
shelfTitle={shelfTitle}
|
||||||
|
shelfId={spotlightId}
|
||||||
|
patnerName={selectedPatnrNm}
|
||||||
|
order={itemIndex + 1}
|
||||||
|
catNm={catNm}
|
||||||
|
brndNm={brndNm}
|
||||||
data-wheel-point={itemIndex >= 3}
|
data-wheel-point={itemIndex >= 3}
|
||||||
imageAlt={prdtNm}
|
imageAlt={prdtNm}
|
||||||
imageSource={prdtImgUrl}
|
imageSource={prdtImgUrl}
|
||||||
|
|||||||
@@ -11,7 +11,11 @@ import TItemCard, {
|
|||||||
} from "../../../../../components/TItemCard/TItemCard";
|
} from "../../../../../components/TItemCard/TItemCard";
|
||||||
import TVirtualGridList from "../../../../../components/TVirtualGridList/TVirtualGridList";
|
import TVirtualGridList from "../../../../../components/TVirtualGridList/TVirtualGridList";
|
||||||
import useScrollTo from "../../../../../hooks/useScrollTo";
|
import useScrollTo from "../../../../../hooks/useScrollTo";
|
||||||
import { panel_names } from "../../../../../utils/Config";
|
import {
|
||||||
|
LOG_CONTEXT_NAME,
|
||||||
|
LOG_MESSAGE_ID,
|
||||||
|
panel_names,
|
||||||
|
} from "../../../../../utils/Config";
|
||||||
import { getTranslate3dValueByDirection } from "../../../../../utils/helperMethods";
|
import { getTranslate3dValueByDirection } from "../../../../../utils/helperMethods";
|
||||||
import css from "./SeriesProductList.module.less";
|
import css from "./SeriesProductList.module.less";
|
||||||
|
|
||||||
@@ -22,6 +26,10 @@ export default function SeriesProductList({
|
|||||||
patnrId,
|
patnrId,
|
||||||
selectedPatnrId,
|
selectedPatnrId,
|
||||||
selectedSeriesId,
|
selectedSeriesId,
|
||||||
|
selectedPatnrNm,
|
||||||
|
shelfOrder,
|
||||||
|
shelfTitle,
|
||||||
|
spotlightId,
|
||||||
}) {
|
}) {
|
||||||
const { getScrollTo, scrollLeft } = useScrollTo();
|
const { getScrollTo, scrollLeft } = useScrollTo();
|
||||||
|
|
||||||
@@ -102,10 +110,21 @@ export default function SeriesProductList({
|
|||||||
prdtNm,
|
prdtNm,
|
||||||
priceInfo,
|
priceInfo,
|
||||||
soldoutFlag,
|
soldoutFlag,
|
||||||
|
catNm,
|
||||||
|
brndNm,
|
||||||
} = brandSeriesProductInfo[index];
|
} = brandSeriesProductInfo[index];
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<TItemCard
|
<TItemCard
|
||||||
|
contextName={LOG_CONTEXT_NAME.FEATURED_BRANDS}
|
||||||
|
messageId={LOG_MESSAGE_ID.SHELF_CLICK}
|
||||||
|
shelfLocation={shelfOrder}
|
||||||
|
shelfTitle={shelfTitle}
|
||||||
|
shelfId={spotlightId}
|
||||||
|
patnerName={selectedPatnrNm}
|
||||||
|
order={contentsIndex + 1}
|
||||||
|
catNm={catNm}
|
||||||
|
brandName={brndNm}
|
||||||
data-exposure-order={contentsIndex + 1}
|
data-exposure-order={contentsIndex + 1}
|
||||||
imageAlt={prdtNm}
|
imageAlt={prdtNm}
|
||||||
imageSource={prdtImgUrl}
|
imageSource={prdtImgUrl}
|
||||||
@@ -123,7 +142,13 @@ export default function SeriesProductList({
|
|||||||
/>
|
/>
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
[brandSeriesProductInfo, contentsIndex, handleClick, handleFocus]
|
[
|
||||||
|
brandSeriesProductInfo,
|
||||||
|
contentsIndex,
|
||||||
|
handleClick,
|
||||||
|
selectedPatnrNm,
|
||||||
|
handleFocus,
|
||||||
|
]
|
||||||
);
|
);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
|||||||
Reference in New Issue
Block a user