refactor: 큐레이션 v2 위스키 폼 스펙 드리븐 리팩터링 및 모듈 구조 정리#85
Merged
Conversation
추천/페어링 큐레이션의 model 합성 레이어를 제거하고 서버 계약 (x-container/x-field-style/x-display-name)을 직접 읽도록 변경. 중복 alcohol-card-list 빌더를 공통 빌더 하나로 병합하고, WhiskyCurationFormModel을 스펙 파생 필드로 다이어트, 렌더러 라벨을 field model에서 파생, 추천/페어링 4개 페이지를 create/edit 2개로 통합. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
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)
변경 사항 (Changes)
whisky-tasting-event,whisky-curation) 디렉토리로 재편하고, 각 타입을 Gate(조회/로딩/에러 상태) + Form + PreviewPanel 구조로 분리 (구whisky-card/tasting-eventcreate 페이지 및 스키마 제거)x-container/x-field-style/x-display-name)을 단일 파서가 직접 읽도록 변경하고, model 합성 레이어(가짜 wrapper 스키마 + FE 발명값 주입) 제거createAlcoholCardListFieldModel하나로 병합WhiskyCurationFormModel을 스펙 파생 필드(cardList,pairings)로 다이어트하고, 렌더러의 하드코딩 라벨(코멘트 aria/placeholder, 아이템 헤딩)을 field model에서 파생WhiskyCurationCreatePage/WhiskyCurationEditPage2개로 통합(presentationprop 제거, 폼이 스펙으로 판별), 상세 payload 배열 라벨을 스펙 기반으로 렌더변경 이유 (Reason for Changes)
테스트 방법 (Test Procedure)
pnpm test:run— 전체 유닛/훅/컴포넌트 테스트 265개 통과 (큐레이션 스위트 48개 포함)tsc -b타입체크,eslint린트 통과참고 사항 (Additional Information)
responseSpec이 현재 비어 있고 구조가 미확정이라 이번 범위에서는 하드코딩을 유지했습니다(ponytail:주석으로 전환 경로 표기). responseSpec 구조 확정 후 별도 PR에서 스펙 드리븐으로 전환 예정입니다.🤖 Generated with Claude Code