Skip to content

서버 v3.0.4 클래스 응답 변경 반영 - #84

Merged
Roy-wonji merged 1 commit into
developfrom
feature/server-v3.0.4-alignment-20261119
Nov 19, 2026
Merged

Roy-wonji merged 1 commit into
developfrom
feature/server-v3.0.4-alignment-20261119

Conversation

@Roy-wonji

Copy link
Copy Markdown
Contributor

요약

서버 v3.0.4 클래스 API 변경(docs/api-specs/class-api.md)을 앱에 반영했습니다.

변경

항목 내용
멤버 수 activeMemberCount로 "멤버 N명" 표시(내 클래스 카드·상세·멤버 목록). memberCount는 사용 좌석 수로 유지
철학자 이미지 AI 토론 상대 아바타를 서버 philosopher.imageUrl로 표시 (칸트 이름·얼굴 불일치 수정)
커스텀 배틀 태그 클래스 배틀 상세 battle.categoryTags를 투표 화면 #카테고리로 표시
이용권 코드 PKE+6자리(9자) 입력 제한, 예시 "예: PKE05D2E1", TICKET_429_LOCKED 잠금 안내
참여 오류 CLASS_409_TICKET_ENDED를 마감(CLASS_409_CLOSED)과 다른 문구로 구분

변경 없음

  • 멤버 아바타·배틀 썸네일은 이미 URL 사용
  • 내보내기 아이콘은 이미 운영자 && 내가 아닌 멤버 조건

확인

  • 테스트 통과: ClassDomain, Class (이용권 9자 제한·잠금 안내 테스트 추가)

https://claude.ai/code/session_012p64qYTmqHhkJDFnd2C6KB

- 멤버 수: activeMemberCount 를 받아 "멤버 N명" 표시에 사용 (memberCount 는 사용 좌석 수로 유지)
- AI 토론 철학자 이미지: 서버 philosopher.imageUrl 우선 사용 (이름·얼굴 불일치 수정)
- 커스텀 배틀 태그: 클래스 배틀 상세 battle.categoryTags 를 투표 화면 카테고리로 표시
- 이용권 코드: PKE+6자리(9자) 입력 제한, 예시 문구 변경, TICKET_429_LOCKED 5회 잠금 안내
- 참여 오류: CLASS_409_TICKET_ENDED 를 마감과 다른 문구로 구분

Claude-Session: https://claude.ai/code/session_012p64qYTmqHhkJDFnd2C6KB
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 19, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-19T08:25:08.303172Z cce539a PR opened
ℹ️ 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@Roy-wonji
Roy-wonji merged commit bf32d77 into develop Nov 19, 2026
5 checks passed
@Roy-wonji
Roy-wonji deleted the feature/server-v3.0.4-alignment-20261119 branch November 19, 2026 08:24

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

서버 v3.0.4 클래스 API 변경 사항이 대부분 올바르게 반영되었습니다. 특히 activeMemberCount 도입, 철학자 이미지 URL 적용, 커스텀 배틀 태그 우선순위 반영, 이용권 코드 입력 제한 및 관련 에러 처리 로직이 잘 구현되었습니다. ClassTicketTests.swift에서 normalizedCode의 테스트 기댓값이 잘못 설정된 부분이 발견되었습니다.

await store.send(.binding(.set(\.code, "pke-05d2e1"))) {
$0.code = "pke-05d2e1"
}
#expect(store.state.normalizedCode == "PKE-05D2E1")

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟠 [P2] Major

normalizedCode는 state.code에서 하이픈을 제거하고 대문자로 변환한 값입니다. 따라서 "pke-05d2e1"이 state.code로 설정되었을 때, normalizedCode는 "PKE05D2E1"이 되어야 합니다. 현재 테스트는 "PKE-05D2E1"을 기대하고 있어 잘못된 기댓값을 가지고 있습니다.

수정 방향: normalizedCode의 기댓값을 "PKE05D2E1"으로 변경해야 합니다.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant