Skip to content

fix(web): page-theme 테스트 params mock에 locale 추가 (tsc)#890

Merged
thxforall merged 1 commit into
devfrom
fix/profile-theme-test-locale
Jul 11, 2026
Merged

fix(web): page-theme 테스트 params mock에 locale 추가 (tsc)#890
thxforall merged 1 commit into
devfrom
fix/profile-theme-test-locale

Conversation

@thxforall

Copy link
Copy Markdown
Contributor

What

#839 page-theme.test.tsx의 params mock에 locale 필드를 추가한다.

Why

[locale]/(shell)/profile/[userId] 라우트의 params 타입은 { userId, locale }인데 테스트가 { userId }만 mock 하여 tsc 타입 불일치(TS2322)가 발생. web typecheck CI가 없어 CI엔 안 잡혔으나 로컬 tsc --noEmit / next build에서 드러난다. (#860 머지 후 노출.)

Changes

  • mock을 { userId: "u1", locale: "en" }로 보정.

Verify

  • tsc --noEmit 0 (전체 web) · page-theme 테스트 1/1 pass · 런타임 단언 불변

🤖 Generated with Claude Code

`[locale]/(shell)/profile/[userId]` 라우트의 params 타입은 `{ userId, locale }`
인데 #839 page-theme 테스트가 `{ userId }`만 mock 하여 tsc 타입 불일치(TS2322)
가 발생했다. 로컬 tsc / next build 에서만 드러나던 것(web typecheck CI 부재).
mock 에 `locale: "en"` 추가로 해소. 런타임 동작·단언 불변.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@vercel

vercel Bot commented Jul 11, 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 11, 2026 12:42am

@thxforall thxforall moved this from Todo to In Progress in decoded-monorepo Jul 11, 2026
@thxforall thxforall added the bump:patch Bug fixes / internal refactor label Jul 11, 2026
@thxforall
thxforall merged commit 1758698 into dev Jul 11, 2026
10 of 11 checks passed
@github-project-automation github-project-automation Bot moved this from In Progress to Done in decoded-monorepo Jul 11, 2026
github-actions Bot pushed a commit that referenced this pull request Jul 11, 2026
@cocoyoon
cocoyoon deleted the fix/profile-theme-test-locale branch July 11, 2026 10:47
cocoyoon added a commit that referenced this pull request Jul 12, 2026
- LikesGrid: 좋아요 포스트 카드에서 post_title 화면 노출 제거(alt 텍스트로만
  유지) — Saved Looks 와 동일 규칙(#890 회귀 방지). 오버레이는 좋아요 시각만.
- SavedLookSetsGrid: 하드코딩 문자열 전부 next-intl 로 전환(Library
  네임스페이스). 빈 상태 카피의 어색한 "Recreate this style 카드에서~보세요"를
  자연스러운 서비스 톤으로 교체("룩 상세에서 마음에 드는 조합을 저장하면 여기에
  모여요" / "Save the combinations you love from any look…"). error·retry·
  itemCount(ICU plural)·removeAria·removeError·cardAlt 도 함께 localize.
- messages/{ko,en}.json: Library.lookSets 에 신규 키(ko 는 실제 한국어).

검증: typecheck·prettier·유닛 819 통과. 브라우저(로그인) Library Likes 탭
타이틀 미노출 + Look Sets 빈 상태 신규 카피 확인.

Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
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