-
Notifications
You must be signed in to change notification settings - Fork 0
[CHORE] 캘린더 로그 추가 #516
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
rngrhn4114
wants to merge
2
commits into
develop
Choose a base branch
from
chore/calendar-log
base: develop
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
[CHORE] 캘린더 로그 추가 #516
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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,4 @@ | ||
| import { createDomainTracker } from '@/shared/lib/createDomainTracker'; | ||
| import { CalendarEventPropsMap } from '../model/constants'; | ||
|
|
||
| export const trackCalendarEvent = createDomainTracker<CalendarEventPropsMap>(); |
This file contains hidden or 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,17 @@ | ||
| /** | ||
| * 캘린더 관련 트래킹 이벤트 | ||
| */ | ||
| export const CALENDAR_EVENTS = { | ||
| PAGE_VIEW: 'page_view', | ||
| CALENDAR_DATE_CLICK: 'calendar_date_click', | ||
| EVENT_CARD_CLICK: 'event_card_click', | ||
| } as const; | ||
|
|
||
| /** | ||
| * 캘린더 이벤트별 속성 타입 매핑 | ||
| */ | ||
| export type CalendarEventPropsMap = { | ||
| [CALENDAR_EVENTS.PAGE_VIEW]: { page_name: string }; | ||
| [CALENDAR_EVENTS.CALENDAR_DATE_CLICK]: { selected_date: string }; | ||
| [CALENDAR_EVENTS.EVENT_CARD_CLICK]: { event_id: number; post_id?: number }; | ||
| }; | ||
This file contains hidden or 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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🧩 Analysis chain
🏁 Script executed:
Repository: Tave-Makers/SURF-FE
Length of output: 90
🏁 Script executed:
Repository: Tave-Makers/SURF-FE
Length of output: 90
🏁 Script executed:
Repository: Tave-Makers/SURF-FE
Length of output: 90
🏁 Script executed:
Repository: Tave-Makers/SURF-FE
Length of output: 515
🏁 Script executed:
Repository: Tave-Makers/SURF-FE
Length of output: 474
🏁 Script executed:
Repository: Tave-Makers/SURF-FE
Length of output: 954
🏁 Script executed:
Repository: Tave-Makers/SURF-FE
Length of output: 191
🏁 Script executed:
Repository: Tave-Makers/SURF-FE
Length of output: 370
🏁 Script executed:
Repository: Tave-Makers/SURF-FE
Length of output: 994
🏁 Script executed:
# Check COMMON_EVENTS definition cat -n apps/web/src/shared/analytics/model/types.tsRepository: Tave-Makers/SURF-FE
Length of output: 1403
🏁 Script executed:
Repository: Tave-Makers/SURF-FE
Length of output: 889
🏁 Script executed:
Repository: Tave-Makers/SURF-FE
Length of output: 3112
🏁 Script executed:
Repository: Tave-Makers/SURF-FE
Length of output: 804
🏁 Script executed:
Repository: Tave-Makers/SURF-FE
Length of output: 1111
🏁 Script executed:
Repository: Tave-Makers/SURF-FE
Length of output: 236
🏁 Script executed:
# Look at the analytics library to understand how tracking works ls -la apps/web/src/shared/analytics/Repository: Tave-Makers/SURF-FE
Length of output: 340
🏁 Script executed:
Repository: Tave-Makers/SURF-FE
Length of output: 6372
🏁 Script executed:
Repository: Tave-Makers/SURF-FE
Length of output: 486
🏁 Script executed:
Repository: Tave-Makers/SURF-FE
Length of output: 45
🏁 Script executed:
Repository: Tave-Makers/SURF-FE
Length of output: 47
🏁 Script executed:
# Check the createDomainTracker more carefully ls -la apps/web/src/shared/lib/Repository: Tave-Makers/SURF-FE
Length of output: 882
🏁 Script executed:
# Check createDomainTracker implementation cat -n apps/web/src/shared/lib/createDomainTracker.tsRepository: Tave-Makers/SURF-FE
Length of output: 635
🏁 Script executed:
# Check trackEvent implementation cat -n apps/web/src/shared/lib/trackEvent.tsRepository: Tave-Makers/SURF-FE
Length of output: 512
🏁 Script executed:
# Check the types cat -n apps/web/src/shared/lib/types.tsRepository: Tave-Makers/SURF-FE
Length of output: 442
도메인별 이벤트 네이밍 컨벤션 일관성 유지 필요
PAGE_VIEW: 'page_view'는 다른 모든 도메인 이벤트와 달리 도메인 구분이 없어 컨벤션 위반입니다.프로젝트 내 다른 도메인들은 일관된 패턴을 따르고 있습니다:
VIEW_SIGNUP_PAGE: 'view_signup_page'VIEW_PROFILE: 'view_profile'VIEW_MY_POSTS_PAGE: 'view_post_list'VIEW_ACTIVITY: 'view_activity'Calendar도 이 패턴을 따라
VIEW_CALENDAR_PAGE: 'view_calendar_page'로 변경하세요.page_name속성으로 페이지를 구분할 수 있지만, 이벤트 이름 자체도 도메인별로 구분하면:🤖 Prompt for AI Agents