Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Walkthrough서비스 워커의 FCM 백그라운드 메시지 처리에서 알림 옵션을 수정하여 payload.notification.image를 아이콘/이미지로 우선 사용하고, 없을 경우 기존 '/FCM-IMG.png'로 폴백합니다. 또한 알림 옵션에 현재 타임스탬프 기반 tag를 추가했습니다. 기타 제어 흐름 변화는 없습니다. Changes
Sequence Diagram(s)sequenceDiagram
autonumber
participant FCM as FCM
participant SW as Service Worker (firebase-messaging-sw.js)
participant NS as Notification API
FCM->>SW: onBackgroundMessage(payload)
rect rgba(200,220,255,0.25)
note right of SW: 알림 옵션 구성
SW->>SW: image := payload.notification.image || '/FCM-IMG.png'
SW->>SW: icon := image
SW->>SW: tag := Date.now().toString()
end
SW->>NS: showNotification(title, { body, icon, image, tag })
NS-->>SW: Notification shown
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Possibly related PRs
Suggested labels
Suggested reviewersPoem
Pre-merge checks and finishing touches❌ Failed checks (4 warnings)
✅ Passed checks (1 passed)
✨ Finishing touches
🧪 Generate unit tests
📜 Recent review detailsConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro 📒 Files selected for processing (1)
🔇 Additional comments (2)
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 |
|
✅ Storybook chromatic 배포 확인: |
📌 Related Issues
⭐ PR Point (To Reviewer)
[참고] 서버쪽이랑 FCM 알람 오류 실시간 확인 중이라!! 커밋 중복되게 계속 수정 중입니다 ㅠㅠ
📄 Tasks
📷 Screenshot
Summary by CodeRabbit