Skip to content

Comments

[release] FE 팝업 AB테스트 종료#1183

Merged
seongwon030 merged 8 commits intomainfrom
develop-fe
Feb 11, 2026
Merged

[release] FE 팝업 AB테스트 종료#1183
seongwon030 merged 8 commits intomainfrom
develop-fe

Conversation

@seongwon030
Copy link
Member

@seongwon030 seongwon030 commented Feb 11, 2026

#️⃣연관된 이슈

ex) #이슈번호, #이슈번호

📝작업 내용

이번 PR에서 작업한 내용을 간략히 설명해주세요(이미지/동영상 첨부 가능)

중점적으로 리뷰받고 싶은 부분(선택)

리뷰어가 특별히 봐주었으면 하는 부분이 있다면 작성해주세요

ex) 메서드 XXX의 이름을 더 잘 짓고 싶은데 혹시 좋은 명칭이 있을까요?

논의하고 싶은 부분(선택)

논의하고 싶은 부분이 있다면 작성해주세요.

🫡 참고사항

Summary by CodeRabbit

  • Refactor

    • A/B 테스트 관련 로직 및 분기 제거로 팝업 표시 조건을 단순화했습니다. 이제 기기 상태, 이미지 로드 여부 및 기존 숨김 설정만으로 동작합니다.
    • 팝업 관련 이벤트 추적 페이로드에서 A/B 그룹 정보가 제거되어 전송 데이터가 간소화되었습니다.
  • Tests / Stories

    • 스토리와 테스트에서 A/B 테스트 관련 설정과 검증을 삭제해 관련 시나리오를 정리했습니다.

  - AB_TEST_KEY, PopupABTestGroup, getABTestGroup, split ratio 상수 제거
  - 팝업 이벤트 payload의 abTestGroup 제거 유지
  - AB 관련 테스트 케이스 및 import 제거
  - Storybook에서 AB 그룹 세팅 로직 제거
…up-MOA-634

[chore] 팝업 AB테스트 종료로 분기로직 제거
@seongwon030 seongwon030 self-assigned this Feb 11, 2026
@seongwon030 seongwon030 added 💻 FE Frontend 📈 release 릴리즈 배포 AB TEST AB 테스트 관련 labels Feb 11, 2026
@vercel
Copy link

vercel bot commented Feb 11, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
moadong Ready Ready Preview, Comment Feb 11, 2026 11:47am

@coderabbitai
Copy link
Contributor

coderabbitai bot commented Feb 11, 2026

Caution

Review failed

The pull request is closed.

Warning

.coderabbit.yaml has a parsing error

The CodeRabbit configuration file in this repository has a parsing error and default settings were used instead. Please fix the error(s) in the configuration file. You can initialize chat with CodeRabbit to get help with the configuration file.

💥 Parsing errors (1)
Validation error: Invalid regex pattern for base branch. Received: "**" at "reviews.auto_review.base_branches[0]"
⚙️ Configuration instructions
  • Please see the configuration documentation for more information.
  • You can also validate your configuration using the online YAML validator.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Walkthrough

AB 테스트 기능이 Popup 및 관련 파일에서 제거되었습니다. AB 관련 상수·타입·함수와 AB 그룹 기반 로직 및 모든 분석 페이로드의 abTestGroup 필드가 삭제되었습니다.

Changes

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_KEYgetABTestGroup 관련 테스트/스토리 코드와 localStorage 설정 제거. 남은 테스트는 DAYS_TO_HIDE, isPopupHidden, POPUP_STORAGE_KEY 중심으로 단순화.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~12 minutes

Possibly related PRs

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Copy link
Member

@oesnuj oesnuj left a comment

Choose a reason for hiding this comment

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

좋은 AB 테스트였습니다
다음으로 새로운 테스트를 많이 생각해봐요

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

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 분기에 대한 테스트가 누락되어 있습니다.

isPopupHiddensessionStorage.getItem(POPUP_SESSION_KEY)를 먼저 확인하지만, 해당 분기를 검증하는 테스트가 없습니다. POPUP_SESSION_KEY를 import하고 세션 기반 숨김 동작도 테스트하면 커버리지가 더 완전해집니다.

@seongwon030 seongwon030 merged commit d6d0ee6 into main Feb 11, 2026
3 of 4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

AB TEST AB 테스트 관련 💻 FE Frontend 📈 release 릴리즈 배포

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants