[JDDEV-81] [JDDEV-65] [JDDEV-72] 문항 API 연동#60
Conversation
|
Caution Review failedPull request was closed or merged during review 📝 WalkthroughWalkthroughThe application's questions and write steps are refactored from client-side to server-side async pages. A new question API module manages fetch/save operations. SelectQuestion and InputSection components are updated to use the API and require an applyId prop. QuestionsPageClient and WritePageClient handle the interactive UI and navigation flows. ChangesQuestions and Write Flow Refactor
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~25 minutes Possibly related PRs
Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Comment |
🔗 관련 이슈
📝 개요
⌨️ 작업 상세 내용
API 연동
questions.ts— API 응답 구조 매핑 (content→question,charLimit→maxLength,result래퍼 처리)questions.ts—getAuthHeaders()추가, 모든 요청에Authorization: Bearer헤더 자동 주입questions.ts—fetchQuestions/saveQuestions/fetchSelectedQuestions3개 함수 구현SelectQuestion— candidates API 호출 후selected: true항목 자동 선택 상태 복원InputSection— sessionStorage 제거,fetchSelectedQuestionsAPI로 문항 로드💡 코드 설명 및 참고사항
페이지 구조 개선
questions/page.tsx+QuestionsPageClient.tsx분리write/page.tsx+WritePageClient.tsx분리"use client"+use(params)조합에서 Suspense boundary 없이 렌더가 블로킹되는 문제 →async/await서버 컴포넌트로 분리하여 해결📸 스크린샷 (UI 변경 시)
🔍 리뷰 요구사항 (Reviewers)
Summary by CodeRabbit
New Features
Refactor