Skip to content

Conversation

@BonhaengLee
Copy link
Contributor

@BonhaengLee BonhaengLee commented Jan 24, 2026

#️⃣ 연관된 이슈

resolve #111

📝 작업 내용

  1. Reactotron 설정 추가

    • 개발 환경에서 API 요청/응답 추적 가능
    • src/config/reactotron.ts 설정 파일 추가
  2. 후기 등록 API 연동 (step1, step3)

    • step1: 미작성 티켓 목록 API 연동 (getUnreviewedTicketList)
    • step3: 시야 이미지 조회 API 연동 (getViewImage)
    • Mock 데이터 제거 및 실제 API 응답 데이터 매핑
  3. 프로덕션 빌드 console.log 자동 제거

    • babel-plugin-transform-remove-console 추가
    • 프로덕션 빌드 시 console.log 자동 제거
    • console.error, console.warn은 유지

⚠️ 알려진 이슈

  • 후기 등록 API 500 에러: user_id FK 제약 조건 실패 → 백엔드 확인 필요
    • 에러 메시지: Cannot add or update a child row: a foreign key constraint fails

결과

image image image image image image

💬 리뷰어에게

  • 후기 등록 500 에러는 백엔드에 문의 중입니다.
  • Reactotron으로 API 요청/응답 디버깅 가능합니다.

BonhaengLee and others added 7 commits January 24, 2026 12:23
- ReviewWriteContext 추가: step 간 데이터 전달
- reviewMutations.createReview 훅 추가
- 각 step에서 context를 통한 데이터 저장
- step6에서 createReview API 호출
- 등록 성공/실패 시 toast 표시
- 로딩 상태 처리

Co-Authored-By: Claude Opus 4.5 <[email protected]>
- handleComplete에서 불필요한 검증 로직 제거
- 모든 step에서 reset() 호출 제거

Co-Authored-By: Claude Opus 4.5 <[email protected]>
- AddReviewBottomSheet: render props 패턴으로 변경하여 실제 바텀시트 닫기 애니메이션 적용
- user.provider: sync 함수 및 isLoading 상태를 context에 노출
- login: 토큰 저장 후 sync() 호출하여 user 상태 즉시 갱신
- index: useEffect를 조건부 return 이전으로 이동하여 Hooks 순서 오류 해결

Co-Authored-By: Claude Opus 4.5 <[email protected]>
- step1: 미작성 티켓 목록 API 연동 (getUnreviewedTicketList)
- step3: 시야 이미지 조회 API 연동 (getViewImage)
- Mock 데이터 제거 및 실제 API 응답 데이터 매핑
- 디버깅용 로깅 추가 (step6)

Co-Authored-By: Claude Opus 4.5 <[email protected]>
- babel-plugin-transform-remove-console 추가
- 프로덕션 빌드 시 console.log 자동 제거
- console.error, console.warn은 유지

Co-Authored-By: Claude Opus 4.5 <[email protected]>
@BonhaengLee BonhaengLee requested review from chaeyun-sim and thyeone and removed request for thyeone January 24, 2026 12:08
바이너리 응답(image/*, application/octet-stream 등)에서
response.clone() 후 json()/text() 호출 시 stream이 공유되어
원본 response에서 blob() 호출 시 "Already read" 에러 발생하던 문제 해결

- Content-Type 헤더 확인하여 바이너리 여부 판단
- 바이너리 응답은 body 읽기 스킵하고 placeholder 표시
- 이미지 업로드 기능 정상 동작 확인
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.

후기 등록 API 연동

3 participants