Skip to content

Conversation

@yeonjin719
Copy link
Member

🚨 관련 이슈

✨ 변경사항

  • 🐞 BugFix Something isn't working
  • 💻 CrossBrowsing Browser compatibility
  • 🌏 Deploy Deploy
  • 🎨 Design Markup & styling
  • 📃 Docs Documentation writing and editing (README.md, etc.)
  • ✨ Feature Feature
  • 🔨 Refactor Code refactoring
  • ⚙️ Setting Development environment setup
  • ✅ Test Test related (storybook, jest, etc.)

✏️ 작업 내용

  • 작업 내용

😅 미완성 작업

  • Task1

📢 논의 사항 및 참고 사항

@yeonjin719 yeonjin719 self-assigned this Aug 15, 2025
@coderabbitai
Copy link

coderabbitai bot commented Aug 15, 2025

Caution

Review failed

The pull request is closed.

Summary by CodeRabbit

  • New Features

    • 데이트 코스 생성/검색/북마크 기능 도입 및 필터 모달 추가, 결과·목록 페이지 API 연동
    • 공지사항·FAQ 목록/검색/상세 조회 훅 기반으로 재구성
    • 회원 정보 관리: 비밀번호 변경, 닉네임 변경, 취향 초기화, 로그아웃
    • 알림 설정 조회/수정 기능 추가
    • FCM 디바이스 토큰 컨텍스트 제공 및 포그라운드 메시지 처리
    • 에러 페이지 UI 추가, 미니멀 레이아웃 도입
  • Improvements

    • 데이트 코스 타임라인/정보 UI 개선, 페이지네이션·네비게이터 접근성/경계 처리 향상
    • 날짜/포맷 유틸 및 정책 링크 제공, 다양한 텍스트/레이아웃 미세조정
  • Bug Fixes

    • 토큰 갱신 실패 시 로그아웃·스토리지 정리 강화, 콘솔 로그 정리

Walkthrough

광범위한 기능 추가와 리팩터링이 이루어졌습니다. 날짜 코스 생성/검색/북마크 도메인 신설, 공지/FAQ 데이터 접근 계층 재구성, 계정/설정(알람·닉네임·비밀번호·탈퇴) 기능 API/훅 연동, FCM 디바이스 토큰 컨텍스트 도입, 쿼리 키 전면 개편, 여러 UI 컴포넌트·레이아웃·라우트 갱신 및 유틸 추가가 포함됩니다.

Changes

Cohort / File(s) Summary
Lint & Dependencies
eslint.config.mjs, package.json
no-console 룰 추가(.warn/.error 허용). qs 및 @types/qs 의존성 추가.
Axios & Auth Token Handling
src/api/axiosInstance.ts
리프레시 실패 처리 강화(콘솔 에러로 통일, logout/localStorage.clear 추가), 오류 캐스팅 정정.
Firebase Device Token & Provider
src/firebase/firebase.ts, src/providers/deviceTokenProvider.tsx, src/hooks/alarm/usePostDeviceToken.ts, src/hooks/alarm/useDeviceToken.ts(삭제), src/App.tsx, src/pages/home/HomePage.tsx
FCM 지원 감지/토큰 발급/삭제/포그라운드 메시지 처리 Provider 도입. 기존 훅 삭제, 등록 요청 흐름으로 교체. App에 Provider 주입, 홈에서 컨텍스트 사용.
Query Keys Overhaul
src/queryKey/queryKey.ts, src/hooks/home/*(여러 파일에서 HomeKeys→homeKeys), src/components/modal/regionModal.tsx
homeKeys/noticeKeys 등 네이밍·키 형태 개편, alarm/dateCourse/member 키 추가, 관련 훅 사용처 전면 교체.
Account API & Hooks
src/api/auth/account.ts, src/types/auth/account.ts, src/hooks/auth/useAccount.ts
비밀번호/닉네임/탈퇴/회원정보/등급 API 및 통합 훅 추가. 타입 정의 신설.
Settings: 알람/닉네임/비밀번호/로그아웃/탈퇴
src/api/settingAlarm/alarm.ts, src/hooks/settingAlarm/useAlarms.ts, src/components/settingTab/*, src/components/modal/SettingModal.tsx, src/pages/setting/DeleteConfirmPage.tsx, src/pages/setting/DeleteReasonPage.tsx.tsx, src/pages/setting/PaymentHistory.tsx, src/components/common/PasswordEdit.tsx, src/components/common/ToggleSwitch.tsx
알람 설정 조회/수정 API·훅 연동, 토글 시 서버 반영/롤백. 닉네임/비밀번호 변경 서버 연동 및 UX 개선. 로그아웃/탈퇴 흐름 추가. 결제내역 페이지 페이지네이션 적용.
Notice 리워크
src/api/notice/notice.ts, src/api/notice/notice.keys.ts, src/hooks/notice/useNotice.ts, src/pages/notice/Notice*.tsx, src/hooks/notices/useGetNotices.ts(삭제), src/types/notice/notice.ts, src/components/home/info.tsx
목록/상세/검색 API·키·훅 신설 및 페이지 교체. 파라미터/반환 타입 변경. 기존 무한스크롤 훅 삭제. 홈 공지 섹션 호출 경로 변경.
FAQ 신설
src/api/faq/faq*.ts, src/hooks/faq/useFaq.ts, src/types/faq/faq.ts, src/components/faq/FAQItem.tsx, src/pages/question/Question.tsx
FAQ 리스트/검색 API·키·훅 및 타입 추가. 아이템 컴포넌트 접근성/애니메이션 개선. 질문 페이지를 서버 데이터 기반으로 전환.
Date Course 도메인(대규모)
src/types/dateCourse/dateCourse.ts, src/api/course/course.ts, src/hooks/course/*, src/store/useFilterStore.ts, src/store/useDateCourseResultStore.ts, src/constants/dateCourseQuestion.ts, src/utils/dateCourseValidation.tsx, src/utils/appendSignature.ts, src/components/dateCourse/*, src/components/modal/*DateCourse*, src/pages/dateCourse/*
도메인 타입 대폭 확장, 코스 생성/조회/북마크 API 추가(qs 파라미터 직렬화). 코스/북마크용 훅, 필터 영속 스토어/결과 스토어, 질문 상수/검증 로직 토큰화, 시그니처 스토리지 유틸 추가. 컴포넌트/모달/페이지 전면 개편(동적 렌더/북마크/필터/페이지네이션/결과 흐름).
Date Test
src/api/datetest/datetest.ts, src/types/datetest/datetest.ts, src/pages/dateTest/*
질문/제출/유형관계 API 및 타입 추가. 단계 진행/최종 제출/결과 페이지를 서버 데이터 기반으로 전환.
Home & Layout & Routes
src/components/home/*, src/layout/*, src/routes/routes.tsx
사용자명 표기 변경(등급→회원정보), 레이아웃에 RouteScopeReset/ClearOnLeave 추가, MinimalLayout 신설, 보호 라우트 제거 및 설정 관련 경로 재구성, 공통 에러 페이지 구현.
Common UI/Utils 소폭 수정
src/components/common/*(EditableInputBox, modal, navigator 등), src/app/routeChangeReset.tsx, src/utils/date.ts, src/components/auth/commonAuthInput.tsx, src/pages/common/Error.tsx, src/pages/TestInputPage.tsx, src/pages/auth/*
입력/포커스/읽기전용/레이블/패딩/페이지네이션 경계 처리 등 UI 개선. 경로 스코프 변경 시 필터 리셋, 날짜 포맷 유틸 추가, 콘솔 출력 정리.

Sequence Diagram(s)

sequenceDiagram
  autonumber
  actor User
  participant App
  participant DeviceTokenProvider
  participant SW as ServiceWorker
  participant Firebase as FCM
  participant API as Backend

  User->>App: 첫 상호작용
  App->>DeviceTokenProvider: requestAndRegister()
  alt FCM 미지원
    DeviceTokenProvider-->>App: 종료
  else 지원
    DeviceTokenProvider->>SW: register()
    DeviceTokenProvider->>Firebase: generateToken()
    Firebase-->>DeviceTokenProvider: deviceToken
    alt token 존재
      DeviceTokenProvider->>API: POST /device-token
      API-->>DeviceTokenProvider: OK
      DeviceTokenProvider->>Firebase: onMessage(listener)
      Firebase-->>DeviceTokenProvider: foreground payload
      DeviceTokenProvider->>App: invalidate refetchKeys / callback
    else 없음
      DeviceTokenProvider-->>App: 종료
    end
  end
Loading
sequenceDiagram
  autonumber
  participant UI as Filter Modal
  participant Store as useFilterStore
  participant Hook as useGetCourse/useGetBookmarkedCourse
  participant API as /api/v1/date-courses*

  UI->>Store: setField(key, value)
  Store-->>Hook: filters 변경
  Hook->>API: GET with filters (qs params)
  API-->>Hook: { dateCourseList, totalPages, ... }
  Hook-->>UI: data 전달
  UI->>List: DateCourse 컴포넌트들 렌더
  UI->>Bookmark: 북마크 클릭
  alt 이미 북마크
    UI->>API: DELETE /date-courses/{id}/bookmarks
  else 생성/저장
    alt make=true
      UI->>API: POST /date-courses/bookmarks (ids, name)
    else
      UI->>API: POST /date-courses/{id}/bookmarks
    end
  end
Loading
sequenceDiagram
  autonumber
  participant Page as Notice Page
  participant useNotice
  participant API

  Page->>useNotice: useGetNotices({category,page,size})
  useNotice->>API: GET /notices
  API-->>useNotice: { noticeList, totalPages, ... }
  Page->>useNotice: useSearchNotices({keyword?,category?,...})
  useNotice->>API: GET /notices/search
  API-->>useNotice: 결과
  useNotice-->>Page: 데이터/상태 제공
Loading

Estimated code review effort

🎯 5 (Critical) | ⏱️ ~90 minutes

Possibly related PRs

Suggested reviewers

  • SEBINorSEBOUT
  • Seojegyeong

Tip

🔌 Remote MCP (Model Context Protocol) integration is now available!

Pro plan users can now connect to remote MCP servers from the Integrations page. Connect with popular remote MCPs such as Notion and Linear to add more context to your reviews and chats.

✨ Finishing Touches
  • 📝 Generate Docstrings

🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.

Support

Need help? Create a ticket on our support page for assistance with any issues or questions.

CodeRabbit Commands (Invoked using PR/Issue comments)

Type @coderabbitai help to get the list of available commands.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

Status, Documentation and Community

  • Visit our Status Page to check the current availability of CodeRabbit.
  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

@yeonjin719 yeonjin719 merged commit 5bd0ffe into main Aug 15, 2025
2 of 3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants