Repository navigation
feat: 상품 이미지 상한 5 → 6장 - #517
Conversation
판매자 앱 상품 등록 시안의 이미지 드롭존이 '이미지 추가 (0/6)'로 최대 6장을 받는다.
사용자 결정(2026-10-06)으로 BE 상한을 시안에 맞춤.
- MAX_PRODUCT_IMAGES 5 → 6. 이 상수를 쓰는 곳은 sellerAddProductImage 하나.
관리자 경로는 이미지 추가가 없고 조회(imageUrls)만이라 영향 없음.
- PRODUCT_IMAGE_LIMIT_EXCEEDED 메시지는 { max }로 렌더되므로 '최대 6장'으로 함께 바뀜.
- SDL 변경 없음 — 상한 문구가 SDL description에 없음.
- 회귀 테스트 1건 교체: 6장째 추가 성공, 7장째 PRODUCT_IMAGE_LIMIT_EXCEEDED,
메시지의 max, 건수 6 유지. 시드는 리터럴이라 상수만 5로 되돌리면 6장째 추가에서 실패(반증 확인).
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the ⚙️ Run configuration
You can disable this status message by setting the Use the checkbox below for a quick retry:
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
🧹 knip — dead-code 리포트전체 리포트
|
🩺 NestJS Doctor — 90/100 (Excellent)진단 484건 (error 12).
architecture / security 상위 항목
|
Coverage report
Test suite run success4236 tests passing in 383 suites. Report generated by 🧪jest coverage report action from 2a6324e |
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
요약
MAX_PRODUCT_IMAGES5 → 6(product-seller.constants.ts)sellerAddProductImage의 개수 검사 하나입니다.PRODUCT_IMAGE_LIMIT_EXCEEDED메시지는{ max }로 렌더되므로 '상품 이미지는 최대 6장까지 등록할 수 있습니다.'로 함께 바뀝니다.imageUrls)만 있어 상한을 쓰지 않습니다.FE 영향
feat/products-create)의 드롭존 상한(draft-form.ts의MAX_IMAGES = 6)이 이 PR로 BE와 같아집니다.sellerAddProductImage가PRODUCT_IMAGE_LIMIT_EXCEEDED로 거절됩니다.sellerAddProductImage·상한 상수를 쓰지 않고, 상품 상세는product.images를 개수 제한 없이 그대로 그립니다.imageUrls를 개수 제한 없이 나열하므로 영향이 없습니다.테스트
product-seller-image.service.spec의 상한 케이스를 새 경계로 바꿨습니다.PRODUCT_IMAGE_LIMIT_EXCEEDED최대 ${MAX_PRODUCT_IMAGES}장까지가 들어가고, 거절 뒤 건수가MAX_PRODUCT_IMAGES(6)로 유지됨PRODUCT_IMAGE_LIMIT_EXCEEDED가 나며 새 경계 케이스가 실패함을 확인하고 되돌렸습니다(시드는 리터럴 5장이라 상수 변경을 따라가지 않습니다).yarn docs:check·tsc --noEmit·변경 파일 eslint·prettier가 통과했습니다.플랜 대조