Skip to content

Comments

[fix] 변경된 썸네일 사이즈로 srcset 추가#490

Merged
inyminymoe merged 1 commit intoKernel360:developfrom
geumyoung00:fix/image-srcset
Aug 5, 2025
Merged

[fix] 변경된 썸네일 사이즈로 srcset 추가#490
inyminymoe merged 1 commit intoKernel360:developfrom
geumyoung00:fix/image-srcset

Conversation

@geumyoung00
Copy link
Collaborator

@geumyoung00 geumyoung00 commented Aug 5, 2025

🚀 풀 리퀘스트 제안

📋 작업 내용

  • 옥션 카드 수정된 썸네일에 맞춰 srcset 추가

🔧 변경 사항

  • 📃 README.md
  • 📦 package.json
  • 🔥 파일 삭제
  • 🧹 그 외 ex) .gitignore 등

주요 변경 사항을 요약해 주세요.

📸 스크린샷 (선택 사항)

수정된 화면 또는 기능을 시연할 수 있는 스크린샷을 첨부해 주세요.

📄 기타

추가적으로 전달하고 싶은 내용이나 특별한 요구 사항이 있으면 작성해 주세요.

Sourcery 요약

Next.js 이미지 구성 및 컴포넌트 설정을 업데이트하여 썸네일 srcset을 업데이트된 크기 요구 사항에 맞게 정렬

개선 사항:

  • 정확한 srcset 생성을 위해 Next.js imageSizes를 확장하여 새로운 썸네일 크기를 포함시켰습니다.
  • AuctionItemCard 이미지 품질 설정을 50에서 75로 올렸습니다.
  • 디버깅을 위해 Thumbnail 컴포넌트 props의 콘솔 로깅을 추가했습니다.
  • AuctionItemCard에서 더 이상 사용되지 않는 주석 처리된 finalStatus 로직을 제거했습니다.
Original summary in English

Summary by Sourcery

Align thumbnail srcset with updated size requirements by updating Next.js image configuration and component settings

Enhancements:

  • Extend Next.js imageSizes to include new thumbnail dimensions for accurate srcset generation
  • Increase AuctionItemCard image quality setting from 50 to 75
  • Add console logging of Thumbnail component props for debugging
  • Remove obsolete commented-out finalStatus logic in AuctionItemCard

@sourcery-ai
Copy link
Contributor

sourcery-ai bot commented Aug 5, 2025

검토자 가이드

이 PR은 srcset을 위한 Next.js 이미지 중단점을 확장하여 썸네일 처리를 조정하고, 사용되지 않는 코드를 정리하면서 AuctionItemCard의 이미지 품질을 개선하며, Thumbnail 컴포넌트에 디버그 로깅을 추가합니다.

업데이트된 Next.js 이미지 구성을 위한 개체 관계 다이어그램

erDiagram
  NEXT_CONFIG {
    imageSizes int[]
    deviceSizes int[]
    formats string[]
    minimumCacheTTL int
    remotePatterns string[]
  }
  NEXT_CONFIG ||--o{ IMAGE : configures
  IMAGE {
    size int
    quality int
    format string
  }
Loading

파일별 변경 사항

변경 사항 세부 정보 Files
반응형 srcset 크기 확장
  • 새로운 썸네일 크기로 imageSizes 배열 확장
  • 대상 기기에 맞게 deviceSizes 조정
apps/web/next.config.ts
AuctionItemCard 이미지 렌더링 개선
  • 사용되지 않는 주석 처리된 finalStatus 라인 제거
  • 이미지 품질을 50에서 75로 향상
apps/web/src/components/common/auction-card/card.tsx
Thumbnail 컴포넌트에 디버그 로깅 추가
  • size, url, 및 devicePixelRatio를 출력하기 위해 console.log 삽입
apps/web/src/components/ui/thumbnail.tsx

팁 및 명령어

Sourcery와 상호작용하기

  • 새로운 리뷰 트리거: 풀 리퀘스트에 @sourcery-ai review라고 댓글을 남기세요.
  • 토론 계속하기: Sourcery의 리뷰 댓글에 직접 답글을 남기세요.
  • 리뷰 댓글에서 GitHub 이슈 생성: Sourcery에게 리뷰 댓글에 답글을 달아 이슈를 생성하도록 요청하세요. 리뷰 댓글에 @sourcery-ai issue라고 답글을 달아 이슈를 생성할 수도 있습니다.
  • 풀 리퀘스트 제목 생성: 풀 리퀘스트 제목 어디에든 @sourcery-ai를 작성하여 언제든지 제목을 생성할 수 있습니다. 풀 리퀘스트에 @sourcery-ai title이라고 댓글을 달아 언제든지 제목을 (재)생성할 수도 있습니다.
  • 풀 리퀘스트 요약 생성: 풀 리퀘스트 본문 어디에든 @sourcery-ai summary를 작성하여 원하는 위치에 언제든지 PR 요약을 생성할 수 있습니다. 풀 리퀘스트에 @sourcery-ai summary라고 댓글을 달아 언제든지 요약을 (재)생성할 수도 있습니다.
  • 검토자 가이드 생성: 풀 리퀘스트에 @sourcery-ai guide라고 댓글을 달아 언제든지 검토자 가이드를 (재)생성할 수 있습니다.
  • 모든 Sourcery 댓글 해결: 풀 리퀘스트에 @sourcery-ai resolve라고 댓글을 달아 모든 Sourcery 댓글을 해결하세요. 이미 모든 댓글을 처리했고 더 이상 보고 싶지 않을 때 유용합니다.
  • 모든 Sourcery 리뷰 해제: 풀 리퀘스트에 @sourcery-ai dismiss라고 댓글을 달아 기존의 모든 Sourcery 리뷰를 해제하세요. 새로운 리뷰로 처음부터 시작하고 싶을 때 특히 유용합니다. 새로운 리뷰를 트리거하려면 @sourcery-ai review라고 댓글을 다는 것을 잊지 마세요!

경험 사용자 지정

대시보드에 접속하여:

  • Sourcery가 생성한 풀 리퀘스트 요약, 검토자 가이드 등의 리뷰 기능을 활성화하거나 비활성화합니다.
  • 리뷰 언어를 변경합니다.
  • 사용자 지정 리뷰 지침을 추가, 제거 또는 편집합니다.
  • 다른 리뷰 설정을 조정합니다.

도움 받기

Original review guide in English

Reviewer's Guide

This PR adjusts thumbnail handling by expanding Next.js image breakpoints for srcset, improving image quality in AuctionItemCard while cleaning up dead code, and adding debug logging in the Thumbnail component.

Entity relationship diagram for updated Next.js image configuration

erDiagram
  NEXT_CONFIG {
    imageSizes int[]
    deviceSizes int[]
    formats string[]
    minimumCacheTTL int
    remotePatterns string[]
  }
  NEXT_CONFIG ||--o{ IMAGE : configures
  IMAGE {
    size int
    quality int
    format string
  }
Loading

File-Level Changes

Change Details Files
Expanded responsive srcset sizes
  • Extended imageSizes array with new thumbnail dimensions
  • Adjusted deviceSizes for target devices
apps/web/next.config.ts
Enhanced AuctionItemCard image rendering
  • Removed unused commented finalStatus line
  • Increased image quality from 50 to 75
apps/web/src/components/common/auction-card/card.tsx
Added debug logging in Thumbnail component
  • Inserted console.log to output size, url, and devicePixelRatio
apps/web/src/components/ui/thumbnail.tsx

Tips and commands

Interacting with Sourcery

  • Trigger a new review: Comment @sourcery-ai review on the pull request.
  • Continue discussions: Reply directly to Sourcery's review comments.
  • Generate a GitHub issue from a review comment: Ask Sourcery to create an
    issue from a review comment by replying to it. You can also reply to a
    review comment with @sourcery-ai issue to create an issue from it.
  • Generate a pull request title: Write @sourcery-ai anywhere in the pull
    request title to generate a title at any time. You can also comment
    @sourcery-ai title on the pull request to (re-)generate the title at any time.
  • Generate a pull request summary: Write @sourcery-ai summary anywhere in
    the pull request body to generate a PR summary at any time exactly where you
    want it. You can also comment @sourcery-ai summary on the pull request to
    (re-)generate the summary at any time.
  • Generate reviewer's guide: Comment @sourcery-ai guide on the pull
    request to (re-)generate the reviewer's guide at any time.
  • Resolve all Sourcery comments: Comment @sourcery-ai resolve on the
    pull request to resolve all Sourcery comments. Useful if you've already
    addressed all the comments and don't want to see them anymore.
  • Dismiss all Sourcery reviews: Comment @sourcery-ai dismiss on the pull
    request to dismiss all existing Sourcery reviews. Especially useful if you
    want to start fresh with a new review - don't forget to comment
    @sourcery-ai review to trigger a new review!

Customizing Your Experience

Access your dashboard to:

  • Enable or disable review features such as the Sourcery-generated pull request
    summary, the reviewer's guide, and others.
  • Change the review language.
  • Add, remove or edit custom review instructions.
  • Adjust other review settings.

Getting Help

@inyminymoe inyminymoe merged commit 3121f1f into Kernel360:develop Aug 5, 2025
2 checks passed
Copy link
Contributor

@sourcery-ai sourcery-ai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

안녕하세요 @geumyoung00님 - 변경 사항을 검토했습니다. 몇 가지 피드백이 있습니다:

  • 프로덕션에서 디버그 로그가 유출되는 것을 방지하기 위해 병합하기 전에 Thumbnail의 console.log를 제거해주세요.
  • 더 이상 필요하지 않은 주석 처리된 finalStatus 라인을 정리해주세요.
  • 불필요한 이미지 변형 생성을 방지하기 위해 확장된 imageSizes 목록에서 중복되거나 불필요한 크기가 있는지 다시 확인해주세요.
AI 에이전트용 프롬프트
이 코드 검토의 댓글을 처리해주세요:
## 전체 댓글
- 프로덕션에서 디버그 로그가 유출되는 것을 방지하기 위해 병합하기 전에 Thumbnail의 console.log를 제거해주세요.
- 더 이상 필요하지 않은 주석 처리된 finalStatus 라인을 정리해주세요.
- 불필요한 이미지 변형 생성을 방지하기 위해 확장된 imageSizes 목록에서 중복되거나 불필요한 크기가 있는지 다시 확인해주세요.

## 개별 댓글

### 댓글 1
<location> `apps/web/src/components/ui/thumbnail.tsx:28` </location>
<code_context>
   quality = 80,
   ...props
 }: ThumbnailProps) => {
+  console.log('Thumbnail props:', { size, url, devicePixelRatio: window.devicePixelRatio });
+
   return (
</code_context>

<issue_to_address>
병합하기 전에 console.log 문을 제거하거나 보호하세요.

정보 노출 및 프로덕션 로그 혼란을 방지하기 위해 console.log 문은 제거하거나 개발 환경에서만 조건부로 실행해야 합니다.
</issue_to_address>

Sourcery는 오픈 소스에 무료입니다. 저희 리뷰가 마음에 드시면 공유를 고려해주세요 ✨
제가 더 유용해지도록 도와주세요! 각 댓글에 👍 또는 👎를 클릭해주시면, 이 피드백을 사용하여 리뷰를 개선하겠습니다.
Original comment in English

Hey @geumyoung00 - I've reviewed your changes - here's some feedback:

  • Please remove the console.log in Thumbnail before merging to avoid leaking debug logs in production.
  • Clean up the leftover commented-out finalStatus line if it’s no longer needed.
  • Double-check the expanded imageSizes list for any redundant or unnecessary sizes to prevent generating extra image variants.
Prompt for AI Agents
Please address the comments from this code review:
## Overall Comments
- Please remove the console.log in Thumbnail before merging to avoid leaking debug logs in production.
- Clean up the leftover commented-out finalStatus line if it’s no longer needed.
- Double-check the expanded imageSizes list for any redundant or unnecessary sizes to prevent generating extra image variants.

## Individual Comments

### Comment 1
<location> `apps/web/src/components/ui/thumbnail.tsx:28` </location>
<code_context>
   quality = 80,
   ...props
 }: ThumbnailProps) => {
+  console.log('Thumbnail props:', { size, url, devicePixelRatio: window.devicePixelRatio });
+
   return (
</code_context>

<issue_to_address>
Remove or guard console.log statement before merging.

Console.log statements should be removed or conditionally executed only in development to avoid exposing information and cluttering production logs.
</issue_to_address>

Sourcery is free for open source - if you like our reviews please consider sharing them ✨
Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.

quality = 80,
...props
}: ThumbnailProps) => {
console.log('Thumbnail props:', { size, url, devicePixelRatio: window.devicePixelRatio });
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

issue: 병합하기 전에 console.log 문을 제거하거나 보호하세요.

정보 노출 및 프로덕션 로그 혼란을 방지하기 위해 console.log 문은 제거하거나 개발 환경에서만 조건부로 실행해야 합니다.

Original comment in English

issue: Remove or guard console.log statement before merging.

Console.log statements should be removed or conditionally executed only in development to avoid exposing information and cluttering production logs.

@geumyoung00 geumyoung00 deleted the fix/image-srcset branch August 6, 2025 04:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants