Skip to content

Restore expired Figma asset URLs as local files - #1

Open
unicadesign wants to merge 1 commit into
mainfrom
fix/restore-expired-figma-assets
Open

Restore expired Figma asset URLs as local files#1
unicadesign wants to merge 1 commit into
mainfrom
fix/restore-expired-figma-assets

Conversation

@unicadesign

Copy link
Copy Markdown
Owner

Summary

  • Hero chart card was rendering broken-image icons and bright vertical artifacts because lib/constants.ts referenced Figma MCP asset URLs (figma.com/api/mcp/asset/<uuid>), which have a ~7 day TTL. After expiry the chart lines, data-stream pulses, and feature card icons all 404'd.
  • Re-fetched the 6 assets actually referenced in the codebase from the source Figma file and committed them to public/assets/. Rewired assets to point at the local paths and dropped the 14 unused Figma URL entries.
  • Removed the heroGlow <img> overlay from components/landing/Hero.tsx — that asset was an inline SVG gradient in the Figma design, not an exported image, and the section's existing radial-gradient background already reproduces it.

Test plan

  • yarn next dev -p 3050 and confirm the hero chart card renders both gradient lines + the three pulsing data-stream verticals
  • Confirm the Lending Vaults / Cross-Chain Market / Loop Vaults cards show their icons
  • Confirm no broken-image icons or bright vertical artifacts in the hero
  • DevTools Network tab: no 404s for figma.com/api/mcp/asset/...

The hero chart card and feature card icons were loaded from Figma's MCP
asset endpoint, which has a ~7 day TTL. After expiry the images 404'd,
leaving the hero with broken-image icons and visible artifacts where the
chart and data-stream pulses should render.

Download the six referenced assets (chart lines, data stream, vault /
cross-chain / loop icons) into public/assets/ and point lib/constants.ts
at the local paths. Drop the 14 unused Figma URL entries. The heroGlow
image overlay is removed because the design uses an inline SVG gradient
there, and the section's existing radial-gradient background reproduces
the same effect.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
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