Skip to content

Comments

fix: FCM 로직 수정 #180

Merged
jllee000 merged 13 commits intodevelopfrom
fix/#161/fcm-setting-edit
Oct 2, 2025
Merged

fix: FCM 로직 수정 #180
jllee000 merged 13 commits intodevelopfrom
fix/#161/fcm-setting-edit

Conversation

@jllee000
Copy link
Collaborator

@jllee000 jllee000 commented Oct 2, 2025

📌 Related Issues

⭐ PR Point (To Reviewer)

[참고] 서버쪽이랑 FCM 알람 오류 실시간 확인 중이라!! 커밋 중복되게 계속 병합이됐습니다 ㅠㅠ

📄 Tasks

  1. 푸시알람 클릭 시에 핀백으로 랜딩 로직
  2. url 반환

📷 Screenshot

Summary by CodeRabbit

  • 신규 기능: 없음
  • 유지보수(Chores)
    • 푸시 알림 기본 옵션을 단순화했습니다. 이제 알림은 본문과 아이콘만 표시되며, requireInteraction 및 renotify 동작이 제거됩니다.
    • 알림 클릭 시 기존 탭을 포커싱하거나 새 탭을 여는 동작을 제거했습니다. 알림을 눌러도 앱으로 자동 이동하지 않으며, 사용자는 직접 앱을 열어 확인해야 합니다.

@coderabbitai
Copy link

coderabbitai bot commented Oct 2, 2025

Walkthrough

서비스 워커의 FCM 백그라운드 메시지 처리에서 알림 옵션 일부(data.url, requireInteraction, renotify)와 notificationclick 이벤트 리스너가 제거되었습니다. 이제 알림은 body와 icon만 기본 제공하며, 클릭 시의 탭 포커싱/열기 동작은 더 이상 수행되지 않습니다.

Changes

Cohort / File(s) Summary of Changes
Service Worker: FCM 알림 처리
apps/client/public/firebase-messaging-sw.js
백그라운드 메시지 알림 옵션에서 data.url, requireInteraction, renotify 제거. notificationclick 이벤트 리스너 전체 삭제. 기본 알림 내용(body, icon)만 유지.

Sequence Diagram(s)

sequenceDiagram
    autonumber
    participant FCM as FCM
    participant SW as Service Worker
    participant OS as Notification API

    rect rgba(220,235,255,0.5)
    note over FCM,SW: 백그라운드 푸시 수신
    FCM->>SW: push message (data)
    SW->>OS: showNotification(title, { body, icon })
    end
    note over OS: 클릭 핸들러 제거됨 (후속 동작 없음)
Loading

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

Possibly related PRs

Suggested labels

fix

Suggested reviewers

  • constantly-dev
  • jjangminii

Poem

작은 종이 울려도, 난 조용히 뛰어가요 🐇
클릭 길은 접고, 바람 같은 알림만 놔요.
몸 가볍게, 아이콘 달고—띵.
탭을 열던 발걸음은 오늘 쉬어요.
달빛 아래, 메시지만 포근히 흔들려요.

Pre-merge checks and finishing touches

❌ Failed checks (3 warnings, 1 inconclusive)
Check name Status Explanation Resolution
Linked Issues Check ⚠️ Warning 제출된 변경사항은 FCM 서비스 워커의 알림 옵션 수정으로, 연결된 #25 이슈가 요구하는 프로그레스 바 컴포넌트 구현과 전혀 일치하지 않습니다. 올바른 이슈를 연결하거나, 해당 코드가 #25 이슈 요구사항에 맞춰 프로그레스 바 구현을 추가하도록 변경해주세요.
Out of Scope Changes Check ⚠️ Warning 해당 PR은 FCM 알림 설정 수정만 포함되어 있고, 연결된 디자인 시스템 이슈에서 요구하는 프로그레스 바 컴포넌트 관련 코드 구현이 전혀 없으므로 변경사항이 대다수 목적 범위 밖에 속합니다. 이 PR에서 의도하지 않은 FCM 변경사항을 제거하고, 프로그레스 바 구현은 별도 브랜치로 분리하거나 올바른 이슈와 매핑된 구현만 포함하도록 조정해주세요.
Description Check ⚠️ Warning PR 설명이 템플릿만 남겨두고 실제 관련 이슈 번호, 작업 내역, 리뷰 포인트, 스크린샷 등의 구체적 내용이 전혀 채워져 있지 않습니다. 관련 이슈 번호와 수행한 작업 목록, 리뷰어에게 전달할 포인트, 필요 시 스크린샷을 포함하여 각 섹션을 완성해주세요.
Title Check ❓ Inconclusive 제목은 FCM 설정 수정을 언급하나 변경된 구체적 내용을 전달하지 못하고 이슈 번호를 포함해 불필요한 잡음을 만들고 있습니다. 제목을 주요 변경사항을 명확히 반영하도록 수정해주세요. 예를 들어 ‘Firebase 메시징 서비스 워커의 알림 옵션 제거 및 간소화’처럼 구체적으로 작성하면 좋습니다.
✅ Passed checks (1 passed)
Check name Status Explanation
Docstring Coverage ✅ Passed No functions found in the changes. Docstring coverage check skipped.
✨ Finishing touches
  • 📝 Generate Docstrings
🧪 Generate unit tests
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch fix/#161/fcm-setting-edit

📜 Recent review details

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between a5d35f7 and 836541d.

📒 Files selected for processing (1)
  • apps/client/public/firebase-messaging-sw.js (0 hunks)
💤 Files with no reviewable changes (1)
  • apps/client/public/firebase-messaging-sw.js
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (1)
  • GitHub Check: storybook

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.

@vercel
Copy link

vercel bot commented Oct 2, 2025

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

Project Deployment Preview Comments Updated (UTC)
pinback-client-client Ready Ready Preview Comment Oct 2, 2025 6:01pm
pinback-client-landing Ready Ready Preview Comment Oct 2, 2025 6:01pm

@github-actions
Copy link

github-actions bot commented Oct 2, 2025

✅ Storybook chromatic 배포 확인:
🐿️ storybook

@jllee000 jllee000 merged commit 0f3b6c2 into develop Oct 2, 2025
11 checks passed
@jllee000 jllee000 changed the title Fix/#161/fcm setting edit fix: FCM 로직 수정 Oct 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

fix 버그 수정하라 러브버그

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Fix] FCM 커스텀 및 연동 수정

1 participant