convertStatus 확인 로직 추가
Description
-
record 완료 시:
-
updateRawText로 raw text 저장 -
requestConvert호출 -
서버가 변환 작업 시작:
-
convertStatus = 'IN_PROGRESS' -
reviewStatus = 'QNA_SET_DRAFT'
-
-
프론트는 바로
record/confirm으로 이동
-
confirm 진입 후:
-
waitConvertResult를 먼저 조회 (useRecordConfirmConvertGate) -
게이트 상태(
loading | ready | failed | error)를 계산 -
ready일 때만getInterviewFull조회 시작
-
변환 상태 조회 결과:
-
convertStatus = 'IN_PROGRESS'또는errorCode = INTERVIEW_CONVERTING_IN_PROGRESS-
state = 'loading'(로딩 오버레이)
-
-
convertStatus = 'COMPLETED'또는errorCode = INTERVIEW_CONVERTING_STATUS_IS_PENDING-
state = 'ready'(다음 단계 진행)
-
-
convertStatus = 'NOT_CONVERTED'또는errorCode = INTERVIEW_CONVERTING_FAILED-
state = 'failed'(실패 ConfirmModal, 확인 시 record 이동)
-
-
그 외 에러
-
state = 'error'(재시도 ConfirmModal)
-
-
데이터 로딩:
-
게이트
ready면getInterviewFull호출 -
인터뷰 데이터 로딩 중이면 로딩 유지
-
로딩 실패/데이터 없음이면 재시도 ConfirmModal
-
데이터 성공 후:
-
reviewStatus = 'QNA_SET_DRAFT'면 confirm 화면 렌더 -
아니면
getInterviewNavigationPath로 해당 단계 라우팅
-