-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: 시작하기, 블록챗 믹스패널 연결 및 기타 버그 수정 (#41)
* feat: nft, coin 페이지 로깅 추가 * fix: 최근 검색어 숨기기 * feat: 랜딩, 퀴즈 페이지 로깅 추가 * feat: 블록챗 로깅 추가 * fix: 500 에러 수정 * fix: 전체 질문 카테고리 정상 출력되도록 수정
- Loading branch information
1 parent
4a32102
commit bc1fb66
Showing
21 changed files
with
294 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,85 @@ | ||
import useLogging from '@/hooks/useLogging'; | ||
import { useCallback } from 'react'; | ||
|
||
const useChatPageActions = () => { | ||
const { sendLog } = useLogging(); | ||
|
||
const handleRecommendationLevelClick = useCallback((level: string) => { | ||
const eventProperties = { | ||
레벨: level, | ||
}; | ||
|
||
sendLog({ eventName: '채팅_질문_추천_레벨_클릭', eventProperties }); | ||
}, [sendLog]); | ||
|
||
const handleRecommendationSwipe = useCallback(() => { | ||
sendLog({ eventName: '채팅_질문_추천_스와이프' }); | ||
}, [sendLog]); | ||
|
||
const handleRecommendationSelect = useCallback((question: string) => { | ||
const eventProperties = { | ||
질문: question, | ||
}; | ||
|
||
sendLog({ eventName: '채팅_질문_추천_선택', eventProperties }); | ||
}, [sendLog]); | ||
|
||
const handleTotalQuestionClick = useCallback(() => { | ||
sendLog({ eventName: '채팅_질문_더보기_클릭' }); | ||
}, [sendLog]); | ||
|
||
const handleTotalLevelClick = useCallback((level: string) => { | ||
const eventProperties = { | ||
레벨: level, | ||
}; | ||
|
||
sendLog({ eventName: '채팅_전체_질문_레벨_클릭', eventProperties }); | ||
}, [sendLog]); | ||
|
||
const handleTotalCategoryClick = useCallback((category: string) => { | ||
const eventProperties = { | ||
카테고리: category, | ||
}; | ||
|
||
sendLog({ eventName: '채팅_전체_질문_카테고리_클릭', eventProperties }); | ||
}, [sendLog]); | ||
|
||
const handleTotalQuestionSelect = useCallback((question: string) => { | ||
const eventProperties = { | ||
질문: question, | ||
}; | ||
|
||
sendLog({ eventName: '채팅_전체_질문_선택', eventProperties }); | ||
}, [sendLog]); | ||
|
||
const handleQuestionSubmit = useCallback((question: string) => { | ||
const eventProperties = { | ||
질문: question, | ||
}; | ||
|
||
sendLog({ eventName: '채팅_질문_제출', eventProperties }); | ||
}, [sendLog]); | ||
|
||
const handleCopyClick = useCallback(() => { | ||
sendLog({ eventName: '채팅_질문_답변_복사' }); | ||
}, [sendLog]); | ||
|
||
const handleRegenerateClick = useCallback(() => { | ||
sendLog({ eventName: '채팅_질문_답변_재생성' }); | ||
}, [sendLog]); | ||
|
||
return { | ||
handleRecommendationLevelClick, | ||
handleRecommendationSwipe, | ||
handleRecommendationSelect, | ||
handleTotalQuestionClick, | ||
handleTotalLevelClick, | ||
handleTotalCategoryClick, | ||
handleTotalQuestionSelect, | ||
handleQuestionSubmit, | ||
handleCopyClick, | ||
handleRegenerateClick, | ||
}; | ||
}; | ||
|
||
export default useChatPageActions; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
import useLogging from '@/hooks/useLogging'; | ||
import { useCallback } from 'react'; | ||
|
||
const useCoinPageActions = () => { | ||
const { sendLog } = useLogging(); | ||
|
||
const handleSaveImageClick = useCallback(() => { | ||
sendLog({ eventName: '코인_이미지_저장' }); | ||
}, [sendLog]); | ||
|
||
const handleOpenReceiptClick = useCallback(() => { | ||
sendLog({ eventName: '코인_영수증_클릭' }); | ||
}, [sendLog]); | ||
|
||
return { | ||
handleSaveImageClick, | ||
handleOpenReceiptClick, | ||
}; | ||
}; | ||
|
||
export default useCoinPageActions; |
Oops, something went wrong.