Skip to content

[feat] 네비게이션용 데이터 추가#1177

Merged
lepitaaar merged 2 commits intodevelop/befrom
feature/#1174-add-noti-navigation-MOA-630
Feb 11, 2026
Merged

[feat] 네비게이션용 데이터 추가#1177
lepitaaar merged 2 commits intodevelop/befrom
feature/#1174-add-noti-navigation-MOA-630

Conversation

@lepitaaar
Copy link
Contributor

@lepitaaar lepitaaar commented Feb 9, 2026

#️⃣연관된 이슈

#1174

📝작업 내용

네비게이션용 데이터 추가했습니다

//fcm data
"data": {
      "path": "/webview/clubDetail:{clubId}",
      "action": NAVIGATE_WEBVIEW,
      "clubId": "{clubId}"
}

다만 스케쥴링 코드가 테스트 용이하게 코드가 짜져있지않아 리팩토링 필요성이 느껴져 지라에 태스크 추가했습니다.

중점적으로 리뷰받고 싶은 부분(선택)

리뷰어가 특별히 봐주었으면 하는 부분이 있다면 작성해주세요

ex) 메서드 XXX의 이름을 더 잘 짓고 싶은데 혹시 좋은 명칭이 있을까요?

논의하고 싶은 부분(선택)

논의하고 싶은 부분이 있다면 작성해주세요.

🫡 참고사항

Summary by CodeRabbit

  • New Features
    • 모집 상태 변경 알림에 추가 데이터 페이로드 포함 — 알림에서 관련 클럽을 바로 열 수 있는 경로 정보와 액션(웹뷰 이동 지시) 및 클럽 ID가 전달되어, 사용자가 알림 클릭으로 해당 클럽 상세 웹뷰로 즉시 이동할 수 있습니다.

@lepitaaar lepitaaar self-assigned this Feb 9, 2026
@lepitaaar lepitaaar added ✨ Feature 기능 개발 💾 BE Backend labels Feb 9, 2026
@vercel
Copy link

vercel bot commented Feb 9, 2026

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

Project Deployment Actions Updated (UTC)
moadong Ready Ready Preview, Comment Feb 9, 2026 2:58pm

@coderabbitai
Copy link
Contributor

coderabbitai bot commented Feb 9, 2026

Warning

.coderabbit.yaml has a parsing error

The CodeRabbit configuration file in this repository has a parsing error and default settings were used instead. Please fix the error(s) in the configuration file. You can initialize chat with CodeRabbit to get help with the configuration file.

💥 Parsing errors (1)
Validation error: Invalid regex pattern for base branch. Received: "**" at "reviews.auto_review.base_branches[0]"
⚙️ Configuration instructions
  • Please see the configuration documentation for more information.
  • You can also validate your configuration using the online YAML validator.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Walkthrough

FCM 알림에 앱 네비게이션용 데이터 페이로드를 추가했습니다. 새로운 FcmAction enum을 추가하고, RecruitmentStateCalculatorbuildNotificationData(Club) 메서드를 도입해 path, action, clubId를 포함한 데이터 맵을 생성하여 메시지에 첨부합니다.

Changes

Cohort / File(s) Summary
FCM 네비게이션 열거형
backend/src/main/java/moadong/fcm/enums/FcmAction.java
웹뷰 네비게이션 목적의 새 enum FcmAction 추가 (NAVIGATE_WEBVIEW).
알림 데이터 페이로드 구성
backend/src/main/java/moadong/club/util/RecruitmentStateCalculator.java
buildNotificationData(Club) 공용 메서드 추가. recruitment 메시지 생성 시 putAllData(buildNotificationData(club))로 path(/webview/clubDetail/{id}), action(NAVIGATE_WEBVIEW), clubId 포함한 데이터 페이로드를 메시지에 첨부하도록 변경.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~8 minutes

🚥 Pre-merge checks | ✅ 4 | ❌ 1
❌ Failed checks (1 warning)
Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (4 passed)
Check name Status Explanation
Title check ✅ Passed PR 제목은 'FCM 알림 페이로드에 네비게이션용 데이터 추가'라는 주요 변경사항을 명확하게 설명하고 있습니다.
Linked Issues check ✅ Passed PR의 코드 변경사항이 MOA-630의 요구사항을 충족합니다: FcmAction 열거형 추가, RecruitmentStateCalculator에 buildNotificationData 메서드 추가, 네비게이션 데이터(path, action, clubId) 포함.
Out of Scope Changes check ✅ Passed 모든 코드 변경사항이 MOA-630의 FCM 알림 네비게이션 데이터 추가 목표와 직접적으로 관련되어 있습니다.
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing touches
  • 📝 Generate docstrings
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch feature/#1174-add-noti-navigation-MOA-630

Tip

Issue Planner is now in beta. Read the docs and try it out! Share your feedback on Discord.


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.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@github-actions
Copy link

github-actions bot commented Feb 9, 2026

Test Results

72 tests   72 ✅  20s ⏱️
14 suites   0 💤
14 files     0 ❌

Results for commit 25a77f8.

♻️ This comment has been updated with latest results.

@SeongHoonC
Copy link
Collaborator

이 형식으로 봐주세요
{
"action": "NAVIGATE_WEBVIEW",
"path": "/webview/clubDetail/6873bf1a9033815c43911940",
"clubId": "6873bf1a9033815c43911940"
}

Copy link
Collaborator

@SeongHoonC SeongHoonC left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

확인했습니다

@lepitaaar lepitaaar merged commit 0f5892f into develop/be Feb 11, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

💾 BE Backend ✨ Feature 기능 개발

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants