[feat] 스펙 기반 큐레이션 생성 라우트 및 프로그램 폼 추가 - #91
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
PR 제목 (Title)
[feat] 스펙 기반 큐레이션 생성 라우트 및 프로그램 폼 추가
관련 이슈
변경 사항 (Changes)
/dashboard/curations/specs/:specCode/new단일 라우트로 통합하고, 기존 타입별 경로는 호환 redirect로 전환했습니다.PROGRAM카드와 생성·수정 화면을 추가하고, object payload의 primitive, enum, enum array, object array를 스펙 기반으로 렌더링·검증·직렬화하도록 구현했습니다.변경 이유 (Reason for Changes)
큐레이션 스펙이 추가될 때마다 생성 route와 페이지를 새로 만드는 구조를 줄이고, URL의 spec code와 API의
requestSpec을 기준으로 공통 페이지에서 화면을 구성하기 위해 변경했습니다.PROGRAM은 행사 정보와 반복 프로그램, 프로그램별 위스키 목록을 포함하므로 기존 primitive 필드 모델을 enum 및 중첩 object array까지 확장했습니다.테스트 방법 (Test Procedure)
pnpm test:run— 46개 test file, 328개 test 통과pnpm build— TypeScript 및 production build 통과pnpm exec eslint ...통과pnpm exec prettier --check ...통과PROGRAM생성·수정 payload, 중첩 위스키 상태 분리, 기존 시음회·추천·페어링 회귀를 확인했습니다.참고 사항 (Additional Information)
PROGRAM은 앱 표시용 response/display vocabulary가 없어 생성 카드의 앱 미리보기를 의도적으로 제공하지 않습니다.pnpm lint는 기존의 비관련 e2e 및ImageUpload, 배너, 증류소, 테이스팅 태그, 위스키 화면 등에서 10개 오류가 있어 실패합니다. 이번 변경 파일 대상 ESLint는 통과했습니다.