Merged
Conversation
수동 등록 + RSS 수집 모두에서 새 글 등록 시 작성자 본인을 제외한 active/OB/dormant 멤버에게 FCM 푸시 알림을 발송한다. - shared: NotificationType에 NEW_POST 추가 - web: 내부 API `/api/internal/new-post-push` (Bearer 인증, timing-safe 비교, rate limit 20/min, UUID/길이 검증) - web: 수동 등록 시 별도 after() 블록에서 sendPushToMembers 호출 (Discord 토글과 독립) - bot: RSS 새 글 감지 시 웹 내부 API fire-and-forget 호출 - web: 알림 설정 UI에 '새 글 알림' 토글 추가 - web: 테스트 푸시에 new_post 타입 추가 - web: decodeHtmlEntities 유틸 추가 (RSS 제목 HTML 엔티티 디코딩) - docs: CLAUDE.md, ARCHITECTURE.md 최신화 Co-Authored-By: Claude <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
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
새 글이 등록(수동 + RSS)되면, 알림을 허용한 active/OB/dormant 멤버 전원에게 FCM 푸시 알림을 발송한다. 작성자 본인은 제외.
Changes
packages/shared/src/db/schema.tsNotificationType에NEW_POST: 'new_post'추가packages/web/src/lib/sanitize.tsdecodeHtmlEntities()추가 (RSS 제목 HTML 엔티티 디코딩,fromCodePoint+ 제어문자 필터)packages/web/src/app/api/internal/new-post-push/route.tspackages/web/src/app/api/posts/manual/route.tsafter()블록으로 푸시 발송 (Discord 토글 무관,decodeHtmlEntities적용)packages/bot/src/scheduler-registry.tspackages/web/src/components/settings/push-notification-settings.tsxnew_post토글 +FileText아이콘 추가packages/web/src/app/api/push/test/route.tsnew_post테스트 메시지 추가.env.exampleINTERNAL_API_KEY,WEB_URL추가CLAUDE.mddocs/ARCHITECTURE.mdDesign Decisions
Test Plan
INTERNAL_API_KEY미설정 시 봇 graceful skip 확인/posts/{id}포스트 상세로 이동 확인배포 전 필요
INTERNAL_API_KEY환경변수 추가INTERNAL_API_KEY+WEB_URL환경변수 추가🤖 Generated with Claude Code