Skip to content

온보딩 Domain User 계약 추가 - #16

Merged
gnoes-ios merged 7 commits into
devfrom
chore/onboarding-domain-contract
Sep 2, 2026
Merged

온보딩 Domain User 계약 추가#16
gnoes-ios merged 7 commits into
devfrom
chore/onboarding-domain-contract

Conversation

@gnoes-ios

Copy link
Copy Markdown
Contributor

📌 변경 요약

  • Domain Auth 소스를 Model/Client/Error 구조로 정렬
  • 온보딩용 User Domain 계약(UserClient, model, error) 추가
  • User Domain 단위 테스트와 README 진입점 문서 갱신

📌 변경 내용

Domain Auth

  • Sources/Auth 파일을 Model / Client / Error 하위로 이동
  • 공개 타입 API 유지, 폴더 구조만 정리

Domain User

  • UserClient.completeOnboarding(OnboardingDraft) -> AuthSession 포트 추가
  • Gender, Interest, UserProfile, OnboardingDraft, UserError 최소 계약 추가
  • AuthClient와 책임 분리, 세션 게이트는 profileCompleted 유지

Domain Tests / Docs

  • User model 동등성/Codable, UserClient.testValue 검증 추가
  • Domain README 현재 상태/진입점/테스트 포인트 갱신

@gnoes-ios gnoes-ios added the feat 새로운 기능 label Aug 7, 2026
@gnoes-ios gnoes-ios self-assigned this Aug 7, 2026
@coderabbitai

coderabbitai Bot commented Aug 7, 2026

Copy link
Copy Markdown

Review Change Stack

Warning

Review limit reached

Next included review available in 47 minutes.

Check out review usage here.

View limit details

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

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

Learn how review limits work.

Review configuration:

⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Team

Run ID: efa632a4-b476-44c4-936d-4b153a97b9b3

📥 Commits

Reviewing files that changed from the base of the PR and between 7d36da0 and a230d67.

📒 Files selected for processing (4)
  • Projects/Domain/README.md
  • Projects/Domain/Tests/Auth/AuthSessionTests.swift
  • Projects/Domain/Tests/User/UserClientTests.swift
  • Projects/Domain/Tests/User/UserModelTests.swift
📝 Summary

Summary by CodeRabbit

  • 새로운 기능

    • 카카오·애플 로그인을 지원하는 인증 모델과 세션 관리 기능을 추가했습니다.
    • 로그인 취소, 네트워크, 권한 부족 등 인증 오류 상태를 제공합니다.
    • 사용자 온보딩을 위한 프로필, 성별, 관심사 및 작성 초안 모델을 추가했습니다.
    • 온보딩 완료 처리를 위한 사용자 기능을 추가했습니다.
  • 테스트

    • 사용자 모델의 동등성 및 데이터 인코딩·복원 동작을 검증합니다.

Walkthrough

Auth 세션 계약과 의존성 클라이언트를 추가했습니다. User 모델, 오류 타입, 온보딩 클라이언트를 추가했습니다. 모델의 동등성 및 Codable 동작과 테스트 의존성 기본값을 검증했습니다.

Changes

Domain 포트 확장

Layer / File(s) Summary
Auth 계약과 의존성 등록
Projects/Domain/Sources/Auth/Model/*, Projects/Domain/Sources/Auth/Error/AuthError.swift, Projects/Domain/Sources/Auth/Client/AuthClient.swift
AuthProvider, AuthSession, AuthError, AuthClient를 추가했습니다. AuthClient는 세션 복원, 로그인, 로그아웃, 현재 세션 조회 API와 DependencyValues.authClient를 제공합니다.
User 모델과 오류 계약
Projects/Domain/Sources/User/Model/*, Projects/Domain/Sources/User/Error/UserError.swift, Projects/Domain/Tests/User/UserModelTests.swift
Gender, Interest, OnboardingDraft, UserProfile, UserError를 추가했습니다. 모델의 동등성, 원시값, Codable 왕복 동작을 테스트합니다.
UserClient 온보딩 포트
Projects/Domain/Sources/User/Client/UserClient.swift, Projects/Domain/Tests/User/UserClientTests.swift, Projects/Domain/README.md
UserClient.completeOnboardingDependencyValues.userClient를 추가했습니다. testValue 기본값과 Domain 포트 목록을 검증 및 문서화했습니다.

Estimated code review effort: 3 (Moderate) | ~20 minutes

Possibly related PRs

🚥 Pre-merge checks | ✅ 4
✅ Passed checks (4 passed)
Check name Status Explanation
Title check ✅ Passed 제목은 온보딩용 User Domain 계약 추가라는 PR의 주요 변경 사항을 명확하고 간결하게 설명합니다.
Description check ✅ Passed 설명은 변경 요약, 변경 내용, 기타 참고 사항에 해당하는 핵심 내용을 충분히 포함합니다.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

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.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Actionable comments posted: 2

🤖 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.

Inline comments:
In `@Projects/Domain/Tests/User/UserClientTests.swift`:
- Around line 5-9: The test contract is inconsistent with the documented
behavior: update Projects/Domain/Tests/User/UserClientTests.swift lines 5-9 by
renaming the Korean test to clearly describe UserClient.testValue creation,
correcting the comment to identify its actual declaration source, and removing
the meaningless XCTAssertTrue(true) or replacing it with a meaningful assertion;
update Projects/Domain/README.md lines 35-39 to document only
UserClient.testValue creation verification unless the test is expanded to
exercise unimplemented endpoint behavior.

In `@Projects/Domain/Tests/User/UserModelTests.swift`:
- Around line 5-10: Update the Gender tests around test_성별_rawValue와_동등성 to
verify its Codable contract with JSON encode/decode round-trip coverage,
matching the existing Interest and UserProfile test patterns. Preserve the
current rawValue and equality assertions while confirming each Gender case
survives encoding and decoding.
🪄 Autofix

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro Plus

Run ID: 76d7bfed-0f34-4980-bf79-7dc11ee20ec5

📥 Commits

Reviewing files that changed from the base of the PR and between b141bd5 and 7d36da0.

📒 Files selected for processing (13)
  • Projects/Domain/README.md
  • Projects/Domain/Sources/Auth/Client/AuthClient.swift
  • Projects/Domain/Sources/Auth/Error/AuthError.swift
  • Projects/Domain/Sources/Auth/Model/AuthProvider.swift
  • Projects/Domain/Sources/Auth/Model/AuthSession.swift
  • Projects/Domain/Sources/User/Client/UserClient.swift
  • Projects/Domain/Sources/User/Error/UserError.swift
  • Projects/Domain/Sources/User/Model/Gender.swift
  • Projects/Domain/Sources/User/Model/Interest.swift
  • Projects/Domain/Sources/User/Model/OnboardingDraft.swift
  • Projects/Domain/Sources/User/Model/UserProfile.swift
  • Projects/Domain/Tests/User/UserClientTests.swift
  • Projects/Domain/Tests/User/UserModelTests.swift

Comment thread Projects/Domain/Tests/User/UserClientTests.swift Outdated
Comment thread Projects/Domain/Tests/User/UserModelTests.swift
@gnoes-ios
gnoes-ios merged commit 9286bab into dev Sep 2, 2026
5 of 7 checks passed
@gnoes-ios
gnoes-ios deleted the chore/onboarding-domain-contract branch September 2, 2026 17:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feat 새로운 기능

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant