-
Notifications
You must be signed in to change notification settings - Fork 1
[Y26W2-427] chore(web): prior high event parameter setting #202
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
base: main
Are you sure you want to change the base?
Conversation
|
🎫 관련 Jira 티켓 🔗: Y26W2-427 📝 Jira 티켓 정보:
|
|
Important Review skippedDraft detected. Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the 📋 Walkthrough분석 이벤트 추적 시스템을 리팩토링하여 CLICK_FILTER 이벤트를 제거하고 SIGNUP, LOGIN, LOGOUT, SIGNOUT, BOARD_CREATE, BOARD_URL_INVITE 새로운 이벤트 매핑을 추가하였습니다. 각 이벤트에 대응하는 파라미터 팩토리 함수들을 추가하였으며, FilterName 타입을 LoginMethod 타입으로 교체하였습니다. 📊 Changes
🎯 Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes
🐰 Poem
Pre-merge checks and finishing touches❌ Failed checks (1 warning, 1 inconclusive)
✅ Passed checks (1 passed)
Tip 📝 Customizable high-level summaries are now available in beta!You can now customize how CodeRabbit generates the high-level summary in your pull requests — including its content, structure, tone, and formatting.
Example instruction:
Note: This feature is currently in beta for Pro-tier users, and pricing will be announced later. Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
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.
Actionable comments posted: 0
🧹 Nitpick comments (1)
apps/web/src/shared/contants/analytics/parameters/make-table_create.ts (1)
1-11: 파일 네이밍을 다른 파라미터 유틸과 통일하는 것을 고려해주세요.내용 자체는 문제 없지만, 파일명이
make-table_create.ts로 다른 유틸(make-board-create-parameter.ts,make-signup-parameter.ts등)과 네이밍 규칙이 살짝 달라 보입니다.make-table-create-parameter.ts처럼 맞춰두면 검색·유지보수에 더 수월할 것 같습니다.
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (13)
apps/web/src/shared/contants/analytics/mixpanel-event-parameter-map.ts(1 hunks)apps/web/src/shared/contants/analytics/parameters/make-board-create-parameter.ts(1 hunks)apps/web/src/shared/contants/analytics/parameters/make-board-group-view.ts(1 hunks)apps/web/src/shared/contants/analytics/parameters/make-board-url-invite-parameter.ts(1 hunks)apps/web/src/shared/contants/analytics/parameters/make-click-filter-parameter.ts(0 hunks)apps/web/src/shared/contants/analytics/parameters/make-hotel-add.ts(1 hunks)apps/web/src/shared/contants/analytics/parameters/make-login-parameter.ts(1 hunks)apps/web/src/shared/contants/analytics/parameters/make-logout-parameter.ts(1 hunks)apps/web/src/shared/contants/analytics/parameters/make-signout-parameter.ts(1 hunks)apps/web/src/shared/contants/analytics/parameters/make-signup-parameter.ts(1 hunks)apps/web/src/shared/contants/analytics/parameters/make-table-url-share.ts(1 hunks)apps/web/src/shared/contants/analytics/parameters/make-table_create.ts(1 hunks)apps/web/src/shared/contants/analytics/property-type.ts(1 hunks)
💤 Files with no reviewable changes (1)
- apps/web/src/shared/contants/analytics/parameters/make-click-filter-parameter.ts
🧰 Additional context used
🧬 Code graph analysis (2)
apps/web/src/shared/contants/analytics/mixpanel-event-parameter-map.ts (6)
apps/web/src/shared/contants/analytics/parameters/make-signup-parameter.ts (1)
makeSignupParameter(1-3)apps/web/src/shared/contants/analytics/parameters/make-login-parameter.ts (1)
makeLoginParameter(3-5)apps/web/src/shared/contants/analytics/parameters/make-logout-parameter.ts (1)
makeLogoutParameter(1-3)apps/web/src/shared/contants/analytics/parameters/make-signout-parameter.ts (1)
makeSignoutParameter(1-3)apps/web/src/shared/contants/analytics/parameters/make-board-create-parameter.ts (1)
makeBoardCreateParameter(1-3)apps/web/src/shared/contants/analytics/parameters/make-board-url-invite-parameter.ts (1)
makeBoardUrlInviteParameter(1-3)
apps/web/src/shared/contants/analytics/parameters/make-login-parameter.ts (1)
apps/web/src/shared/contants/analytics/property-type.ts (1)
LoginMethod(1-1)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (2)
- GitHub Check: build
- GitHub Check: deploy
🔇 Additional comments (11)
apps/web/src/shared/contants/analytics/parameters/make-hotel-add.ts (1)
1-10:_hotel_count파라미터가 반환 객체에서 제외되는 이유를 확인해주세요.함수 시그니처에서
_hotel_count파라미터를 받지만, 반환 객체에는 포함하지 않고 있습니다. 언더스코어 접두사는 의도적으로 사용하지 않는다는 것을 나타내지만, 이것이 의도된 동작인지 확인이 필요합니다.만약
hotel_count가 실제로 필요하다면 다음과 같이 수정을 고려해주세요:export const makeHotelAddParameter = ( board_id: number, hotel_id: number, hotel_domain: string, - _hotel_count: number, + hotel_count: number, ) => ({ board_id, hotel_id, hotel_domain, + hotel_count, });반대로, 이 파라미터가 불필요하다면 함수 시그니처에서 완전히 제거하는 것이 좋습니다.
apps/web/src/shared/contants/analytics/parameters/make-table-url-share.ts (1)
1-3: LGTM!간결하고 명확한 파라미터 팩토리 함수입니다. 구현이 올바르고 패턴도 일관성 있게 작성되었습니다.
apps/web/src/shared/contants/analytics/parameters/make-board-group-view.ts (1)
1-9: LGTM!파라미터 팩토리 함수가 올바르게 구현되었습니다. 다른 파라미터 빌더들과 일관된 패턴을 따르고 있습니다.
apps/web/src/shared/contants/analytics/parameters/make-signup-parameter.ts (1)
1-3: LGTM!회원가입 이벤트 파라미터 팩토리가 올바르게 구현되었습니다.
apps/web/src/shared/contants/analytics/parameters/make-signout-parameter.ts (1)
1-3: LGTM!회원 탈퇴 이벤트 파라미터 팩토리가 올바르게 구현되었습니다.
apps/web/src/shared/contants/analytics/parameters/make-logout-parameter.ts (1)
1-3: LGTM!로그아웃 이벤트 파라미터 팩토리가 올바르게 구현되었습니다.
apps/web/src/shared/contants/analytics/parameters/make-board-create-parameter.ts (1)
1-3: LGTM!보드 생성 이벤트 파라미터 팩토리가 올바르게 구현되었습니다. 일관된 패턴을 따르고 있습니다.
apps/web/src/shared/contants/analytics/property-type.ts (1)
1-1: 코드는 현재 요구사항에 맞게 올바르게 구현되었습니다.검증 결과,
LoginMethod는 현재 카카오만 지원하고 있으며 이는 백엔드 API(@ssok/api)에서도 카카오 OAuth 엔드포인트만 구현되어 있기 때문에 올바른 구현입니다. 또한 이 타입은 인증 로직이 아닌 분석 이벤트 추적을 위한 타입이므로, 향후 다른 로그인 방법이 백엔드에 추가될 때 함께 확장하면 됩니다. 현재 코드는 제한적이지 않으며, 구현된 기능에 정확하게 매칭되어 있습니다.apps/web/src/shared/contants/analytics/parameters/make-login-parameter.ts (1)
1-5: 로그인 파라미터 빌더 구현 적절합니다.
LoginMethod타입을 그대로 래핑해서{ login_method }객체를 만드는 단순한 유틸로, 다른 파라미터 빌더들과 패턴도 잘 맞습니다.apps/web/src/shared/contants/analytics/parameters/make-board-url-invite-parameter.ts (1)
1-3: 보드 URL 초대 파라미터 유틸이 간결하고 명확합니다.
board_id만 감싼 순수 함수라 재사용성과 타입 안정성이 좋고, 다른 analytics 파라미터 유틸들과 일관적입니다.apps/web/src/shared/contants/analytics/mixpanel-event-parameter-map.ts (1)
1-24: 이벤트 파라미터/이름 매핑이 잘 정리되었습니다.각 이벤트별로 전용 파라미터 빌더를 import 해서
EventParameterMap에 매핑하고, 동일 키를EventNameMapper에도 사용해 일관성이 좋습니다. 현재 키 집합도 두 객체 간에 잘 맞춰져 있어서 타입 추론과 사용성이 괜찮아 보입니다.
|
This pull request (commit
|
|
This pull request (commit
|
✨ 변경 사항
✅ 체크리스트
📸 스크린샷 (선택)
📝 기타 참고 사항
Summary by CodeRabbit
릴리스 노트
✏️ Tip: You can customize this high-level summary in your review settings.