Merged
Conversation
[Feature] FCM 연결 및 모달 생성, API 연결
[Feature/#91] 메인 화면 API 연결
|
Caution Review failedThe pull request is closed. Summary by CodeRabbit
WalkthroughFCM 기반 알림, 홈 대시보드 데이터(fetch/표시), 모달 인프라가 추가·확장되었습니다. Firebase SW/토큰 등록 훅, 알림 무한스크롤 모달, 지역 설정 모달, 홈 지표/날씨/키워드 API와 훅, 관련 타입/쿼리키/유틸이 신설되었습니다. 경로 별칭, 패키지, ESLint/TS 설정이 갱신되었습니다. Changes
Sequence Diagram(s)sequenceDiagram
autonumber
participant U as User
participant App as App(UI)
participant Hook as useDeviceToken
participant FB as Firebase(Messaging)
participant SW as Service Worker
participant API as Backend API
U->>App: 첫 사용자 클릭
App->>Hook: 초기화 트리거
Hook->>FB: isSupported()
alt 지원됨
Hook->>SW: registerServiceWorker()
Hook->>FB: generateToken()
FB-->>Hook: token | null
alt token 존재
Hook->>API: POST /alarms/device-tokens
API-->>Hook: 200 OK
end
end
sequenceDiagram
autonumber
participant UI as Header/MobileMenu
participant Modal as ModalProvider
participant AM as AlarmModal
participant HQ as useGetAlarm
participant API as GET /api/v1/alarms
UI->>Modal: open(AlarmModal)
Modal->>AM: mount
AM->>HQ: useInfiniteQuery(init)
HQ->>API: page=cursor,size=5
API-->>HQ: alarmList, hasNext, cursor
AM-->>AM: 목록 렌더
AM->>AM: sentinel inView
AM->>HQ: fetchNextPage()
HQ->>API: cursor=last.cursor
API-->>HQ: next page
AM-->>AM: 추가 렌더
sequenceDiagram
autonumber
participant Home as HomePage
participant HG as useUserGrade
participant DR as DateRecommend
participant UR as useGetUserRegion
participant WF as useWeatherForecast
participant RI as useRainyInfo
participant DL as DateLocation/useMonthlyPlaceStates
participant DT as DateTimes/useDateTimeStates
participant KW as WordCloud/useWeeklyKeywords
participant APIs as Home APIs
Home->>HG: 등급 조회
HG->>APIs: GET /members/grade
APIs-->>HG: grade data
Home-->>Home: Level 렌더
DR->>UR: 지역 조회
UR->>APIs: GET /regions/users/current
APIs-->>UR: regionId
DR->>WF: 주간 날씨 추천
WF->>APIs: GET /weather/{regionId}/weekly
APIs-->>WF: recommendations
DR->>RI: 강수 정보
RI->>APIs: GET /weather/{regionId}/precipitation
APIs-->>RI: precipitations
DL->>APIs: GET /logs/dateplaces/monthly
DT->>APIs: GET /logs/datecourses/average
KW->>APIs: GET /logs/keyword/weekly
sequenceDiagram
autonumber
participant UI as RegionModal
participant SR as useSearchRegion
participant UR as useUserRegion (mutation)
participant API as Regions API
UI->>SR: refetch(keyword)
SR->>API: GET /regions/search?keyword
API-->>SR: regions
UI->>UR: patchUserRegion(regionId)
UR->>API: PATCH /regions/users {regionId}
API-->>UR: 200 OK
UI-->>UI: onClose()
Estimated code review effort🎯 4 (Complex) | ⏱️ ~45 minutes Possibly related PRs
Suggested reviewers
📜 Recent review detailsConfiguration used: .coderabbit.yaml ⛔ Files ignored due to path filters (7)
📒 Files selected for processing (66)
✨ Finishing Touches
🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. CodeRabbit Commands (Invoked using PR/Issue comments)Type Other keywords and placeholders
Status, Documentation and Community
|
This was referenced Aug 13, 2025
Merged
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
🚨 관련 이슈
✨ 변경사항
✏️ 작업 내용
배포
😅 미완성 작업
N/A
📢 논의 사항 및 참고 사항