Repository navigation
배틀·투표·홈 Android 맞춤과 클래스 QA 실패 4건 수정 - #80
Conversation
- PickeAudioPlayerBar 추가: Android AudioPlayerBar 와 같은 슬라이더(트랙 2·썸 12)·시간 13 Regular·컨트롤 행 55, 배속은 탭으로 넘김 - 재생 컨트롤 아이콘(play·playStop·playBack·playForward·replay)을 Android 벡터에서 옮김 - AudioEqualizerView 를 Android ChatBubblePlayingIndicator(막대 5개) 모양으로 바꿈 - FloatingErrorView 를 Android PickeErrorBanner(errorDefault, radius 8) 로 바꿈 - 최종투표 확인 문구를 "최종투표하고 투표 결과를 확인하시겠습니까?" 로 맞춤 Claude-Session: https://claude.ai/code/session_012p64qYTmqHhkJDFnd2C6KB
- 상단 바: 가운데 제목만, 새로고침 버튼·구분선 제거(뒤로 버튼은 iOS 라 유지) - 말풍선: 아바타 40, 최대 폭 272, 13 Regular textBody, 왼쪽/오른쪽 면 색과 패딩, 이름 textDefault - 재생 중인 대사만 활성으로 보이고 멈추면 모두 흐려짐, 재생 표시는 말풍선 옆에 둠 - 선택지를 리스트 맨 끝으로 옮기고 확인 버튼을 Android OptionConfirmButton 모양으로 바꿈 - 하단 플레이어 바를 공용 PickeAudioPlayerBar 로 교체, 배속 1.0→1.5→2.0→3.0 순환, 다시듣기 항상 가능 - 불러오기 실패 시 토스트만 띄우고, 로딩 중에는 목업 제목·시간 대신 빈 값과 Android 스켈레톤을 보임 Claude-Session: https://claude.ai/code/session_012p64qYTmqHhkJDFnd2C6KB
- "다시 들어볼래요": 대사를 모두 보인 채 현재 노드 처음부터 다시 듣고, 리스트 끝에 "최종투표 하러가기" 버튼을 둠. 다시 듣는 중에는 대화상자를 다시 띄우지 않음 - 대화상자 바깥 터치·닫기도 최종투표로 이동 - 슬라이더는 들은 위치·노드 끝까지만 이동(끝까지 들은 뒤에만 되던 제한 제거), 15초 넘기기는 선택지·대화상자·오디오 오류 중 비활성 - 말풍선을 누르면 그 대사 시작 위치로 이동해 재생(현재 노드 대사만) - ChatRoomParityTests 7개 추가 Claude-Session: https://claude.ai/code/session_012p64qYTmqHhkJDFnd2C6KB
- 추천·관점 목록·댓글·시나리오 청취 화면 스켈레톤을 Android 구성으로 바꾸기 전 iOS 것으로 복원 - 관점 목록 상단 헤더 스켈레톤(새로 추가했던 것) 제거 - 시나리오 청취 화면은 로딩 중 기존처럼 상단 바·플레이어 바 자리까지 포함한 전체 스켈레톤을 보임 Claude-Session: https://claude.ai/code/session_012p64qYTmqHhkJDFnd2C6KB
- 구조: 히어로(남는 높이 전부) → 24 → 선택지 → 32 → 버튼(패딩 20), 고정 높이·스크롤 레이아웃 제거 - 히어로 그라데이션 [검정 0.3, 투명, 배경색], 상단 바 아이콘을 Android 뒤로·공유 벡터로 교체 - 제목 30 SemiBold(쉼표 뒤 줄바꿈), 설명 14 Regular, 사전/최종 글자색, 태그 칩 흰색 0.8 - 선택지 카드: 내용 높이(두 카드 동일), 안쪽 24/16, 제목 16 SemiBold, 대표 10 SemiBold, 선택 테두리 secondary500 - VS 배지 36, 버튼 높이 48·14 SemiBold·비활성 primary300 - 상세 실패 시 토스트 + "해당 배틀은 존재하지 않습니다" 빈 화면, 사전투표 실패 토스트, 같은 카드 재선택 시 선택 유지 - 스켈레톤은 iOS 기존 것을 유지 Claude-Session: https://claude.ai/code/session_012p64qYTmqHhkJDFnd2C6KB
- 서버 CREDIT_400_INSUFFICIENT 를 BattleError.insufficientPoints 로 바꿈(사전·최종투표 모두) - 포인트 부족 시 안내창 "컨텐츠를 시청하기 위한 포인트가 부족해요!" / "매일 출석체크만 해도 5P를 받을 수 있어요!" / "배틀 주제 구경하러 가기" - 버튼을 누르면 지금 탭의 배틀 흐름을 닫고 탐색 탭으로 이동(Android navigateToTab(Explore)) - 저장소 테스트 1개, 투표 화면 테스트 5개 추가 Claude-Session: https://claude.ai/code/session_012p64qYTmqHhkJDFnd2C6KB
- 구조: 히어로(남는 높이 전부, 그라데이션 [검정 0.2, 0.6, 검정]) → 32 → 선택지 → 16 → 버튼(16/16/16/20), 배경 순수 검정 - 상단 바 아이콘을 Android 뒤로·공유 벡터(24)로 교체, 제목 줄 수 제한 제거·줄높이 1.3 - 태그(최소 높이 20, 가로 4, 간격 8), 시간 뱃지(gray300 테두리, 시계 16, "N분" 올림 표기) - 선택지 카드 최소 높이 140, 입장 18 SemiBold, 인용구 큰따옴표, VS 테두리 제거, 버튼 48·비활성 primary300 - 빈 화면 로고 160×120·문구 색, 첫 배틀 1개만 표시, 같은 카드 재선택 시 선택 유지, 불러오기 실패 토스트 - 스켈레톤은 iOS 기존 것을 유지 Claude-Session: https://claude.ai/code/session_012p64qYTmqHhkJDFnd2C6KB
- "배틀 입장하기": 배틀 단계 확인 → 처음(NONE)이거나 조회 실패면 선택한 옵션으로 사전투표 후 청취 화면, 이미 참여했으면 관점 화면으로 이동
- 요청 중에는 입장 버튼을 막음, 실패 토스트("포인트가 부족합니다." / "요청을 처리하지 못했어요")
- 단계는 기존 배틀 상세 조회의 currentStep 을 씀(Android status API 와 같은 값)
- 빠른 배틀은 iOS 에서 탭 첫 화면이라 Android 처럼 스택에서 지우지 않음
- BattleParityTests 7개 추가
Claude-Session: https://claude.ai/code/session_012p64qYTmqHhkJDFnd2C6KB
- 상단 바: 높이 48·배경 backgroundBeige·로고 63×40, Android 처럼 알림 벨 숨김 - 카테고리 탭 전체 폭·투명 배경, 정렬 줄과 목록은 흰 바탕 위 카드 - 카드: 가로 16·세로 14, 썸네일 간격 12, 제목→요약 6, 시간·조회수를 카드 맨 아래 오른쪽에 붙임 - 구분선은 카드 위마다 + 마지막 카드 아래, 푸터 아이콘 16 textMuted·글자 gray400·간격 4/12 - 재생 시간 분 내림(Android audioDuration / 60), 빈 화면 "아직 준비된 배틀이 없어요!" - 불러오기 실패 토스트, 탐색 탭 재선택 시 목록 맨 위로 이동 - 기존에 컴파일되지 않던 HifiTests 를 고치고 테스트 2개 추가, 스켈레톤은 iOS 기존 것 유지 Claude-Session: https://claude.ai/code/session_012p64qYTmqHhkJDFnd2C6KB
- 일반 배틀 진입: 내 관점 여부 대신 상세의 currentStep == COMPLETED 이면 관점 화면으로 이동(Android BattleRouting), 클래스 기존 콘텐츠는 기존 판정 유지 - 사전투표 → 청취: 사전투표 자리를 청취로 교체(Android popUpTo(PreVote)) - 청취 → 최종투표: 청취 자리를 최종투표로 교체(Android popUpTo(Scenario)) - 최종투표 → 관점: 흐름에 관점 화면만 남김(Android popUpToTabScreen), 루트가 된 청취 화면 뒤로가기는 흐름 전체를 닫음 - ChatVoteFlowNavigationTests 2개 추가, 기참여 진입 테스트와 탐색 재선택 메인 탭 테스트를 새 동작에 맞춤 Claude-Session: https://claude.ai/code/session_012p64qYTmqHhkJDFnd2C6KB
- 면 borderBeigeDisabled, 테두리 1 primary500, radius 2, 본문 안쪽 24·14 SemiBold primary500·줄높이 24 - 가로·세로 구분선 primary500, 왼쪽 투명 면 primary500 글자 / 오른쪽 primary500 면 textInverse 글자, 버튼 세로 16 - 최종투표: 왼쪽 "다시 들어볼래요" / 오른쪽 "최종투표하기", 바깥 터치도 최종투표하기(Android 와 같음) - 관점 삭제: 왼쪽 "삭제하기" / 오른쪽 "뒤로가기" (클래스 화면 삭제 확인창도 같이 바뀜) Claude-Session: https://claude.ai/code/session_012p64qYTmqHhkJDFnd2C6KB
- ChatCoordinator: 사전투표·최종투표·관점 화면을 자리 교체 대신 push 로 쌓음 - 최종투표 뒤로가기는 한 단계만 닫아 대화방으로 돌아감 - 자리 교체 흐름을 검증하던 ChatVoteFlowNavigationTests 삭제 Claude-Session: https://claude.ai/code/session_012p64qYTmqHhkJDFnd2C6KB
- BattleView·PreVoteView: 뒤로 가기는 PickeNavigationBar 를 쓰고 공유 버튼만 Android 아이콘 유지 - 자체 HStack 앱바와 appBarIcon/navigationIcon 헬퍼 제거 Claude-Session: https://claude.ai/code/session_012p64qYTmqHhkJDFnd2C6KB
- 앱으로 돌아올 때(scenePhase active) 하루 1회 출석 체크, 출석 시트도 하루 1회만 노출 - AttendanceDayRecord: 마지막 출석일·시트 노출일을 UserDefaults 에 저장 - 날짜는 공통 포맷터 Date.formatted(.yearMonthDay) 사용 (Home 에 coreUtility 의존성 추가) - AttendanceParityTests 추가 Claude-Session: https://claude.ai/code/session_012p64qYTmqHhkJDFnd2C6KB
- PerspectiveAPI/Service: GET /api/v1/perspectives/weekly-best 추가 - HomeRepositoryImpl: 홈과 주간 베스트를 함께 받아 상위 3개를 Best 댓글로 채움, 실패 시 섹션만 비움 - 서버가 보내지 않던 홈 응답 bestComments 필드 제거, HomeBestComment 에 perspectiveId 추가 - HomeBestCommentRow: Android HomeBestCommentItem 처럼 선택지 배지 제거 - 주의: weekly-best 는 현재 dev 서버에만 있어 운영 도메인에서는 Best 댓글이 숨겨짐 Claude-Session: https://claude.ai/code/session_012p64qYTmqHhkJDFnd2C6KB
- HomeBestCommentRow 배틀 제목 semiBold13 → regular13 (피그마 홈 시안 픽셀 대조, 본문과 같은 굵기) Claude-Session: https://claude.ai/code/session_012p64qYTmqHhkJDFnd2C6KB
- ClassBattleFlowFeature.shouldShowComposer: 의견 등록 여부와 상관없이 완료 단계면 입력창 노출 (Android PerspectiveScreen 동일) - 완료 단계 등록 버튼 활성화도 입력 내용만으로 판단 - 숨김 동작을 검사하던 테스트 5곳을 새 동작으로 갱신 Claude-Session: https://claude.ai/code/session_012p64qYTmqHhkJDFnd2C6KB
- 서버는 비참여 운영자 행을 명단에 넣지 않는데, 내 행이 없으면 목록 전체를 실패로 처리하던 문제 - ClassMemberList.currentMemberID 를 옵셔널로 바꾸고 매퍼의 실패 조건 제거 (Android 동일) - ClassMemberFeature 이름 수정은 내 행이 있을 때만 진행 Claude-Session: https://claude.ai/code/session_012p64qYTmqHhkJDFnd2C6KB
- 운영자 본인 참여처럼 배틀을 끝내면 서버 인원 수가 바뀌는데, 상세가 이전 memberCount 를 계속 보여주던 문제 - battleFlow 닫기 후 같은 방의 상세가 보이면 fetchDetail 로 재조회 Claude-Session: https://claude.ai/code/session_012p64qYTmqHhkJDFnd2C6KB
- Android ClassEditScreen 처럼 클래스 명과 참여 마감일을 한 화면에서 수정 - 관리 메뉴 '수정'(내 클래스·운영자 요약)이 마감일 시트 대신 이 화면을 연다 - 마감일은 기존 마감일 이후·이용권 종료일 이전으로만 연장, 빈 이름은 저장 불가 - 저장 결과는 스택의 모든 화면과 채팅방 캐시에 반영 (applyUpdatedRoom 으로 분리) - 클래스 상세의 마감일 수정은 기존 시트 그대로 유지 - PICKE_CLASS_VISUAL_AUDIT 전용 시각 감사 테스트는 아직 마감일 시트 기준이라 후속 정리 필요 Claude-Session: https://claude.ai/code/session_012p64qYTmqHhkJDFnd2C6KB
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
전반적으로 Android 구현에 맞춘 배틀·투표·탐색·홈 화면 업데이트와 클래스 QA 수정 사항이 잘 반영되었습니다. 특히 ClassEditFeature 신규 추가, 포인트 부족 처리, UserDefaults를 활용한 출석 체크 로직 등이 상세히 구현되었습니다. 다만, HomeDomain 모듈에 데이터 계층 DTO 정의와 매핑 로직이 포함된 부분이 발견되어 Clean Architecture 원칙 위반이 있습니다.
추가 확인 사항 (미검증 항목은 인라인 미게시):
- Projects/Domain/HomeDomain/Sources/Model/HomeDataDTO.swift:15 [미검증] 🟠 [P2] Major AGENTS.md 규칙 "DTO-to-Entity 매핑은 Data 레이어에 유지되어야 합니다"를 위반합니다.
HomeDataDTO(및 이와 관련된WeeklyBestPerspectiveDataDTO,WeeklyBestPerspectiveItemDTO)와 그 매핑 로직이HomeDomain모듈 내에 정의되어 있습니다. 이는 도메인 레이어가 데이터 레이어의 구현 세부 정보를 알게
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 5258094013
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| static let checkedKey = "picke.attendance.lastCheckedDate" | ||
| static let sheetShownKey = "picke.attendance.lastSheetShownDate" |
There was a problem hiding this comment.
Scope attendance records to the signed-in account
If one account checks in and another account signs in on the same device that day, both attendance guards read the first account's dates and skip checking in the second account. These keys are device-wide, and the inspected logout path (PickeAuth.signOut) clears credentials without clearing these records; repository-wide searches found no production cleanup for either key. Namespace the records by account or clear them when the authenticated account changes so the second user can receive their daily attendance points.
Useful? React with 👍 / 👎.
| if let name { | ||
| updated = try await classUseCase.updateName(id: roomID, name: name) | ||
| } | ||
| if let deadline { | ||
| updated = try await classUseCase.updateDeadline(id: roomID, deadline: deadline) |
There was a problem hiding this comment.
Preserve successful edits when the second update fails
When both fields change, updateName can successfully persist the new name before updateDeadline fails. The combined result then reports only failure, leaving state.room and every coordinator screen unchanged even though the server has already renamed the class. Backing out consequently displays the old name, and retrying resubmits the already-applied rename. Reconcile and propagate the successful update on partial failure, or use an atomic update operation.
Useful? React with 👍 / 👎.
| /// 운영자 클래스 수정 — Android `ClassEditScreen` 처럼 이름 변경과 마감일 연장을 한 화면에서 한다. | ||
| @Reducer | ||
| public struct ClassEditFeature { |
There was a problem hiding this comment.
Split the change into commits within the documented file limit
This commit changes 82 files across battle, chat, home, class administration, networking, and shared UI. Root AGENTS.md explicitly requires splitting commits exceeding 30 changed files by module, domain, or change type; its exception covers only formatter/automatic conversions, which this behavioral change is not. Separate these independent changes into buildable commits to preserve the required review and regression-bisection boundaries.
AGENTS.md reference: AGENTS.md:L841-L855
Useful? React with 👍 / 👎.
| private static func timeString(_ seconds: TimeInterval) -> String { | ||
| let total = max(Int(seconds), 0) | ||
| return String(format: "%d:%02d", total / 60, total % 60) |
There was a problem hiding this comment.
Move duration formatting into the shared utility extension
The new timeString helper is a Foundation-only duration formatter rather than audio-player UI behavior. Root AGENTS.md explicitly prohibits keeping pure formatting utilities as private View helpers and requires a shared type extension named Type+.swift. Move this formatter into the shared utility module and consume that extension here so other playback surfaces can reuse the same formatting behavior.
AGENTS.md reference: AGENTS.md:L505-L514
Useful? React with 👍 / 👎.
| var formScroll: some View { | ||
| ScrollView { | ||
| VStack(alignment: .leading, spacing: 32) { |
There was a problem hiding this comment.
Declare the multi-child form section as a ViewBuilder function
The new formScroll section contains a stack with a heading, two form sections, and conditional error content, but declares that section as a computed property. Root AGENTS.md mandates @ViewBuilder private func for extracted sections containing stacks with two or more children, including conditional children. Convert this section and its call site to that required form.
AGENTS.md reference: AGENTS.md:L151-L157
Useful? React with 👍 / 👎.
| public init(room: ClassRoom) { | ||
| self.room = room | ||
| name = room.name | ||
| deadline = room.deadline |
There was a problem hiding this comment.
Follow the required inline-default State initialization pattern
The new observable State exposes only init(room:) and initializes its editable fields inside that initializer. Root AGENTS.md explicitly requires observable State properties to have inline defaults and to expose only public init() {}, with configuration applied after construction. Adjust this State and its coordinator/test construction sites to retain the repository's prescribed initialization convention.
AGENTS.md reference: AGENTS.md:L354-L356
Useful? React with 👍 / 👎.
- 공백 이름 오류 문구를 Android 와 같은 "공백만으로는 클래스를 만들 수 없어요" 로 변경 - 마감일 아래에 선택한 배틀 카드 표시 - 이용권 종료일은 날짜 단위로 비교해 종료일 당일 선택 허용 - 서버 마감일 오류(CLASS_400_DEADLINE/_EXT)를 마감일 범위 안내로 표시 - 서버 마감일 오류와 종료일 당일 허용 테스트 추가 Claude-Session: https://claude.ai/code/session_012p64qYTmqHhkJDFnd2C6KB
| question: info.summary, | ||
| durationText: info.audioDuration.durationText, | ||
| // Android `TodayBattleItem.toUiModel` — 초를 분으로 올림해 "N분" 으로 표기한다. | ||
| durationText: "\((info.audioDuration + 59) / 60)분", |
There was a problem hiding this comment.
🟠 [P2] Major
BattleFeature (오늘의 배틀)에서 오디오 재생 시간을 분 단위로 올림 처리("N분")하지만, SearchDomain에 정의된 탐색 화면(ExploreItem.minutes)에서는 동일한 초 값을 분 단위로 내림 처리합니다.
이는 동일한 오디오 길이에 대해 배틀 화면에서는 "2분", 탐색 화면에서는 "1분"처럼 다른 재생 시간을 표시하여 사용자 경험에 혼란을 줄 수 있습니다. Android 가이드라인을 확인하여 모든 관련 화면에서 통일된 계산 방식(올림 또는 내림)을 적용해야 합니다.
| state.votedBattleIds.insert(battleId) | ||
| return .send(.delegate(.openBattle(battleId: battleId))) | ||
| case .failure(.insufficientPoints): | ||
| state.toastMessage = "포인트가 부족합니다." |
There was a problem hiding this comment.
🟠 [P2] Major
BattleFeature (오늘의 배틀)에서 BattleError.insufficientPoints 오류 발생 시 토스트 메시지를 표시합니다. 반면 PreVoteFeature (사전/최종 투표)에서는 동일 오류 발생 시 탐색 탭으로 이동할 수 있는 버튼을 포함한 CustomAlert를 띄웁니다.
VoteScreen에 맞춰 포인트 부족 안내가 추가되었으므로, 동일한 사용자 오류에 대해 다른 피드백(토스트 vs. 탐색 이동 옵션이 있는 알림)을 제공하는 것은 일관성이 부족합니다. 모든 포인트 부족 오류 처리 플로우를 PreVoteFeature의 CustomAlert와 같이 명확한 사용자 액션 경로를 제공하도록 통일하는 것을 고려해야 합니다.
요약
배틀·투표·탐색·홈 화면을 Android 구현에 맞추고, 클래스 QA에서 실패한 4건을 고쳤습니다.
배틀·투표·탐색 (Android 맞춤)
ScenarioScreen·ScenarioViewModel에 맞춤VoteScreen에 맞추고 포인트 부족 안내 추가ExploreScreen에 맞춤PickeConfirmDialog모양으로 맞춤PickeNavigationBar)는 iOS 기존 방식으로 되돌림홈
.yearMonthDay) 사용GET /api/v1/perspectives/weekly-best)로 연동regular13으로 변경클래스 QA 수정
PerspectiveScreen처럼 결과 단계에서는 항상 입력창 노출updateNameAPI만 있음)ClassEditScreen처럼 이름·마감일 수정 화면 신규. 관리 메뉴 "수정"에서 진입CLASS_400_DEADLINE/_EXT는 마감일 범위 안내로 표시currentMemberID옵셔널)확인
ClassEditTests7개 포함), Home 18개,PickeTests/ClassCoordinatorTests49개남은 일
PICKE_CLASS_VISUAL_AUDIT=1일 때만 도는 시각 감사 테스트(ClassFlowVisualAuditTests)는 아직 "수정 = 마감일 시트" 기준이라 정리가 필요합니다. 기본 실행에서는 건너뜁니다.https://claude.ai/code/session_012p64qYTmqHhkJDFnd2C6KB