Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@joohaem
Copy link
Member

@joohaem joohaem commented Mar 17, 2023

  • 브랜치명, 브랜치 알맞게 설정
  • Reviewer, Assignees, Label, Milestone, Issue(PR 작성 후에) 붙이기
  • PR이 승인된 경우 해당 브랜치는 삭제하기

📌 내용

  • 페이지별로 트래킹하는 gtm 코드를 삽입합니다.
  • 개별 gtm 코드를 삽입합니다.
  • medley sticker의 앞 두글자를 따서 gtm.ts에 정리했습니다.

@NYeonK NYeonK requested a review from leeJooHaem March 20, 2023 18:08
Copy link
Member Author

@joohaem joohaem left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@NYeonK 🔥🔥🔥🔥

Comment on lines 20 to 22
<St.CategoryLink className={GTM_CLASS_NAME.cardKeep} to={routePaths.Category}>
<IcNextCardBtn />
</St.CategoryLink>
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

클래스네임을 부모에만 적용하면, Icon을 누를 때 트랙킹되지 않을 거에요!
그 하위 요소까지, svg 파일 내의 path 태그에까지 클래스네임을 부여해줘야 트랙킹되는 걸로 알고 있어요

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

이에 대해 승헌이와 나눴던 슬랙 스레드가 있었는데, 궁금하면 찾아보셔도 좋을 것 같습니다!

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

아항 그렇구나!! 한 번 찾아보겠습니다:)

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

common에 있는 modal 컴포넌트도 마찬가지로 svg 파일에 className을 주려고 했는데, 그 아이콘은 공용으로 사용하고 있어서요! 이럴때에는 어떤 방법이 있을까요?-?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

😦😦😦😦 gtm용 svg를 따로 복제하는 건 어떨까요??_?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

모달의 x icon을 말하는건데용~! 카드 필터 모달에서도 className으로 사용중이더라구요
복제를 각 모달 별로 해볼까요?!

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

당장은 그래도 괜찮을 것 같아요 !! 후에 더 방법 생각나면 리팩토링 할 수 있으면 하고!

Comment on lines 17 to 23
<St.MedleyWrapper
bgcolorId={medleyCard._id}
className={GTM_CLASS_NAME[`medley${medleyCard.sticker.slice(0, 2)}`]}
onClick={toggleModal}>
<St.ContentTag>{medleyCard.sticker}</St.ContentTag>
<St.ContentTitle>{medleyCard.coverTitle}</St.ContentTitle>
</St.MedleyWrapper>
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

이것도 !

Suggested change
<St.MedleyWrapper
bgcolorId={medleyCard._id}
className={GTM_CLASS_NAME[`medley${medleyCard.sticker.slice(0, 2)}`]}
onClick={toggleModal}>
<St.ContentTag>{medleyCard.sticker}</St.ContentTag>
<St.ContentTitle>{medleyCard.coverTitle}</St.ContentTitle>
</St.MedleyWrapper>
<St.MedleyWrapper
bgcolorId={medleyCard._id}
className={GTM_CLASS_NAME[`medley${medleyCard.sticker.slice(0, 2)}`]}
onClick={toggleModal}>
<St.ContentTag
className={GTM_CLASS_NAME[`medley${medleyCard.sticker.slice(0, 2)}`]}
>{medleyCard.sticker}</St.ContentTag>
<St.ContentTitle
className={GTM_CLASS_NAME[`medley${medleyCard.sticker.slice(0, 2)}`]}
>{medleyCard.coverTitle}</St.ContentTitle>
</St.MedleyWrapper>

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medleyCard.sticker.slice(0, 2)} / 혹은 medley${medleyCard.sticker.slice(0, 2)} 가 중복되는데, 이를 컴포넌트 상단에 상수화해도 괜찮을 것 같아요

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

옷!! 상수화하는게 더 보기 깔끔할 것 같네여ㅎㅎ 반영하겠습니다아~!

Comment on lines -22 to +23
<St.GrayRoot>
<St.GrayRoot className={closeOpacityClassName}>
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍🏼👍🏼

Comment on lines 28 to 29
closeOpacityClassName={GTM_CLASS_NAME[`medleyPreviewClose${medleyCard.sticker.slice(0, 2)}`]}
closeBtnClassName={GTM_CLASS_NAME[`medleyPreviewClose${medleyCard.sticker.slice(0, 2)}`]}
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medleyCard.sticker.slice(0, 2)} 혹은 `medleyPreview${medleyCard.sticker.slice(0, 2)} 가 중복되는데
컴포넌트 상단에 상수로 표현함이 어떨까 합니다

@joohaem joohaem removed the request for review from leeJooHaem March 21, 2023 05:25
@NYeonK
Copy link
Contributor

NYeonK commented Mar 21, 2023

아르바이트 중이라 10시 전에 반영해놓겠습니당 :D

@joohaem
Copy link
Member Author

joohaem commented Mar 22, 2023

상수화 한 부분 반엉 감사합니다!! 근데 문자열에 템플릿 리터럴을 안 쓴 이유가 있을까요????!

@NYeonK
Copy link
Contributor

NYeonK commented Mar 22, 2023

@joohaem
X icon을 이용하면서 className을 넣어야 하는 것이 필터모달과 프리뷰 모달인데요!
필터 모달만 svg을 하나 더 만들어서 className을 넣어주었습니다~

프리뷰 모달은 className이 medleyPreviewClose${medleyCard.sticker.slice(0, 2)} 이렇게 들어가는 만큼,,
어떤 주제를 선택하느냐에 따라 X icon className도 전부 다르더라구요..
그래서 svg 파일을 복제하는 방법이 어려울 것 같아서 따로 반영하지 않았습니다! (라고 했지만 좋은 방법이 있다면 의견주세용 :D)

Copy link
Member Author

@joohaem joohaem left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@NYeonK 짱프로브입니다 !!! 고생해쒀요 !!!!!!! (제 PR이라 Approve가 안 되네요 :())

@NYeonK NYeonK merged commit a378d76 into release/1.3 Mar 22, 2023
@NYeonK NYeonK deleted the feat/gtm branch March 22, 2023 15:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants