Skip to content

Add commerce-plp-management starter - #44

Merged
jarodreyes merged 5 commits into
mainfrom
add/commerce-plp-management-starter
Aug 3, 2026
Merged

jarodreyes merged 5 commits into
mainfrom
add/commerce-plp-management-starter

Conversation

@jarodreyes

Copy link
Copy Markdown
Contributor

Summary

Adds commerce-plp-management, a starter that gives merchandising teams editorial control of the Shopify category page — product curation, in-grid storytelling, badges, facet order, and custom campaign collections — as a Sanity enrichment layer on top of Shopify.

Presence-based: one collectionEnrichment document per collection handle. If it exists, the storefront merges it over the Shopify output; if not, the collection renders as pure Shopify.

What's included

  • Studio (v5) — collectionEnrichment + productBadge schemas, product-picker and sync-status inputs, merchandiser structure views, Presentation.
  • Frontend (Next.js 16 + React 19 + Tailwind v4) — the "Sanity Swag Store" PLP with parallel Shopify/Sanity fetch, merge + null-check, faceouts, editorial tiles, date-gated badges, promoted facets, and an interim variantOverrides personalization layer.
  • @starter/commerce — framework-agnostic Shopify adapter (Storefront + Admin, client-credentials grant), merge logic, and the sanity_plp_collection metaobject contract.
  • Sanity Functions — collection-sync (publish → Shopify metaobject + stamp sync status) and badge-resync.
  • Blueprint, bootstrap, seed, scripts (shopify:setup, shopify:storefront-token), CI + template validation, AGENT.md/README.

Deploy-ready hardening (latest commit)

  • Store-agnostic default seed so pnpm bootstrap works on any store; the fully-merchandised demo lives in demo-swag-store.ndjson behind pnpm seed:demo.
  • deploy.yml (Studio + blueprint deploy, frontend build guard).
  • README Deploying section documenting the Vercel storefront setup (root dir, env vars, CORS) alongside the Sanity-hosted surfaces.
  • Collection PLP layout fixes (no facet-rail collapse, no grid card overlap).

Test plan

  • pnpm validate (sanity-template-validate) passes
  • pnpm typecheck passes across all workspaces
  • pnpm --filter frontend build succeeds
  • pnpm create sanity@latest --template sanity-labs/starters/commerce-plp-management from a clean checkout
  • pnpm bootstrap against a fresh project (schema + blueprint + seed)
  • Import storefront into Vercel per README and verify a live collection PLP

Notes for reviewers

  • The starter is wired into the root .github/workflows/ci.yml (environment: commerce-plp-management). That GitHub Environment needs SANITY_PROJECT_ID / SANITY_DATASET (and SANITY_AUTH_TOKEN + SANITY_STACK_ID if we enable the deploy workflow).

Made with Cursor

Jarod Reyes and others added 2 commits July 14, 2026 09:20
Merchandiser-controlled PLP enrichment layer over Shopify: presence-based
collectionEnrichment + shared productBadge vocabulary, Next.js 16 storefront
with parallel fetch + merge, Sanity Functions push-sync to Shopify metaobjects,
and a framework-agnostic @starter/commerce package (Shopify adapter, merge
logic, metaobject contract). Dev Dashboard client-credentials Admin auth with
a minted public Storefront token.

Co-authored-by: Cursor <cursoragent@cursor.com>
- Restore store-agnostic default seed so `pnpm bootstrap` works for any store;
  preserve the fully-merchandised "Sanity Swag Store" demo as demo-swag-store.ndjson
  behind `pnpm seed:demo`
- Add deploy.yml (Studio + blueprint deploy, frontend build guard)
- Document Vercel storefront deploy (root dir, env vars, CORS) in the README
- Fix collection PLP layout: no facet rail collapse and no grid card overlap

Co-authored-by: Cursor <cursoragent@cursor.com>
@jarodreyes
jarodreyes had a problem deploying to agentic-localization July 14, 2026 21:57 — with GitHub Actions Failure
@jarodreyes
jarodreyes temporarily deployed to ai-shopping-assistant July 14, 2026 21:57 — with GitHub Actions Inactive
@jarodreyes
jarodreyes had a problem deploying to agentic-localization July 14, 2026 21:57 — with GitHub Actions Error
@vercel

vercel Bot commented Jul 14, 2026 •

Copy link
Copy Markdown

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

Project Deployment Actions Updated (UTC)
agentic-localization Ready Ready Preview Aug 3, 2026 6:46pm
ai-shopping-assistant Ready Ready Preview Aug 3, 2026 6:46pm
content-analytics-starter Ready Ready Preview Aug 3, 2026 6:46pm

Request Review

Add the commerce-plp-management job to root CI (format, lint, typecheck,
validate, functions build, manifest extract, bundle-size check) and list it
in the root README starters table.

Co-authored-by: Cursor <cursoragent@cursor.com>
The starter skill and CONTRIBUTING now spell out that a new starter needs its
own job in the root ci.yml (the starter's own workflows don't run in this repo),
plus the GitHub Environment vars/secrets. Correct the stale note about editing
the husky hook — it auto-discovers starters.

Co-authored-by: Cursor <cursoragent@cursor.com>
@jarodreyes jarodreyes mentioned this pull request Jul 17, 2026
7 of 8 tasks
@jarodreyes
jarodreyes temporarily deployed to commerce-plp-management August 3, 2026 18:44 — with GitHub Actions Inactive
@jarodreyes
jarodreyes temporarily deployed to commerce-plp-management August 3, 2026 18:44 — with GitHub Actions Inactive
@jarodreyes
jarodreyes temporarily deployed to ai-shopping-assistant August 3, 2026 18:44 — with GitHub Actions Inactive
@jarodreyes
jarodreyes had a problem deploying to agentic-localization August 3, 2026 18:44 — with GitHub Actions Failure
@jarodreyes
jarodreyes merged commit 0092023 into main Aug 3, 2026
7 of 14 checks passed
@jarodreyes
jarodreyes deleted the add/commerce-plp-management-starter branch August 3, 2026 18:45

This branch had an error being deployed

1 failed, 3 active, and 3 inactive deployments
Preview – ai-shopping-assistant — 591b4e69 Deployed Aug 3, 2026 by vercel[bot]
Preview – content-analytics-starter — 591b4e69 Deployed Aug 3, 2026 by vercel[bot]
Preview – agentic-localization — 591b4e69 Deployed Aug 3, 2026 by vercel[bot]
commerce-plp-management — 591b4e69 Deployed Aug 3, 2026 by jarodreyes via commerce-plp-management (Node 22) #187
agentic-localization — 591b4e69 Deployed Aug 3, 2026 by jarodreyes via agentic-localization (Node 22) #187
ai-shopping-assistant — 591b4e69 Deployed Aug 3, 2026 by jarodreyes via ai-shopping-assistant #187
knowledge-base — 591b4e69 Deployed Aug 3, 2026 by jarodreyes via knowledge-base (Node 20) #187
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