-
Notifications
You must be signed in to change notification settings - Fork 3
[RELEASE] v1.4.0 메인 브랜치에 머지 #154
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
Conversation
|
Caution Review failedThe pull request is closed. 📋 코드 리뷰 요약Walkthrough파이어베이스 클라우드 메시징(FCM) 통합, 푸시 알림 시스템 구현, AI 도서 리뷰 기능, 그리고 만료된 방 관련 UI 상태 처리를 추가합니다. 새로운 알림 서비스 계층, 토큰 관리자, 그리고 여러 UI 및 네비게이션 업데이트를 도입합니다. Changes
Sequence Diagram(s)sequenceDiagram
participant User
participant MainActivity
participant FCMService as MyFirebaseMessagingService
participant NotifRepo as NotificationRepository
participant MainScreen
participant NavController
User->>FCMService: 알림 수신
FCMService->>NotifRepo: onNotificationReceived()
NotifRepo->>NotifRepo: _notificationRefreshFlow 발행
FCMService->>MainActivity: 알림 표시 & Intent 전송
MainActivity->>MainActivity: onNewIntent() 호출
MainActivity->>MainActivity: handleNotificationIntent()
MainActivity->>MainActivity: notificationData 업데이트
MainScreen->>NotifRepo: checkNotification(id)
NotifRepo->>NavController: navigateFromNotification()
NavController->>User: 대상 화면으로 이동
sequenceDiagram
participant App
participant SplashViewModel
participant FcmTokenManager
participant NotificationRepository
participant Server
App->>SplashViewModel: 앱 시작
SplashViewModel->>FcmTokenManager: sendFcmToken()
FcmTokenManager->>FcmTokenManager: 저장된 토큰 확인
alt 토큰 없음
FcmTokenManager->>FcmTokenManager: Firebase에서 새 토큰 조회
end
FcmTokenManager->>NotificationRepository: registerFcmToken()
NotificationRepository->>Server: FCM 토큰 등록 API
Server-->>NotificationRepository: 성공
FcmTokenManager->>FcmTokenManager: 로컬에 토큰 저장
SplashViewModel->>App: Home 화면 네비게이션
sequenceDiagram
participant User
participant AlarmScreen
participant AlarmViewModel
participant NotificationRepository
participant MainScreen
User->>AlarmScreen: 알람 화면 진입
AlarmScreen->>AlarmViewModel: loadNotifications(reset=true)
AlarmViewModel->>NotificationRepository: getNotifications()
NotificationRepository-->>AlarmViewModel: 알림 목록
AlarmViewModel->>AlarmViewModel: uiState 업데이트
AlarmScreen->>AlarmScreen: 알림 렌더링
User->>AlarmScreen: 알림 클릭
AlarmScreen->>AlarmViewModel: checkNotification(id, onNavigate)
AlarmViewModel->>NotificationRepository: checkNotification()
NotificationRepository-->>AlarmViewModel: NotificationCheckResponse
AlarmViewModel->>MainScreen: onNavigate(response) 콜백
MainScreen->>MainScreen: navigateFromNotification()
rect rgb(200, 150, 255)
MainScreen->>MainScreen: 경로에 따라 대상 화면으로 이동
end
Estimated code review effort🎯 4 (Complex) | ⏱️ ~45 분 검토 시 특별히 주의할 사항:
Possibly related PRs
Suggested labels
Suggested reviewers
Poem
✨ Finishing touches
🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro Disabled knowledge base sources:
📒 Files selected for processing (91)
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 |
Summary by CodeRabbit
주요 변경사항
새로운 기능
개선사항