Skip to content

fix(web): lazy-load campaign detail images on mobile - #810

Merged
Idrhas merged 4 commits into
Fundable-Protocol:mainfrom
Fayedamz:fix/700-campaign-detail-mobile-images
Sep 3, 2026
Merged

fix(web): lazy-load campaign detail images on mobile#810
Idrhas merged 4 commits into
Fundable-Protocol:mainfrom
Fayedamz:fix/700-campaign-detail-mobile-images

Conversation

@Fayedamz

Copy link
Copy Markdown
Contributor

Summary
Fixes issue #700 by ensuring campaign detail page images load efficiently on mobile screens below 768px.
Changes
Added a reusable CampaignImageGallery component for campaign detail pages.
Configured the first campaign image as the eager-loaded hero image with high fetch priority.
Configured all subsequent images to use native lazy loading and asynchronous decoding.
Added responsive sizes values for mobile and desktop layouts.
Enabled support for external campaign image URLs without requiring additional Next.js image-domain configuration.
Integrated the gallery into the campaign detail page.
Added regression tests covering eager hero loading, lazy below-fold loading, fetch priority, and empty galleries.
Validation
Focused gallery tests: 2 passed.
Targeted ESLint validation: passed with warnings only.
git diff --check: passed.
The full production build remains blocked by a pre-existing unrelated error involving the missing formatTruncatedAddress export in src/types/collaboration.ts.

closes #700

@coderabbitai

coderabbitai Bot commented Aug 31, 2026

Copy link
Copy Markdown
Contributor

Important

  • 🔍 Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Team

Run ID: 89cd5ae5-ef48-485e-ba97-fb7ac403e6dd


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@Utilitycoder Utilitycoder left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please fix up the merge conflict and update your PR. Kindly ensure you offramp with Fundable at https://stellar.fundable.finance/offramp

@Idrhas
Idrhas merged commit f96309c into Fundable-Protocol:main Sep 3, 2026
2 checks passed
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.

bug(frontend): Campaign detail page images fail to load on mobile

3 participants