Skip to content

feat: D-Day 수정 + 비밀답글 가시성 + 랭킹 포부 2줄 + Discord 알림 로그 시스템#72

Merged
bbbang105 merged 6 commits intodevfrom
feat/notification-logs-and-fixes
Apr 3, 2026
Merged

feat: D-Day 수정 + 비밀답글 가시성 + 랭킹 포부 2줄 + Discord 알림 로그 시스템#72
bbbang105 merged 6 commits intodevfrom
feat/notification-logs-and-fixes

Conversation

@bbbang105
Copy link
Copy Markdown
Owner

@bbbang105 bbbang105 commented Apr 3, 2026

Summary

  • D-Day 계산 수정: Math.ceil(timeDiff) → KST 캘린더 날짜 기준 midnight 비교 (당일=D-Day=0)
  • 비밀답글 가시성: 부모 댓글 작성자도 비밀 답글 열람 가능 (게시판+포스트)
  • 랭킹 포부 2줄: 모바일에서 truncateline-clamp-2로 변경
  • Discord 알림 로그: 봇/웹 모든 채널+DM 알림의 성공/실패를 DB에 기록, 관리자 페이지에서 조회

Changes

  • discord_notification_logs 테이블 추가 (shared 스키마)
  • 봇: 채널 알림 6종 + DM 5종 로깅 (notification-logger.ts)
  • 웹: discord-notify.ts 반환타입 확장 + 호출자 로깅
  • 관리자 API (GET /api/admin/bot-logs) + UI (탭 추가, 필터+무한 스크롤)
  • 타입별 한글 칩 + 색상 구분

Test plan

  • 대시보드에서 D-Day가 올바르게 표시되는지 확인 (당일=D-Day, 하루전=D-1)
  • 게시판/포스트에서 비밀 답글이 부모 댓글 작성자에게 보이는지 확인
  • 랭킹 페이지 모바일에서 포부가 2줄 표시되는지 확인
  • 관리자 > 봇 관리 > 알림 로그 탭에서 로그 조회/필터 동작 확인
  • 봇 수동 실행 후 알림 로그에 기록되는지 확인

🤖 Generated with Claude Code

bbbang105 and others added 6 commits April 3, 2026 18:18
Math.ceil(timeDiff)에서 KST midnight 기준 날짜 차이로 변경하여
마감일 당일이 D-Day(0), 하루 전이 D-1로 정확히 표시되도록 수정.
dashboard, admin/dashboard, rounds API + shared 유틸 모두 통일.

Co-Authored-By: Claude <noreply@anthropic.com>
비밀 답글(isSecret)을 부모 댓글 작성자도 볼 수 있도록
게시판/포스트 댓글 API 마스킹 로직에 parentId 체크 추가.

Co-Authored-By: Claude <noreply@anthropic.com>
truncate → line-clamp-2로 변경하여 모바일에서도
포부(resolution)가 2줄까지 보이도록 수정.

Co-Authored-By: Claude <noreply@anthropic.com>
봇/웹에서 Discord 채널 및 DM으로 보내는 모든 알림의
성공/실패를 DB에 기록하고 관리자 페이지에서 조회.

- discord_notification_logs 테이블 추가 (shared 스키마)
- 봇: 채널 알림 6종 + DM 5종 로깅 (notification-logger 헬퍼)
- 웹: discord-notify 반환타입 확장 + 호출자 로깅
- 관리자 API (GET /api/admin/bot-logs) + UI (탭 추가)
- 타입/소스/대상/상태별 필터 + 무한 스크롤

Co-Authored-By: Claude <noreply@anthropic.com>
- bot-logs API: withCache 제거 (관리자 민감 데이터), cursor 유효성 검증 추가
- notification-logs: IntersectionObserver deps 최적화 (isLoadingMore ref 전환)
- 필터 Select 반응형 너비 (모바일 대응)
- 상태 도트 크기 확대 + ring + aria-label 접근성 개선

Co-Authored-By: Claude <noreply@anthropic.com>
@bbbang105 bbbang105 requested a review from choihooo as a code owner April 3, 2026 09:32
@vercel
Copy link
Copy Markdown

vercel bot commented Apr 3, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
study-admin-web Ready Ready Preview, Comment Apr 3, 2026 9:33am

@bbbang105 bbbang105 added 🌱 style 코드 의미에 영향을 주지 않는 변경사항 (코드 포맷팅, 오타 수정, 변수명 변경, 에셋 추가) 📄 docs 문서 추가 및 수정 🚀 feat 새로운 기능 추가 / 일부 코드 추가 / 일부 코드 수정 (리팩토링과 구분) / 디자인 요소 수정 🚨 fix 버그 수정 / 에러 해결 labels Apr 3, 2026
@bbbang105 bbbang105 merged commit 3ca3148 into dev Apr 3, 2026
8 checks passed
@bbbang105 bbbang105 deleted the feat/notification-logs-and-fixes branch April 3, 2026 09:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

📄 docs 문서 추가 및 수정 🚀 feat 새로운 기능 추가 / 일부 코드 추가 / 일부 코드 수정 (리팩토링과 구분) / 디자인 요소 수정 🚨 fix 버그 수정 / 에러 해결 🌱 style 코드 의미에 영향을 주지 않는 변경사항 (코드 포맷팅, 오타 수정, 변수명 변경, 에셋 추가)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant