Skip to content

fix(wallet-assets): show actual IPFS NFT image instead of hardcoded CID#240

Merged
jinglescode merged 1 commit into
mainfrom
fix/wallet-assets-ipfs-image
May 10, 2026
Merged

fix(wallet-assets): show actual IPFS NFT image instead of hardcoded CID#240
jinglescode merged 1 commit into
mainfrom
fix/wallet-assets-ipfs-image

Conversation

@jinglescode
Copy link
Copy Markdown
Member

Summary

User-visible bug: every IPFS-based NFT in the wallet asset list rendered the same hardcoded placeholder image instead of its own metadata. The IPFS branch of the asset card was hardcoded to ipfs://QmSNkaU4DW3asABKyUfSx3ykFAtV5PuXLsXu63nMUo8HGv and ignored imageSrc (which holds the asset's actual metadata.image).

The non-IPFS sibling already uses imageSrc / name / 60×60 correctly — this brings the IPFS branch in line.

Severity: HIGH (user-visible, all IPFS NFTs affected)
Introduced: 2025-03-27 (single occurrence in the codebase)

Changes

  • src={"ipfs://Qm..."}src={imageSrc} — show the actual asset's IPFS URL
  • alt="IPFS Image"alt={name} — a11y, screen readers now announce the NFT name
  • width={300} height={300}width={60} height={60} — matches parent 60×60 div (was being clipped by overflow-hidden and wasted bandwidth)

Test plan

  • Open a wallet that holds an IPFS-based NFT
  • Verify the NFT thumbnail shows its actual artwork (not the placeholder cat)
  • Verify hover/screen-reader announces the asset name
  • Verify image fits the 60×60 frame cleanly

🤖 Generated with Claude Code

The IPFS branch of the asset card was passing a single hardcoded ipfs://
literal to <IPFSImage>, so every IPFS-based NFT in the wallet rendered
the same placeholder image instead of its own metadata.image. The
non-IPFS sibling already uses imageSrc / name / 60x60 correctly; this
brings the IPFS branch in line.

Also fixes:
- alt text now uses the asset name (was "IPFS Image" — bad a11y)
- width/height set to 60 to match the parent 60x60 div (was 300, was
  being clipped by overflow-hidden + wasting bandwidth)

Single occurrence in the codebase. Introduced 2025-03-27.
@vercel
Copy link
Copy Markdown

vercel Bot commented May 10, 2026

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

Project Deployment Actions Updated (UTC)
multisig Ready Ready Preview, Comment May 10, 2026 8:54am

Request Review

@jinglescode jinglescode merged commit 4ff1d0a into main May 10, 2026
6 checks passed
@jinglescode jinglescode deleted the fix/wallet-assets-ipfs-image branch May 10, 2026 09:00
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.

1 participant