Skip to content

feat(shopify-assets)!: migrate react-photo-album to v3 catalog - #1822

Draft
stipsan wants to merge 1 commit into
mainfrom
cursor/react-photo-album-v3-shopify-d80a
Draft

feat(shopify-assets)!: migrate react-photo-album to v3 catalog#1822
stipsan wants to merge 1 commit into
mainfrom
cursor/react-photo-album-v3-shopify-d80a

Conversation

@stipsan

@stipsan stipsan commented Aug 3, 2026

Copy link
Copy Markdown
Member

Replaces #1798 (Renovate-only bump without the v2→v3 API migration).

Summary

  • Bump shared react-photo-album catalog ^3.6.0^3.6.1
  • Migrate sanity-plugin-shopify-assets to the v3 API (major), following sanity-plugin-asset-source-unsplash:
    • PhotoAlbum layout="rows"RowsPhotoAlbum + react-photo-album/rows.css
    • react-infinite-scroll-componentreact-photo-album/scroll
    • Custom photo render → default images + render.extras overlays
    • componentsProps.containerPropscomponentsProps.container
    • Promise-based fetchAssets datastore (drops rxjs subjects for search)
    • Depend on "react-photo-album": "catalog:"
  • Patch changeset for sanity-plugin-asset-source-unsplash (catalog consumer)

Test plan

  • pnpm format
  • pnpm lint
  • pnpm knip
  • Build sanity-plugin-shopify-assets + sanity-plugin-asset-source-unsplash
  • vitest for sanity-plugin-shopify-assets
  • Smoke-test Shopify asset picker gallery/search/infinite scroll in test studio
Open in Web Open in Cursor 

Upgrade the shared react-photo-album catalog to ^3.6.1 and migrate
sanity-plugin-shopify-assets to the v3 RowsPhotoAlbum + scroll API
(matching asset-source-unsplash), so it can use catalog: and drop the
v2-only react-infinite-scroll-component/rxjs search path.
@changeset-bot

changeset-bot Bot commented Aug 3, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 59c6e47

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 2 packages
Name Type
sanity-plugin-shopify-assets Major
sanity-plugin-asset-source-unsplash Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@vercel

vercel Bot commented Aug 3, 2026

Copy link
Copy Markdown

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

Project Deployment Actions Updated (UTC)
plugins-studio Ready Ready Preview Aug 3, 2026 3:47pm
1 Skipped Deployment
Project Deployment Actions Updated (UTC)
plugins-e2e-test-studio Ignored Ignored Aug 3, 2026 3:47pm

Request Review

@stipsan stipsan added the 🤖 bot label Aug 3, 2026 — with Cursor
@github-actions

github-actions Bot commented Aug 3, 2026

Copy link
Copy Markdown

✅ E2E Tests

🟢 24 passedview full reportview run

Studio: https://plugins-e2e-test-studio-pdiyrwgh6.sanity.dev

Datasets: pr-1822-chromium-30829108272, pr-1822-firefox-30829108272

@socket-security

Copy link
Copy Markdown

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Addednpm/​react-photo-album@​3.6.110010010090100

View full report

@github-actions

github-actions Bot commented Aug 3, 2026

Copy link
Copy Markdown

Coverage Report

Status Category Percentage Covered / Total
🔵 Lines 31.99% 5504 / 17205
🔵 Statements 31.77% 5808 / 18280
🔵 Functions 27.73% 1424 / 5134
🔵 Branches 23.35% 2831 / 12120
File Coverage
File Stmts Branches Functions Lines Uncovered Lines
Changed Files
plugins/sanity-plugin-shopify-assets/src/components/File.styled.tsx 33.33% 100% 0% 33.33% 7-10, 29-32
plugins/sanity-plugin-shopify-assets/src/components/File.tsx 0% 0% 0% 0% 10-27
plugins/sanity-plugin-shopify-assets/src/components/Loader.tsx 0% 100% 0% 0% 4-7
plugins/sanity-plugin-shopify-assets/src/components/ShopifyAssetPicker.tsx 7.69% 0% 0% 8.06% 40-290
plugins/sanity-plugin-shopify-assets/src/datastores/shopify.ts 100% 100% 100% 100%
Generated in workflow #8616 for commit 59c6e47 by the Vitest Coverage Report Action

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.

2 participants