Fix/#472 3-2차 스프린트 1차 QA 반영#473
Conversation
Walkthrough로그인 버튼의 동시 입력과 소셜 로그인 중복 실행을 제어하고, 퀘스트 좋아요 입력을 컨테이너 탭 제스처 방식으로 변경했습니다. Changes소셜 로그인 상호작용
퀘스트 좋아요 제스처
Estimated code review effort: 2 (Simple) | ~10 minutes Possibly related PRs
Suggested labels: Suggested reviewers: Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 inconclusive)
✅ Passed checks (4 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
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. Comment |
There was a problem hiding this comment.
Caution
Some comments are outside the diff and can’t be posted inline due to platform limitations.
⚠️ Outside diff range comments (1)
ByeBoo-iOS/ByeBoo-iOS/Presentation/Feature/Login/ViewController/LoginViewController.swift (1)
64-78: 🩺 Stability & Availability | 🟡 Minor | ⚡ Quick win로그인 실패 시 버튼 재활성화 필요
현재 재활성화는bind()의isRegisteredPublisher처리에서만 일어나서,socialLoginAuthSubject가.failure를 보낼 때는 두 버튼이 계속 비활성화된 채 남습니다. 실패 경로에서도 다시true로 돌려주세요.🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the rest with a brief reason, keep changes minimal, and validate. In `@ByeBoo-iOS/ByeBoo-iOS/Presentation/Feature/Login/ViewController/LoginViewController.swift` around lines 64 - 78, Re-enable both Kakao and Apple login buttons when the social login flow emits a failure through socialLoginAuthSubject, not only in the isRegisteredPublisher handling. Update the failure handling associated with kakaoLoginButtonDidTap and appleLoginButtonDidTap while preserving the existing button disabling behavior when login starts.
🧹 Nitpick comments (1)
ByeBoo-iOS/ByeBoo-iOS/Presentation/Feature/Login/ViewModel/LoginViewModel.swift (1)
64-72: 🩺 Stability & Availability | 🔵 Trivial | ⚡ Quick win
isSocialLoginInProgress플래그의 스레드 안전성
LoginViewModel은NSObject를 상속하며 actor 격리가 없습니다.action(_:)은 메인 스레드에서 호출되어isSocialLoginInProgress = true를 설정하지만,Task내부의defer { isSocialLoginInProgress = false }는 백그라운드 스레드에서 실행될 수 있어 데이터 레이스가 발생할 수 있습니다.실제 발생 확률은 낮지만(로그인 요청 중 버튼이 이미 VC에서 비활성화됨), 구조적으로 안전하게 만들려면
@MainActor적용 또는 플래그 접근을 메인 스레드로 통제하는 것을 권장합니다.♻️ 제안: defer를 메인 스레드에서 실행
Task { - defer { isSocialLoginInProgress = false } + defer { DispatchQueue.main.async { self.isSocialLoginInProgress = false } } do {🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the rest with a brief reason, keep changes minimal, and validate. In `@ByeBoo-iOS/ByeBoo-iOS/Presentation/Feature/Login/ViewModel/LoginViewModel.swift` around lines 64 - 72, Update the isSocialLoginInProgress access in LoginViewModel so both the guard/set in action(_:) and the deferred reset inside Task execute on the MainActor, preventing cross-thread access to the flag while preserving the existing request lifecycle behavior.
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Outside diff comments:
In
`@ByeBoo-iOS/ByeBoo-iOS/Presentation/Feature/Login/ViewController/LoginViewController.swift`:
- Around line 64-78: Re-enable both Kakao and Apple login buttons when the
social login flow emits a failure through socialLoginAuthSubject, not only in
the isRegisteredPublisher handling. Update the failure handling associated with
kakaoLoginButtonDidTap and appleLoginButtonDidTap while preserving the existing
button disabling behavior when login starts.
---
Nitpick comments:
In
`@ByeBoo-iOS/ByeBoo-iOS/Presentation/Feature/Login/ViewModel/LoginViewModel.swift`:
- Around line 64-72: Update the isSocialLoginInProgress access in LoginViewModel
so both the guard/set in action(_:) and the deferred reset inside Task execute
on the MainActor, preventing cross-thread access to the flag while preserving
the existing request lifecycle behavior.
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro
Run ID: 346823ac-ba4b-42ef-8e6d-6845d15297eb
📒 Files selected for processing (4)
ByeBoo-iOS/ByeBoo-iOS/Presentation/Feature/Login/View/LoginView.swiftByeBoo-iOS/ByeBoo-iOS/Presentation/Feature/Login/ViewController/LoginViewController.swiftByeBoo-iOS/ByeBoo-iOS/Presentation/Feature/Login/ViewModel/LoginViewModel.swiftByeBoo-iOS/ByeBoo-iOS/Presentation/Feature/Quest/View/CommonQuest/Common/QuestContentView.swift
| kakaoLoginButton.do { | ||
| $0.setImage(.kakaoLoginButton, for: .normal) | ||
| $0.alpha = 0 | ||
| $0.isExclusiveTouch = true |
| isSocialLoginInProgress = true | ||
|
|
||
| Task { | ||
| defer { isSocialLoginInProgress = false } |
There was a problem hiding this comment.
Task 안에도 defer문 선언이 가능하군요! 배워갑니다
🔗 연결된 이슈
📄 작업 내용
💻 주요 코드 설명
로그인 중복 방지 개선
LoginvViewModelSummary by CodeRabbit