refactor(creator): 오디오 아이템 이름을 정리한다

This commit is contained in:
Yu Sung
2026-07-04 01:48:35 +09:00
parent 0b32a536c9
commit abc10d7610
6 changed files with 76 additions and 33 deletions

View File

@@ -40,7 +40,7 @@
- `SodaLive/Sources/V2/CreatorChannel/Live/Repository/CreatorChannelLiveRepository.swift`
- `SodaLive/Sources/V2/CreatorChannel/Live/CreatorChannelLiveViewModel.swift`
- `SodaLive/Sources/V2/CreatorChannel/Live/CreatorChannelLiveTabView.swift`
- `SodaLive/Sources/V2/CreatorChannel/Live/Components/CreatorChannelLiveReplayListItem.swift`
- `SodaLive/Sources/V2/CreatorChannel/Components/CreatorChannelAudioContentListItem.swift`
- `SodaLive/Sources/V2/CreatorChannel/Live/Components/CreatorChannelLiveStartButton.swift`
### 수정
@@ -51,7 +51,7 @@
### 확인
- `SodaLive/Sources/V2/CreatorChannel/Home/Models/CreatorChannelHomeResponse.swift`
- `SodaLive/Sources/V2/CreatorChannel/Home/Components/CreatorChannelCurrentLiveSection.swift`
- `SodaLive/Sources/V2/CreatorChannel/Home/Components/CreatorChannelAudioContentListItem.swift`
- `SodaLive/Sources/V2/CreatorChannel/Home/Components/CreatorChannelHomeAudioContentListItem.swift`
- `SodaLive/Sources/V2/CreatorChannel/Components/CreatorChannelFloatingActionMenu.swift`
- `SodaLive/Sources/App/AppStep.swift`
- `SodaLive/Sources/ContentView.swift`
@@ -260,9 +260,51 @@
- 실행 명령: `rg "isOwnCreatorChannel && viewModel\\.selectedTab == \\.home|isCreatorActionMenuPresented = false|CreatorChannelLiveTabView" SodaLive/Sources/V2/CreatorChannel/CreatorChannelView.swift`
- 기대 결과: 홈 floating menu와 라이브 하단 CTA 표시 조건이 분리되어 있다.
### Phase 6: 검증
### Phase 6: 오디오 콘텐츠 아이템 컴포넌트 명명 리팩토링
- [ ] **Task 6.1: 정적 검색 검증**
- [x] **Task 6.1: 공용 오디오 콘텐츠 아이템 이동과 이름 변경**
- 대상 파일:
- 이동/변경: `SodaLive/Sources/V2/CreatorChannel/Live/Components/CreatorChannelLiveReplayListItem.swift` -> `SodaLive/Sources/V2/CreatorChannel/Components/CreatorChannelAudioContentListItem.swift`
- 수정: `SodaLive/Sources/V2/CreatorChannel/Live/CreatorChannelLiveTabView.swift`
- 수정: `SodaLive.xcodeproj/project.pbxproj`
- 작업 내용:
- 여러 탭에서 재사용 가능한 다시듣기 아이템을 `CreatorChannel/Components` 공용 위치로 이동한다.
- 타입명을 `CreatorChannelLiveReplayListItem`에서 `CreatorChannelAudioContentListItem`으로 변경한다.
- 라이브 탭 사용처를 `CreatorChannelAudioContentListItem`으로 변경한다.
- 검증 기준:
- 실행 명령: `rg "CreatorChannelLiveReplayListItem" SodaLive/Sources/V2/CreatorChannel SodaLive.xcodeproj/project.pbxproj`
- 기대 결과: 검색 결과가 없다.
- 실행 명령: `rg "CreatorChannelAudioContentListItem" SodaLive/Sources/V2/CreatorChannel SodaLive.xcodeproj/project.pbxproj`
- 기대 결과: 공용 컴포넌트, 라이브 탭 사용처, 프로젝트 등록이 확인된다.
- [x] **Task 6.2: 홈 전용 오디오 콘텐츠 아이템 이름 변경**
- 대상 파일:
- 이동/변경: `SodaLive/Sources/V2/CreatorChannel/Home/Components/CreatorChannelAudioContentListItem.swift` -> `SodaLive/Sources/V2/CreatorChannel/Home/Components/CreatorChannelHomeAudioContentListItem.swift`
- 수정: `SodaLive/Sources/V2/CreatorChannel/Home/Components/CreatorChannelAudioSection.swift`
- 수정: `SodaLive.xcodeproj/project.pbxproj`
- 작업 내용:
- 홈 탭 전용 아이템 타입명을 `CreatorChannelHomeAudioContentListItem`으로 변경한다.
- 기존 홈 탭 사용처를 `CreatorChannelHomeAudioContentListItem`으로 변경한다.
- 검증 기준:
- 실행 명령: `rg "CreatorChannelHomeAudioContentListItem" SodaLive/Sources/V2/CreatorChannel SodaLive.xcodeproj/project.pbxproj`
- 기대 결과: 홈 전용 컴포넌트, 홈 섹션 사용처, 프로젝트 등록이 확인된다.
- [x] **Task 6.3: 리팩토링 후 정적/빌드 검증**
- 대상 파일:
- 확인: `SodaLive/Sources/V2/CreatorChannel`
- 확인: `SodaLive.xcodeproj/project.pbxproj`
- 작업 내용:
- rename/move 후 남은 이전 심볼이 없는지 확인한다.
- 프로젝트 파일 문법과 Debug 빌드를 확인한다.
- 검증 기준:
- 실행 명령: `plutil -lint SodaLive.xcodeproj/project.pbxproj`
- 기대 결과: `OK`
- 실행 명령: `xcodebuild -workspace "SodaLive.xcworkspace" -scheme "SodaLive-dev" -configuration Debug build`
- 기대 결과: `** BUILD SUCCEEDED **`
### Phase 7: 검증
- [ ] **Task 7.1: 정적 검색 검증**
- 대상 파일:
- 확인: `SodaLive/Sources/V2/CreatorChannel`
- 확인: `SodaLive/Sources/I18n/I18n.swift`
@@ -272,7 +314,7 @@
- 실행 명령: `rg "CreatorChannelLiveApi|/api/v2/creator-channels/|/live|URLEncoding.queryString|ContentSort|pageSize|20|page = 0|CreatorChannelSortBar|CreatorChannelSortBottomSheet|CreatorChannelCurrentLiveSection|CreatorChannelLiveReplayListItem|ic_new_create_live|contentDetail\\(contentId:" SodaLive/Sources/V2/CreatorChannel SodaLive/Sources/I18n/I18n.swift`
- 기대 결과: PRD 핵심 구현 지점이 모두 검색된다.
- [ ] **Task 6.2: 빌드 검증**
- [ ] **Task 7.2: 빌드 검증**
- 대상 파일:
- 확인: `SodaLive.xcworkspace`
- 작업 내용:
@@ -281,7 +323,7 @@
- 실행 명령: `xcodebuild -workspace "SodaLive.xcworkspace" -scheme "SodaLive-dev" -configuration Debug build`
- 기대 결과: `** BUILD SUCCEEDED **`
- [ ] **Task 6.3: 수동 동작 검증**
- [ ] **Task 7.3: 수동 동작 검증**
- 대상 화면:
- 타인 크리에이터 채널 라이브 탭
- 본인 크리에이터 채널 라이브 탭
@@ -307,3 +349,4 @@
- 2026-07-03: `xcodebuild -workspace "SodaLive.xcworkspace" -scheme "SodaLive-dev" -configuration Debug build`는 실행했으나, DerivedData `manifest.json` 작성 중 디스크 용량 부족(`No space left on device`, 여유 598Mi)으로 Swift 컴파일 전 실패함.
- 2026-07-03: Phase 2.3 보완. 첫 페이지/정렬 변경/다음 페이지 조회 모두 성공 시에만 목록 교체 또는 append를 수행하고, 실패 시 기존 목록과 pagination 상태를 유지하도록 PRD/계획/구현을 정렬함.
- 2026-07-04: Phase 4 구현 완료. `CreatorChannelLiveReplayListItem`, `CreatorChannelLiveStartButton`, `CreatorChannelLiveTabView`를 추가하고 `I18n.CreatorChannelLive.startLive` 문구를 추가함. 저장소에 별도 XCTest 파일이 없어 Phase 4는 `rg` 정적 검색, `plutil -lint SodaLive.xcodeproj/project.pbxproj`, `xcodebuild -workspace "SodaLive.xcworkspace" -scheme "SodaLive-dev" -configuration Debug build`로 검증했으며 `** BUILD SUCCEEDED **`를 확인함.
- 2026-07-04: Phase 6 리팩토링 완료. `CreatorChannelLiveReplayListItem`을 공용 `CreatorChannelAudioContentListItem`으로 이동/이름 변경하고, 홈 전용 `CreatorChannelAudioContentListItem``CreatorChannelHomeAudioContentListItem`으로 변경함. `rg` 정적 검색, `plutil -lint SodaLive.xcodeproj/project.pbxproj`, `xcodebuild -workspace "SodaLive.xcworkspace" -scheme "SodaLive-dev" -configuration Debug build`로 검증했으며 `** BUILD SUCCEEDED **`를 확인함.