Skip to content

fix(web): explore browse 카드에 이미지 치수 배선 + 데드 상태 정리 (#814)#827

Merged
thxforall merged 1 commit into
devfrom
feature/814-explore-dims
Jul 9, 2026
Merged

fix(web): explore browse 카드에 이미지 치수 배선 + 데드 상태 정리 (#814)#827
thxforall merged 1 commit into
devfrom
feature/814-explore-dims

Conversation

@thxforall

Copy link
Copy Markdown
Contributor

Resolves #814 · Part of #810 (이미지 로드/웹 최적화 wayfinder 맵)

무엇을

browse 모드 posts DTO의 image_width/image_height를 explore 카드까지 배선하고, ExploreCardCell의 데드 isLoaded 상태를 제거합니다.

⚠️ 사용자 체감 변화 없음 (정직한 프레이밍)

이 PR은 지금 관찰 가능한 개선을 주지 않습니다:

실제 가치 = enabler: 변환 경로 복귀(#819)로 옵티마이저가 다시 켜지면 올바른 dims → 올바른 srcset 선택이 가능해짐. 지금은 그 배선을 미리 깔고 데드 코드를 지우는 것. #819를 de-risk.

변경

  • GridItem 타입에 imageWidth/imageHeight 추가 (ThiingsGrid).
  • ExploreClient gridItems 매핑에서 치수 passthrough(값 있을 때만).
  • ExploreCardCellPostImageimageWidth/imageHeight 전달 (800x1000 매직넘버 fallback 대체).
  • ExploreCardCell의 데드 isLoaded 상태 제거 (set만 되고 read 안 되던 cruft).

범위 밖 / graduate

  • search 모드: SearchResultItem(Meilisearch)에 치수 필드가 없어 검색 카드는 800x1000 fallback 유지 → 백엔드에 dims 추가 필요(맵 fog, philippe 조율).

검증

  • 치수 흐름 회귀 테스트 추가(ExploreCardCell.test.tsx): 치수 있음 → img 1200x800, 없음 → 800x1000 fallback.
  • bunx tsc --noEmit clean · 변경 파일 eslint 0 error · vitest run 701/701 통과.

🤖 Generated with Claude Code

browse 모드 posts DTO의 image_width/image_height를 explore 카드까지 배선.
useInfinitePosts→PostGridItem엔 이미 있었으나 GridItem→ExploreCardCell→PostImage
경로에서 끊겨 있던 것을 연결.

- GridItem 타입에 imageWidth/imageHeight 추가(ThiingsGrid).
- ExploreClient gridItems 매핑에서 치수 passthrough(값 있을 때만).
- ExploreCardCell → PostImage에 imageWidth/imageHeight 전달(800x1000 매직넘버 대체).
- ExploreCardCell의 데드 isLoaded 상태 제거(set만 되고 read 안 되던 cruft).

**사용자 체감 변화 없음**: (1) 현 explore는 리디자인(#742) 후 고정 aspect-[3/4]
셀이라 grid CLS 없음(원 티켓 CLS 전제는 pre-redesign), (2) loader가 외부 URL
옵티마이저를 우회해 치수로 srcset이 안 바뀜, (3) object-contain은 실제 픽셀로
크기를 잡아 육안 차 미미. 이 PR의 실제 가치 = **enabler**: 변환 경로 복귀(#819)
시 올바른 srcset 선택을 가능케 하는 배선 + 데드 코드 삭제. search
모드(SearchResultItem)는 치수 미노출 → backend graduate.

검증: tsc·lint(내 파일 0 err)·vitest 701/701. 치수 흐름 회귀 테스트 추가.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@vercel

vercel Bot commented Jul 9, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
decoded-app Ready Ready Preview, Comment Jul 9, 2026 11:16am

@thxforall thxforall moved this from Todo to In Progress in decoded-monorepo Jul 9, 2026
@thxforall thxforall added the bump:patch Bug fixes / internal refactor label Jul 9, 2026
@thxforall thxforall added bump:patch Bug fixes / internal refactor and removed bump:patch Bug fixes / internal refactor labels Jul 9, 2026
@thxforall
thxforall merged commit f829cd4 into dev Jul 9, 2026
11 of 14 checks passed
@github-project-automation github-project-automation Bot moved this from In Progress to Done in decoded-monorepo Jul 9, 2026
github-actions Bot pushed a commit that referenced this pull request Jul 9, 2026
@thxforall
thxforall deleted the feature/814-explore-dims branch July 9, 2026 12:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bump:patch Bug fixes / internal refactor

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

1 participant