Conversation
Walkthrough백엔드에 복약 알림 스케줄러와 FCM 푸시 발송 로직이 추가되고, 특정 알약 삭제 시 복용 기록 일괄 삭제가 포함되었습니다. 저장소 레벨에 조회/삭제 메서드가 확장되었습니다. 프런트엔드는 Flutter Local Notifications를 도입하여 iOS 전경 표시 및 알림 액션 카테고리를 초기화했습니다. 의존성에 플러그인이 추가되었습니다. Changes
Sequence Diagram(s)sequenceDiagram
autonumber
participant Cron as Scheduler (매 분)
participant PS as PillService
participant PIR as PillIntakeRecordRepository
participant UTR as UserFcmTokenRepository
participant FCM as FirebaseMessaging
Cron->>PS: checkAndSendMedicationAlarms()
PS->>PIR: 오늘 미복용(시간 경과) 기록 조회/검증
PS->>UTR: 사용자 FCM 토큰 조회
loop 각 알림 대상
PS->>FCM: Message 전송 (Android/APNs 설정 포함)
FCM-->>PS: 전송 결과/에러
end
sequenceDiagram
autonumber
participant API as API Layer
participant PS as PillService
participant PIR as PillIntakeRecordRepository
API->>PS: deletePill(pillId)
PS->>PIR: deleteByPill(pill)
PS-->>API: 삭제 완료
sequenceDiagram
autonumber
participant App as Flutter App
participant FLN as flutter_local_notifications
participant FCMc as Firebase Messaging (Client)
App->>FLN: initialize(iOS: categories/action)
App->>FCMc: setForegroundNotificationPresentationOptions(alert,badge,sound)
FCMc-->>App: 알림 수신(전경/배경)
App-->>FLN: iOS 카테고리 액션 처리(ACCEPT)
Estimated code review effort🎯 4 (Complex) | ⏱️ ~60 minutes Poem
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Free 💡 Knowledge Base configuration:
You can enable these sources in your CodeRabbit configuration. 📒 Files selected for processing (4)
Note 🎁 Summarized by CodeRabbit FreeYour organization is on the Free plan. CodeRabbit will generate a high-level summary and a walkthrough for each pull request. For a comprehensive line-by-line review, please upgrade your subscription to CodeRabbit Pro by visiting https://app.coderabbit.ai/login. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Join our Discord community for assistance with any issues or questions. CodeRabbit Commands (Invoked using PR/Issue comments)Type Other keywords and placeholders
CodeRabbit Configuration File (
|
* feat: 약 복용 알림 기능 추가 * feat: fcm 알림 약 복용 체크용 커스텀 액션 추가
Summary by CodeRabbit