Skip to content

🧹 [コードヘルス] BusinessCardコンポーネントのimgタグをnext/imageに移行#73

Open
is0692vs wants to merge 1 commit intomainfrom
fix-next-image-business-card-4260618201021424436
Open

🧹 [コードヘルス] BusinessCardコンポーネントのimgタグをnext/imageに移行#73
is0692vs wants to merge 1 commit intomainfrom
fix-next-image-business-card-4260618201021424436

Conversation

@is0692vs
Copy link
Contributor

🎯 What: src/components/BusinessCard.tsx 内の無効化されていた Next.js Image lint ルールを解決し、標準の <img> タグを next/image<Image> コンポーネントに置き換えました。
💡 Why: Next.js の <Image> を使用することで、画像の自動最適化が有効になり、パフォーマンスと保守性が向上します。また、不要な eslint-disable コメントを削除することでコードがクリーンになります。
Verification:

  • next.config.tsavatars.githubusercontent.com のドメインが許可されていることを確認しました。
  • width={160}height={160} を明示的に指定し、既存のスタイリング (h-40 w-40) に合わせました。
  • crossOrigin="anonymous" 属性を保持しました。
  • npm run lint を実行し、該当ファイルの警告が解消されたことを確認しました。
  • npm run test -- --run および npm run build が正常に通過することを確認しました。
    Result: lint の警告が解消され、Next.js の推奨する最適な画像レンダリング方法に準拠するようになりました。

PR created automatically by Jules for task 4260618201021424436 started by @is0692vs

Co-authored-by: is0692vs <135803462+is0692vs@users.noreply.github.com>
@google-labs-jules
Copy link
Contributor

👋 Jules, reporting for duty! I'm here to lend a hand with this pull request.

When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down.

I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job!

For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with @jules. You can find this option in the Pull Request section of your global Jules UI settings. You can always switch back!

New to Jules? Learn more at jules.google/docs.


For security, I will only act on instructions from the user who triggered this task.

@vercel
Copy link

vercel bot commented Mar 16, 2026

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

Project Deployment Actions Updated (UTC)
github-user-summary Ready Ready Preview, Comment Mar 16, 2026 5:45am

@gemini-code-assist
Copy link

Warning

You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant