feat: Discord DM → FCM 푸시 전환 + 벌금 상세 페이지#80
Merged
Conversation
Co-Authored-By: Claude <noreply@anthropic.com>
Co-Authored-By: Claude <noreply@anthropic.com>
Co-Authored-By: Claude <noreply@anthropic.com>
- GET /api/profile/fines: 내 벌금 목록 + 미납/납부/합계 요약 - PATCH /api/fines/[id]/pay: 본인 벌금 납부 완료 처리 + 관리자 Discord 알림 Co-Authored-By: Claude <noreply@anthropic.com>
Co-Authored-By: Claude <noreply@anthropic.com>
Co-Authored-By: Claude <noreply@anthropic.com>
- push-client.ts: 웹 내부 API(/api/internal/reminder-push) 호출 클라이언트 - dm-handler.ts: sendFineNotification, sendFineReminder, sendPollReminderPush 푸시 전환 - fine-reminder.ts: sendGracePeriodNudge 배치 푸시 + sendFineReminder 호출부 수정 - deadline-reminder.ts: sendForDDay 배치 푸시 전환 - poll-reminder.ts: sendPollReminderPush 호출로 전환 Co-Authored-By: Claude <noreply@anthropic.com>
Co-Authored-By: Claude <noreply@anthropic.com>
- fine/deadline/grace/poll 등 리마인더 타입은 유저가 끌 수 없음 (FORCE_SEND_TYPES) - 알림 설정 UI에서도 강제 타입 자동 필터링 - 푸시 알림 로그 metadata에 수신자 닉네임 저장 - 관리자 알림 로그 UI에서 "푸시 → 닉네임1, 닉네임2" 표시 Co-Authored-By: Claude <noreply@anthropic.com>
- [P0 버그] fine-reminder/deadline-reminder: client null 가드 제거 (수동 실행 차단 해소) - [P0 UI] 벌금 페이지 로딩 시 헤더 유지 - [보안] reminder-push: clickUrl protocol-relative 차단, type 허용목록, memberIds max 200 - [보안] fines/pay: atomic update (race condition), Discord markdown escape, UUID 검증 - [DRY] FORCE_SEND_TYPES 단일화 (push.ts → notification-preferences import) - [UX] 계좌번호 복사 실패 처리, 납부 확인 다이얼로그에 계좌 정보 명시 - [Perf] profile/fines GET에 withCache(30s) 적용 Co-Authored-By: Claude <noreply@anthropic.com>
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
/profile/fines) 신규 — 본인 벌금 조회 + 납부 완료 버튼push타겟 + 수신자 닉네임 표시변경사항
봇 (packages/bot)
lib/push-client.ts신규 — 웹 내부 API/api/internal/reminder-push호출 래퍼handlers/dm-handler.ts—sendFineNotification/sendFineReminder/sendPollReminderPush3종 푸시로 전환 (기존 DM 버튼 핸들러는 레거시 호환용으로 유지)schedulers/fine-reminder.ts,deadline-reminder.ts,poll-reminder.ts— 배치 푸시 발송으로 교체웹 (packages/web)
/profile/fines신규 페이지 — 미납/납부완료/면제 3단 요약, 회차별 내역, 납부 완료 다이얼로그, 계좌번호 복사/api/profile/finesGET,/api/fines/[id]/payPATCH,/api/internal/reminder-pushPOST 신규/profile/fines이동push필터 옵션 + 수신자 닉네임 표시공유 (packages/shared)
NotificationType에 5종 추가:fine_notification,fine_reminder,deadline_reminder,grace_nudge,poll_reminderFORCE_SEND_TYPES— 유저가 끌 수 없음리뷰 반영 (P0 + 핵심 P1)
clickUrlprotocol-relative 차단,type허용 목록,memberIdsmax 200FORCE_SEND_TYPES단일화profile/finesGET에withCache(30s)적용Test plan
pnpm typecheck통과 (shared/web/bot)pnpm lint— 0 errorspnpm --filter @blog-study/bot test— 150/150 통과/profile/fines이동 확인스펙 / 플랜
🤖 Generated with Claude Code