Skip to content

[Fix] 리뷰 화면 알림 허용 후 토스트 표시와 찜 화면 이동 - #492

Open
Hrepay wants to merge 2 commits into
developfrom
fix/#489
Open

Hrepay wants to merge 2 commits into
developfrom
fix/#489

Conversation

@Hrepay

@Hrepay Hrepay commented Nov 17, 2026 •

Copy link
Copy Markdown
Member

📌 관련 이슈

✨ 작업 내용

  • NotificationPermissionPrompt.requestPermission에 허용 여부 콜백 추가. 허용되면 마이페이지 토글 ON과 같은 토스트 EAT-SSU 수신 동의 (yyyy-MM-dd HH:mm)를 탭바 컨테이너에 띄움 (탭이 바뀌어도 보이도록)
  • 리뷰 화면 '오늘의 메뉴를 찜해보세요!' → 알림 허용 다이얼로그에서 허용되면 바로 찜 탭 카드로 이동 (presentFavoriteRequest(on:allowed:))
  • 가입 직후 안내 다이얼로그에서 허용해도 같은 토스트 표시 (PM 요청엔 없지만 같은 동작이라 맞춤)
  • 마이페이지가 이미 만들어진 뒤 다른 화면에서 알림을 허용하면 토글이 OFF로 남던 문제 수정 (viewWillAppear에서 저장 값 다시 읽음)
  • 시스템 팝업에서 거부하면 토스트·이동 없이 현재 화면 유지, 기기 권한이 꺼져 있으면 기존 설정 이동 안내

🧪 테스트

  • 시뮬레이터 빌드 확인. 실기기 QA 재현 경로(토글 OFF → 리뷰 화면 버튼 → 허용) 확인 필요

📝 참고

  • 3.5.0(55) 1차 QA 피드백

Summary by CodeRabbit

  • 개선 사항
    • 알림 권한 허용 여부에 따라 즐겨찾기 알림 요청이 진행됩니다. 권한이 거부된 경우 설정 안내가 표시됩니다.
    • 마이페이지에 다시 진입하면 알림 스위치 상태가 최신 정보로 갱신됩니다.

@Hrepay
Hrepay temporarily deployed to Configuration Files November 17, 2026 00:29 — with GitHub Actions Inactive
@coderabbitai

coderabbitai Bot commented Nov 17, 2026 •

Copy link
Copy Markdown

Explain Change →

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 52 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration

Commits

Reviewing files that changed from the base of the PR and between 32a3da7 and 85e24c4.

Files selected for processing: 3

  • EATSSU/App/Sources/Notification/NotificationManager.swift
  • EATSSU/App/Sources/Notification/NotificationPermissionPrompt.swift
  • EATSSU/App/Sources/Presentation/MyPage/ViewController/MyPageViewController.swift

No actionable comments were generated in the recent review.

Walkthrough

알림 권한 요청 결과를 호출자에게 전달합니다. 허용되면 동의 토스트를 표시하고, 찜 알림 콜백을 실행합니다. 마이페이지는 화면이 나타날 때 알림 스위치 상태를 다시 불러옵니다.

Changes: 알림 권한 및 화면 상태

Layer / File(s) Summary
권한 결과와 동의 토스트
EATSSU/App/Sources/Notification/NotificationPermissionPrompt.swift
requestPermission에 선택적 completion이 추가되었습니다. 시스템 권한 요청 결과와 .denied 상태는 각각 허용 여부를 전달합니다. 허용된 경우 yyyy-MM-dd HH:mm 형식의 시각을 포함한 동의 토스트를 표시합니다.
찜 알림 허용 콜백
EATSSU/App/Sources/Notification/NotificationPermissionPrompt.swift
presentFavoriteRequest가 allowed 클로저를 받습니다. 권한이 허용된 경우에만 해당 클로저를 실행하며, 권한 미결정 또는 토글 OFF 경로에서 클로저를 전달합니다.
마이페이지 알림 상태 갱신
EATSSU/App/Sources/Presentation/MyPage/ViewController/MyPageViewController.swift
viewWillAppear에서 UserDefaults의 알림 스위치 상태를 다시 읽고 테이블 뷰 데이터를 갱신합니다.

Estimated code review effort: 2 (Simple) | ~10 minutes

Change: Feature

Merge Risk: Minimal · previous review 32a3d

Granting notification permission now shows the consent toast and, from the review screen, moves to the favorite tab. No concrete defect was found, so the change looks safe to merge, though device-level testing is still advisable.

Pre-merge checks: Passed 4

Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed 제목은 리뷰 화면에서 알림 허용 후 동의 토스트를 표시하고 찜 화면으로 이동하는 변경을 설명합니다. 요약과 목표에 나온 핵심 변경(requestPermission 완료 콜백 추가, presentFavoriteRequest의 allowed 클로저, 토스트 표시, 찜 탭 이동)과 일치합니다. MyPage의 viewWillAppear 갱신은 제목에 없지만 부차적…
Linked Issues check Passed [#489] 요구사항 3개를 확인했다.
(1) 리뷰 화면 허용 시 토스트·찜 탭 이동: requestPermission(on:completion:)가 .notDetermined에서 granted일 때만 showAgreeToast를 호출하고 completion?(granted)를 전달한다. `presentFavoriteRequest(on:a…
Out of Scope Changes check Passed 변경 범위는 #489 요구사항과 직접 연결된다. NotificationPermissionPrompt의 requestPermission, presentFavoriteRequest, ensureFavoriteNotificationAllowed 변경은 허용 결과 콜백과 토스트 동작을 구현한다. `MyPageViewController.viewWill…
Full details: Title check

Explanation

제목은 리뷰 화면에서 알림 허용 후 동의 토스트를 표시하고 찜 화면으로 이동하는 변경을 설명합니다. 요약과 목표에 나온 핵심 변경(requestPermission 완료 콜백 추가, presentFavoriteRequest의 allowed 클로저, 토스트 표시, 찜 탭 이동)과 일치합니다. MyPage의 viewWillAppear 갱신은 제목에 없지만 부차적인 변경이므로 제목이 핵심을 충분히 다룹니다.

Full details: Linked Issues check

Explanation

[#489] 요구사항 3개를 확인했다.
(1) 리뷰 화면 허용 시 토스트·찜 탭 이동: requestPermission(on:completion:)가 .notDetermined에서 granted일 때만 showAgreeToast를 호출하고 completion?(granted)를 전달한다. presentFavoriteRequest(on:allowed:)는 granted일 때만 allowed()를 실행한다. 찜 탭 카드 이동 코드는 호출부에 있으며, 이 평가에서는 호출부 소스를 직접 읽지 못했다. PR 요약의 호출 설명에 근거했다.
(2) 토스트 문구와 탭바 표시: showAgreeToast가 yyyy-MM-dd HH:mm 형식으로 TextLiteral.MyPage.agreeNoti를 tabBar.showToast로 띄운다.
(3) 가입 직후 안내 다이얼로그: presentWelcomeIfNeeded의 confirmAction이 requestPermission(on: tabBar)를 호출하므로 같은 토스트가 표시된다.
(4) 시스템 팝업 거부: granted == false이면 토스트를 띄우지 않고 completion?(false)만 호출한다. 기기 권한이 .denied이면 설정 안내만 띄우고 false를 전달한다.

Full details: Out of Scope Changes check

Explanation

변경 범위는 #489 요구사항과 직접 연결된다. NotificationPermissionPrompt의 requestPermission, presentFavoriteRequest, ensureFavoriteNotificationAllowed 변경은 허용 결과 콜백과 토스트 동작을 구현한다. MyPageViewController.viewWillAppear의 저장 값 재로드는 다른 화면에서 허용한 뒤 마이페이지 토글이 OFF로 남는 문제를 막는다. PR 본문의 QA 경로(토글 OFF → 리뷰 화면 버튼 → 허용)에 필요한 변경이므로 범위 밖으로 보지 않는다. 가입 직후 다이얼로그의 토스트 표시는 이슈 요구사항에 포함된다.

Finishing Touches

Generate unit tests (beta)

  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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

Recent review info

Run configuration

Commits

Reviewing files that changed from the base of the PR and between 89aac59 and 32a3da7.

Files selected for processing: 2

  • EATSSU/App/Sources/Notification/NotificationPermissionPrompt.swift
  • EATSSU/App/Sources/Presentation/MyPage/ViewController/MyPageViewController.swift

Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review.

@Hrepay
Hrepay temporarily deployed to Configuration Files November 17, 2026 00:37 — with GitHub Actions Inactive

This branch was previously deployed

1 inactive deployment
Configuration Files — 85e24c4f Deployed Nov 17, 2026 by Hrepay via Unit Tests #60
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Fix] 리뷰 화면 알림 허용 후 토스트 표시와 찜 화면 이동

1 participant