Conversation
This reverts commit 00d9d26.
- AB_TEST_KEY, PopupABTestGroup, getABTestGroup, split ratio 상수 제거 - 팝업 이벤트 payload의 abTestGroup 제거 유지 - AB 관련 테스트 케이스 및 import 제거 - Storybook에서 AB 그룹 세팅 로직 제거
…up-MOA-634 [chore] 팝업 AB테스트 종료로 분기로직 제거
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Caution Review failedThe pull request is closed. Warning
|
| Cohort / File(s) | Summary |
|---|---|
Popup AB 테스트 코어 로직 제거 frontend/src/pages/MainPage/components/Popup/Popup.tsx |
AB_TEST_KEY, AB_TEST_SPLIT_RATIO, PopupABTestGroup 타입, getABTestGroup 함수 제거. 팝업 표시 로직에서 AB 그룹 검사 제거; imageLoaded, isMobile, 숨김 상태 기반으로 단순화. 추적 이벤트에서 abTestGroup 제거. |
Banner AB 테스트 참조 제거 frontend/src/pages/MainPage/components/Banner/Banner.tsx |
getABTestGroup 임포트 삭제. APP_STORE_LINK 클릭 핸들러에서 AB 그룹 조회 및 abTestGroup을 추적 페이로드에서 제거. |
테스트·스토리 정리 frontend/src/pages/MainPage/components/Popup/Popup.test.tsx, frontend/src/pages/MainPage/components/Popup/Popup.stories.tsx |
AB_TEST_KEY 및 getABTestGroup 관련 테스트/스토리 코드와 localStorage 설정 제거. 남은 테스트는 DAYS_TO_HIDE, isPopupHidden, POPUP_STORAGE_KEY 중심으로 단순화. |
Estimated code review effort
🎯 2 (Simple) | ⏱️ ~12 minutes
Possibly related PRs
- [feature] 메인화면에 앱 출시 팝업을 추가한다 #1010: 이전 PR에서 추가된 AB 테스트 구현 및 관련 내보내기(AB_TEST_KEY, getABTestGroup)를 본 PR이 제거하므로 직접적으로 연관됨.
- [feature] 앱 다운로드 배너 트래킹에 A/B 테스트 그룹 정보 추가 #1056: Banner에서
getABTestGroup임포트와abTestGroup추적을 추가한 변경과 본 PR의 제거 작업이 코드 충돌 가능성이 있어 관련됨. - [feature] 앱 출시 배너를 추가한다 #938: Banner의
APP_STORE_LINK클릭 처리 및 분석 페이로드 변경과 본 PR이 동일 경로를 수정하므로 관련됨.
Suggested reviewers
- oesnuj
- lepitaaar
🚥 Pre-merge checks | ✅ 3
✅ Passed checks (3 passed)
| Check name | Status | Explanation |
|---|---|---|
| Description Check | ✅ Passed | Check skipped - CodeRabbit’s high-level summary is enabled. |
| Title check | ✅ Passed | 제목이 변경 사항의 핵심을 명확하게 반영하고 있습니다. PR은 팝업 컴포넌트에서 AB테스트 기능을 완전히 제거한 내용을 담고 있으며, 제목 '[release] FE 팝업 AB테스트 종료'는 이를 정확하게 설명합니다. |
| Docstring Coverage | ✅ Passed | No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. |
✏️ Tip: You can configure your own custom pre-merge checks in the settings.
✨ Finishing touches
- 📝 Generate docstrings
🧪 Generate unit tests (beta)
- Create PR with unit tests
- Post copyable unit tests in a comment
- Commit unit tests in branch
develop-fe
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 @coderabbitai help to get the list of available commands and usage tips.
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Fix all issues with AI agents
In `@frontend/src/pages/MainPage/components/Popup/Popup.tsx`:
- Around line 37-50: The effect in Popup.tsx calls
trackEvent(USER_EVENT.MAIN_POPUP_NOT_SHOWN) when imageLoaded is false, causing a
premature NOT_SHOWN event; update the useEffect that references isPopupHidden(),
isMobile, imageLoaded and trackEvent so it early-returns if imageLoaded is false
(or only emits NOT_SHOWN when imageLoaded is true), ensuring only one event is
fired per user (either MAIN_POPUP_VIEWED or MAIN_POPUP_NOT_SHOWN) and use the
existing identifiers isPopupHidden, setIsOpen, trackEvent,
USER_EVENT.MAIN_POPUP_VIEWED, and USER_EVENT.MAIN_POPUP_NOT_SHOWN to locate and
adjust the logic.
🧹 Nitpick comments (1)
frontend/src/pages/MainPage/components/Popup/Popup.test.tsx (1)
12-63:sessionStorage분기에 대한 테스트가 누락되어 있습니다.
isPopupHidden은sessionStorage.getItem(POPUP_SESSION_KEY)를 먼저 확인하지만, 해당 분기를 검증하는 테스트가 없습니다.POPUP_SESSION_KEY를 import하고 세션 기반 숨김 동작도 테스트하면 커버리지가 더 완전해집니다.
…up-MOA-634 [fix] 이미지 미로드 시 early return
#️⃣연관된 이슈
📝작업 내용
중점적으로 리뷰받고 싶은 부분(선택)
논의하고 싶은 부분(선택)
🫡 참고사항
Summary by CodeRabbit
Refactor
Tests / Stories