feat(creator): 팔로워 목록 이동을 연결한다
This commit is contained in:
@@ -817,3 +817,36 @@
|
||||
- 기대 결과: `** BUILD SUCCEEDED **`.
|
||||
|
||||
- 2026-07-20: Phase 21 구현을 완료했다. `CreatorChannelDonationSection`의 기존 고정 `374pt` 카드 너비를 `374 × min(deviceWidth / 402, 1)` 계산값으로 교체해 `402pt` 이상에서는 기존 너비를 유지하고 작은 디바이스에서만 비례 축소되도록 했다. `swift -module-cache-path /tmp/sodalive-swift-module-cache -e 'import Foundation; let widths = [320.0, 375.0, 402.0, 430.0]; print(widths.map { 374.0 * min($0 / 402.0, 1.0) })'` 실행 결과는 `[297.71144278606965, 348.8805970149254, 374.0, 374.0]`이었다. `rg`로 계산식 적용 위치를 확인했고 `git diff --check`를 통과했다. `xcodebuild -workspace SodaLive.xcworkspace -scheme SodaLive-dev -configuration Debug -destination 'platform=iOS Simulator,id=224FBAAE-B5C7-4A10-9143-3944A3280E48' -derivedDataPath /tmp/sodalive-shell-derived-escalated build`는 `** BUILD SUCCEEDED **`로 완료됐다. 프로젝트에 테스트 번들 타깃이 없어 별도 단위 테스트는 실행하지 않았다.
|
||||
|
||||
### Phase 22: 내 채널 팔로워 목록 레거시 연결
|
||||
|
||||
- [x] **Task 22.1: 헤더 팔로워 수 탭 라우팅 연결**
|
||||
- 대상 파일:
|
||||
- 수정: `SodaLive/Sources/V2/CreatorChannel/Components/CreatorChannelHeaderSection.swift`
|
||||
- 수정: `SodaLive/Sources/V2/CreatorChannel/CreatorChannelView.swift`
|
||||
- 확인: `SodaLive/Sources/ContentView.swift`
|
||||
- 확인: `SodaLive/Sources/Explorer/Profile/FollowerList/FollowerListView.swift`
|
||||
- 작업 내용:
|
||||
- `CreatorChannelHeaderSection`에 `onTapFollowerCount` closure를 추가한다.
|
||||
- 헤더의 `I18n.CreatorChannelHome.followerCount(creator.followerCount.comma())` 텍스트에 tap gesture를 연결한다.
|
||||
- `CreatorChannelView`에서 내 채널일 때만 `AppState.shared.setAppStep(step: .followerList(userId: creator.creatorId))`를 호출한다.
|
||||
- 새 V2 팔로워 목록 화면, 새 route, 새 API를 만들지 않는다.
|
||||
- 검증 기준:
|
||||
- 실행 명령: `rg -n "onTapFollowerCount|followerList\(userId: creator\.creatorId\)|FollowerListView\(userId:" SodaLive/Sources/V2/CreatorChannel SodaLive/Sources/ContentView.swift`
|
||||
- 기대 결과: 헤더 콜백, 내 채널 레거시 라우팅, 기존 `FollowerListView` destination이 확인된다.
|
||||
|
||||
- [x] **Task 22.2: 정적 검사와 Debug 빌드 검증**
|
||||
- 대상 파일:
|
||||
- 확인: `SodaLive/Sources/V2/CreatorChannel/Components/CreatorChannelHeaderSection.swift`
|
||||
- 확인: `SodaLive/Sources/V2/CreatorChannel/CreatorChannelView.swift`
|
||||
- 작업 내용:
|
||||
- 변경 전 RED로 라우팅 계약 검색이 실패함을 확인한다.
|
||||
- 변경 후 같은 검색이 성공하는지 확인한다.
|
||||
- whitespace 오류를 확인하고 공식 Debug 빌드를 실행한다.
|
||||
- 검증 기준:
|
||||
- 실행 명령: `git diff --check`
|
||||
- 기대 결과: 출력 없이 exit code 0이다.
|
||||
- 실행 명령: `xcodebuild -workspace "SodaLive.xcworkspace" -scheme "SodaLive-dev" -configuration Debug build`
|
||||
- 기대 결과: `** BUILD SUCCEEDED **`.
|
||||
|
||||
- 2026-08-03: Phase 22 구현을 완료했다. RED 확인으로 `rg -n "CreatorChannelHeaderSection\(|onTapFollowerCount|followerList\(userId: creator\.creatorId\)|followerCount\(creator\.followerCount\.comma\(\)\)" "SodaLive/Sources/V2/CreatorChannel"`를 먼저 실행해 헤더 생성과 팔로워 수 표시만 있고 `onTapFollowerCount` 및 `.followerList(userId: creator.creatorId)` 연결이 없음을 확인했다. `CreatorChannelHeaderSection`에는 `onTapFollowerCount` closure와 팔로워 수 텍스트 tap gesture만 추가했고, `CreatorChannelView`에서는 내 채널일 때만 `AppState.shared.setAppStep(step: .followerList(userId: creator.creatorId))`를 호출하도록 연결했다. GREEN 확인으로 `rg -n "onTapFollowerCount|followerList\(userId: creator\.creatorId\)|FollowerListView\(userId:" "SodaLive/Sources/V2/CreatorChannel" "SodaLive/Sources/ContentView.swift"`가 헤더 콜백, 내 채널 라우팅, 기존 `FollowerListView` destination을 모두 찾았다. `git diff --check`는 출력 없이 통과했고, `xcodebuild -workspace "SodaLive.xcworkspace" -scheme "SodaLive-dev" -configuration Debug build`는 `** BUILD SUCCEEDED **`로 완료됐다. 프로젝트에 테스트 번들 타깃이 없어 XCTest는 추가/실행하지 못했고, 로그인된 내 채널 계정이 필요한 실제 기기 탭 수동 검증은 수행하지 않았다.
|
||||
|
||||
Reference in New Issue
Block a user