Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Firebase Cloud Messaging(FCM) 기반 PWA 푸시 알림 시스템 구현 주요 기능: - 브라우저 알림 권한 요청 및 FCM 토큰 발급 - 알림 종류별 설정 (게시판/포스트 댓글/답글, 공지사항) - 포그라운드/백그라운드 메시지 수신 - DB에 토큰 저장 및 알림 선호도 관리 - 댓글/답글 작성 시 푸시 알림 전송 - Firebase Service Account 환경변수 분리 설정 Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
6486bb9 to
33bba86
Compare
Co-Authored-By: Claude <noreply@anthropic.com>
- sendPushToMembers에 알림 설정 체크 추가 (P0: 사용자 설정 무시 수정) - Service Worker clickUrl 오픈 리다이렉트 방지 (상대 경로만 허용) - Firebase client lazy 초기화 (SSR 크래시 방지) - 토큰 자동복원 시 서버 재구독, unsubscribe null 대응 - subscribeToPush HTTP 응답 검증, FCM 토큰 입력 검증 - 실패 토큰 삭제 memberId 스코프, lastUsedAt 성공 토큰만 업데이트 - 테스트 푸시 알림 API + UI (타입별 전송 버튼, 레이트 리밋 5/min) - 접근성 개선 (aria-label, aria-labelledby, aria-live, reduced-motion) - deviceInfo 길이 제한 (200자), 헤딩 계층 수정 - CLAUDE.md, schema-summary, ARCHITECTURE.md 최신화 Co-Authored-By: Claude <noreply@anthropic.com>
Co-Authored-By: Claude <noreply@anthropic.com>
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.
🎯 Summary
🔴 AS-IS
🟢 TO-BE
/profile/notifications에서 개인 설정 관리💬 참고사항
기술 스택
notification_push_tokens,notification_preferences테이블환경 변수 추가 필요 (6개)
구현 파일
packages/web/src/app/api/notification-preferences/- 알림 설정 APIpackages/web/src/app/api/push/- 토큰 구독/해지 APIpackages/web/src/components/settings/push-notification-settings.tsx- 설정 UIpackages/web/src/hooks/use-push-notification.ts- 푸시 알림 훅packages/web/src/lib/push.ts- 서버사이드 전송 로직packages/web/src/lib/firebase/client.ts- FCM 클라이언트packages/web/src/lib/firebase/admin.ts- FCM Admin SDK (환경변수 분리)packages/shared/src/db/schema.ts- DB 스키마 추가주의사항
.gitignore로 보안 처리됨\\n을\n으로 자동 변환테스트 플랜
🤖 Generated with Claude Code